I cannot get it to work. How do I get the contact_id of the current index? (???) How do I get this to only add the the contact ID for the checked record rather than all of the records in the foundset.
- Code: Select all
for ( var i = 1 ; i <= forms.contact_dlg_lst.controller.getMaxRecordIndex() ; i++ )
{
if (forms.contact_dlg_lst.isSelected = 1)
{
forms.group_layout_main.contact_group_to_contact_group_member.newRecord( )
forms.group_layout_main.contact_group_to_contact_group_member.contact_id = ???
}
Thanks in advance.