Configurator

Get Involved. Join the Conversation.

Topic

    Harshal Agrawal
    Configurator Rules
    Topic posted July 6, 2018 by Harshal AgrawalRed Ribbon: 250+ Points, tagged Configurator, Public Sector 
    338 Views, 9 Comments
    Title:
    Configurator Rules
    Summary:
    Oracle Configurator Rules
    Content:

    Hi All,

    How we can have write the rules based on Supplemental structure ?
    I have added supplemental structure value to the option feature and its option in the configurator.
    I am trying to set the value from supplemental structure to decimal feature so that i can perform arithmetic operations, but i am unable to do that. Please help me how can I solve this using rules.

    Thanks,
    Harshal

    Comment

     

    • Al Satchu

      Hello Harshal,

      Can you provide more details about how your Option Feature and Options are defined, specifically what values you have set? A screenshot of your structure would be great, if you don't mind posting it here. Is the requirement to take the value selected in the option class and then set a decimal feature to the same value?

      Thanks, Al.

      • Harshal Agrawal

        Hi Al Satchu,

        Option feature is Optional feature and the value does not depend on the option class value.
        As you can see in the attached screen shot. For Ratio Option feature I have created one supplemental attribute and I wanted to get this value in the decimal feature.
        So which type of rule I need to write ?

        Thanks,
        Harshal

        Sup.PNG (27KB)
    • Al Satchu

      For the example you've provided you won't be able to take a character value for a supplemental attribute and set it in a decimal feature, which is of type number. See the screenshots attached for some guidance on referencing the supplemental attribute in your rule.

    • Harshal Agrawal

      I have tried this one too, but i was unable to write the rule, I am getting error as shown in the screen shot.
      Supplemental attribute which is attached to option Feature I have included that one from the root item class. Can you please suggest me how can we create rule using the same ?

      Like in EBS we can create property and property values for option feature and options can we create same here in fusion as well ??

    • Al Satchu

      Hi Harshal,

      Could you share your solution so the rest of the community can benefit? The rule you provided above should work as written if the supplemental attribute: "Property" you have defined is of type Number. It currently appears you have it defined with a type = Character.

      Thanks, Al.

    • Harshal Agrawal

      Hi Al,

      I have created decimal feature and retrieved its value in the decimal feature and then I have done the fraction operation on the same.
      Now I want to display 2 decimal values like eg : istead of 10.233333333 value I want to display 10.23.
      I have tried round function but its not working. Can you please suggest me how can I achieve this ?

      Thanks,
      Harshal

    • Al Satchu

      You can do this mathematically by using the ROUND(X) function i.e. ROUND(X*100)/100

      Using the rule above in your screenshot, it would look like this: ADD (ROUND('BS40'.'RATIO'.suppAttrs["Property"] * 100) / 100) TO 'BS40'.'Pow';

      Hope that helps, Al.

    • Harshal Agrawal

      Thanks Al, It works...
       

      Thanks,
      Harshal