This content has been marked as final. Show 7 replies
DCIteratorBinding iterator =
ViewObject vo = iterator.getViewObject();
NavigatableRowIterator list =
Row row = list.first();
Object val = row.getAttributeValues();
ViewRowSetImpl vor = (ViewRowSetImpl)val[row.getAttributeCount() - 1];
What do you mean call it? What specifically do you want to do with it?
You can probably use a service method that you then bind to a button on your page:
I mean ...
I create new VO simple select statment withount any bind variable.
I need to call this VO programmatically when I click on buttom this buttom will call this VO and the result will retuen in adf table. hope the question now is clear.
you should always tell us which JDev version you are using...
I don't understand your use case. IF you just want to see the result of an execute query on the VO, you can drag the VO from the data control onto a page. This will execute the query automatically once you enter the page. For this you don't need a line of code.
If you like to execute the query again when the user hit a button you open the VO in the data control, open the operations node and drag the execute operation onto the page and select 'ADF Button' when you drop it. this will create a button which when clicked executes the VO query again.
Thanks for your replay.
I exactlly need the second option.
Edited by: Hani on Feb 25, 2012 6:02 AM
and you jdev version?
If you like to execute the query again when the user hit a button you open the VO in the data control, open the operations node and drag the execute operation onto the page and select 'ADF Button' when you drop it. this will create a button which when clicked executes the VO query again.timo mentioned clearly. is there any doubt with this? Pretty clear'd steps.
please read it.
Edited by: ADF7 on Feb 26, 2012 8:26 PM