Fill fields after ADD
JohnS
Hi,
I want to pre assign the time fields in Activities.
I made a customize rule with event: Formload and Form Modus: ADD.
No problem.
But after pressing Add, the activity is saved and I get a new empty activity.
How can I set a trigger to assign my fields after this ADD?
Kind regards,
John
Anders Olsson
Hi John,
You must create an event handler for clicking the Add button (after event) and set the defaults there. You can add something like this in your FormLoad rule:
Button.GetFromUID(pVal.Form, "1").AddHandler_ItemPressed(SwissAddonFramework.UI.Components.ModeComponent.FormModes.ADD, null, delegate(SwissAddonFramework.UI.EventHandling.ItemEvents.ItemPressed e)
{
TextEdit.GetFromUID(pVal.Form, "16").Value = "1200"; // Set start time
});
Regards,
Anders
0
Please sign in to leave a comment.
Comments
0 comments