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

Tableview - onClientCellClick

Hi,

I need code sample for validating Tableview clicked cell value in JavaScript.

Problem to Solve:

In my tableview, I have to avoid the server side event while the cell value is null or empty. So I decided to get the Table view clicked cell value in JS.

Any other solution!

Note: Please mention Bean Side Coding Also

Thank You,

Regards,

Devasarathy Pandi.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 25, 2009 at 11:43 AM

    Hi,

    I am looking these threads also,

    onclientrowselection-for-tableview's

    Check if a row is selected in TableView in javascript

    http://help.sap.com/saphelp_nw04/helpdata/EN/43/067941a51a1a09e10000000a155106/content.htm

    Here, what is the exact value i have to pass for obj

    Thank you,

    Regards,

    Devasarathy Pandi.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Guys,

      My Code is,

      <jsp:useBean id="myBean" scope="session" class="myCompany.BeanTableView" />

      <hbj:content id="myContext" >

      <hbj:page title="PageTitle">

      <hbj:form id="myFormId" >

      <hbj:tableView

      id="myTableView"

      design="ALTERNATING"

      headerVisible="true"

      footerVisible="true"

      navigationMode="BYLINE"

      selectionMode="NONE"

      visibleFirstRow="1"

      visibleRowCount="10"

      headerText="Testing List"

      onNavigate="myOnNavigate"

      fillUpEmptyRows="true"

      width="720">

      <% myTableView.setModel(myBean.getModel());

      myTableView.setJsObjectNeeded(true);

      myTableView.setOnClientCellClick(6,"showUpTableContent()");

      %>

      </hbj:tableView>

      </hbj:form>

      </hbj:page>

      </hbj:content>

      inside script function i wroter like --> htmlbevent.obj.getClickedRow()

      It throws javascript error as htmlbevent.obj is null or not an object

      Note: I want to get the clicked cell value in Javascript any other solution?

      Thank you,

      Regards,

      Devasarathy Pandi.

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.