How to Hide Applications listing on mobile device

Discussions about creating CAPI applications to run on Android devices
Forum rules
New release: CSPro 8.0
Dzidefo
Posts: 21
Joined: July 12th, 2017, 1:57 pm

How to Hide Applications listing on mobile device

Post 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.
thierryt
Posts: 47
Joined: April 26th, 2017, 12:17 pm

Re: How to Hide Applications listing on mobile device

Post 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;
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: How to Hide Applications listing on mobile device

Post 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=
Dzidefo
Posts: 21
Joined: July 12th, 2017, 1:57 pm

Re: How to Hide Applications listing on mobile device

Post 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,
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: How to Hide Applications listing on mobile device

Post 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.
Dzidefo
Posts: 21
Joined: July 12th, 2017, 1:57 pm

Re: How to Hide Applications listing on mobile device

Post 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.
Attachments
TGO_RGE_Menu.rar
(326.34 KiB) Downloaded 312 times
Dzidefo
Posts: 21
Joined: July 12th, 2017, 1:57 pm

Re: How to Hide Applications listing on mobile device

Post by Dzidefo »

Greg, also, I d'ont understand what you are saying by "not correctly set up" ? Is it about the runing ?
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: How to Hide Applications listing on mobile device

Post 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?
Dzidefo
Posts: 21
Joined: July 12th, 2017, 1:57 pm

Re: How to Hide Applications listing on mobile device

Post by Dzidefo »

I hope it's ok, now.
Attachments
TGO_RGE_Menu.zip
(332.18 KiB) Downloaded 352 times
Dzidefo
Posts: 21
Joined: July 12th, 2017, 1:57 pm

Re: How to Hide Applications listing on mobile device

Post by Dzidefo »

I resend the the .rar version.
Attachments
TGO_RGE_Menu.rar
(326.34 KiB) Downloaded 330 times
Post Reply