ken bohnenkamp
20th July 2005, 16:41
I am currently using the following code to disallow modification of a field
before.input:
if choice <> def.find and update.status <> add.set then
attr.input = false
endif
This works fine, but it doesn't shade out the field showing the user that they can't modify it. Is there a command I can use to shade the field to show that it is not a field that can be modified.
Input from anyone would be appreciated. :(
Juergen
20th July 2005, 16:51
Hi Ken,
never played with it, but check the standard function inputfield.invisible().
inputfield.invisible( string field_name(18) [, string field_name(18)]... )
Description
This hides the specified field(s) completely. In dynamic sessions, associated label and button are also hidden. To hide a particular element of an array field, append the element number (in parentheses) to the field name. For example: "ttadv301.labl(2)".
Note that when the predefined variable attr.echo is set to off, the field value is not displayed but the field itself remains visible.
Note
Use inputfield.visible() to redisplay the field again. Use is.field.invisible() to check whether a specified field is currently visible or invisible.
Juergen
Ankita
22nd March 2008, 19:26
Can u plz tell, inputfield.invisible() function works in Baan IV or LN?
mark_h
22nd March 2008, 22:25
Can u plz tell, inputfield.invisible() function works in Baan IV or LN?
Yes - check the child.cln (http://http://www.baanboard.com/baanboard/showthread.php?t=49595) script I posted for you an baan1612 yesterday. On the child session I gave it 1 view field and then I make it invisible. :)