Skip to Content
author's profile photo Former Member
Former Member

dropdownlistbox onClientSelect javascript call in table view cell renderd.

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

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Mar 16, 2004 at 12:06 PM

    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 😊

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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