I know there is a File Browser object in PML, but is there a folder browser object ?
Thanks
I know there is a File Browser object in PML, but is there a folder browser object ?
Thanks
Hello, there is a PMLFolderBrowser object similar to the PML File Browser.
However, I cannot find any published documentation where PMLFolderBrowser is described.
I remember PMLFolderBrowser has a .show() method and a selectedPath() method. Example code below:
!folderBrowser = object PMLFolderBrowser()
!folderBrowser.show('The text here will appear on the title of the Folder Browser dialog',true)
!folderPath = !folder.Browser.selectedPath()
q var !folderPath
There must be some default AVEVA forms that have a folder picker button that you can check the PML code..
Sorry I don't have access to a computer with E3D right now in my current job and I am still trying to switch back to a piping/E3D job.
Tried that but didn't work. Not sure that exists
As a work around I might try using the file explorer and extract the path component
Have you tried to "import" it in the first part of your pml form?
before using the object? This is similar to how PMLFileBrowser needs to be imported first before it can be used.
I remember using these on E3D 2.1 version.
Import 'PmlFolderBrowser'
handle any
endhandle
Using namespace 'Aveva.Core.Presentation'
!folderBrowser = object PMLFolderBrowser()
!folderBrowser.show('The text here will appear on the title of the Folder Browser dialog',true)
!folderPath = !folder.Browser.selectedPath()
q var !folderPath