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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can we use variables in an order_by clause

Status
Not open for further replies.

rukmangatharaju

Programmer
Jun 9, 2003
2
IN
i am setting an order_by clause of a block at runtime
using the built in set_block_property:)block_name,order_by,x) here i am using x as a variable which will contain database coloumns of the base table of that block..but it is failing. if i give directly the column name then it is working.My requirement is i know the columns of the order by only in the runtime and based on which records should be fetched.
pls mail me if you know the solution.
 
It should work. Check syntax:

set_block_property('block_name',order_by,'x')

instead of

set_block_property:)block_name,order_by,x)

where block_name is the name of your block and x is the name of column in your table (may differ from item name)

Regards, Dima
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top