change the current record in a detail form

12 views
Skip to first unread message

Marius

unread,
Oct 14, 2023, 2:15:31 AM10/14/23
to Lightning - 4D Web Applications
I made a proof of concept for a LightningV4 application (4D18.6) in which employees can register their time and activities for every year of the week (one record per weeknumber/employee/year). I made a detail form in which they can register this, with a toolbar in which they can switch from one week to another. The toolbar has 'next' and 'previous' buttons to switch to another weekrecord. The buttons fire a callback method which queries the new weekrecord.
At first I hoped/expected that the detail form would automatically change its current record after the callback method, but it doesn't. Then I tried to 'refresh' the detail form by sending an $nError:=Ltg_Form_Display for this Table/detailform, which also doesn't work. 
I tried Ltg_Rec_SetCurrent ($TWFchangeIDto switch to another record, but obviously I am missing a point.

Somebody who can help me out? Thanks in advance,
Marius
Reply all
Reply to author
Forward
0 new messages