Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

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

Hi Ellen,

Please read more about isCreated in current thread.

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

Regards.

Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

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

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.

Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

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

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

Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

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

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

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

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

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.

Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

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

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

Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

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

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

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

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

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.

Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

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

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?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

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

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

Regards

Return to “Issues”