Skip to Content
0
Apr 24, 2020 at 02:15 PM

Auto-populate Stages and its source and destination location in Forwarding order

35 Views

Hello Experts,

I have a requirement to dynamically create stages, populate the source and destination location for all the stages at runtime in Forwarding order and bind it to the stages table in Actual route tab by using a button action on the Stages table. This requirement is to auto-propose best route in the Forwarding order based on Source and destination location in Locations tab. User can also manually add stages on top of this recommendations.

I was able to create stages by using the action "INSERT_AFTER" of "STOP_SUCCESSOR" BO and it was visible in the UI. But I am unable to populate the source and destination location in the Tree table before user can save the forwarding order. I tried to use post-exit of get_data method to populate source and destination location for stages and pass it to et_data.

Now I am facing 2 issues.

  1. If I click on "Save" button, Stages are saved in the Forwarding order but source and destination location are not getting saved.
  2. As I have populated the source and destination location in post-exit method of get_data, this method is called after every event and data gets wiped out as I have put the condition to post-exit of get_data to run only when a button action is performed as mentioned above.

I am new to TM as well as FPM. Please provide solution to the above mentioned issues or the design suggestions for the above requirement.

Regards,

Karan Shaheri.

Attachments