Skip to main content

FSM||On press Recall calculate time travel

  • December 16, 2025
  • 0 replies
  • 0 views

Forum|alt.badge.img

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:

  1. var calcResult = getDBValues('C_CALCULATE_RECALL_DISTANCES', [currTaskId]);
    Output: No change is reflected.
  2. 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
  3. 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.