Global & Shared Variable in Javra IDE

Since Javra IDE is a web based application which runs the progress logic in Stateless mode of the appserver, global and shared variables cannot be used in the application. In case you want to need some shared or global variable in the application, you can achieve similar functionality in a bit different way (i.e. via Javra IDE session variable). Here is how to set and get values to and from Javra IDE Session Variable.

Setting value to a session variable:

  • f-set-xsest(input p-varname as char, input p-value as char):
    • p-varname: This is the session variable
    • p-value: This is the value of the session variable
    • example: f-set-xsest(“myvariable”, “testvalue”)

Getting value from a session variable:

  • f-get-xsest(‘p-varname’): This function retrieves the value from xsession table.
    • example: f-get-xsest(“myvariable”)

results matching ""

    No results matching ""