cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Web application path via GetUserOption

sjankofsky
Retired

Hi,

is it possible to retrieve the web application path via the GetUserOption function in VBScript?

 1.png

 

Where could I find an overview of what I can call via the GetUserOption?

 

Thank you,

 

Sven

5 Replies

Nevermind. To find the the "Section name" and "keyName":

1) I cleared out my MegaENV.ini

2) Set the "Activate variations"

3) found the value populated under "[Filter]" :  "F835F9094D0536F2=1"

 

So for this particular value, the software assumes a default of Null or "0" - not sure which. Then, an entry ("F835F9094D0536F2=1") is made in the MegaENV.ini if the value is selected (checked). Also, the entry in the MegaENV.ini will remain and changed to "F835F9094D0536F2=0", if the option is reverted.

  Hello

   I am looking for the "Activate variations" Section name and Keyname. See attached "GetUserOptions AV.png"

 

Thanks!

 

 

The solution is:

 

getRoot.CurrentEnvironment.getuserOption("HOPEX","WebApplicationPath")

I know I can access option values via the API. That is what I want to do.

I just don't know how exactly I can call the "Web application path" value. What are the sectionName and keyName?

 

mgobjRoot.CurrentEnvironment.GetUserOption("???","???")

 

I found the function in the JavaDoc, but nothing on the availabe sectionNames and keyNames. 

 

Thank you,

Sven

jhorber
MEGA
MEGA

Hello Sven

 

Option values can be accessed using API script.

Several objects are available at environment and user level:

  • MegaFunctionality: options.
  • MegaFunctionalityParameter: option values 

For more details see javadoc web site

 

 

Jerome