Luegisdorf
1/25/2006 11:50:00 AM
Hi AxaptaProgrammer
When you add the checkboxes you can retrieve the the handle and set an
explicit name, store the name, and use it later to get access to the control.
regards
Patrick
"AxaptaProgrammer" wrote:
> How can we progammtically check the check boxes which are automatically
> generated on a form? All the check boxes have the same control name and do
> not have any index value.
> Is there any index property for this kind of Auto generated controls?
>
> When we write the code
> inventTransRegisterForm.AutoCreateCtrl().checked(true)
> Only one check box is checked. Whereas we want to check multiple checkboxes
> that are dynamically created.
> We tried following workaround
> Finding The serial numbers in the grid and setting the check box of that
> serial number
> for (i=1; i<=10; i+=1)
> {
>
> inventTransRegisterForm.CtrlTransactionsCtrl().find(inventTransRegisterForm.InventoryDimensions_inventSerialIdCtrl(),int2str(i));
> inventTransRegisterForm.AutoCreateCtrl().checked(true);
> }
>
> But this code results in none of the check box as checked grid ,
> When we do
> inventTransRegisterForm.CtrlTransactionsCtrl().find(inventTransRegisterForm.InventoryDimensions_inventSerialIdCtrl(),'1');
> shows all 15 records in the grid