Setting Grid for Sale Invoice Detail Table
thisform.Grid1.LinkMaster = 'Header1'
thisform.Grid1.RecordSource = 'Detail1'
thisform.Grid1.RelationalExpr = 'Header1.KEY_PK'
thisform.Grid1.ChildOrder = 'Key_Fk'
---------------
SELECT Detail1
SET ORDER TO KEY_FK IN Detail1
---------------
SELECT Header1
SET ORDER TO KEY_PK
SET RELATION TO KEY_PK INTO Detail1
SET SKIP TO Detail1
------------------
Requirement:
Q. How can Blank the Grid (Child records) on Clicking New Invoice Command Button , currently it is showing all Child table records in Grid.
If both Parent child tables open in browse window when select the Header record it shows the relevant child records
thisform.Grid1.LinkMaster = 'Header1'
thisform.Grid1.RecordSource = 'Detail1'
thisform.Grid1.RelationalExpr = 'Header1.KEY_PK'
thisform.Grid1.ChildOrder = 'Key_Fk'
---------------
SELECT Detail1
SET ORDER TO KEY_FK IN Detail1
---------------
SELECT Header1
SET ORDER TO KEY_PK
SET RELATION TO KEY_PK INTO Detail1
SET SKIP TO Detail1
------------------
Requirement:
Q. How can Blank the Grid (Child records) on Clicking New Invoice Command Button , currently it is showing all Child table records in Grid.
If both Parent child tables open in browse window when select the Header record it shows the relevant child records