Page 1 of 1

access and manipulate database variable

Posted: Thu Dec 04, 2014 7:56 am
by KarenW

HI

I have a database where the user will need to
add a new entry
search for an existing entry
and add data to both
Store that data in the database with the preexisting information.

For example I want to be able to search phone contacts and add some information to them. Or search the names in the database and add an address etc

I have followed the contacts tutorial and have successfully been able to get both a contacts list from the device and i can also now get a sorted :-) list from the database so i am ok to that point.

I want to set it up so the user can click on one of the items in the returned list and then add new information to that variable in the database.

As far as i can see the only tutorial for this uses a preexisting list to make it clickable. This doesnt help for a returned list from a search as far as i can see.

I have no JAVA, JSON etc etc. I need to be able to do using the appery functions.

IS this possible please.


access and manipulate database variable

Posted: Thu Dec 04, 2014 3:39 pm
by Evgene Karachevtsev

Hello Karen,

You can do it without javascript (ECMAScript) with a simple mapping
1) Please create update service for your user collection
2) Add it (service) to your page
3) Map 'selected' property value from your list component to your service request property name, that you would like to update.