Once the BizObj is in charge to load views in form, the name of view in property RowSource of Grid (and any other control) can be used directly, and is either necessary to change the RowSourceType (1 – Alias is fine).
If you view is defined in adataenv.prg (Or In BizObj - Builder/Dataenvironment/Edit DE Cursors) as 'v_MyView'
Try in Grid:
RowSource = v_myview RowSourceType = 1 – Alias
And
Column1.ControlSource = v_myview.Shhtable Column2.ControlSource = v_myview.Shhtselected
<i><font color="#663300">Hello, it's me again!
I'm having some kind of problem with a grid control. This is what I did:
I've dropped an iGrid object onto an iBizObjForm then, in the properties window, I specified
ColumnCount = 2 RowSource = "select shhtable, shhtselected from (THISFORM.oBizObj.cAlias)" RowSourceType = 4 - SQL Statement
Finally I bound each grid column to 'shhtable' and 'shhtselected' columns of the resulting SQL cursor.
The problem is that I can't get the grid populated with any content when I execute the form.
Any clue?
Thank you. </font></i>
Regards,
Juan Carlos ©2001 Juan Carlos Rodriguez Gzz. |