Page 1 of 2

How to Hide Applications listing on mobile device

Posted: January 13th, 2018, 9:15 am
by Dzidefo
Dear Cspro Users,

I would loke to hide the my principal application and show only the menu application ont my mobile device.

I try unsuccessfully the following codes:

1)
filewrite(pffFile,"[DataEntryInit]");
filewrite(pffFile,"ShowInApplicationListing=Hidden");

2)

filewrite(pffFile,"[DataEntryInit]");
filewrite(pffFile,"ShowInApplicationListing=Never");

I notice i use cspro 7.0.2.

Many thanks to help me.

Re: How to Hide Applications listing on mobile device

Posted: January 14th, 2018, 8:19 am
by thierryt
Hi Dzidefo,
i use cspro 6.3.2.
in all devices you have a folder named TEMP.
you can generate yours .pff that are not MENU and send it in TEMP folder.

look this example.
string temp = pathname(temp);
function genpff4(string app)
SetFile( piffile, temp + app + ".pff") ;
FileWrite( piffile,"[Run Information]");
FileWrite( piffile,"Version=CSPro 6.3");
FileWrite( piffile,"AppType=Entry");
Filewrite (piffile, "[DataEntryInit]");
Filewrite (piffile, "OperatorID=Anyone");
Filewrite (piffile, "StartMode=ADD;1");
FileWrite( piffile,"[Files]");
FileWrite( piffile,"Application=" + entdir + slash + app + ".pen");
FileWrite( piffile,"InputData=" + temp + app + ".dat");
FileWrite( piffile,"[ExternalFiles]");
FileWrite( piffile,"SUIVI_DICT=" + ref + slash + "suivi.dat");
FileWrite( piffile,"[Parameters]");
FileWrite( piffile,"STATUT = " + accreditation );
FileWrite( piffile,"wdir = " + wdir);
Filewrite( piffile, concat( "REPORT=", strip(report) ) );
close( piffile );
end;

Re: How to Hide Applications listing on mobile device

Posted: January 15th, 2018, 10:01 am
by Gregory Martin
The ShowInApplicationListing approach should have worked. I'm surprised that it didn't. Another way to hide the PFF is to make the Description (which should come under [Run Information]) blank. Like this:

[Run Information]
Version=CSPro 7.0
AppType=Entry
Description=

Re: How to Hide Applications listing on mobile device

Posted: January 16th, 2018, 5:05 am
by Dzidefo
Thanks thierryt,

Greg, thanks,
But Curioslly , when I open the pff file (I hope, i'm at the rigth place) of the application i want to hide and i check the description field
it's already blank.

regards,

Re: How to Hide Applications listing on mobile device

Posted: January 16th, 2018, 8:17 am
by Gregory Martin
I'm not sure what you mean now. If you use ShowInApplicationListing or a blank Description, the PFF should never be displayed in the application listing. You will want to launch it in logic using the execpff function.

If you are seeing the PFF in the application listing screen, then I suspect the PFF is not correctly setup. You can post it here and we can look at it.

Re: How to Hide Applications listing on mobile device

Posted: January 16th, 2018, 11:11 am
by Dzidefo
Dear Greg,

See in the atteched file.

The menu aplications files is in the "RGEMenu" folder and the main application files is in the "RGE" folder.
I just add in attached file the mains folders and .ppf and .pen files.
If necessary i can send you inbox the hole application.
It's the application of our enterprise survey, It' is not alrady perform, so i can't now put herethe hole application without the permission of the office.

Re: How to Hide Applications listing on mobile device

Posted: January 16th, 2018, 11:17 am
by Dzidefo
Greg, also, I d'ont understand what you are saying by "not correctly set up" ? Is it about the runing ?

Re: How to Hide Applications listing on mobile device

Posted: January 17th, 2018, 6:36 am
by Gregory Martin
Can you reupload your file? I can't open it. I tried using 7-Zip and also Windows Explorer, and neither could open your .rar file. It might be corrupt. Can you upload it as a .zip or .7z file?

Re: How to Hide Applications listing on mobile device

Posted: January 17th, 2018, 9:19 am
by Dzidefo
I hope it's ok, now.

Re: How to Hide Applications listing on mobile device

Posted: January 17th, 2018, 9:22 am
by Dzidefo
I resend the the .rar version.