... save the data by adding the record or updating the existing record
if(!isnull(input.ID))
{
// ... code to update existing record
r_Details = myForm[ID == input.ID];
r_Details.Account = input.Account.toLong();
}
else
{
// ...
...
You would think the following would work:
r_Details = myForm[ID == 1234567890123456789];
r_Details.Account = input.Account;
But it will return the above error.
You need to do the following:
r_Details ...
... }
}
}
//
// clear lookup
clear myLookup;
//
// get list of all valid entries
l_AllowedEntries = {};
for each v_AllowedID in myForm[ID != 0]
{
v_thisID = v_AllowedID.ID;
...
We use cookies to improve your experience on our website. By browsing this website, you agree to our use of cookies. Read more about our Privacy Policy.