What is the difference between ActionEvent and SelectionEvent?

Technical environment:
Oracle jDeveloper 11.1.1.4.0
Windows XP
----------------------------------------

I think there is something behind ActionEvent and SelectionEvent which makes my code does not work.

Here's my problem:

I have three tables. One is a masterpiece, contains the summary of something. If I select a line on this chart, the second table shows some data, based on the line selected on the first table. Well Yes, it is a ViewLink, and it works perfectly. Now, I want the same thing to work between the second and the third table. If I select a row in the second table, the third table should show some data, based on the line selected on the second table. The third table is a ViewObject with some binding settings. I need to assign values to these parameters, that I get the value of the line selected on the second table. How can I do this?

I tried to use ExecuteWithParams. Select the line in the second table, get the values, pass it in the form ExecuteWithParams, run and... it works... I get the result on the third table. Here is the code how to:

***
{} public void updateTableEvent (ActionEvent actionEvent)
DCIteratorBinding iter = gen.getIteratorBinding("SearchView3Iterator");
Line rw = iter.getCurrentRow ();

oracle.jbo.domain.Date strDate = rw.getAttribute ("Tgl") (oracle.jbo.domain.Date);
String strRkno = (String) rw.getAttribute ("Rkno");
oracle.jbo.domain.Number strRkId = rw.getAttribute ("Rkid") (oracle.jbo.domain.Number);

DCIteratorBinding iterParam = gen.getIteratorBinding ("variables");
iterParam.getBindingContainer () .getVariableManager () .setVariableValue ("ExecuteWithParams_pRkId", strRkId);
iterParam.getBindingContainer () .getVariableManager () .setVariableValue ("ExecuteWithParams_pTgl", strDate);
iterParam.getBindingContainer () .getVariableManager () .setVariableValue ("ExecuteWithParams_pRkNo", strRkno);
OperationBinding operationBinding = gen.getOperationBinding("ExecuteWithParams");
Object result = operationBinding.execute ();
}
***

But when I tried the same thing on SelectionEvent, I did nothing... no error and also no results. What I want is just to select the line on the second table and get the result on the third Board, not any pressure from button. Here is the code:

***
{} public void onRowSelect (SelectionEvent selectionEvent)
DCIteratorBinding iter = gen.getIteratorBinding("SearchView3Iterator");
Line rw = iter.getCurrentRow ();

oracle.jbo.domain.Date strDate = rw.getAttribute ("Tgl") (oracle.jbo.domain.Date);
String strRkno = (String) rw.getAttribute ("Rkno");
oracle.jbo.domain.Number strRkId = rw.getAttribute ("Rkid") (oracle.jbo.domain.Number);

DCIteratorBinding iterParam = gen.getIteratorBinding ("variables");
iterParam.getBindingContainer () .getVariableManager () .setVariableValue ("ExecuteWithParams_pRkId", strRkId);
iterParam.getBindingContainer () .getVariableManager () .setVariableValue ("ExecuteWithParams_pTgl", strDate);
iterParam.getBindingContainer () .getVariableManager () .setVariableValue ("ExecuteWithParams_pRkNo", strRkno);
OperationBinding operationBinding = gen.getOperationBinding("ExecuteWithParams");
Object result = operationBinding.execute ();
}
***

Then. What is really going on here? What is the differece between ActionEvent and SelectionEvent? Why did give me answer of difference?
Thanks for your comments.


Kind regards
Novan Ananda

Hello

did you tried third table PPR.

Simply give the id from table2, table3 partialtrigger.

Tags: Java

Similar Questions

Maybe you are looking for