Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

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

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

Dave Troxel
Posts: 0
Joined: Fri May 09, 2014 1:07 pm

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

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.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

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

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

Dave Troxel
Posts: 0
Joined: Fri May 09, 2014 1:07 pm

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

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. :)

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

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

Hello Dave!

Would be great if you can share your solution!

Return to “Issues”