Hi all, we are already defining a expression rule by using a doforeach ex

Hi all,
we are already defining a expression rule by using a doforeach expresion. Now we need to redefine it because tis plug is deprecated.
By simple changing it with apply () it does not work.
Could somebody help me with redefinition on it.
Here is the rule:

=if(count(rule!Display_Harm_Details_CDT(pv!ContractDetails.Contract_Serial_Number)),"<br> <i> <b> Contract Harmonization History: <br><br></b> </i> "&ncolumntablestyled( "CCCCCC","FFFFFF", "FFFFFF", {"Version","Harmonization Members","Folder"},rule!ListofVersion_CR(pv!ContractDetails.Contract_Serial_Number),doforeach("AllHarmonizationMembesforVersion",pv!ContractDetails.Contract_Serial_Number,rule!ListofVersion_CR(pv!ContractDetails.Contract_Serial_Number)),doforeach("rule!LinktofolderfromfolderID",pv!ContractDetails.Contract_Serial_Number,rule!ListofVersion_CR(pv!ContractDetails.Contract_Serial_Number))),"")
The problem is when rule!ListofVersion_CR(pv!ContractDetails.Contract_Serial_Number) ret...

OriginalPostID-161216

OriginalPostID-161216

  Discussion posts and replies are publicly visible

Parents
  • I can't really debug further without being able to run the code. What I've given you is syntactically correct and so should run fine unless you're calling it is some strange way; it looks like maybe this is in a portal report rather than a dashboard? What I suggest you do is take the code and run it separately in a rule to check that it works, replacing pv!ContractDetails.Contract_Serial_Number throughout with a valid serial number for testing.
Reply
  • I can't really debug further without being able to run the code. What I've given you is syntactically correct and so should run fine unless you're calling it is some strange way; it looks like maybe this is in a portal report rather than a dashboard? What I suggest you do is take the code and run it separately in a rule to check that it works, replacing pv!ContractDetails.Contract_Serial_Number throughout with a valid serial number for testing.
Children
No Data