As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
I have a Maintain that I'd like to make a call out to a focexec to gather data. I want something like this --
TABLE FILE XXX PRINT FIELD_1 NOPRINT COMPUTE X/A20 = '&IBIMR_user' ON TABLE PCHOLD END
I realize I can get the username in the Maintain directly, but the example above is a simplified example, not what I'm actually looking to do.
My fex unit runs correctly from Dev Studio. When I call it from Maintain it bombs, showing the "(FOC03690) Called Proc, MAINTAIN_SITE_PROFILE, wants 0 Output parms but was called w/ 1" that invariably means that the routine is throwing an error.
I tried to work around the issue with dialog manager commands but they didn't work either. I've coded a dozen approaches to the problem that work correctly in WF, but the minute I EXEC a call to it in Maintain it crashes. The amper-variable seems to be the common denominator.
Here's the question -- Can I access environment amper-variables in a focexec called by Maintain? The minute I pull &IBIMR_user out of the code all runs correctly.This message has been edited. Last edited by: John_Edwards,
Posts: 1012 | Location: At the Mast | Registered: May 17, 2007
John The easiest way to debug an EXECd procedure is to do the following: 1) At the top of your Focexec add the line -SET &ECHO='ALL'; 2) At the bottom add the line -RUN
In Maintain, on your form: 3) place an HTMLTable populated by FOCMSG.MSG
When you run, ALL of the output from the Focexec appears in the HTMLTable so you can see what's going on.
The Focexec SHOULD run through the edasprof and populate the variables. However, the EXEC'd procedure may be pre-compiled and that could be an issue for the & variables.
Mark
Posts: 663 | Location: New York | Registered: May 08, 2003
John It seems that variables like IBIC_user and IBIMR_user are not available to a procedure that is EXEC'd from a parent Maintain. Variables like &DATE to work.
In order to get the value into the Focexec you would have to retrieve it in the Maintain and pass it into the EXEC'd procedure like:
COMPUTE MRUSER/A30 = IWC.GetAppCGIValue("IBIMR_user") exec MRUser2 from MRUSER
Mark
Posts: 663 | Location: New York | Registered: May 08, 2003