Global Variable for DOORS Session

Hello All,

Can I create a Global Variable which will be valid for the entire DOORS session? If not, is there any global variable in DOORS which I can use to store a value and retrieve it during the existing DOORS Session?

Please help.

Thanks & Regards
Irfan
Irfan_Jamal - Wed Jan 27 03:59:09 EST 2010

Re: Global Variable for DOORS Session
Peter_Albert - Wed Jan 27 04:20:35 EST 2010

If you have control over how DOORS is started, then you can use the command line switches -C or -D to define global variables at startup; they are available throughout the DOORS session.

Alternatively, you can use environment variables with the 'setenv' and 'getenv' perms.

In both cases, be careful to use variable names of which you are sure that they are truly unique.

Regards,

Peter

Re: Global Variable for DOORS Session
Irfan_Jamal - Wed Jan 27 05:00:45 EST 2010

Peter_Albert - Wed Jan 27 04:20:35 EST 2010
If you have control over how DOORS is started, then you can use the command line switches -C or -D to define global variables at startup; they are available throughout the DOORS session.

Alternatively, you can use environment variables with the 'setenv' and 'getenv' perms.

In both cases, be careful to use variable names of which you are sure that they are truly unique.

Regards,

Peter

Hey Peter,

Thanks for your reply.

If I build a GUI which takes input from the user to enter password, can I verify the password against the actual database password for this user?

Regards
Irfan

Re: Global Variable for DOORS Session
Peter_Albert - Wed Jan 27 05:48:44 EST 2010

Irfan_Jamal - Wed Jan 27 05:00:45 EST 2010
Hey Peter,

Thanks for your reply.

If I build a GUI which takes input from the user to enter password, can I verify the password against the actual database password for this user?

Regards
Irfan

No, the password is a write-only variable (See this thread.

Peter

Re: Global Variable for DOORS Session
Irfan_Jamal - Wed Jan 27 06:27:51 EST 2010

Peter_Albert - Wed Jan 27 05:48:44 EST 2010
No, the password is a write-only variable (See this thread.

Peter

Hi Peter,

Thanks!

Can I atleast create a field DBE to input the password? A kind of a password field where the text is shown as "*******" ?

Thanks & Regards
Irfan

Re: Global Variable for DOORS Session
llandale - Wed Jan 27 13:59:06 EST 2010

I couldn't find my examples, but I managed to do this with normal scripts without any icon parameters. IIRC, I ran a function that attempted to access the desired global variable using an "eval_" code; if it got any DXL errors then the function presumed the variable was not (yet) defined, and would then define the variable with an appropriate "evalTop_" code. I think the "eval_Top_" was itself wrapped in an "eval_" statement. All in all it didn't seem like a reasonable solution.

  • Louie

Re: Global Variable for DOORS Session
chrisroy - Sat Jun 02 19:14:11 EDT 2018

Wow, old thread.  Thought I'd drop this in for anyone who might find it useful:

It appears that any dxl file you put under ..\DOORS\<DOORS version>\lib\dxl\startupFiles can host global variables valid throughout the DOORS session.

 

Regards,

Christopher