NetTalk Central

Author Topic: Conditionaly Hide/UnHide columns on form  (Read 3783 times)

Johan van Zyl

  • Full Member
  • ***
  • Posts: 180
  • jvz
    • View Profile
    • Email
Conditionaly Hide/UnHide columns on form
« 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!
Johan van Zyl
Clarion 6.3 9058/C8 Gold/SQL/NetTalk WebServer

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Conditionaly Hide/UnHide columns on form
« Reply #1 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


Johan van Zyl

  • Full Member
  • ***
  • Posts: 180
  • jvz
    • View Profile
    • Email
Re: Conditionaly Hide/UnHide columns on form
« Reply #2 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.
Johan van Zyl
Clarion 6.3 9058/C8 Gold/SQL/NetTalk WebServer

charl99

  • Full Member
  • ***
  • Posts: 185
    • View Profile
    • Email
Re: Conditionaly Hide/UnHide columns on form
« Reply #3 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

Johan van Zyl

  • Full Member
  • ***
  • Posts: 180
  • jvz
    • View Profile
    • Email
Re: Conditionaly Hide/UnHide columns on form
« Reply #4 on: April 14, 2011, 06:15:21 AM »
That was it thanks - and thanks to Bruce as well!
Johan van Zyl
Clarion 6.3 9058/C8 Gold/SQL/NetTalk WebServer