Dear Team;
How can i hide the message that I keep receiving very frequently.
Message
Allow Access?
"A web page or program is attempting to access CSPro functionality, which can include access to data or to files on your device..........." No Yes;
Thanks.
a.
Allow Access?
-
khurshid.arshad
- Posts: 618
- Joined: July 9th, 2012, 11:32 am
- Location: Islamabad, Pakistan
-
Gregory Martin
- Posts: 1947
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: Allow Access?
Are you seeing this while using the Action Invoker? If this is the case, see this:
https://www.csprousers.org/help/CSPro/a ... token.html
https://www.csprousers.org/help/CSPro/a ... token.html
-
khurshid.arshad
- Posts: 618
- Joined: July 9th, 2012, 11:32 am
- Location: Islamabad, Pakistan
Re: Allow Access?
Dear Gregory;
I am currently using two different versions of CSPro. I developed and deployed the application using Version 7.7, but in the field, the tablets are running Version 8.0 while the desktop still uses Version 7.7.
When I set the option to 'Always allow (Without access token)' in version 8.0 and run the application, it works. However, since I am using Version 7.7 to create and deploy the application, how can I configure the 'Always allow (Without access token)' setting in this context?
Here is my code, where i am getting the message:
I am currently using two different versions of CSPro. I developed and deployed the application using Version 7.7, but in the field, the tablets are running Version 8.0 while the desktop still uses Version 7.7.
When I set the option to 'Always allow (Without access token)' in version 8.0 and run the application, it works. However, since I am using Version 7.7 to create and deploy the application, how can I configure the 'Always allow (Without access token)' setting in this context?
Here is my code, where i am getting the message:
Preproc
If StrFlag="Start" then
else
setproperty($, "Protected",false);
{*******************************************************}
{*** SELECT ENUMERATION AREA ***}
{*** USE SAMPLE_DICT AND SAMPLE.CSDB FILE ***}
// set access(SAMPLE_DICT, OrderType.Indexed, Order.Ascending);
setfile (SAMPLE_DICT,"..\106_Ext_Data\Sample.csdb");
//string blocklable = getlabel(PSUBN_VS1, PSUBN);
if selcase("Select Enumeration Area in " + getlabel(PSUBN_VS1, PSUBN), SAMPLE_DICT,"" )
// include (SSS, T_Block_N, T_NAME, D_NAME,S_CODE ,L_NAME)
include (T_Block_N, T_NAME, D_NAME,S_CODE)
where T_Block_N = PSUBN and S_CODE=tonumber(loadsetting("SupervisorID"))=0 then //L_Name = Locality; D_Name=District; T_Name =Tehsil Name; S_Code=Supervisor Code
set errmsg (operator);
errmsg ("No Enumeration Area selected.\n\n\nApplication is going to Exit.");
set errmsg (default);
stop(1);
else
//You will find Key as a Processing Code or Enumeration Area
set errmsg (Operator);
errmsg ("The Selected Enumeration Area Code is \n\n [...%04s...].", key (SAMPLE_DICT) [1:4]);
savesetting("saveHHPSU",key(SAMPLE_DICT)[1:4]);
set errmsg (default);
$=PSU_ID;
endif;
endif;
If loadsetting("Designation")="1" then //Login as Supervisor
Sel_Result= accept("Health and Population Survey (HPS) - Supervisor Menu",
"PSU AREA ", {01}
" + Assign PSU Area to the Enumerator ", {02}
" + Send PSU Area to the Enumerator ", {03}
" ", {04}
" ", {05}
"HOUSEHOLD INTERVIEW ", {06}
" + Assign Household to the Enumerator ", {07}
" + Send Assigned Household to the Enumerator", {08}
" ", {09}
"RECEIVE DATA FROM THE ENUMERATOR ", {10}
" + Receive HH Data ", {11}
" + Receive Female Interview Data ", {12}
" ", {13}
"DATA SYNCHRONIZATION WITH THE SERVER ", {14}
" + Send Household Data on the Server ", {15}
" + Send Female Interview Data on the Server", {16}
" + View Household Interview Report ", {17}
" ", {18}
" ", {19}
"Application Close "); {20}
elseIf loadsetting("Designation")="2" and loadsetting("LoginGender")="1" then //Login as Male Enumerator
Sel_Result= accept("Health and Population Survey (HPS) - Male Enumerator",
"PSU AREA ", {01}
" + Receive Assigned Enumeration Area ", {02}
" ", {03}
" ", {04}
"RECEIVE ASSIGNED HOUSEHOLDS ", {05}
" + Receive Assigned Households ", {06}
" ", {07}
"HOUSEHOLD INTERVEIW ", {08}
" + Conduct Household Interview ", {09}
" + Assign Household Info to Female enumerator", {10}
" ", {11}
"DATA SYNCHRONIZATION WITH THE SUPERVISOR ", {12}
" + Send Assigned HH Info to Female enumerator",{13}
" + Send HH Data to the Supervisor ", {14}
" + Send Picture on the Server ", {15}
" + View Household Interview Report ", {16}
" ", {17}
"Application Close "); {18}
elseIf loadsetting("Designation")="2" and loadsetting("LoginGender")="2" then //Login as Female Enumerator
Sel_Result= accept("Health and Population Survey (HPS) - Female Enumerator",
"PSU AREA ", {01}
" + Receive Assigned Enumeration Area ", {02}
" + ", {03}
" ", {04}
"RECEIVE ASSIGNED HOUSEHOLDS ", {05}
" + Receive Assigned Households from the Supervisor ", {06}
" ", {07}
"HOUSEHOLD INTERVEIW ", {08}
" + Conduct Household Interview ", {09}
" + Conduct Female Interview ", {10}
" + Assign Household Info to the Female enumerator", {11}
" ", {12}
"DATA SYNCHRONIZATION ", {13}
" + Receive Assigned HH Info for Female Interview", {14}
" + Send Assigned HH Info to Female enumerator",{15}
" + Send HH Data to the Supervisor ", {16}
" + Send Female Data to the Supervisor ", {17}
" + View Household Interview Report ", {18}
" ", {19}
" ", {20}
"Application Close "); {21}
else
endif;
if loadsetting("Designation")="1" then
StrFlag ="Start";
if Sel_Result =2 then
//errmsg ("The changes identified during training are being made. The application will be available soon.");
// move to PSUBN;
AssignPSUArea();
elseif Sel_Result =3 then
SendReceiveArea();
elseif Sel_Result =7 then
advance to Select_hh_id;
elseif Sel_Result =8 then
SendReceiveAsignHH();
elseif Sel_Result =11 then
SendReceiveHHData();
elseif Sel_Result =12 then
SendReceiveFemaleData();
elseif Sel_Result =15 then
SendHHDataonServer();
elseif Sel_Result =16 then
SendFemaleDataonServer();
elseif Sel_Result =17 then
// ViewHHInterviewStatus();
ViewHHReportHTML();
move to PSUBN;
elseif Sel_Result = 20 then
StopApplication();
elseif Sel_Result = 0 then
WarningIndex=errmsg("Do you want to Exit from the Application?")
select("Yes, want to Exit from the Application", continue,
"Continue from the Menu", continue)
default(1);
if WarningIndex=1 then
StopApplication();
else
Move to PSU_SUP_ID;
endif;
elseif Sel_Result in 1,4:6,9:10, 13:14, 18:19 then
errmsg ("Supervisor: You have not selected any option.");
move to PSUBN;
else
endif;
endif;
if loadsetting("Designation")="2" and loadsetting("LoginGender")="1" then //Male enumerator
StrFlag ="Start";
if Sel_Result =2 then
SendReceiveArea();
elseif Sel_Result =6 then
SendReceiveAsignHH();
elseif Sel_Result =9 then
SelectHHforInterview();
ConductInt();
elseif Sel_Result =10 then
AssignHHforFemaleInterview();
move to PSUBN;
// AssingHHtoFemale();
elseif Sel_Result =13 then
SendReceiveAssingHHtoFemale();
move to PSUBN;
elseif Sel_Result =14 then
SendReceiveHHData();
elseif Sel_Result =15 then
// ViewHHInterviewStatus();
SendPictureonServer();
elseif Sel_Result =16 then
// ViewHHInterviewStatus();
ViewHHReportHTML();
move to PSUBN;
elseif Sel_Result = 0 then
WarningIndex=errmsg("Do you want to Exit from the Application?")
select("Yes, want to Exit from the Application", continue,
"Continue from the Menu", continue)
default(1);
if WarningIndex=1 then
StopApplication();
else
Move to PSU_SUP_ID;
endif;
elseif Sel_Result = 18 then
StopApplication();
elseif Sel_Result in 1,3:5,7:8,11:12, 17 then
errmsg ("Enumerator: You have not selected any option.");
move to PSUBN;
else
endif;
else
endif;
if loadsetting("Designation")="2" and loadsetting("LoginGender")="2" then//Female enumerator
StrFlag ="Start";
if Sel_Result =2 then
SendReceiveArea();
elseif Sel_Result =6 then
SendReceiveAsignHH();
elseif Sel_Result =9 then
SelectHHforInterview();
ConductInt();
elseif Sel_Result =10 then
SelectHHforfemaleInterview();
advance to SELECT_ELIGIBLE_WOMEN;
elseif Sel_Result =11 then
AssignHHforFemaleInterview();
move to PSUBN;
elseif Sel_Result =15 then
SendReceiveAssingHHtoFemale();
move to PSUBN;
elseif Sel_Result =14 then
SendReceiveAssingHHtoFemale();
elseif Sel_Result =16 then
SendReceiveHHData();
elseif Sel_Result =17 then
SendReceiveFemaleData();
elseif Sel_Result =18 then
ViewHHReportHTML();
move to PSUBN;
elseif Sel_Result = 0 then
WarningIndex=errmsg("Do you want to Exit from the Application?")
select("Yes, want to Exit from the Application", continue,
"Continue from the Menu", continue)
default(1);
if WarningIndex=1 then
StopApplication();
else
Move to PSU_SUP_ID;
endif;
elseif Sel_Result = 21 then
StopApplication();
elseif Sel_Result in 1,3:5,7:8,12:13, 19:20 then
errmsg ("Enumerator: You have not selected any option.");
move to PSUBN;
else
endif;
else
endif;
Postproc
setproperty($, "Protected",true);
If StrFlag="Start" then
else
setproperty($, "Protected",false);
{*******************************************************}
{*** SELECT ENUMERATION AREA ***}
{*** USE SAMPLE_DICT AND SAMPLE.CSDB FILE ***}
// set access(SAMPLE_DICT, OrderType.Indexed, Order.Ascending);
setfile (SAMPLE_DICT,"..\106_Ext_Data\Sample.csdb");
//string blocklable = getlabel(PSUBN_VS1, PSUBN);
if selcase("Select Enumeration Area in " + getlabel(PSUBN_VS1, PSUBN), SAMPLE_DICT,"" )
// include (SSS, T_Block_N, T_NAME, D_NAME,S_CODE ,L_NAME)
include (T_Block_N, T_NAME, D_NAME,S_CODE)
where T_Block_N = PSUBN and S_CODE=tonumber(loadsetting("SupervisorID"))=0 then //L_Name = Locality; D_Name=District; T_Name =Tehsil Name; S_Code=Supervisor Code
set errmsg (operator);
errmsg ("No Enumeration Area selected.\n\n\nApplication is going to Exit.");
set errmsg (default);
stop(1);
else
//You will find Key as a Processing Code or Enumeration Area
set errmsg (Operator);
errmsg ("The Selected Enumeration Area Code is \n\n [...%04s...].", key (SAMPLE_DICT) [1:4]);
savesetting("saveHHPSU",key(SAMPLE_DICT)[1:4]);
set errmsg (default);
$=PSU_ID;
endif;
endif;
If loadsetting("Designation")="1" then //Login as Supervisor
Sel_Result= accept("Health and Population Survey (HPS) - Supervisor Menu",
"PSU AREA ", {01}
" + Assign PSU Area to the Enumerator ", {02}
" + Send PSU Area to the Enumerator ", {03}
" ", {04}
" ", {05}
"HOUSEHOLD INTERVIEW ", {06}
" + Assign Household to the Enumerator ", {07}
" + Send Assigned Household to the Enumerator", {08}
" ", {09}
"RECEIVE DATA FROM THE ENUMERATOR ", {10}
" + Receive HH Data ", {11}
" + Receive Female Interview Data ", {12}
" ", {13}
"DATA SYNCHRONIZATION WITH THE SERVER ", {14}
" + Send Household Data on the Server ", {15}
" + Send Female Interview Data on the Server", {16}
" + View Household Interview Report ", {17}
" ", {18}
" ", {19}
"Application Close "); {20}
elseIf loadsetting("Designation")="2" and loadsetting("LoginGender")="1" then //Login as Male Enumerator
Sel_Result= accept("Health and Population Survey (HPS) - Male Enumerator",
"PSU AREA ", {01}
" + Receive Assigned Enumeration Area ", {02}
" ", {03}
" ", {04}
"RECEIVE ASSIGNED HOUSEHOLDS ", {05}
" + Receive Assigned Households ", {06}
" ", {07}
"HOUSEHOLD INTERVEIW ", {08}
" + Conduct Household Interview ", {09}
" + Assign Household Info to Female enumerator", {10}
" ", {11}
"DATA SYNCHRONIZATION WITH THE SUPERVISOR ", {12}
" + Send Assigned HH Info to Female enumerator",{13}
" + Send HH Data to the Supervisor ", {14}
" + Send Picture on the Server ", {15}
" + View Household Interview Report ", {16}
" ", {17}
"Application Close "); {18}
elseIf loadsetting("Designation")="2" and loadsetting("LoginGender")="2" then //Login as Female Enumerator
Sel_Result= accept("Health and Population Survey (HPS) - Female Enumerator",
"PSU AREA ", {01}
" + Receive Assigned Enumeration Area ", {02}
" + ", {03}
" ", {04}
"RECEIVE ASSIGNED HOUSEHOLDS ", {05}
" + Receive Assigned Households from the Supervisor ", {06}
" ", {07}
"HOUSEHOLD INTERVEIW ", {08}
" + Conduct Household Interview ", {09}
" + Conduct Female Interview ", {10}
" + Assign Household Info to the Female enumerator", {11}
" ", {12}
"DATA SYNCHRONIZATION ", {13}
" + Receive Assigned HH Info for Female Interview", {14}
" + Send Assigned HH Info to Female enumerator",{15}
" + Send HH Data to the Supervisor ", {16}
" + Send Female Data to the Supervisor ", {17}
" + View Household Interview Report ", {18}
" ", {19}
" ", {20}
"Application Close "); {21}
else
endif;
if loadsetting("Designation")="1" then
StrFlag ="Start";
if Sel_Result =2 then
//errmsg ("The changes identified during training are being made. The application will be available soon.");
// move to PSUBN;
AssignPSUArea();
elseif Sel_Result =3 then
SendReceiveArea();
elseif Sel_Result =7 then
advance to Select_hh_id;
elseif Sel_Result =8 then
SendReceiveAsignHH();
elseif Sel_Result =11 then
SendReceiveHHData();
elseif Sel_Result =12 then
SendReceiveFemaleData();
elseif Sel_Result =15 then
SendHHDataonServer();
elseif Sel_Result =16 then
SendFemaleDataonServer();
elseif Sel_Result =17 then
// ViewHHInterviewStatus();
ViewHHReportHTML();
move to PSUBN;
elseif Sel_Result = 20 then
StopApplication();
elseif Sel_Result = 0 then
WarningIndex=errmsg("Do you want to Exit from the Application?")
select("Yes, want to Exit from the Application", continue,
"Continue from the Menu", continue)
default(1);
if WarningIndex=1 then
StopApplication();
else
Move to PSU_SUP_ID;
endif;
elseif Sel_Result in 1,4:6,9:10, 13:14, 18:19 then
errmsg ("Supervisor: You have not selected any option.");
move to PSUBN;
else
endif;
endif;
if loadsetting("Designation")="2" and loadsetting("LoginGender")="1" then //Male enumerator
StrFlag ="Start";
if Sel_Result =2 then
SendReceiveArea();
elseif Sel_Result =6 then
SendReceiveAsignHH();
elseif Sel_Result =9 then
SelectHHforInterview();
ConductInt();
elseif Sel_Result =10 then
AssignHHforFemaleInterview();
move to PSUBN;
// AssingHHtoFemale();
elseif Sel_Result =13 then
SendReceiveAssingHHtoFemale();
move to PSUBN;
elseif Sel_Result =14 then
SendReceiveHHData();
elseif Sel_Result =15 then
// ViewHHInterviewStatus();
SendPictureonServer();
elseif Sel_Result =16 then
// ViewHHInterviewStatus();
ViewHHReportHTML();
move to PSUBN;
elseif Sel_Result = 0 then
WarningIndex=errmsg("Do you want to Exit from the Application?")
select("Yes, want to Exit from the Application", continue,
"Continue from the Menu", continue)
default(1);
if WarningIndex=1 then
StopApplication();
else
Move to PSU_SUP_ID;
endif;
elseif Sel_Result = 18 then
StopApplication();
elseif Sel_Result in 1,3:5,7:8,11:12, 17 then
errmsg ("Enumerator: You have not selected any option.");
move to PSUBN;
else
endif;
else
endif;
if loadsetting("Designation")="2" and loadsetting("LoginGender")="2" then//Female enumerator
StrFlag ="Start";
if Sel_Result =2 then
SendReceiveArea();
elseif Sel_Result =6 then
SendReceiveAsignHH();
elseif Sel_Result =9 then
SelectHHforInterview();
ConductInt();
elseif Sel_Result =10 then
SelectHHforfemaleInterview();
advance to SELECT_ELIGIBLE_WOMEN;
elseif Sel_Result =11 then
AssignHHforFemaleInterview();
move to PSUBN;
elseif Sel_Result =15 then
SendReceiveAssingHHtoFemale();
move to PSUBN;
elseif Sel_Result =14 then
SendReceiveAssingHHtoFemale();
elseif Sel_Result =16 then
SendReceiveHHData();
elseif Sel_Result =17 then
SendReceiveFemaleData();
elseif Sel_Result =18 then
ViewHHReportHTML();
move to PSUBN;
elseif Sel_Result = 0 then
WarningIndex=errmsg("Do you want to Exit from the Application?")
select("Yes, want to Exit from the Application", continue,
"Continue from the Menu", continue)
default(1);
if WarningIndex=1 then
StopApplication();
else
Move to PSU_SUP_ID;
endif;
elseif Sel_Result = 21 then
StopApplication();
elseif Sel_Result in 1,3:5,7:8,12:13, 19:20 then
errmsg ("Enumerator: You have not selected any option.");
move to PSUBN;
else
endif;
else
endif;
Postproc
setproperty($, "Protected",true);
-
khurshid.arshad
- Posts: 618
- Joined: July 9th, 2012, 11:32 am
- Location: Islamabad, Pakistan
Re: Allow Access?
Dear Gregory;
Any updates on this?
Is there a way to prevent the message from appearing when we run the CAPI application, which was developed in CSPro 7.7, on CSPro 8+?
Thanks
a.
Any updates on this?
Is there a way to prevent the message from appearing when we run the CAPI application, which was developed in CSPro 7.7, on CSPro 8+?
Thanks
a.
-
Gregory Martin
- Posts: 1947
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: Allow Access?
Are you able to share your application? If so, send it to cspro@lists.census.gov or greg@csprousers.org?
The Action Invoker requirement for access tokens is designed to only occur when the .pen file has been created using CSPro 8.0+, so I'm surprised that you're getting these queries requiring permission.
I'd like to fix this issue, especially as a favor to Pakistan after the cricket defeat that the U.S. somehow inflected. So many people who have never given a thought to cricket are somehow now huge cricket fans!
The Action Invoker requirement for access tokens is designed to only occur when the .pen file has been created using CSPro 8.0+, so I'm surprised that you're getting these queries requiring permission.
I'd like to fix this issue, especially as a favor to Pakistan after the cricket defeat that the U.S. somehow inflected. So many people who have never given a thought to cricket are somehow now huge cricket fans!
-
khurshid.arshad
- Posts: 618
- Joined: July 9th, 2012, 11:32 am
- Location: Islamabad, Pakistan
Re: Allow Access?
Who knew Americans could suddenly become cricket aficionados overnight? Next thing you know, they'll be experts on biryani too!
a.
a.