PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → [WM23] Get the data
[WM23] Get the data
Débuté par ARV, 31 juil. 2018 22:27 - 6 réponses
Membre enregistré
498 messages
Popularité : +8 (8 votes)
Posté le 31 juillet 2018 - 22:27
Hi

I'm in a really problem right now, I want to get all the data from an app I develop the problem it's I can't update the app because the signature it's different from my previous version (WM20 to WM23).

I have really important data on this app, I can't send the data by query because the DB was changed so I'm screw on all options.

It could be a way to have the .fic or some way to downgrade the app just to see the data on my app or something?.
Because I send a new version of my app but this one have changes on the Local data base so the app crash because I don't put HModifyStructure so the app can't open my version of WM it's different so the signature changed.

I really need to get the data so bad please help me.

--
Best Regards
Jose
Membre enregistré
498 messages
Popularité : +8 (8 votes)
Posté le 31 juillet 2018 - 23:12
Hi

I get this for now

IF fCopyFile("/data/user/0/package of my app/databases/TableA.fic",SysDirStorageCard()+"/CopyTableA.fic") = False THEN
Info(ErrorInfo(errFullDetails))
END


I get the path and my table but I can't copy it's obvious because this new app doesn't have rights on that file but... could it be a way to have acces and copy? I really need to know because is the only thing I can do right now...so please...

--
Best Regards
Jose
Posté le 01 août 2018 - 13:15
Hi Jose

so, if I understand correctly:

- you used in production an app with a generic signature (option that is
there for development time only)

- as a result when updating that app to v23, the generic signature being
now different, you can no longer update.

So, different solutions:

1. restore the backup of the v20 project of your app, generate a new
version and verify that you CAN update your app on your device with it.
If that is the case (it should be), add an EXPORT function of your files
any way you want. Onve you have the data, import it in v23 project and
voila.

2. ROOT your phone. It's the only way you can access the program/data
directory. THen copy your files and do what you want with them.

IN any case, in order NOT to have the same problem in the future, stop
using the generic signature and instead GENERATE ONE that you will keep
with your backup and will be able to reuse in future versions.

Best regards

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

Free Video Courses, free WXShowroom.com, open source WXReplication, open
source WXEDM.

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


On 7/31/2018 3:12 PM, Jose wrote:
Hi
I get this for now

IF fCopyFile("/data/user/0/package of my
app/databases/TableA.fic",SysDirStorageCard()+"/CopyTableA.fic") = False
THEN
    Info(ErrorInfo(errFullDetails))
END


I get the path and my table but I can't copy it's obvious because this
new app doesn't have rights on that file but... could it be a way to
have acces and copy? I really need to know because is the only thing I
can do right now...so please...

--
Best Regards
Jose
Membre enregistré
498 messages
Popularité : +8 (8 votes)
Posté le 01 août 2018 - 16:15
Hi Fabrice Harari

Thanks for your reply

Yes I already generate my signature for now on I will use it also I create backup for that signature I will never use generic signature ever again.

I have the project on v20 the bad part of this is my key for the project to open WM20 it has to been updated to V23, I will try to open with this key the WM20 but I guess it doesn't work... so I can't generate a new version on my project v20.

So the only option it's to ROOT the device, I will tell to my boss but I think he doesn't allow this...

In the end I think I'm screw on all options.

Well for now on I will:

1. Put HModifyStructure for all of my tables HF Classics (just for the app never crash for a new updated and if its Classic it will never take that long to updated just like the C/S tables case).
2. Always Generate a signature for every project and create a backup for a future use and updated for Windev Mobile (if I lose the signature save it on my PC I have my backup for it).
3. For a extrem case put a fCopyFile function on a Support option with password just in case I can't send the data to my server for copy my .fic to the "C:/" file of the device and then copy everything on my PC (if something goes wrong to send the data but the app could open and not like the problem I have right now).

Then again thanks for your reply!

PD: For that time on v20 google wasn't that estrict with the signature so I could upload my app with a generic signature but now I can't and I need to generated a signature to my app. on that time I was more noob on this world I still been a noob but no toooooo noob.

--
Best Regards
Jose
Message modifié, 01 août 2018 - 16:18
Posté le 01 août 2018 - 16:51
Hi Jose,

in your project in v20, you should have the corresponding generic key...

So just restore it in a separate directory and try.

Best regards

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

Free Video Courses, free WXShowroom.com, open source WXReplication, open
source WXEDM.

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


On 8/1/2018 8:15 AM, Jose wrote:
Hi Fabrice Harari

Thanks for your reply

Yes I already generate my signature for now on I will use it also I
create backup for that signature I will never use generic signature ever
again.

I have the project on v20 the bad part of this is my key for the project
to open WM20 it has to been updated to V23, I will try to open with this
key the WM20 but I guess it doesn't work... so I can't generate a new
version on my project v20.

So the only option it's to ROOT the device, I will tell to my boss but I
think he doesn't allow this...

In the end I think I'm screw on all options.

Well for now on I will:

1. Put HModifyStructure for all of my tables HF Classics (just for the
app never crash for a new updated and if its Classic it will never  take
that long to updated just like the C/S tables case).
2. Always Generate a signature for every project and create a backup for
a future use and updated for Windev Mobile (if I lose the signature save
it on my PC I have my backup for it).
3. For a extrem case put a fCopyFile function on a Support option with
password just in case I can't send the data to my server for copy my
.fic to the "C:/" file of the device and then copy everything on my PC
(if something goes wrong to send the data but the app could open and not
like the problem I have right now).

Then again thanks for your reply!

PD: For that time on v20 google wasn't that estrict with the signature
so I could upload my app with a generic signature but now I can't and I
need  to generated a signature to my app. on that time I was more noob
on this world I still been a noob but no toooooo noob.

--
Best Regards
Jose
Membre enregistré
498 messages
Popularité : +8 (8 votes)
Posté le 01 août 2018 - 18:06
Hi Fabrice Harari

Yes you are right the v20 create the key so I need to search for it, I will do it, some on those files it could be right there I guess... maybe it's the .jks too who knows thanks for the idea I will tell you if I found it and if it works!

Thanks for the reply!

--
Best Regards
Jose
Membre enregistré
498 messages
Popularité : +8 (8 votes)
Posté le 01 août 2018 - 19:52
Hi

I Couldn't find it, I send a email to Pcsoft if they can help me

Thanks for all the answers and support Fabrice

--
Best Regards
Jose