Page 1 of 1
can the text in a label (listing name from another db collection) be saved as a input to another db collection
Posted: Wed Jan 01, 2014 6:33 pm
by Catalyst Creations
Hey guys,
I have a page that lists the columns of a dB collection into labels... I have inputs running parallel to each of the labels for the amounts of the items listed in the labels. Then I have a create service that is taking the amounts and the labels to the required request... will the db pick up the labels text or not? if not how would i go about getting the text on the labels into the db collection?
can the text in a label (listing name from another db collection) be saved as a input to another db collection
Posted: Wed Jan 01, 2014 10:55 pm
by Igor
Hello,
You can get text from labels and save it to another DB collection. You should save label text as a array of objects and put this array to DB collection.
This doc should be helpful: http://docs.appery.io/documentation/b...
can the text in a label (listing name from another db collection) be saved as a input to another db collection
Posted: Thu Jan 02, 2014 12:00 am
by Catalyst Creations
Hey Igor,
when I try to save a label into the database collection it say 400 bad request?
when create the column in the database collection do i choose object or array?
can the text in a label (listing name from another db collection) be saved as a input to another db collection
Posted: Thu Jan 02, 2014 12:26 am
by Igor
Can you show us service configurations or JS code which you are using to save label info to DB?
I'm not sure what is the better data type for column because I don't know what you are going to do with this data. You can find data type description in the below doc: http://docs.appery.io/documentation/b...
can the text in a label (listing name from another db collection) be saved as a input to another db collection
Posted: Thu Jan 02, 2014 12:45 am
by Catalyst Creations
ive just used the create service from the db collection.. once i get the label text into the db ill just be using it for listing on another page.... the only js im using is for the acl which i got from the tutorial( http://docs.appery.io/tutorials/build... )
can the text in a label (listing name from another db collection) be saved as a input to another db collection
Posted: Thu Jan 02, 2014 12:40 pm
by Oleg Danchenkov
If you want to save item2.text to 'test' column you should set 'test' column type to string