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 I save in local storage like this. Then you saw my mapping so I don't know what to do. Image

I also noticed that when it runs the update service, it changes the ACL it goes from a normal ACL:
{"54a22112e4b0408cd8fd34e8":{"read":true,"write":true}}

To a ACL that I do not like:
{"*":{"write":true,"read":true}}

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?

Ellen,

It seems you change this storage in other place.

To check it - please use other one storage in:

  1. Set checked value.

  2. LInk in mapping to the request parameter.

    Regards.

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,

I mean you change storage variable in other place. You have a lot of implementation in your app so i can't tell it exactly.

To check it - please use other one storage in:

  1. Set checked value.

  2. Link in mapping to the request parameter.

    So you need to use other new storage variable.

    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?

Yurii, here are the steps I took.

  1. I created a variable called test variable.

  2. I set the variable upon panel open. See other details in this screen shot. Image

  3. I have a list service where it maps the variable to a label.

  4. It returns it as true and false depending on whether the box is checked or not.

    I assume this is what is supposed to happen.

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?

What should I do from here? That doesn't really solve the problem where it won't update then in changes the ACL.

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?

Also, I found out why I have that inconsistent ACL when in the calves. It happens when a user updates their calf...similar to when they try to update the check boxes. Yurii, you were the one that helped me set up the update and I followed those directions exactly (obviously, because we got it working) so I don't know why it is doing 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?

Hi Ellen,

Glad you have found reason of this problem.

Regards.

Return to “Issues”