PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV Mobile 2024 → IOS deployment and file location
IOS deployment and file location
Started by Marcos Aguero, Mar., 10 2016 10:59 PM - 4 replies
Posted on March, 10 2016 - 10:59 PM
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
Posted on March, 15 2016 - 3:06 PM
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?
Posted on March, 15 2016 - 3:38 PM
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?
Posted on March, 19 2016 - 1:17 PM
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
Posted on March, 20 2016 - 1:40 PM
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