-
-
Save islaytitans/67f0d6ae890b104399bc to your computer and use it in GitHub Desktop.
Retrieve data from the sampleorders pipeline to fill a Sitecore SPEAK ListControl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define(["sitecore", "/-/speak/v1/experienceprofile/DataProviderHelper.js"], function (sc, providerHelper) | |
{ | |
var app = sc.Definitions.App.extend({ | |
initialized: function () | |
{ | |
var tableName = "sampleorders"; // Case Sensitive! | |
var localUrl = "/intel/" + tableName; | |
providerHelper.setupHeaders([ | |
{ urlKey: localUrl + "?", headerValue: tableName } | |
]); | |
var url = sc.Contact.baseUrl + localUrl; | |
providerHelper.initProvider(this.SampleOrdersDataProvider, tableName, url, this.SampleOrdersTabMessageBar); | |
providerHelper.subscribeSorting(this.SampleOrdersDataProvider, this.SampleOrders); | |
providerHelper.getListData(this.SampleOrdersDataProvider); | |
providerHelper.subscribeAccordionHeader(this.SampleOrdersDataProvider, this.SampleOrdersAccordion); | |
sc.Contact.subscribeVisitDialog(this.SampleOrders); | |
} | |
}); | |
return app; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment