I’m working on an IFS FSM application where I’m adding functionality.
Task: search for Open task → click the Recall button → show a table popup that shows the technician’s travel time from current location and from home location to the task location (based on latitude/longitude).
I created a .NET function that calls the Bing API to calculate these travel times. However, when I try to call the .NET function from the client script, I get errors.
Attempts:
var calcResult = getDBValues('C_CALCULATE_RECALL_DISTANCES', [currTaskId]);
Output: No change is reflected.-
JavaScript
var calculator = new WOMIntegrationPolicies.BusinessPolicies.RecallNAManagerComponent.RecallNAManagerCustBusPolicyMgr();
var calcResult = calculator.CalculateRoadDistancesForRecall(currTaskId.toString());
Show more lines
Error:Unimplemented constructor called: WOMIntegrationPolicies.BusinessPolicies.RecallNAManagerComponent.RecallNAManagerCustBusPolicyMgr -
JavaScript
if (currTaskId && currTaskId != '') {
var xmlPerform = new XMLPerform("perform_travel_time");
xmlPerform.AddParameter("taskId", currTaskId);
xmlPerform.Post();
}
Error:
Unimplemented constructor called: XMLPerform
also Created Perform definition.
Please suggest a different way to call the Bing API or to invoke the already-defined .NET function from client script.