on 04-24-2008 8:20 AM
Hello all,
I have a requirement wherein the products assigned to Printer category can not be involved in parent child relationship with other items having category USB devices.
But it can involve in parent child relationship with other category items having category Desktop PC or Laptop PC.
How do I write validation for this scenario?
Hi Abhijeet,
Please have a look to the validation expression below I think it will work.
IF(((ParentProduct Hierarchy.Name = Printer OR ParentProduct Hierarchy.Name = 'USB Device') AND (Hierarchy.Name = Printer OR Hierarchy.Name = 'USB Device')) OR ((Hierarchy.Name = 'USB Device' OR Hierarchy.Name = Printer) AND (ChildProduct Hierarchy.Name = Printer OR ChildProduct Hierarchy.Name = 'USB Device')),FALSE,TRUE)
But one important think Validations will not be triggered Automatically in case of relationships.So you have to trigger it manually.
Regards,
Jitesh Talreja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.