Page 1 of 3

Unable to have click event on a select component.

Posted: Sun May 24, 2015 4:01 am
by Bruce7551108

Hi,
I am not able to have a click even on a select component. Please use the link that I have my app..

http://appery.io/app/mobile-frame?src...

I have a click event for this select component just an alert to display a word. But it doesn't get triggered.

Please look into this and let me know what I am missing. Or, is this a bug?

Thanks,
Bruce


Unable to have click event on a select component.

Posted: Sun May 24, 2015 5:59 am
by Illya Stepanov

Hi Bruce -

In my app works as expected and on Click event and on event Value changed.

Please try it with event Value changed and let us know the result.


Unable to have click event on a select component.

Posted: Sun May 24, 2015 11:54 am
by Bruce7551108

Hi Illya,
Thanks for your quick reply.

I want the click event to fire. Reason being, I will have to fill the select component with a dynamic list only after the click. Basically, I am trying to build a Master-Detail with select components with click events. I tired value change, but it doesn't fix my use-case.

Any other work-around to get the click event to fire?

If this is a bug, are you planning to fix it soon?

Thanks,
Bruce.


Unable to have click event on a select component.

Posted: Mon May 25, 2015 6:06 pm
by Illya Stepanov

JavaScript alert works on click event on the select component, if it created from new blank project on our side.

There could be some issues with yours particular project, I've forwarded this to our developers they will take a look, but this could take some time.


Unable to have click event on a select component.

Posted: Tue May 26, 2015 12:01 pm
by Serhii Kulibaba

Hello Bruce,

Unfortunatelly, it is the bug. But you can use workaround:

1) add handler on the "page show" event
2) set action="Run JavaScript"

pre$("[name=selectName]").closest('.ui-select').off("click").on("click", function() {
// Put any your code here
});/pre

here "selectName" - name of the select component


Unable to have click event on a select component.

Posted: Wed May 27, 2015 12:49 am
by Bruce7551108

Hi Sergiy,
Thank you very much for suggesting a work-around. I really appreciate that. I think we are almost there...

I actually want to invoke a database service when the select component is clicked. Could you please suggest me how I could do that?

Thanks Again,
Bruce.


Unable to have click event on a select component.

Posted: Wed May 27, 2015 3:47 am
by Bruce7551108

Hi Sergiy,
I tried by putting serviceInstanceName.execute({}); in the Javascript code, but it is taking me back to my login page again. Any idea why?

Thanks,
Bruce.


Unable to have click event on a select component.

Posted: Wed May 27, 2015 8:36 am
by Alena Prykhodko

Hi Bruce,

Are there any error in console?

This code executes service, make sure you do not have on service success event navigate to Login page action or so.


Unable to have click event on a select component.

Posted: Wed May 27, 2015 10:50 am
by Bruce7551108

Hi Alena,
Thanks for your reply. I have a "Success" mapping for this service. But I don't have any "Navigate to Login Page" action for this service.

Thanks,
Bruce.


Unable to have click event on a select component.

Posted: Thu May 28, 2015 10:10 pm
by Illya Stepanov

Hi Bruce -

Are you using any mapping in this service?

Please check network tab in browser dev.tools what are request/response for this service.