SHARE
TWEET

Untitled

a guest Jun 20th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. define(["sitecore", "/-/speak/v1/experienceprofile/DataProviderHelper.js",
  2. "/-/speak/v1/experienceprofile/CintelUtl.js"],
  3. function (sc, providerHelper, cintelUtil) {
  4.     var app = sc.Definitions.App.extend({
  5.         initialized: function () {
  6.             var localUrl = "/customformfields/";
  7.             providerHelper.setupHeaders([
  8.                 { urlKey: localUrl }
  9.             ]);
  10.             //providerHelper.addDefaultTransformerKey();
  11.             var url = sc.Contact.baseUrl + localUrl;
  12.             var $that = this;
  13.             providerHelper.initProvider(this.customDataProvider, "", url, this.customTabMessageBar);
  14.             providerHelper.getData(this.customDataProvider,
  15.                 $.proxy(function (jsondata) {
  16.                     cintelUtil.setText($that.SurNameValue, jsondata.SurName, true);
  17.                     cintelUtil.setText($that.PassportValue, jsondata.PassportNumber, true);
  18.                 }));
  19.         }
  20.     });
  21.     return app;
  22. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top