PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → some questions from a neophyte about android app
some questions from a neophyte about android app
Débuté par Claudio Costamagna, 23 nov. 2020 08:57 - 5 réponses
Posté le 23 novembre 2020 - 08:57
good morning to all.
this is my first post here, and i i'm new in windev world.
so please be patient with me.
i have some questions for more skilled developers.
any help will be really appreciated.


1)about some control in 'creation'
some control are disabled in the corrisponding menù entry.
for example i can't insert in a window
- treeview
- listview
- sidebar
is this the expected behavior ? those controls are not available
for android application ?


2)about rad generation.
in the menu project i see the menu entry 'Full application RAD'
not enabled.
the RAD generation is not available for mobile android project ?


3) about combo box.
in a combobox i have selected the option (in the content page) expanded type = popup windows than
i select my popup window that it should be open.
when i run the application in the emulator all work fine, but when i deploy
on real device the option is ignored and the combobox open in expanded type = listbox mode.
is the option expanded type = popup windows not available on android ?

4) this is a more complex question: is about the modification of the structure of a datafile.
this is the scenario
- i use for database the hfsql classic, leaving the default location
(<dbdirectory>) during first deploy.
- than i modify the structure of one datafile adding a new field in a datafile
(for example i decide to add to a datafile <customer> the field <EmailAddress> not present
in the first deploy)
-in windev modbile i syncronize the project with the analisys and than i add the 'EmailAddress'
on the 'WIN_Customer' window
-now i release new version of the app. the datafile 'customer' exists on device so i sno longer
deployed on the device.
-running the application cause it to crash when i open WIN_Customer because the new field
'EmailAddress' is not present on the datafile 'customer' in the local db directory of the device


obviously if I uninstall the application and reinstall it on the device everything will work again.
But in this way the user loses all the data eneterd in the database in the first relase of the app.

i tried to use the HModifyStructure("*", hmsNormal) command during the end of initialization
of main app window in order to syncronize the datafile present on the device with the analisys
contained in the apk => no result.

there is a way to achive my goal ?


so, there is a way to add in the device a new field in a datafile
without the user losing the data previously entered ?
Posté le 23 novembre 2020 - 14:42

1)about some control in 'creation'
some control are disabled in the corrisponding menù entry.
for example i can't insert in a window
- treeview
- listview
- sidebar
is this the expected behavior ? those controls are not available
for android application ?


If they are disabled, then they are not available for your current target.


2)about rad generation.
in the menu project i see the menu entry 'Full application RAD'
not enabled.
the RAD generation is not available for mobile android project ?


Don't know, don't care... RAD is REALLY not the way to go.


3) about combo box.
in a combobox i have selected the option (in the content page) expanded type = popup windows than
i select my popup window that it should be open.
when i run the application in the emulator all work fine, but when i deploy
on real device the option is ignored and the combobox open in expanded type = listbox mode.
is the option expanded type = popup windows not available on android ?


This behavior indicates that not, but I'm not using those so I cannot confirm.


4) this is a more complex question: is about the modification of the structure of a datafile.
this is the scenario
- i use for database the hfsql classic, leaving the default location
(<dbdirectory>) during first deploy.
- than i modify the structure of one datafile adding a new field in a datafile
(for example i decide to add to a datafile <customer> the field <EmailAddress> not present
in the first deploy)
-in windev modbile i syncronize the project with the analisys and than i add the 'EmailAddress'
on the 'WIN_Customer' window
-now i release new version of the app. the datafile 'customer' exists on device so i sno longer
deployed on the device.
-running the application cause it to crash when i open WIN_Customer because the new field
'EmailAddress' is not present on the datafile 'customer' in the local db directory of the device


obviously if I uninstall the application and reinstall it on the device everything will work again.
But in this way the user loses all the data eneterd in the database in the first relase of the app.

i tried to use the HModifyStructure("*", hmsNormal) command during the end of initialization
of main app window in order to syncronize the datafile present on the device with the analisys
contained in the apk => no result.

there is a way to achive my goal ?



so, there is a way to add in the device a new field in a datafile
without the user losing the data previously entered ?



Yes, the hmodifystructure IS the way to go and is working fine0 So your code was probably incorrect>
I always put it in the project init code, as soon as the DB connection has been established.
Membre enregistré
3 657 messages
Popularité : +175 (223 votes)
Posté le 23 novembre 2020 - 15:13
Hi

I opened the calls and I will be giving you a feedback as soon as I have a solution or answer.

OK?

--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Posté le 23 novembre 2020 - 18:12
thanks very much Argus and Boller
Membre enregistré
3 657 messages
Popularité : +175 (223 votes)
Posté le 23 novembre 2020 - 23:05
https://package.windev.com/pack/RequeteAuST/WD250PACKTSREQ.exe

--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Membre enregistré
2 messages
Posté le 24 novembre 2020 - 15:04
Boller wrote:
https://package.windev.com/pack/RequeteAuST/WD250PACKTSREQ.exe

--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/


Hi Boller,
i have solved the problem to update the structure of a datafile during deploy. Argus point me in the correct direction using hmodifystructure in the init project code. I have used it in the end of initialization of the main window but is not the correct place (the command is not performed: is too late probably because the connection is just alive)
As for the link you sent me: it is the app for sending support requests to pc soft, right? I didn't understand if you made the request for me.
Thanks to all