Stand alone Grids, no rpg? Looking for some guidance
-
- Profound User
- Posts: 22
- Joined: Thu Mar 31, 2011 11:28 am
- First Name: chris
- Last Name: holko
- Company Name: genuine parts company
- Contact:
Stand alone Grids, no rpg? Looking for some guidance
I have read that the ability to create grids to display data are possible without RPG code. Can data selection be incorporated into these, where the selection comes from a field on the form? Examples would be date and drop down.
- David
- Profound Logic Staff Member
- Posts: 690
- Joined: Fri Jan 04, 2008 12:11 pm
- First Name: David
- Last Name: Russo
- Company Name: Profound Logic Software
- Contact:
Re: Stand alone Grids, no rpg? Looking for some guidance
Grids can be created without RPG coding by using the properties under the Grid Data section of properties on the grid widget.
You can fill in database file and fields to use, or you can plug in your own custom SQL statement to use with the "custom sql" property.
Record selection can be done by binding the "selection criteria" (if using datbase file name and fields) to a field in which you move in the WHERE clause before displaying the screen, or by binding the "custom sql" property, if using that, and feeding in the whole SQL query dynamically.
When you create a grid in this way, you would not use any of the normal subfile control properties and you would not WRITE records into the subfile -- rather you would just execute the control record without any subfile control indicators.
Note that grids created in this way are display-only, you cannot perform input operations like CHAIN or READC on them.
You can fill in database file and fields to use, or you can plug in your own custom SQL statement to use with the "custom sql" property.
Record selection can be done by binding the "selection criteria" (if using datbase file name and fields) to a field in which you move in the WHERE clause before displaying the screen, or by binding the "custom sql" property, if using that, and feeding in the whole SQL query dynamically.
When you create a grid in this way, you would not use any of the normal subfile control properties and you would not WRITE records into the subfile -- rather you would just execute the control record without any subfile control indicators.
Note that grids created in this way are display-only, you cannot perform input operations like CHAIN or READC on them.
Who is online
Users browsing this forum: No registered users and 6 guests