Hello,
I'm trying to create a button with a drop-down list to open up a .phvc. (as shown below)
I just can not figure out way for it to find the appropriate path for it to open. (Below is an example of my script that I used for a different button to open up displays)
Hi Micah,
In order to launch an application, DeltaV Live requires a Private String that defines the path to the application. The use of private strings is required to minimize the risk of manipulating paths to run undesirable applications.
In the Library, select Standards and from the Ribbon select the drop down and choose Private String. I called this new Standard "PHV":
The typical path for Process History View is C:\DeltaV\bin\CHS.exe
Once this standard has been created, saved and published, it is ready to be used in your script.
In your script, you can use the RunAsync function to launch the application defined by the Private String:
Please note that TypeScript requires double backslashes to recognize it is using a special character in the path. Another note, the name of the phv files doesn't include dashes. I was getting an error but still opened the file. I will find out what that error is about, but wanted to share a solution that can get you going.
Regards,
Camilo Fadul
Camilo Fadul | DeltaV Solution Marketing Director
https://www.linkedin.com/in/cfadul
In reply to Camilo Fadul: