''XBasic
frm=:form.load("vendors_dlg","dialog")
id=parent:browse1:invoice.value
frm.index_set("id")
frm.find(id)
frm.activate()
frm.show()
:vendors_dlg.close()
parentform.resynch()
My user has found a bug in my program and she is bugging
me to fix it. I researched on OnRowDblClick and did not
see any others that may have the same problem.
The above script is from the manual where I changed only
the value of the field I am indexing on. (p.73)
The above works this way. I am in a browse form and I want
to OnRowDblClick on a row to bring up the vendors_dlg form
I have place the invoice number as the id. When the form
is open I can edit or delete the record. (The browse does
not contain all the fields from the vendors_dlg, so in
order to edit the record I want the entire record displayed
in the dialog box. My problem. If by chance I have two or
more vendors that have the same invoice nbr or if I have to
split a invoice with several G/L codes then the first
record containing the invoice nbr will appear.
The following example:
Date Vendor InvNbr G/L Amount
01/01/01 Alpha Software 012345 134210 22.50
01/06/01 Jerry's Program 012345 706000 10.00
If I click on the second item with the amount of 10.00 then
the first item appears (which in this case is the first
instance of the invoice).Other words it goes to the first
record that contains the same invoice number.
Any help on this will be appreciated..
Jerry
frm=:form.load("vendors_dlg","dialog")
id=parent:browse1:invoice.value
frm.index_set("id")
frm.find(id)
frm.activate()
frm.show()
:vendors_dlg.close()
parentform.resynch()
My user has found a bug in my program and she is bugging
me to fix it. I researched on OnRowDblClick and did not
see any others that may have the same problem.
The above script is from the manual where I changed only
the value of the field I am indexing on. (p.73)
The above works this way. I am in a browse form and I want
to OnRowDblClick on a row to bring up the vendors_dlg form
I have place the invoice number as the id. When the form
is open I can edit or delete the record. (The browse does
not contain all the fields from the vendors_dlg, so in
order to edit the record I want the entire record displayed
in the dialog box. My problem. If by chance I have two or
more vendors that have the same invoice nbr or if I have to
split a invoice with several G/L codes then the first
record containing the invoice nbr will appear.
The following example:
Date Vendor InvNbr G/L Amount
01/01/01 Alpha Software 012345 134210 22.50
01/06/01 Jerry's Program 012345 706000 10.00
If I click on the second item with the amount of 10.00 then
the first item appears (which in this case is the first
instance of the invoice).Other words it goes to the first
record that contains the same invoice number.
Any help on this will be appreciated..
Jerry
Comment