using IFXPATH or IFEXPRESSION

41 views
Skip to first unread message

Jedi Knight

unread,
Nov 17, 2016, 10:17:03 AM11/17/16
to InterSystems: Zen Community
hi 

trying to get this working ...

want to say No home circumstances recorded IF both of these are true i.e. no data

how do you use && or || ?

<inline class="norecords" style="font-size:10pt" ifexpression="not(/rep/record/pastmedicalhist/HomeCircumstances/HCSummary1) && not(/rep/record/pastmedicalhist/HomeCircumstances/HCSummary2)" >No home circumstances recorded</inline>


Jose Manuel Lira

unread,
Nov 17, 2016, 10:46:07 AM11/17/16
to intersys...@googlegroups.com
Hi,
  i guess a better option, is using a method to do that

Something like

<inline class="norecords" style="font-size:10pt" ifexpression="%report.ChekHomeCircuntances()>No home circumstances recorded</inline>

Method ChekHomeCircuntances() As %Boolean
{
   Set resp = 0
   If ((/rep/record/pastmedicalhist/HomeCircumstances/HCSummary1)&&(/rep/record/pastmedicalhist/HomeCircumstances/HCSummary2))
   {
    Set resp = 1
   }
  Quit resp
}

--
You received this message because you are subscribed to the Google Groups "InterSystems: Zen Community" group.
To post to this group, send email to InterSystems-ZEN@googlegroups.com
To unsubscribe from this group, send email to InterSystems-ZEN-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/InterSystems-ZEN?hl=en
Zen Community Terms and Conditions: http://groups.google.com/group/InterSystems-ZEN/web/community-terms-and-conditions
---
You received this message because you are subscribed to the Google Groups "InterSystems: Zen Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to intersystems-zen+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Saludos,
Jose Manuel Lira

Vlado

unread,
Nov 17, 2016, 3:38:36 PM11/17/16
to InterSystems: Zen Community
Hi Jedi,
Try with:

 <inline class="norecords" style="font-size:10pt" ifexpression="(/rep/record/pastmedicalhist/HomeCircumstances/HCSummary1=0) && (/rep/record/pastmedicalhist/HomeCircumstances/HCSummary2=0)" >No home circumstances recorded</inline>

** Владо
Reply all
Reply to author
Forward
0 new messages