Page 8 of 12

Is it possible to have the same button run both a create service and an update service?

Posted: Wed Dec 24, 2014 12:03 pm
by Yurii Orishchuk

Hi Ellen,

Please read more about isCreated in current thread.

Details: http://prntscr.com/5kc2lb/direct

Regards.


Is it possible to have the same button run both a create service and an update service?

Posted: Wed Dec 24, 2014 3:54 pm
by Ellen Schlechter

So I created a new account within my app just for testing purposes. I found that since it was the first time I had ever changed the values of the check boxes with the account, it stores them all as false, no matter what. It does, however, list the right _id from the database. I then tried to manually change some of the boxes from false to true in the database. When I did that, it didn't change whether or not the boxes were checked.

So here are the 2 problems:
It doesn't create the check values correctly. They are all stored as false. Here is the mapping.
Image

Lastly, it then doesn't list or read them correctly. No matter what is in the database, it shows all boxes as unchecked. The _id is listed right though.


Is it possible to have the same button run both a create service and an update service?

Posted: Sun Dec 28, 2014 5:20 pm
by Ellen Schlechter

Ok so I did some thinking and found a new more reliable/easier way to do it. When a user creates an account, that will invoke the check create service so then when the panel is opened, it will list the checkboxes with their value. Then the save button will only update it instead of creating it too. I am having a problem with the update though. See screen shots below.

Image Image Image Image


Is it possible to have the same button run both a create service and an update service?

Posted: Tue Dec 30, 2014 4:11 am
by Ellen Schlechter

Have you had a chance to look at this at all?


Is it possible to have the same button run both a create service and an update service?

Posted: Tue Dec 30, 2014 5:56 am
by Yurii Orishchuk

Hi Ellen,

Could you please provide us information about what you are trying to do?

Currently it's hard to understand it by implementation.

Regards.


Is it possible to have the same button run both a create service and an update service?

Posted: Tue Dec 30, 2014 1:12 pm
by Ellen Schlechter

I just want to update the check values with the save button but I get the above errors.


Is it possible to have the same button run both a create service and an update service?

Posted: Thu Jan 01, 2015 2:09 am
by Ellen Schlechter

Have you had a chance to look at this at all?


Is it possible to have the same button run both a create service and an update service?

Posted: Thu Jan 01, 2015 3:36 am
by Yurii Orishchuk

Hi Ellen,

On your screen shot i can see that you tried to store array into boolean type. Thus you have this error.

See details: http://prntscr.com/5n5wua/direct

Regards.


Is it possible to have the same button run both a create service and an update service?

Posted: Thu Jan 01, 2015 5:51 am
by Ellen Schlechter

Well in screen shots 1 and 2 I have it mapped to a boolean type because that is what the columns are in the database. What should I do to fix this?


Is it possible to have the same button run both a create service and an update service?

Posted: Thu Jan 01, 2015 6:07 am
by Yurii Orishchuk

You need to find out why did you pass '["calf id"]' array to the boolean collumn type as specified on previous screen shot.

Regards