Hidden or not Hidden for dynamic Label in Form
"Schlykow" <[email protected]> Fri, 4 Aug 2006 14:19:23 +0200
| Newsgroups | gmane.comp.lang.4gl.fourjs.user |
|---|---|
| Message-ID | <001a01c6b7c0$38fa9d30$6c64a8c0@WS108> |
Hello genero freaks,
perhaps somebody has a solution for the following problem:
In a form there are some edit fields and some dynamic labels.
I wish to hide a special edit field depending from the user.
That's no problem:
CALL f.setElementHidden("customer.custid",1)
It works, but the corresponding label does not hide!
It is a label similar like this:
label mx33 = txx_Preis
After the opening of the form a function displays 'Price' to txx_Preis.
(THIS IS UNCHANGBLE FOR ME !!!)
If I do the statement: CALL f.setElementHidden("FORMONLY.txx_Preis",1)
the Word 'Price' is visible, not unvisible!
The only solution for me is DISPLAY " " TO txx_Preis.
This works, but is not very smart, because the runtime systems
can not regognize, that the form is less large then before and
ornaments the form with a scrollbar which is actually unnecessary.
2. Question:
How can I make invisible some formfields outside(!) of the
INPUT BY NAME statement, and not changing the form with 'HIDDEN'
in the Attributes of the field?
is this possible ?
any hints welcome
Georg