baldie
21st February 2006, 20:26
When a user has done his input in a maintain session, for example put a field tcyesno to yes, a refresh should be done automatically.
Is this possible without clicking this in the menu, and if so how?

mark_h
21st February 2006, 20:38
...using the command refresh() or display.all(). You can search for this command on the board. Not knowing you requirements I would guess this should suffice. Of course if the user just changed it on the form I am not sure what you would be refreshing.

baldie
21st February 2006, 20:47
Hi MarK_h, Thanks for replying so fast.
But it doesn't work. What I try to accomplish is that when a user enters a tcyesno.yes to a form-/tablefield this record should dissapear through the skip.io.

I tried the refresh() and display.all() in the after.write and rewrite but no succes.

NPRao
21st February 2006, 21:04
Refer to the section - Event Array Parameters (http://www.baanboard.com/programmers_manual_baanerp_help_events_event_array_parameters)

I had a similar issue with default text information to be displayed on a Text Area on a Save event. You have to write a code similar to -
function reload.data()
{
if synchronized.reason and update.status = add.set then
evt.type(event) = EVTRESIZEWINDOW
evt.ole.event(event) = EVTOLELOADDATA
send.event(pid, event)
endif
}

mark_h
21st February 2006, 22:35
I have also used execute(find.data) in the after.choice section of a button. So this might also work in the choice.modify.set. It would just refind the current records.

There is also refresh.curr.occ() - this re-reads the record, but I do not recall using this.