You need to sign in to do that
Don't have an account?

How to valid a logic string
Hi,
We want to display a list of string ( from a object) to let user pick, after they pick some values, for example A, B , C and D, and then user can put some logic for the selection, like (A and B) OR (C and D). My questions are
1. how to valid this logic string?
2. We are going to have a conjunction object to hold the relationship between selectd item with parent, how can we store this logic information?
Thanks,
Jingli
We want to display a list of string ( from a object) to let user pick, after they pick some values, for example A, B , C and D, and then user can put some logic for the selection, like (A and B) OR (C and D). My questions are
1. how to valid this logic string?
2. We are going to have a conjunction object to hold the relationship between selectd item with parent, how can we store this logic information?
Thanks,
Jingli
Please, have a look at "Composite" design pattern. THis is design patterns has been designed for this purpose -
Here is the link -
https://developer.salesforce.com/page/Apex_Design_Patterns
Thanks,
Sumit Kumar Singh