Voting: 
Vote up!
0 Votes
5 Replies
Unanswered

onClick event is not fired in segment2 -Kony Visualizer 7.2

Question asked by Raghuveer K on Jul 07, 2017 11:56 EDT

Hello, I would like to implement screen like Shopping cart screen. For this, I created on Row template having Label container and Image container and added this Row template as master data for segment2 in Form. onClick event is there for Image container so that I am planning to write logic to get details for selected row.  In Android phone, this is working fine but in Iphone onRowClick event is fired event though onClick is there for it's child widget(Image container).   Attached the sample app (SegOnClick) zip file here.  Please let me know is there any solutions to acheive this in iPhone.  I am using Kony Visualizer enterprise 7.2.

Vote up!
0 votes
Vote down!

Hi Raghuveer,

Instead of placing a container  & image into it and triggring button On click event , please try the following one which is tried and succussfully working.

Solution:  Remove that image container and first place a image of required size and place button on top of that , make sure to transparent the button background by setting the background to white and opacity to 0 in button skin.

Then add Your action to Button Onclick.

We hope this answers your question. If you need any further clarification, please feel free to get back with your queries and we will be happy to assist you further. 

Thank you,
Lakshmi Vajrapu
Customer Success Engineering

Replied by: Jul 11, 2017 03:19 EDT
Vote up!
0 votes
Vote down!

Hi Lakshmi,

 

Thanks for reply.

Even button also part of row container (means child widget in segment row). In iphone, only OnRowClick event is trigging, the Other onclick events for child widgets not being fired. (No issues with Android)

If this information is not clear, please try the sample app(segonclick.zip) I have attached in the initial thread.

Replied by: Jul 11, 2017 04:20 EDT
Vote up!
0 votes
Vote down!

Hi There,

 

I am having the same problem in iPhone, tried adding one more button container but the issue still exists. Only onRowClick event is invoked when I click on rowsegment. 

Please let us konw if any one have other alternative solutions for this.

Replied by: Jul 16, 2017 02:36 EDT
Vote up!
0 votes
Vote down!

Hi All,

I have tried flexContainer On click event where image is placed into it. then it worked, I have used basic plugins only.

Please find modified sample project which was provided earlier by Raghuveer.

It worked for me.

Thank you,
Lakshmi Vajrapu
Customer Success Engineering

 

Replied by: Jul 17, 2017 00:58 EDT
Vote up!
0 votes
Vote down!

Hi Lakshmi,

 

I have tested the modified sample project and it is working in iPhone. I did not find root cause of the issue( compare mysample zip file in the initial thread and your's). Could you please let me know.

Replied by: Jul 17, 2017 08:06 EDT