database driven grid and parameters

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
kfritz
Profound User
Posts: 64
Joined: Thu Aug 04, 2011 4:53 am
First Name: Karl
Last Name: Fritz
Company Name: Logic IT Services
Address 1: Fluhgasse 141
City: Laufenburg
Zip / Postal Code: 5080
Country: Switzerland
Location: Switzerland
Contact:

database driven grid and parameters

Post by kfritz »

I have a display screen and would like to insert a database driven grid in the panel. The grid records are depending of a certain value of the display screen. Is it possible to submit a value to the database driven grid or select the value within the grid from the display file? Thanks.
User avatar
Rob
Profound Logic Staff Member
Posts: 135
Joined: Fri Jan 04, 2008 12:12 pm
First Name: Rob
Last Name: Ferguson
Company Name: Profound Logic Software
Contact:

Re: database driven grid and parameters

Post by Rob »

The easiest way to achieve this is to bind a 50A field to the selection criteria property. In RPG you would populate this field (I named it Criteria) something like this:
RPG CODE
Criteria = 'THEFIELD = 123';
or if it is an alpha:
RPG CODE
Criteria = 'THEFIELD = ''ABC''';
This is essentially a WHERE clause for the SQL command.
kfritz
Profound User
Posts: 64
Joined: Thu Aug 04, 2011 4:53 am
First Name: Karl
Last Name: Fritz
Company Name: Logic IT Services
Address 1: Fluhgasse 141
City: Laufenburg
Zip / Postal Code: 5080
Country: Switzerland
Location: Switzerland
Contact:

Re: database driven grid and parameters

Post by kfritz »

Works fine, thank you.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest