Hi,
I published a web-page utilizing html5 SDK apis (cordys.ajax), now when i deploy this page to another organization it invokes the webservice on the first organization. Any idea how to resolve.
I'm referring to cordys apis, using this url:
<script src="/cordys/html5/cordys.html5sdk.js" type="text/javascript"></script>
Here's code snippet of the js invoking webservice:
$.cordys.ajax({
method: "GetTopFiveAppsByLDCCode",namespace: "http://schemas/BASSEGASHill/Application/operations", dataType: '* json', parameters: { LDCCode: LDC, date: CurrentDate }
}).done(function (AppsResponse) { // Show the Apps on the screen
// console.log(AppsResponse)
data = AppsResponse
var i = 1
$.each(AppsResponse, function (k, v) {
// console.log(k)
if (k.indexOf("Application") > -1) {
//console.log(k);
=//console.log(v);
=arr.push({ "rowNum": i, "App_No": v.App_No, "National_ID": v.National_ID, "LDC_Name": v.LDC_Name, "Client": v.Client, "Start_Date": moment(v.Start_Date).format("DD/MM/yyyy") })
i += 1
// console.log(v)
}
});
d.resolve(arr);
// console.log(arr);
}).fail(function (error) { alert("Error " + error + " in getting Apps"); d.reject(); });