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.
Get Error Msg Number
-
- Posts: 573
- Joined: July 9th, 2012, 11:32 am
- Location: Islamabad, Pakistan
-
- Posts: 1801
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: Get Error Msg Number
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
When is 7.6 coming? I need the message overrideGregory 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.
-
- Posts: 1801
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: Get Error Msg Number
As you probably noticed, the beta was released yesterday: https://www.csprousers.org/beta/
Hopefully the release will come in a couple weeks.
Hopefully the release will come in a couple weeks.
-
- Posts: 573
- Joined: July 9th, 2012, 11:32 am
- Location: Islamabad, Pakistan
Re: Get Error Msg Number
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;
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;