Hi everyone,
I want to add some code in a button of a form. Its postJournalButton. I want to add the code ONLY if the posted is done succesfully.
///
///
///
[FormControlEventHandler(formControlStr(ProdJournalTransProd, PostJournal), FormControlEventType::Clicked)]
public static void PostJournal_OnClicked(FormControl sender, FormControlEventArgs e)
{
FormRun formRun = sender.formRun() as FormRun;
FormDataSource prodJournalProd_ds;
ProdJournalProd prodJournalProd;
prodJournalProd_ds = sender.formRun().dataSource(2); // form DataSource (el segundo en orden)
prodJournalProd = prodJournalProd_ds.cursor(); // Selected record
IF (JOURNAL POSTED)
MY CODE HERE
How can I achieve this?
Thanks.
*This post is locked for comments
I have the same question (0)