PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV Mobile 2024 → Problem saving data HFSQL on iOS
Problem saving data HFSQL on iOS
Started by ALFREDO SANTIBANEZ /, Oct., 02 2017 5:36 AM - 4 replies
Registered member
8 messages
Popularité : +1 (1 vote)
Posted on October, 02 2017 - 5:36 AM
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
Registered member
794 messages
Popularité : +40 (42 votes)
Posted on October, 02 2017 - 12:35 PM
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
Posted on October, 02 2017 - 1:00 PM
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
Registered member
8 messages
Popularité : +1 (1 vote)
Posted on October, 02 2017 - 5:09 PM
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
Posted on October, 02 2017 - 7:33 PM
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