cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Javascript in MVC Table that calls an action

dullnigAlex
5-Regular Member

Javascript in MVC Table that calls an action

Usecase:

I have an MVC Table like following:

dullnigAlex_2-1594725743807.png

 

Is there a way to implement a Javascript function that calls an Action on doubleclicking a row in the first column.

It should call the same Action like the following one:

dullnigAlex_1-1594725719631.png

Thanks

Alex

2 REPLIES 2
hlafkir
13-Aquamarine
(To:dullnigAlex)

HI Alex,

 

Hope you are fine.

Why don't you use in an easier way the follwing :

 

http://support.ptc.com/help/windchill/wc111_hc/whc_en/index.html#page/Windchill_Help_Center/WCCG_UIC...

 

Configuring Table — Enabling a Row Selection
Making the rows selectable can be done by using setSelectable() on table config. To make the table non-selectable the value must be set to “false”. By default, table is selectable.
For example:
For setting non-selectable table.
ComponentConfigFactory factory = getComponentConfigFactory();
TableConfig table = factory.newTableConfig();
table.setSelectable(false);
 
 
 
I think it is exactly the same as you are requesting, isn't it ?
 
Hicham
bmr
17-Peridot
17-Peridot
(To:dullnigAlex)

I'm not aware of a double click. Would be cool if that works. Have you opened a ticket at PTC? 

Perhaps you can register your own table event. Have you checked the JS documentation?

 

Announcements