cancel
Showing results for 
Search instead for 
Did you mean: 

dropdownlistbox onClientSelect javascript call in table view cell renderd.

Former Member
0 Kudos
173

Hi all,

I have dropdownlist box in Tableview cell render.

I used ddlb.setOnClientSelect("mes"); in cell reder class.

It is not calling javascript method mes().

Let me know how mes().

is called

Thanks

Mark

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

As far as I remember the javascript method gets an in-parameter. So define you method as

function mes (htmlbevent) {

alert('woohoo');

}

Think this is documented in the portal somewhere

Former Member
0 Kudos

Thank you Dagfinn Parnas

But still not working. code i used is

1.in jsp file

<script language="Javascript">

function mes (htmlbevent) {

alert('woohoo');

}

</script>

<hbj:tableView

id="PartsInstItemTableView"

model="objModuleTableViews.partsInstItemTableView"

design="ALTERNATING"

headerVisible="false"

footerVisible="false"

selectionMode="NONE"

visibleFirstRow="1"

visibleRowCount="1"

fillUpEmptyRows="TRUE">

<%

PartsInstItemTableView.setUserTypeCellRenderer(new PartsInstItemCellRenderer());

%>

</hbj:tableView>

2.in Render class

if (column == 6) {

DataString strValue = (DataString) tableView.getValueAt(row, column);

DropdownListBox ddlb = new DropdownListBox("ddlb_partsInstCondition");

//ddlb.addItem("", "");

ddlb.addItem("New", "New");

ddlb.addItem("Exchange", "Exchange");

ddlb.addItem("Repairable", "Repairable");

ddlb.setOnClientSelect("mes");

ddlb.render(rendererContext);

}

Pl tell me if you have solution and any help document(url) availble.

Thanks

Mark