×
Discuss on T24 Installation, Setting up the environment, TC Server, jBOSS, Package & Deployment, etc…
Hide/Show a field in a Version
- anpal
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 31
- Thank you received: 1
10 years 4 months ago #16996
by anpal
Hide/Show a field in a Version was created by anpal
Hi,
I want to hide/show a field in a Version (not the value of the field) at runtime.
For example I have a dropdown field (FIELD1) and 2 more fields (FIELD2, FIELD3) and when I select a specific value from the dropdown I want FIELD2 to be displayed (if it was hidden), or to be hidden (if it was displayed).
In addition to the above how do I set a field to be hidden when loading the version?
Is it with attribute "NODISPLAY"? And then with a VVR routine to make it displayable (question above)?
I am using Desktop R13.
Thanks
I want to hide/show a field in a Version (not the value of the field) at runtime.
For example I have a dropdown field (FIELD1) and 2 more fields (FIELD2, FIELD3) and when I select a specific value from the dropdown I want FIELD2 to be displayed (if it was hidden), or to be hidden (if it was displayed).
In addition to the above how do I set a field to be hidden when loading the version?
Is it with attribute "NODISPLAY"? And then with a VVR routine to make it displayable (question above)?
I am using Desktop R13.
Thanks
Please Log in or Create an account to join the conversation.
- jpb
-
- Offline
- Moderator
-
- retired . . . ¯\_(ツ)_/¯
Less
More
- Posts: 2859
- Thank you received: 650
10 years 4 months ago #16997
by jpb
Replied by jpb on topic Hide/Show a field in a Version
The DISPLAY.TYPE - NODISPLAY works with desktop and so it must be possible to use this field to switch a field on/off with a routine but I'm not sure if it works with a validation routine as it might be too late for building the screen layout.
With an ID.RTN you can manipulate the R.VERSION record and it's recognized; don't know if REBUILD.SCREEN or alike will do the job in a later stage.
With an ID.RTN you can manipulate the R.VERSION record and it's recognized; don't know if REBUILD.SCREEN or alike will do the job in a later stage.
Please Log in or Create an account to join the conversation.
- anpal
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 31
- Thank you received: 1
10 years 4 months ago #16998
by anpal
Replied by anpal on topic Hide/Show a field in a Version
Yes I agree with you.
This is what I also had in mind.
Though I remember seeing this somewhere but I can't recall how it was done.
If I find something I will let you know.
Thanks for your attention !!!
This is what I also had in mind.
Though I remember seeing this somewhere but I can't recall how it was done.
If I find something I will let you know.
Thanks for your attention !!!
Please Log in or Create an account to join the conversation.
- jpb
-
- Offline
- Moderator
-
- retired . . . ¯\_(ツ)_/¯
Less
More
- Posts: 2859
- Thank you received: 650
10 years 4 months ago #16999
by jpb
Replied by jpb on topic Hide/Show a field in a Version
Please Log in or Create an account to join the conversation.
- anpal
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 31
- Thank you received: 1
10 years 4 months ago #17000
by anpal
Replied by anpal on topic Hide/Show a field in a Version
Not actually.
This is just to hide the value of the field.
What I want is to hide/show the field.
This is just to hide the value of the field.
What I want is to hide/show the field.
Please Log in or Create an account to join the conversation.
- quocnghiem42
-
- Offline
- New Member
-
Less
More
- Posts: 9
- Thank you received: 0
10 years 3 months ago #17190
by quocnghiem42
Replied by quocnghiem42 on topic Hide/Show a field in a Version
Hi friend, dis you solve the problem? If yes, please show me your solution, thank you so much!
I have the problem same with you
R.VERSION(EB.VER.DISPLAY.TYPE)<1,4> = 'NODISPLAY'
CALL REBUILD.SCREEN
The field that I specify <1,4> not hidding when i call REBUILD.SCREEN.
I have the problem same with you
R.VERSION(EB.VER.DISPLAY.TYPE)<1,4> = 'NODISPLAY'
CALL REBUILD.SCREEN
The field that I specify <1,4> not hidding when i call REBUILD.SCREEN.
Please Log in or Create an account to join the conversation.
- anpal
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 31
- Thank you received: 1
10 years 3 months ago #17199
by anpal
Replied by anpal on topic Hide/Show a field in a Version
Hi,
The question is WHEN (at what stage) do you want to make a field as "NODISPLAY".
If you want to do it before the Version is loaded (i.e. at VID, or VCH) then it is for sure doable.
I guess that there are 2 options at this point. Either changing the R.VERSION (like you do) or setting the T array as I did.
(For changing the R.VERSION also see JPB comments above)
Now, if you want to do it after the Version is loaded, this is where I was having the problem (again I was using the T array).
Even calling REBUILD.SCREEN, the field was shown. Only if I changed tabs and came back it worked.
I'm not sure though that changing the R.VERSION at this point makes any sense (again please see JPB comments above)
I hope it helps.
The question is WHEN (at what stage) do you want to make a field as "NODISPLAY".
If you want to do it before the Version is loaded (i.e. at VID, or VCH) then it is for sure doable.
I guess that there are 2 options at this point. Either changing the R.VERSION (like you do) or setting the T array as I did.
(For changing the R.VERSION also see JPB comments above)
Now, if you want to do it after the Version is loaded, this is where I was having the problem (again I was using the T array).
Even calling REBUILD.SCREEN, the field was shown. Only if I changed tabs and came back it worked.
I'm not sure though that changing the R.VERSION at this point makes any sense (again please see JPB comments above)
I hope it helps.
The following user(s) said Thank You: quocnghiem42
Please Log in or Create an account to join the conversation.
- quocnghiem42
-
- Offline
- New Member
-
Less
More
- Posts: 9
- Thank you received: 0
10 years 3 months ago #17202
by quocnghiem42
Replied by quocnghiem42 on topic Hide/Show a field in a Version
Thank you for answer!
Yeah i take that at stage " after the Version is loaded" (i used validation routine for case) & it not working. But i see some function in t24lib: REFRESH.FIELD, REDISPLAY.FIELD. may be they solve our problem, but I don't know how to use them, and you? I can't find any documentation about 2 functions that are on the Internet.
Yeah i take that at stage " after the Version is loaded" (i used validation routine for case) & it not working. But i see some function in t24lib: REFRESH.FIELD, REDISPLAY.FIELD. may be they solve our problem, but I don't know how to use them, and you? I can't find any documentation about 2 functions that are on the Internet.
Please Log in or Create an account to join the conversation.
- anpal
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 31
- Thank you received: 1
10 years 3 months ago #17209
by anpal
Replied by anpal on topic Hide/Show a field in a Version
I don't know about REDISPLAY.FIELD.
REFRESH.FIELD is for refreshing a single field (REBUILD.SCREEN is doing the same but for all fields).
So, since REBUILD.SCREEN didn't work, neither REFRESH.FIELD will.
REFRESH.FIELD is for refreshing a single field (REBUILD.SCREEN is doing the same but for all fields).
So, since REBUILD.SCREEN didn't work, neither REFRESH.FIELD will.
Please Log in or Create an account to join the conversation.
- armin
-
- Offline
- Elite Member
-
- “So long - and thanks for all the fish!”
Less
More
- Posts: 300
- Thank you received: 57
10 years 3 months ago #17211
by armin
Replied by armin on topic Hide/Show a field in a Version
REDISPLAY.FIELD is just setting T.SEQU for the field send over (AF,AV,AS) if it is on the current version.
Please Log in or Create an account to join the conversation.
Time to create page: 0.047 seconds