Knowledge Partner
Knowledge Partner
248 views

onclick event for Tile field


Hi,

I have been using Stevens script for creating tabs on my workflow.
This works great and the tabs are selectable and when selected display
what should be displayed etc.

The tabs are of type String and Control type Title.
Now I have one last tab that I called verification and when that is
clicked I want to update that side with all the selected items from the
previous tabs.
The nicest way to do that would be to catch the event of clicking on the
tab but I cant get that to work.

Is this possible or do you have any other suggestions on how to trigger
an event from a title field, or moving out from in.

Cheers


--
joakim_ganse
------------------------------------------------------------------------
joakim_ganse's Profile: https://forums.netiq.com/member.php?userid=159
View this thread: https://forums.netiq.com/showthread.php?t=54273

Labels (1)
0 Likes
2 Replies
charakopidis Absent Member.
Absent Member.

Re: onclick event for Tile field


Hi,

i'm not sure, if this is caused by the script creating the tabs or if
the onClick function ist not working with labels, but i can confirm that
it is not working.

here is a workaround:

because you use already jquery and jquery-ui for creating the tabs, you
can now use the jquery .on() method.

Create a new inline script and include the following source code:


Code:
--------------------
try {
// on click select
$(document).on('click', '#_yourTabTitle', function(){
//your code
});
} catch(e) {
console.error(e);
}
--------------------


Zisis


--
charakopidis
------------------------------------------------------------------------
charakopidis's Profile: https://forums.netiq.com/member.php?userid=829
View this thread: https://forums.netiq.com/showthread.php?t=54273

0 Likes
Knowledge Partner
Knowledge Partner

Re: onclick event for Tile field


charakopidis;260740 Wrote:
> Hi,
>
> i'm not sure, if this is caused by the script creating the tabs or if
> the onClick function ist not working with labels, but i can confirm that
> it is not working.
>
> here is a workaround:
>
> because you use already jquery and jquery-ui for creating the tabs, you
> can now use the jquery .on() method.
>
> Create a new inline script and include the following source code:
>
> >

Code:
--------------------
> > try {

> // onClick
> $(document).on('click', '#_yourTabTitle', function(){
> //your code
> });
> } catch(e) {
> console.error(e);
> }

--------------------
> >

>
> Zisis



This works great!

Thanks for a really clean solution! Easy to implement and update.


--
joakim_ganse
------------------------------------------------------------------------
joakim_ganse's Profile: https://forums.netiq.com/member.php?userid=159
View this thread: https://forums.netiq.com/showthread.php?t=54273

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.