Hi Guys,
I need to add a validation on movement Journals to enable and disable the post button based on some conditions.
For an example my requirement is if the Journal name is “INV” and the number of lines >1, Post button should be disabled,the button should be enabled for all other journal names
where should I apply the code and how it should be for the above case ?
Normally below should work right? But it did not..
In the Form InventJournal Table, In the Methods,
Void SetPostAccess()
{
If(InventJournalTable.NameId == “Inv” && InventJournalTable.NumofLines>=1)
{
Posting.enabled(false);
}
Else
{
Posting.enabled(True);
}
*This post is locked for comments