Catalyst Creations
Posts: 0
Joined: Sat Dec 28, 2013 1:34 am

can the text in a label (listing name from another db collection) be saved as a input to another db collection

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?
Image

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

can the text in a label (listing name from another db collection) be saved as a input to another db collection

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...

Catalyst Creations
Posts: 0
Joined: Sat Dec 28, 2013 1:34 am

can the text in a label (listing name from another db collection) be saved as a input to another db collection

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?

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

can the text in a label (listing name from another db collection) be saved as a input to another db collection

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...

Catalyst Creations
Posts: 0
Joined: Sat Dec 28, 2013 1:34 am

can the text in a label (listing name from another db collection) be saved as a input to another db collection

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... ) Image

Image

Image Image

Oleg Danchenkov
Posts: 0
Joined: Tue Apr 30, 2013 5:51 pm

can the text in a label (listing name from another db collection) be saved as a input to another db collection

If you want to save item2.text to 'test' column you should set 'test' column type to string

Return to “Issues”