Page 1 of 1

roster issue

Posted: February 13th, 2025, 4:15 am
by Rash@sl
Dear CsPro Team,

**"The test app is attached.
Here, when going back and adding a new record, it navigates to the previously entered record and overwrites its data (1st roster record).
It should go to the last/blank roster field.

Your support is highly appreciated.

Used CSPro Version 7.7.3."**

Re: roster issue

Posted: February 20th, 2025, 1:15 pm
by Gregory Martin
Try something like this:
PROC S9B

    if length(strip(S9B)) < 4 then
        errmsg
(1);
        skip to SAVESTATUS_HMOD;
    endif;
   
    numeric currently_entered_rows = totocc(SECTION_9_2_OWNED_LIVESTOCKS);

    if currently_entered_rows = maxocc(SECTION_9_2_OWNED_LIVESTOCKS) then
        advance to
SAVESTATUS_HMOD;
    else
        advance to
S92_LCODE(currently_entered_rows + 1);
    endif;

Re: roster issue

Posted: February 25th, 2025, 12:08 am
by Rash@sl
Thank you very much Sir. It worked for me.