Skip to main content
Question

MWO mobile integration with coordinates

  • July 8, 2024
  • 8 replies
  • 109 views

Forum|alt.badge.img+4

Hi all,

Need to send the work task’s coordinates (latitude and longitude), on a mobile integration link for the IFS MWO Service. I’m having some difficulties with this, but I tested and can send it when using an external link command inside the work details using the following link:

https://google.com?ifs-coord=${MapPositionRef.Latitude},${MapPositionRef.Longitude}

How can I do this in mobile integrations?

8 replies

dirolk
Do Gooder (Employee)
Forum|alt.badge.img+4
  • Do Gooder (Employee)
  • July 9, 2024

Hi,

Do you need to view the map position of a specific work task? If so, please setup as follows
 

{root URL}/main/ifsapplications/web/page/MapPositions/List;$filter=KeyRef eq 'TASK_SEQ=4346^'


Alexander Heinze
Ultimate Hero (Employee)
Forum|alt.badge.img+23

According to the documentation, Integrations with Screen=Home can use data from the ApplicationParameters entity, Screen=Work Task can use data from:

  • ApplicationParameters
  • JtExecutionInstance
  • EquipmentObject
  • JtTaskAddress
  • JtTask
  • MobileIntegration

I assume that’s why MapPosition…. doesn’t work. I did check the other entities and didn’t find any lat/long fields, there are however the My Work map views, which must also get their data from somewhere. Unfortunately this is not visible in Page Designer.

I wonder if someone in R&D can shed some light on where the map page gets the job lat/long from and whether these fields would be available in mobile integrations.

 

 


dirolk
Do Gooder (Employee)
Forum|alt.badge.img+4
  • Do Gooder (Employee)
  • July 9, 2024

Hi,

Map page gets the lat,long from a entity called TaskMapPosition, which is based on Mobile_Map_Position view.
But in current solution these fields are not available for mobile integration.

cc: ​​​​@skullk 


Alexander Heinze
Ultimate Hero (Employee)
Forum|alt.badge.img+23

Hi,

Map page gets the lat,long from a entity called TaskMapPosition, which is based on Mobile_Map_Position view.
But in current solution these fields are not available for mobile integration.

cc: ​​​​@skullk 

In that case the only alternative would be 2 custom fields on the task to store lat/long (populated when a map position is created/updated), right? Not the ideal solution, but a possible workaround.

 

I have added idea Make task lat/long available for mobile integrations | IFS Community, feel free to upvote.


James Ashmore
Hero (Employee)
Forum|alt.badge.img+16

Please add adding map position details to Mobile Integrations as an Idea so that we can consider it in a future release

Cheers

James


Forum|alt.badge.img+4
  • Author
  • Sidekick (Partner)
  • July 9, 2024

Hi,

Map page gets the lat,long from a entity called TaskMapPosition, which is based on Mobile_Map_Position view.
But in current solution these fields are not available for mobile integration.

cc: ​​​​@skullk 

In that case, if I add a custom attribute to the JTTask entity would I be able to add it to the parameters of the Mobile integration? For example, if I created the custom attribute “C_CUSTOM”, how would I configure it in the parameters? Something like this?

https://google.com?custom=${Cf_C_Custom}


Alexander Heinze
Ultimate Hero (Employee)
Forum|alt.badge.img+23

For some reason my earlier post did not get published. I had suggested exactly the same, custom fields on the task.

I have also created this idea: Make task lat/long available for mobile integrations | IFS Community


skullk
Hero (Employee)
Forum|alt.badge.img+11
  • Hero (Employee)
  • July 12, 2024

Just curious to know why you’d want to include the task map position in an integration link. Do you want to see the map position in an external map application? 

Today you anyway can open it directly in the device’s map application?

Thanks

Sampath