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 a comment
10|10000 characters needed characters exceeded

Related questions

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 a 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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.