Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BC4J View WhereClause

Status
Not open for further replies.

ajith

Programmer
Jun 19, 2001
5
IN
Hi

I need to pass WhereClause parameters into existing BC4J View using '?' style. Does anybody know how to do it?

Ajith
 
Use bind variables in the ViewObject Query tab. Make sure that you check 'Use ? style parameters' and in the WHERE clause include ---> TableName.Attribute = ?

in the code of the ViewImpl file (or whever you are instantiating the ViewObject) use:

public boolean doSomething(String value1, String value2) {

....

this.setWhereClauseParam(0,value1);
this.setWhereClauseParam(1,value2);
this.executeQuery();


....

}

namely bind parameter 1, bind parameter 2

J McCann
 
Hi

I've already rectified thst thanks

ajith
 
Hi

I've already rectified that in same way
thanks

ajith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top