Help with Rule required
Posted: Sun Feb 28, 2010 10:01 pm
Hello All
Was wondering if any of you rule gurus could help ?
I am having some issues around how I explicitly define the area definition in my rule. What I am looking to do is write a rule that allows me to not be specific on the LHS of my rule, ie name the actual element I wish to apply a rule to, as I want it to apply to all the elements but leave it dynamic that the formula side can apply different calculations based on which intersection the rule hits.
A very simple example:
['Billing','Shirt1']=N:10;
['Billing','Shirt2']=N:20;
........
['Billing','Shirtn']=N:nn;
In my case "n" is going to be a million plus elements in the dimension so clearly I don't want a million rule lines. The example above also shows a very simple value being applied to each rule line, where in fact there will be a raft of complicated calculations.
Is there a way where I could do this:
['Billing']=N:Do calculations and circle dimension if need be to estbalish which Shirt1, Shirt2...Shirtn element to use.
or
['Billing',{group the shirt elements in some way without defining each one}]=N:apply a formulae which will differentiate between the different elements in the grouping and do the necessary calc
Any help greatly appreciated
Ajay
Was wondering if any of you rule gurus could help ?
I am having some issues around how I explicitly define the area definition in my rule. What I am looking to do is write a rule that allows me to not be specific on the LHS of my rule, ie name the actual element I wish to apply a rule to, as I want it to apply to all the elements but leave it dynamic that the formula side can apply different calculations based on which intersection the rule hits.
A very simple example:
['Billing','Shirt1']=N:10;
['Billing','Shirt2']=N:20;
........
['Billing','Shirtn']=N:nn;
In my case "n" is going to be a million plus elements in the dimension so clearly I don't want a million rule lines. The example above also shows a very simple value being applied to each rule line, where in fact there will be a raft of complicated calculations.
Is there a way where I could do this:
['Billing']=N:Do calculations and circle dimension if need be to estbalish which Shirt1, Shirt2...Shirtn element to use.
or
['Billing',{group the shirt elements in some way without defining each one}]=N:apply a formulae which will differentiate between the different elements in the grouping and do the necessary calc
Any help greatly appreciated
Ajay