NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: jking on February 20, 2024, 05:22:57 PM

Title: Troubles with conditional hide filter.
Post by: jking on February 20, 2024, 05:22:57 PM
Hello,

     I'm struggling with how to construct the conditional hide on a field in a NT app.  This is what I would like:

CRF002Rad:Recommend_RT_PBI  <> 'Other'   OR
CRF002Rad:Recommend_RT_WBI <> 'Other'

I know this has to be a string so I have tried the following:

'CRF002Rad:Recommend_RT_PBI  <> Other OR ' &
'CRF002Rad:Recommend_RT_WBI <> Other'

Still getting errors.  Can anyone help me construct this properly?

Thanks,

Jeff King
Title: Re: Troubles with conditional hide filter.
Post by: Jane on February 20, 2024, 06:00:02 PM
Does it need to be a string?  (Are you thinking of filters, maybe?)

Are your variables in scope or do you need to get session values?

Check the bottom of page 182 of "Developing Web Applications with NetTalk - Fourth Edition."
Title: Re: Troubles with conditional hide filter.
Post by: jking on February 20, 2024, 06:55:15 PM
Hi Jane,

     That was it, I needed to be using the session values.  So, I have two fields to hide.  I needed to use both of these in each Hide Condition like this:

p_web.GSV('CRF002Rad:Recommend_RT_PBI') <> 'Other' AND p_web.GSV('CRF002Rad:Recommend_RT_WBI') <> 'Other'


Thanks as always!

Jeff