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.
Hey, I have two maintain procedures I created in one project. One contains a form that is a welcome screen that calls forms in the second procedure. I imported the forms in the second procedure into the first but when i try to compile the main procedure that holds that welcome screen it says it can't find a case function that sits in the second procedure.
I placed a call function into the first procedure to call the second procedure but that didn't solve it either.
Anyone know the proper way to call a maintain procedure from another procedure?This message has been edited. Last edited by: <Kathryn Henning>,
WebFOCUS App Studio 8.2.02 Windows 7, All Outputs
Posts: 141 | Location: Mclean, VA | Registered: December 04, 2012
Tim There are a couple of way to do this. The first is to have a single Maintain application with multiple cases and functions. A single Maintain can contain multiple forms.
From your welcome screen, you can have a button that just does a WINFORM SHOW form2 and that will display another form. Or you can have PERFORM function. Here, your function would do whatever calculations it needs and then do a WINFORM SHOW form.
If you want to have separate Maintain procedures, you need to use the CALL command.
In your first procedure, with the Welcome form, you would perform a case containing the command CALL maintain procedure, and that would launch the second Maintain procedure and go from there. Then in the second Maintain you would have a Winform Show command to show the next form.
If you have questions, you can send me an e-mail at Mark_Derwin@IBI.Com.
Mark
Posts: 663 | Location: New York | Registered: May 08, 2003
I am calling one maintain file from another. I placed a CALL command into the 'TOP' of the first maintain file which I would think would call the second maintain file on load but it does not.
WebFOCUS App Studio 8.2.02 Windows 7, All Outputs
Posts: 141 | Location: Mclean, VA | Registered: December 04, 2012
Tim When Maintain reaches the CALL command it will pass control to the second Maintain procedure. The syntax is: CALL MAINTAIN_PROCEDURE FROM variables INTO variables.
Control stays with the second Maintain until it ends. The control is passed back to the calling or Parent Maintain, just after the CALL command.
If this is not working please post your code, or zip up the project and send it to me at Mark_Derwin@IBI.com.
Mark
Posts: 663 | Location: New York | Registered: May 08, 2003
Case Top
Call tek_rls_exception;
Winform Show Welcome_screen;
EndCase
This is the code from the first maintain procedure.
'tek_rls_exception' is the name of the second procedure. 'tek_rls_exception' contains 2 forms that I have imported into the first maintain procedure. I figured if i called the second procedure like I did above, it would work.
WebFOCUS App Studio 8.2.02 Windows 7, All Outputs
Posts: 141 | Location: Mclean, VA | Registered: December 04, 2012
Tim If you just run tek_rls_exception does it work? The forms for tek_rls_exception should be in the first Maintain but in the child or called Maintain.
What are you doing in tek_rls_exception? When the top case runs, control is passed to tek_rls_exception and will stay there until that Maintain ends.
Mark
Posts: 663 | Location: New York | Registered: May 08, 2003