Page 2 of 2

How to get button in panel to trigger hidden button on page?

Posted: Thu May 15, 2014 6:41 pm
by Evgene Karachevtsev

Try this: add JS to your list mapping as it's stated here:
http://docs.appery.io/documentation/b...
and write taskId as value of collapsible element attribute: element.attr("data-item-id", value.taskID);
When you click "delete" button you should run this JS:

codelocalStorage.setItem("collName",$(this).parents().eq(1).attr("data-item-id")); /code

When you click "Yes, delete" you should run this JS:

code$("[data-item-id="+localStorage.getItem("collName") +"]").find("[name=mobilebutton_21]").trigger("click"); /code

mobilebutton_21 is the name of your button component


How to get button in panel to trigger hidden button on page?

Posted: Thu May 15, 2014 8:33 pm
by Dave Troxel

I think I got it.. but about this line:

write taskId as value of collapsible element attribute: element.attr("data-item-id", value.taskID);

Does that go under additional properties of the collapsible? If so, do I put it as follows:
Image

I can't seem to get it to save. Sorry I am so new to this. Thank you again.


How to get button in panel to trigger hidden button on page?

Posted: Thu May 15, 2014 8:52 pm
by Evgene Karachevtsev

You should add attribute in JS section in the mapping as it's stated here: http://docs.appery.io/documentation/b...


How to get button in panel to trigger hidden button on page?

Posted: Thu May 15, 2014 9:54 pm
by Dave Troxel

Sadly, even after reading over the tutorial several times, I could never make this work. I ended up backing off ALL the JS that was added and through a series of hide and show commands got it done much simpler. Let me know if you need me to write a tutorial on how to do this, the simpleton way. Thanks again. :)


How to get button in panel to trigger hidden button on page?

Posted: Fri May 16, 2014 5:18 am
by Maryna Brodina

Hello Dave!

Would be great if you can share your solution!