Page 9 of 12

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

Posted: Thu Jan 01, 2015 8:54 pm
by Ellen Schlechter

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


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

Posted: Fri Jan 02, 2015 5:51 am
by Yurii Orishchuk

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.


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

Posted: Fri Jan 02, 2015 4:40 pm
by Ellen Schlechter

Sorry, I don't understand what you mean.


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

Posted: Mon Jan 05, 2015 6:25 pm
by Ellen Schlechter

Could you explain this simply?


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

Posted: Mon Jan 05, 2015 11:57 pm
by Yurii Orishchuk

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.


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

Posted: Tue Jan 06, 2015 3:31 am
by Ellen Schlechter

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.


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

Posted: Tue Jan 06, 2015 6:00 am
by Yurii Orishchuk

Ellen,

Yes, exactly.

Regards.


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

Posted: Tue Jan 06, 2015 1:51 pm
by Ellen Schlechter

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


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

Posted: Tue Jan 06, 2015 9:53 pm
by Ellen Schlechter

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.


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

Posted: Wed Jan 07, 2015 5:58 am
by Yurii Orishchuk

Hi Ellen,

Glad you have found reason of this problem.

Regards.