Thread: JClient and ADF View objects with bind parameters


Permlink Replies: 5 - Pages: 1 - Last Post: Oct 17, 2005 6:46 AM Last Post By: Steve Muench
jhtho

Posts: 24
Registered: 05/22/00
JClient and ADF View objects with bind parameters
Posted: Sep 9, 2005 4:13 AM
Click to report abuse...   Click to reply to this thread Reply
Hi

I have a ADF view object with query e.g "select a, b from c where d = :0"

I then want to create a JClient panel where I give the bind variable as input and want the result of the ADF view object to appear in a JTable.

The DataControl panel contain the ADF view object, but when running the app. I get an error saying the the binding variable has not been set (this error is expected), but how do a set this using the ADF binding layer?

:-) johnny
Steve Muench

Posts: 5,912
Registered: 01/10/01
Re: JClient and ADF View objects with bind parameters
Posted: Oct 13, 2005 3:02 AM   in response to: jhtho in response to: jhtho
Click to report abuse...   Click to reply to this thread Reply
Are you using JDev 10.1.2, or 10.1.3 Early Access ?
jhtho

Posts: 24
Registered: 05/22/00
Re: JClient and ADF View objects with bind parameters
Posted: Oct 13, 2005 3:18 AM   in response to: Steve Muench in response to: Steve Muench
Click to report abuse...   Click to reply to this thread Reply
jdev 10.1.2
Steve Muench

Posts: 5,912
Registered: 01/10/01
Re: JClient and ADF View objects with bind parameters
Posted: Oct 13, 2005 4:36 AM   in response to: jhtho in response to: jhtho
Click to report abuse...   Click to reply to this thread Reply
I've blogged an answer, including a link to a working example (with a few comments explaining the two bits of code I added to the default panel), over here:

http://radio.weblogs.com/0118231/2005/10/13.html#a613
tullio0106

Posts: 1,883
Registered: 11/14/00
Re: JClient and ADF View objects with bind parameters
Posted: Oct 14, 2005 2:28 AM   in response to: Steve Muench in response to: Steve Muench
Click to report abuse...   Click to reply to this thread Reply
I downloaded Your code and tested it. It works.
I don't understand why You used JUActionBinding and You didn't use a standard Action listener with an executeQuery.
What's the advantage ?
Tks
Tullio
Steve Muench

Posts: 5,912
Registered: 01/10/01
Re: JClient and ADF View objects with bind parameters
Posted: Oct 17, 2005 6:46 AM   in response to: tullio0106 in response to: tullio0106
Click to report abuse...   Click to reply to this thread Reply
Using the ActionBindingListener, you are guaranteed on any JVM implementation to have your before/after code fire in the right order. There is no guarantee for the order that ActionListeners get invoked in general, the developers tell me.
Legend
Guru Guru : 2500 - 1000000 pts
Expert Expert : 1000 - 2499 pts
Pro Pro : 500 - 999 pts
Journeyman Journeyman : 200 - 499 pts
Newbie Newbie : 0 - 199 pts
Oracle ACE Director
Oracle ACE Member
Oracle Employee ACE
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums