Hello everybody,
I need some help on a problem with updating a tabular-type form:
With the following code in the OnPush-trigger of the menue item in a menue button of my tabular-type form I’m generating some new records:
StücklistenKomponente.SETRANGE(Stücklistenart,Stücklistenart::STL1);
StücklistenKomponente.SETRANGE(“Stücklistennr.”,“Stücklistennr.”);
IF StücklistenKomponente.FIND(’-’) THEN REPEAT
StücklistenKomponente2.COPY(StücklistenKomponente);
StücklistenKomponente2.Stücklistenart := 0;
StücklistenKomponente2.INSERT;
UNTIL StücklistenKomponente.NEXT = 0;
CurrForm.UPDATE;
When I click the menue item I can only see the last of the generated records. To see them all I have to scroll to the top or activate another form and then come back to my form again. But I’d like the form to update itself automatically. Can anybody help?