Page 2 of 2

Re: Get Error Msg Number

Posted: December 29th, 2020, 8:53 pm
by khurshid.arshad
Dear Gegory;

Thank you for the syntax.

Any suggestion for the file type and pathway to hide the information from the enumerator during the synchronization.

Best regards.
a.

Re: Get Error Msg Number

Posted: December 31st, 2020, 5:39 pm
by Gregory Martin
Unfortunately there is no trick to hide the sync information other than overriding the .mgf file, which won't work until CSPro 7.6, or if you email Savy, he can probably put out a CSPro 7.5.2 patch release.

Re: Get Error Msg Number

Posted: February 11th, 2021, 2:55 pm
by kakinyim
Gregory Martin wrote: December 29th, 2020, 10:15 am Thanks for bringing this to our attention, Arshad. You're right that this is a bug in 7.5. I believe that this would have worked in 7.4. I've fixed the problem for 7.6.

If you absolutely need this fix before we release 7.6 (in a few months), then please email cspro@lists.census.gov so Savy will see this and consider putting out a 7.5 patch release.
When is 7.6 coming? I need the message override

Re: Get Error Msg Number

Posted: February 18th, 2021, 4:26 pm
by Gregory Martin
As you probably noticed, the beta was released yesterday: https://www.csprousers.org/beta/

Hopefully the release will come in a couple weeks.

Re: Get Error Msg Number

Posted: February 22nd, 2021, 8:00 am
by khurshid.arshad
You can override error message in 7.5 version like this:
function OnSystemMessage(numeric message_number)

   
recode message_number-> OnSystemMessage;


       
100110,100119   ->  false;
                        ->  
true;
   
endrecode;
    // modify the displayed message for invalid subscript errors

    {Actual Message 100119 Error connecting to sync server: %s.}
   
if message_number=100119 then//Internet issue
       
message1="You can not preform this activity on your tablet because you don't have";
        message2=
"Internet ";
        message3=
"Right Now۔";

       
set errmsg (operator);
       
errmsg ("%s\n\n%s\n\n%s",message1, message2, message3);
           
set errmsg (default);
       
move to Pro_Sup_ID;

    {Actual Message 100110 Error downloading file "%s": Check that the file exists on the server, that the path is correct and that you have permission to read the file.}

   
elseif message_number=100110 then//Error message hide if File does not exist on the server for downloading
   
else
    endif
;

end;