klixy23
21st June 2007, 14:36
Hi,
I try to customize the form for the session tdsls3105s000. I put two date fields as display fields on the form from the table tdsls300 (sdat und edat). After this, the dates are display correctly. But when I try to insert a record, then both fields get empty (0) an I get an input error: Date have to be between [ . . ] and [ . . ]. The date fields are empty. I think there is somthing wrong in the session script. Is there a solution for displaying the date fields without an influence to the session logic?

Have a nice day

bdittmar
21st June 2007, 15:28
Hi,
I try to customize the form for the session tdsls3105s000. I put two date fields as display fields on the form from the table tdsls300 (sdat und edat). After this, the dates are display correctly. But when I try to insert a record, then both fields get empty (0) an I get an input error: Date have to be between [ . . ] and [ . . ]. The date fields are empty. I think there is somthing wrong in the session script. Is there a solution for displaying the date fields without an influence to the session logic?

Have a nice day


Hello,

that's the logic :

field.tdsls302.ddta:
|before.input: |#10022186.so
| if update.status = add.set and free.quan = 0 then
| choice.again()
| endif |#10022186.eo
on.input:
tdsls302.cono = hold.cono
tdsls302.pono = hold.pono
check.input:
if tdsls302.ddta < tdsls300.sdat or tdsls302.ddta > tdsls300.edat then
mess("tdsls31029", 1, tdsls300.sdat, tdsls300.edat)
set.input.error("")
| delivery date should be between contract dates
endif

Regards

klixy23
21st June 2007, 15:32
But why clears an insert action the table fields tdsls300.sdat and tdsls300.edat, when these fields displayed on the form?

bdittmar
21st June 2007, 15:52
But why clears an insert action the table fields tdsls300.sdat and tdsls300.edat, when these fields displayed on the form?


Hello,

set sequence of field greater than the last on form.
Maybe it is set to standard sequence number 1 (is default by adding a new field to form).

regards