Hi folks,
I think this may have been discussed before, but I couldn't find it by searching the archive. I'm trying to write some vis_custbe code for a module, and I'm having trouble getting Module_Customer_BatchEdit_Validate to work. How does this function differ from Module_Customer_Validate?
My Module_Customer_Validate is already working fine. It's fairly simple; it just has to do some custom validation on the customer's login name, which it gets from g.Customer_Login. It also checks the value of g.Edit_Customer to see whether or not the admin user has entered a new login.
My Module_Customer_BatchEdit_Validate function doesn't seem to be working at all. I changed it to a one-line <MvFUNCRETURN VALUE="0">, and it isn't signalling any error or stopping the updates from occurring. (And yes, I remembered to include vis_custbe in the features list.) Do I have to use different variable names instead of the usual g.Edit_Customer, g.Customer_Login, etc.? If the module needs to signal an error, do I have to write a different return function instead of FieldError?
Thanks --
I think this may have been discussed before, but I couldn't find it by searching the archive. I'm trying to write some vis_custbe code for a module, and I'm having trouble getting Module_Customer_BatchEdit_Validate to work. How does this function differ from Module_Customer_Validate?
My Module_Customer_Validate is already working fine. It's fairly simple; it just has to do some custom validation on the customer's login name, which it gets from g.Customer_Login. It also checks the value of g.Edit_Customer to see whether or not the admin user has entered a new login.
My Module_Customer_BatchEdit_Validate function doesn't seem to be working at all. I changed it to a one-line <MvFUNCRETURN VALUE="0">, and it isn't signalling any error or stopping the updates from occurring. (And yes, I remembered to include vis_custbe in the features list.) Do I have to use different variable names instead of the usual g.Edit_Customer, g.Customer_Login, etc.? If the module needs to signal an error, do I have to write a different return function instead of FieldError?
Thanks --
Comment