Focal Point
maintain not passing userid [SOLVED]

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7907067926

March 26, 2013, 11:59 AM
TomS.
maintain not passing userid [SOLVED]
So, I have one maintain form calling another maintain form but the user id is not being passed. Has anyone experienced this before?

I'm in 7.7 for today...

This message has been edited. Last edited by: TomS.,


WebFOCUS 8.0.07 and 8.2.01M
UNIX, WINDOWS, ORACLE
PDF, CSV, Excel, TXT, XML, HTML
March 26, 2013, 01:40 PM
Maintain Wizard
Hi Tom
A couple of questions.
1) Are the forms in the same Maintain procedure or are you using CALL to branch from one Maintain to another?

2) How are you retrieving the User id? And when you do, how are you storing it? If you retrieve it and store it in a variable, it should be available to the entire application and all of the forms.

Mark
March 26, 2013, 01:58 PM
TomS.
Mark,

1) I am using a CALL to branch from one Maintain to another.

2) I'm getting the user id directly from MR


WebFOCUS 8.0.07 and 8.2.01M
UNIX, WINDOWS, ORACLE
PDF, CSV, Excel, TXT, XML, HTML
March 26, 2013, 02:03 PM
Maintain Wizard
You will need to pass the variable containing the User Id on the Call command line if you want it to be available in the next Winform. A child or CALLed Maintain does not inherit values from the parent. You can pass in stacks and variables to bring those values in.

Mark
March 26, 2013, 04:03 PM
TomS.
Thanks Mark, I was able to create the variable and pass it.


WebFOCUS 8.0.07 and 8.2.01M
UNIX, WINDOWS, ORACLE
PDF, CSV, Excel, TXT, XML, HTML
March 27, 2013, 12:02 PM
John_Edwards
quote:
Originally posted by Maintain Wizard:
You will need to pass the variable containing the User Id on the Call command line if you want it to be available in the next Winform. A child or CALLed Maintain does not inherit values from the parent. You can pass in stacks and variables to bring those values in.

Mark


Can the new form not query the IBIMR_user variable embedded in the cookie just like the first?



March 27, 2013, 12:37 PM
Alan B
That's an interesting question John.

Although I cannot find reference anywhere, I think that the CALLed procedure cannot access these variables and cannot use WINFORM, it is basically a dumb process.

Most variables you get for a maintain are passed in on, or through, the command line or in the header; but no WINFORM => no header => no header variables.

As it is not called from WebFOCUS then no &variables will be around, like IBIMR_user.

That sort of makes sense to me, does it to you?


Alan.
WF 7.705/8.007
March 27, 2013, 12:39 PM
John_Edwards
Not really. What do you mean no WINFORM? We use WINFORM in called Maintains all the time.



March 27, 2013, 12:58 PM
Maintain Wizard
A CALLed procedure can absolutely have Winforms. However, If the variable was passed into the Parent (or CALLing) Maintain, then it will not be available to the child. You will have to pass it in.

Mark
March 28, 2013, 05:26 AM
Alan B
Must admit I haven't used a CALL for 12 years now, so am rusty with it! However, the CALLed Maintain, even when running on the same server, does not pick up any variables that the parent can access.


Alan.
WF 7.705/8.007