outra9e
28th August 2002, 11:41
Hi all, I am back with yet another query.
I have used the DTE$() in my script. The field it goes into is just a display field and here is the script....
field.tdsls901.bncdr:
before.input:
| if update.status = add.set then
| attr.input = false
| endif
tdsls901.bncdr = DTE$()
It is populating the field, I can see the value in general table maintanence, however it is not displaying the value in my Baan session, is this because I have set it to be a display field and it needs to be an input field?
Cheers
klesch
28th August 2002, 13:14
I think that if the field is a display field, the before.input event never happens for that field.
outra9e
28th August 2002, 13:57
The field is an input field.
The part where I have stopped input from happening has been rem'ed out in the script, but it still does not display. What I don't understand is that if I look at the table in general table maintanence then the field has actually been populated.
Cheers
klesch
28th August 2002, 14:00
Oh, I see...
Try this:
tdsls901.bncdr = DTE$()
display("tdsls901.bncdr")
This should do the job.
outra9e
28th August 2002, 14:04
Klesch
I tried this, it compiled ok and didn't give any errors, but it is still not displayng the value.
Cheers
klesch
28th August 2002, 14:10
What is the domain of tdsls901.bncdr?
outra9e
28th August 2002, 14:12
tc.scdl
I needed a 12 character string so that the DTE$() function would fit.
Cheers
gentercz
28th August 2002, 14:36
Try this:
tdsls901.bncdr = DTE$()
display("tdsls901.bncdr")
refresh()
value on form should now be visible
jochen
outra9e
28th August 2002, 15:31
im afraid it hasn't done the trick.
what is strange is that although the field is of type input when u look at the form fields, when u look at the session. it greys the field out.
:(
FransG
28th August 2002, 15:59
Try to find out where or at what moment the field gets disabled. Set your script in debug mode. For disabled fields the before.input section will not be triggered.
outra9e
28th August 2002, 16:28
Guys
Sorry to waste your time, i have just realised that after changing the table def's I hadn't dumped the form again!!
Thanks for your time though