Undoing user update of a field
I have two bits of code that are used for different subforms on the same form. The idea behind the code is to prevent the user from changing a field on a locked row (invoiced). The first code snippet works fine, the second gives an error. Does anyone know why that would be?
- if(row.Locked)
- {
- cd = PrintCustomisations[ID == row.ID];
- if(cd.Height1 != row.Height1)
- {
- row.Height1=cd.Height1;
- }
- return;
- }
vs
- if(row.Invoiced)
- {
- info row.ID;
- pp = PrintPublication[ID == Row.ID];
- if(pp.Classification != row.Classification)
- {
- row.Classification=pp.Classification;
- }
- return;
- }
Error
Deliver unforgettable customer experiences
Deliver unforgettable customer experiences
New to Zoho Marketing Plus?
Everything you need to run your marketing
New to Zoho Marketing Plus?
Everything you need to run your marketing
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho TeamInbox Resources
Zoho DataPrep Resources
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Qntrl Resources
Zoho Creator Resources
Zoho WorkDrive Resources
Zoho Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.