Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  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. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement