Hi,
I have an embedded browse in which the only editable field is a logical one formatted as a checkbox. I have code in the OnRowChange event that is supposed to add a record to another table if the field is checked. The code is presented below. The issue i have is an intermittent one in that the field has to be clicked more than once in order for the value to change. At other times it 'seems' to have changed without showing me the checkbox in the field. I am currently downloading and installing a patch again to rule rule out any browse-related bugs, or is it my code? :-)
I am using version 9, Build 2095 and system addin Build 3264.
Help is urgently needed.
Thanks
Glenroy
DIM t AS P
DIM indx AS P
DIM rec AS N
DIM the_key AS A
t = table.open("registration.dbf",FILE_RW_SHARED)
indx = t.index_primary_put("Season_Id")
parentform:browse1.Commit()
if (topparent:browse1:registered.value = .t.) then
the_key = topparent:browse1:player_id.value+str(parentform:vseasonstart.value)
rec = t.fetch_find(the_key)
if rec > 0 then
ui_msg_box("Registration Error!", "The player you wish to register is already registered")
else
t.enter_begin(.t.)
t.Entityid = topparent:browse1:player_id.value
t.Entitytype = "Player"
t.Seasonstart = parentform:vseasonstart.value
t.enter_end(.t.)
end if
end if
I have an embedded browse in which the only editable field is a logical one formatted as a checkbox. I have code in the OnRowChange event that is supposed to add a record to another table if the field is checked. The code is presented below. The issue i have is an intermittent one in that the field has to be clicked more than once in order for the value to change. At other times it 'seems' to have changed without showing me the checkbox in the field. I am currently downloading and installing a patch again to rule rule out any browse-related bugs, or is it my code? :-)
I am using version 9, Build 2095 and system addin Build 3264.
Help is urgently needed.
Thanks
Glenroy
DIM t AS P
DIM indx AS P
DIM rec AS N
DIM the_key AS A
t = table.open("registration.dbf",FILE_RW_SHARED)
indx = t.index_primary_put("Season_Id")
parentform:browse1.Commit()
if (topparent:browse1:registered.value = .t.) then
the_key = topparent:browse1:player_id.value+str(parentform:vseasonstart.value)
rec = t.fetch_find(the_key)
if rec > 0 then
ui_msg_box("Registration Error!", "The player you wish to register is already registered")
else
t.enter_begin(.t.)
t.Entityid = topparent:browse1:player_id.value
t.Entitytype = "Player"
t.Seasonstart = parentform:vseasonstart.value
t.enter_end(.t.)
end if
end if
Comment