Previous record loaded after refresh

SOLVED

Hello everyone Smiley

Our customer wants to copy a plan by clicking on the corresponding right list entry. The copied plan should be shown afterwards.

After clicking the right menu entry the following code is executed:

This creates the new plan based on the old one. The new plan is also shown in the mask.

But when I press the refresh icon the previous record is loaded.

I guess that I need to fill some global variable with the value of the new plan number (primary index) and that the previous plan is loaded because this variable has still the plan number of the old plan.

I've tried to assign CLECUR1 and NEWCLE1 with the new plan number but it didn't work.

Does anyone have an idea how I can solve the problem?

Thank you very much for your help.

Kind regards

Top Replies

  • Hi

    you can try calling the standard actions like this in your button event. REP = "D" indicates a duplication action.

    REP="D"
    Gosub ENTREE From GOBJSUB