× Discuss on Template programming, jBASE programming, Enquiries, No-File enquiry, Enquiry routines, Version, Version routines, Menus, Abbriviations, Creating local reference fields, Fast path enquiries, Creating charts and graphs, Generating Reports, Deal slips, Straight through processing, Multi Company and Multi Book setup, Tabbed screens, Composite Screens, T24 API, etc...

no display text field

  • NoNo
  • Topic Author
  • Visitor
  • Visitor
12 years 8 months ago #12831 by NoNo
no display text field was created by NoNo
Good morning

I have created a simple TT version
and i have one thing to do is to hide or no dispaly a text fields.

Suppose i give EDL for AAA field and then hide or disable BBB field

AAA: EDL
BBB: _____________


I did like this but not work
IF COMI EQ "EDL" THEN
    R.VERSION(EB.VER.DISPLAY.TYPE)  = 'NODISPLAY'
END

Please Log in or Create an account to join the conversation.

  • jpb
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • retired . . . ¯\_(ツ)_/¯
More
12 years 8 months ago #12834 by jpb
Replied by jpb on topic no display text field
To be honest I can't really follow your intention,
but

- DISPLAY.TYPE is a multivalue field related to FIELD.NO, so set R.VERSION(EB.VER.DISPLAY.TYPE)<1,POS.OF.BBB>

- to make this work in browser AAA has to be at least a hot-field

Please Log in or Create an account to join the conversation.

  • NoNo
  • Topic Author
  • Visitor
  • Visitor
12 years 8 months ago #12836 by NoNo
Replied by NoNo on topic no display text field
Hi

yes, DISPLAY.TYPE is a multivalue field related to FIELD.NO
but i did like this, it's not work
R.VERSION(EB.VER.DISPLAY.TYPE)<1,POS.OF.LOCAL.REF-4>  = 'NODISPLAY'
(LOCAL.REF-4 is BILL.NUMBER)


sorry I am not good in English and I am newbie on T24

regards,

Please Log in or Create an account to join the conversation.

  • jpb
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • retired . . . ¯\_(ツ)_/¯
More
12 years 8 months ago #12837 by jpb
Replied by jpb on topic no display text field
If you want to just hide the content of field BBB try changing the T field to "PASSWD".

T.LOCREF<BILL.POS,3,1> = "PASSWD"

here BILL.POS is the position of your local field itself.


In the context of R.VERSION(..)<...> the POS.OF.LOCAL.REF-4 should be the position of your local field within the defined VERSION.

In both cases the screen has to be refreshed
[ with CALL REBUILD.SCREEN or CALL REFRESH.FIELD(TT.TE.LOCAL.REF:".":BILL.POS,"") ].

Please Log in or Create an account to join the conversation.

Time to create page: 0.034 seconds