sa_sch
17th June 2011, 11:55
Hi all,

I have a dashboard session with main table tcibd001. When starting the session, the view filelds have to be empty. After marking an occurrence, the corresponding view fields have to be filled with the values of this occurrence. Because there are a lot of view fields, I tried it with display.all():

choice.mark.occur:
after.choice:
if number.of.marks = 1 then
fill.form.fields()
else
make.fields.empty()
endif
display.all()

The first time an occurrence is marked, the choice section is processed with the right occurrence and then again with the first occurrence on the screen. So the view fields display the wrong values. The second time an occurrence is marked the view fields show the right values.

If I replace display.all() with display("fieldname") for each view field the session displays the right value from the start. But I think this is not very elegant.

So I hope somebody can help me. Have I forgot anything?

Regards