on 03-31-2008 12:18 PM
Hi
I have a requirement of having 5 RFCs executing in a single view when performing 5 different button actions. When i press a button the RFC results must be visible in a table with in a Popup window.
i can execute only one RFC at a time and on completion of one when i press the next btn, its not showing any result in popup table.
What could be the problem?
Any thing i have to do with Closing JCo connection each time?
Thanks
Vijay
Hi Vijay
I assume that you have mapped the relevant output context from your rfc to your popup view? I also assume that you have specified a datasource on your table.
Could you please show me the code where you are trying to execute the rfc.
Regards
Göran
Edited by: Göran Westin on Mar 31, 2008 1:45 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Goran,
I have mapped the output node directly to the popwindow Context and the execute statement is written in Controller Context and that is called in the main view were my buttons are implemented.
On click of each button, it should invoke the RFC and report the result to the popwindow.
In core java after getting a resultSet, need to close the RSObject. Please let me know any method i should follow as above?
Thanks
- Vijay.
Your code should look something like this:
try
{
wdContext.node().currentElement().modelObject().execute();
wdContext.node().nodeOutput().invalidate();
}
catch (WDDynamicRFCExecuteException e)
{
e.printStackTrace(); // here you should do some logging
}
finally
{
wdContext.node().currentElement().modelObject().modelInstance().disconnectIfAlive();
}
You close the connection with the backend in the finally block above.
Regards
Göran
Edited by: Göran Westin on Apr 1, 2008 11:41 AM
Edited by: Göran Westin on Apr 1, 2008 11:41 AM
Edited by: Göran Westin on Apr 1, 2008 11:42 AM
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.