Hi,
I am having 2 questions.
1. I am looking for a predefined variable that when called will return a string of that component's code.
For example,
Calling this predefined variable in a session will return Session Code.
Calling this predefined variable in a report will return Report Code.
Calling this predefined variable in an extension will return Library Code.
Is there anything for this purpose? If not then what should be used?
I have tried
and
Code:
get.var(pid, "prog.name$", sessname)
but it works only for session. For report, it will have an extra 'r' in front of the report code and an extra '0' at the end of the report code. However, I have no clue how to get the (Extension) Library Code.
2. Is there a predefined variable when called will return the type of component that is being executed?
For example,
Calling this predefined variable in a session will return "Session" or an Enum or Long that indicates that it is a Session.
Calling this predefined variable in a report will return "Report" or an Enum or Long that indicates that it is a Report.
Calling this predefined variable in an extension will return "Extension" or an Enum or Long that indicates that it is an Extension.
I have searched for this one for some time but to no avail.
Regards,
Thana