Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Triggering job from maintain

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Triggering job from maintain
 Login/Join
 
Guru
posted
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,
Anil

This message has been edited. Last edited by: <Kathryn Henning>,


WF 8.1.04,Windows 7,
DataBase: Oracle 11g,Output :Excel,PDF,HTML
 
Posts: 281 | Location: India | Registered: April 21, 2007Report This Post
Guru
posted Hide Post
Can somebody reply to this pls?

Thanks.


WF 8.1.04,Windows 7,
DataBase: Oracle 11g,Output :Excel,PDF,HTML
 
Posts: 281 | Location: India | Registered: April 21, 2007Report This Post
Virtuoso
posted Hide Post
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, 2007Report This Post
Guru
posted Hide Post
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.

Best Regards,
Anil


WF 8.1.04,Windows 7,
DataBase: Oracle 11g,Output :Excel,PDF,HTML
 
Posts: 281 | Location: India | Registered: April 21, 2007Report This Post
Master
posted Hide Post
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, 2003Report This Post
Master
posted Hide Post
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:

$.ajax({
type: 'GET',
url: 'http://localhost:8080/ibi_apps/WFServlet',
data: 'IBIF_ex=test&IBIAPP_app=test2&RND=' + new Date() });

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, 2003Report This Post
Guru
posted Hide Post
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?

Thanks,
Anil


WF 8.1.04,Windows 7,
DataBase: Oracle 11g,Output :Excel,PDF,HTML
 
Posts: 281 | Location: India | Registered: April 21, 2007Report This Post
Master
posted Hide Post
Hi Anil
There needs to be a closing
 </script>  
at the end of the HTML line. Looks like focalpoint took it off. The line should be:

 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> 


Mark
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Triggering job from maintain

Copyright © 1996-2020 Information Builders