Issue with rendering condition : custom logic (1 AND 2) OR (1 AND 3)

RoyRoy Member
edited October 2017 in Problems
I'm on Brooklyn Update 1 - Iteration 7

I have the following rendering conditions for a field 'Transfer Other'

1: Transfer Definition = Other
2: Applies = 'Yes
3: Type = 'Sell'

The field should render if (1 AND 2) OR (1 AND 3) - This does not seem to work even though it should

Any suggestions?

Roy

Comments

  • RoyRoy Member
    edited July 2017
    fr = skuid.$M('MyModel').getFirstRow();
    (fr.Transfer_Def__c == 'Other' && fr.Applies__c == 'Yes') || (fr.Transfer_Def__c == 'Other' && fr.Type__c=='Sell')

    returns false which means the field should not be rendered
  • RoyRoy Member
    edited July 2017
    I got it:  1 AND (2OR3) don't know why I didn't think of this in the first place!
  • Neena KoliNeena Koli Member
    edited October 2017
    hey Royston, nice to find u here...
  • RoyRoy Member
    edited October 2017
    Hey Neena, great to hear from you, reminds me of the Siebel On Demand duo :) 
Sign In or Register to comment.