Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Oct 2009
    Location
    Herzelia
    Posts
    2

    DynaMetapushTable - approaching a specific cell in javascript

    Hi,
    using DynaMetapushTable - Is there any way to approach a specific cell that was automatically created by the table?
    I want to create a table and for each row create a button that when pressed, will activate a javascript code on the specific row - for instance, delete it.
    in order to do that I have to get the ID of the row - how can I do that?
    thank you?
    Shay

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    hi,

    through the onChangingValues callback you can obtain the dom node of the updateing row (that is a clone of the template) as it is passed as the second parameter in the call, or, if setPushedHtmlEnabled is set to true, inject your html as the formatted value of one of the field (you could use a client-side field for this purpose with the addField method but note that setPushedHtmlEnabled must be true anyway for the entire table)

    HTH

  3. #3
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    please also note that you should not remove rows client-side as with a DynaMetapushTable the results in doing so can be unpredictable, so do it at your own risk.
    The correct way to remove a line from a DynaMetapushTable is to send a DELETE command from the server.

 

 

Similar Threads

  1. User specific data example
    By zeos in forum Adapter APIs
    Replies: 1
    Last Post: January 28th, 2010, 09:41 AM
  2. DynaMetapushTable server-side code
    By CitiMan in forum General
    Replies: 13
    Last Post: September 22nd, 2009, 04:57 PM
  3. Replies: 3
    Last Post: May 14th, 2008, 10:01 AM
  4. DynaMetapushTable and Its Java Adapter
    By burakalpugan in forum Adapter APIs
    Replies: 2
    Last Post: April 11th, 2008, 03:16 PM
  5. Reset DynaMetapushTable
    By garyj in forum Adapter APIs
    Replies: 1
    Last Post: March 25th, 2008, 09:03 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 03:37 AM.