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.
Hi All, I have a question regarding Maintain. Suppose, there is a button to Initiate a proc . The proc is written in FEX and this proc will call different Unix job and Stored proc to complete its job. This invoked proc takes around 1 hr to complete its processing. My question is, as this process is initiated from maintain form, Will my screen hang till the time of completion of called fex proc OR It will just trigger the proc in background and my maintain code will continue execution thereafter without any interruption?
If it hangs, Can you please let me know the workaround to trigger a fex file in background from maintain without waiting for its completion.
Thanks in advance.
Regards, AnilThis message has been edited. Last edited by: <Kathryn Henning>,
Anil The best approach, maybe the only one, is to use an ajax request within the javascript and do not wait for a return code, allowing the function to finalise. Otherwise a call to a trigger function or case will wait for the process to complete.
Alan. WF 7.705/8.007
Posts: 1451 | Location: Portugal | Registered: February 07, 2007
Hi Alan, Thanks for your reply.It would be great if you can give me a sample to call a AJAX request as suggested by you. I am not aware of AJAX concept at all. This is something new for me and not sure how to proceed with this.
Shankar If the procedure on the server can be run via a URL, you could try using a window.open command from a JS trigger. Basically
window.open(URL);
Where URL is the code string to kick off the procedure on the server. This will open another window, but processing on the current form will not have to wait for control to come back. I am also working on getting you an ajax example, but a simple JavaScript trigger to a URL may be all you need.
Mark
Posts: 663 | Location: New York | Registered: May 08, 2003
Maintain can use ajax to accomplish what you want. Ajax allows maintain to perform an event and not get anything back from it. Here is what you need to do.
1) Create an HTML object on your form and place this code in it: <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"> This will allow the Maintain form to access the ajax libraries.
2) Now create an event on a button with a JavaScript trigger with this code:
Note that the URL should point to your server. Here test is the name of the procedure and test2 is the project where test resides. Please change yours to the proper path and file. Please note that nothing will happen on the form.
Posts: 663 | Location: New York | Registered: May 08, 2003
Hi Mark, When I place a html object with the code to include AJAX library, it misplaces all the components on the form. i.e, All of them changes their intended positions when i run the application. One of the Menu item on the form completely get removed from the form.
Please let me know know the reason for this misbehaviour. Is this some known issue?