NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Johan van Zyl on April 13, 2011, 11:37:17 PM

Title: Conditionaly Hide/UnHide columns on form
Post by: Johan van Zyl on April 13, 2011, 11:37:17 PM
The second part is only executed after Save and Change

in DateCancelled and TimeCancelled I have (p_web.GetSessionValue('LOG:TaskType')<>'RequestForStaff' OR p_web.GetSessionValue('LOG:HasBeenCancelled ')<>'Yes')

1st you choose TaskType = 'RquestForStaff' then HasBeenCancelled appears with default = ''No' which keeps DateCancelled and TimeCancelled hidden which is correct.
If I now choose 'Yes' from DropDown then DateCancelled and TimeCancelled does not become visible untill I Save and Change.

How do I fix this?

THX!
Title: Re: Conditionaly Hide/UnHide columns on form
Post by: Bruce on April 14, 2011, 02:41:57 AM
>> in DateCancelled and TimeCancelled I have
(p_web.GetSessionValue('LOG:TaskType')<>'RequestForStaff' OR p_web.GetSessionValue('LOG:HasBeenCancelled ')<>'Yes')

in what? Hide Condition?
what is this field called?

Cheers
Bruce

Title: Re: Conditionaly Hide/UnHide columns on form
Post by: Johan van Zyl on April 14, 2011, 04:48:07 AM
In Hide for LOG:HasBeenCancelled I have:
p_web.GetSessionValue('LOG:TaskType')<>'RequestForStaff'
Default value for  LOG:HasBeenCancelled = 'No'

In Hide for LOG:DateCancelled and LOG:TimeCancelleDateCancelled and TimeCancelled I have:
(p_web.GetSessionValue('LOG:TaskType')<>'RequestForStaff' OR p_web.GetSessionValue('LOG:HasBeenCancelled ')<>'Yes')

When changing LOG:HasBeenCancelled from 'No' to 'Yes' LOG:DateCancelled and LOG:TimeCancelleDateCancelled do not become visible immediately. I must 1st Save and Change - then I see them.
Title: Re: Conditionaly Hide/UnHide columns on form
Post by: charl99 on April 14, 2011, 05:52:51 AM
On the LOG:TaskType and LOG:HasBeenCancelled fields, do the following:

In the Client Side tab, click on 'Send new value to Server' and add the DateCancelled and TimeCancelled to the Reset List.

Charl
Title: Re: Conditionaly Hide/UnHide columns on form
Post by: Johan van Zyl on April 14, 2011, 06:15:21 AM
That was it thanks - and thanks to Bruce as well!