Callback: | AEFAddIDToMultiValueAttrs |
Arguments: |
Gadget - Gadget whose value is an id MVAttrList - list of mv gadget paths |
|
|
Description: | Given a source gadget and a destination list containing panel and gadget names, add the id contained in the source gadget to the multivalue attribute. This callback adds a new id to a multivalued attribute without setting a value to it. The need for the panel name that the gadget lives on is that if the panel is not loaded the panel will get loaded. |
Example: |
Button { Name = AddClient; Title = "Add Client"; /* * This button will add a client ID to two * different multi-value attributes on two * different subpanels without setting any * value for the id. /* Commands = AEFAddIDToMultiValueAttrs&/.../ClientName ("MYRoles:my_roles_,MYGroups:my_groups_"), AEFAppendGadgetValueAsString&/.../my_clients ("/.../ClientName"), AEFClearGadget&/.../ClientName(); } |