PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → Problem saving data HFSQL on iOS
Problem saving data HFSQL on iOS
Débuté par ALFREDO SANTIBANEZ /, 02 oct. 2017 05:36 - 4 réponses
Membre enregistré
8 messages
Popularité : +1 (1 vote)
Posté le 02 octobre 2017 - 05:36
Hi, My first try to create an app to iOS is giving problems with HFSQL. App runs well on iPhone, reads data from files, but when using hdelete or hsave errors are returned, for example:

WL Call:
..
Hdelete function, syntax 2

What happened?
Unable to open <var/mobile/Containers/Data/Application/D7D27139-E5D2-42AF-B29E-982855B91BFB/Documents/cuentas.fic> file. Files present in libraries (WDL) and components (WDK) cannot be opened in write mode.

Error Code: 70150
Level: fatal error
WD55 error code :150


Any hint

Best Regards
Alfredo
Membre enregistré
795 messages
Popularité : +40 (42 votes)
Posté le 02 octobre 2017 - 12:35
Hi. The file data are generated in device or them are sended to device with app installation? If you use data files installed with the app then this files are read only. You must use fExtractResource to copy the files to a folder with write permision and then you could modify them.

Look at https://help.windev.com/en-US/…


Rubén
Posté le 02 octobre 2017 - 13:00
Hi Alfredo,

the eror mesage seems to indicate that you INCLUDED the files IN the
application (instead of creating them on the mobile, or INSTALLING them
WITH the application).

In that case, files are read only.

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


Le 10/1/2017 à 9:36 PM, ALFREDO SANTIBANEZ / a écrit :
Hi,  My first try to create an app to iOS is giving problems with
HFSQL.  App runs well on iPhone, reads data from files, but when using
hdelete or hsave errors are returned, for example:

WL Call:
...
Hdelete function, syntax 2

What happened?
Unable to open
<var/mobile/Containers/Data/Application/D7D27139-E5D2-42AF-B29E-982855B91BFB/Documents/cuentas.fic>
file. Files present in libraries (WDL) and components (WDK) cannot be
opened in write mode.

Error Code: 70150
Level: fatal error
WD55 error code :150


Any hint

Best Regards
Alfredo
Membre enregistré
8 messages
Popularité : +1 (1 vote)
Posté le 02 octobre 2017 - 17:09
Thanks and Fabrice for your answers.

I need some more help to advance, can you give some more hints or links to solve the problem?

1) Yes I included the files with the application wizard, as I have done before with Android apps.
2) How should I Install them with the application on iOS?
3) To extract the files on the iPhone, I understand that I MUST use fextractResource for each .fix, .ndx and .mmo file.
Also, this must be donde at the start of the application

How do I control not to extract again each time the app is executed?

Regards, and thanks again

Alfredo
Posté le 02 octobre 2017 - 19:33
Hi Alfredo


Le 10/2/2017 à 9:09 AM, ALFREDO SANTIBANEZ / a écrit :
Thanks and Fabrice for your answers.
I need some more help to advance, can you give some more hints or links
to solve the problem?

1) Yes I included the files with the application wizard, as I have done
before with Android apps.


What options did you use? Where did you say that the files were to be
extracted ? Did you specify WRITE mode ?

2) How should I Install them with the application on  iOS?
3) To extract the files on the iPhone, I understand that I MUST use
fextractResource for each .fix, .ndx and .mmo file.
 Also, this must be donde at the start of the application


No, not if they are correctly added during the app creation process.

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


How do I control not to extract again each time the app is executed?

Regards, and thanks again

Alfredo