Hexagon Geospatial
MENU

M.App Enterprise

Discuss topics with other M.App Enterprise Product pioneers and experts to get the most out of it.
Showing results for 
Search instead for 
Do you mean 
Reply
Frequent Contributor
Posts: 159
Registered: ‎01-14-2018
Accepted Solution

open a file from rowaction

Dear all,

 

In Mapp Enterprise, I have a list having rowaction as in the the following picture

rowaction.PNG

 

What I want from this rowaction is to open the file path in the second field,

Could anyone help in what to write in this script

I tried 

SC.Media.showFile(Sc.getFieldByName('path').getValue())

but with no response

 

Regards

khaled

 

Highlighted
Staff
Posts: 1,036
Registered: ‎10-18-2015

Re: open a file from rowaction

Hi Khaled,

 

to interact with the form content you can always use IG object. In your case to get the value from another formfield you can use:

 

IG.getItemById('FORMFIELDNAME').getValue();

HTH,

Stefano

Stefano Turcato
Presale Engineer
Hexagon Geospatial
Frequent Contributor
Posts: 159
Registered: ‎01-14-2018

Re: open a file from rowaction

[ Edited ]

Hi Stefano,

 

In my case, I want to open a file which its path is written in a field called 'path' in the same list opened not in another form,

note: I tried the script you have posted but no action happened.

 

Could you help with your support please

Khaled

Staff
Posts: 1,036
Registered: ‎10-18-2015

Re: open a file from rowaction

if you define the action script directly in the action property (not in a custom script) you can access {ROW.columnname} placeholder, so you don't have to use IG methods.

 

Stefano

Stefano Turcato
Presale Engineer
Hexagon Geospatial
Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Development Ticket through our Development Ticket Portal.