PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → IOS deployment and file location
IOS deployment and file location
Débuté par Marcos Aguero, 10 mar. 2016 22:59 - 4 réponses
Posté le 10 mars 2016 - 22:59
I have seen some topics that ask this same question, and none of them got a real answer. I am trying to deploy an application to iPad/iPhone with a HyperFile classic database. When generating the application, it says if the files are to have write access, I need to select the destination for them. Documents or Library are offered as choices. I select Documents.

Once deployed, the application cannot find the datafiles. I tried to use fDataDir() and fResourceDir() to find and connect to these files but am not having any luck.

Can someone please tell me where these files are going on the device, and what I need to do to access them?

Thank you in advance!

Marcos
Posté le 15 mars 2016 - 15:06
I am running in to the same issue with trying to get a connection other than Read-Only. If I send the data files in read only mode, I can pull them up fine. I finally switched to HF CS solution which put limitations on my app because it then required an internet connection to get to the data.

Nobody can answer this?
Posté le 15 mars 2016 - 15:38
Hi

I'm not deploying files with my application, instead, I'm creating them
there and replicating their content

That works like a charm

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com



On 3/15/2016 9:06 AM, Justin Willbur wrote:
I am running in to the same issue with trying to get a connection other
than Read-Only. If I send the data files in read only mode, I can pull
them up fine. I finally switched to HF CS solution which put
limitations on my app because it then required an internet connection to
get to the data.

Nobody can answer this?
Posté le 19 mars 2016 - 13:17
Thanks Fabrice!

I tried that and I use the current folder when loading on the iPad (goes to app Documents folder). I use the HChangeDir to change all my data files to the Current directory. Then I use HCreationIfNotFound which successfully runs. I then check to see if the files exist and they are not in the Documents folder. Not sure what is happening with it.

gsDBPath = fCurrentDir()
HChangeDir("*",gsDBPath)
HCreationIfNotFound("*")
if not fFileExists(CompleteDir(gsDBPath) + "Titles.fic") THEN
Info("File not found")
END


Thanks,
Marcos
Posté le 20 mars 2016 - 13:40
Hi Marcos,

what makes you think that hcurrentdir s the document folder?
You should do an info(fcurrentdir()) to know where your files are.

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com


On 3/19/2016 7:17 AM, Marcos Aguero wrote:
Thanks Fabrice!

I tried that and I use the current folder when loading on the iPad (goes
to app Documents folder). I use the HChangeDir to change all my data
files to the Current directory. Then I use HCreationIfNotFound which
successfully runs. I then check to see if the files exist and they are
not in the Documents folder. Not sure what is happening with it.

gsDBPath = fCurrentDir()
HChangeDir("*",gsDBPath)
HCreationIfNotFound("*") if not fFileExists(CompleteDir(gsDBPath) +
"Titles.fic") THEN
Info("File not found")
END


Thanks,
Marcos