navigation in table from $(mydbr_selected_cell)

(3 posts) (2 voices)
  1. eugfri, Member

    Hi,

    I wonder if there is a way to refer to the column other than $(mydbr_selected_cell) using its relative position to $(mydbr_selected_cell)?
    I.e. for example I have a column that user clicks and invokes report and I'd like to reflect this user action by updating value in another column without full screen refresh.
    $(mydbr_selected_cell).text() is very handy way to do it with the column user acted on. Is there way to refer to the column prior/after to $(mydbr_selected_cell) in result set?

    Thank you

    Posted 3 months ago #
  2. myDBR Team, Key Master

    Hi,
    easiest way fdo do it, is to add a CSS class for the columns you wish to address and then use jQuery's siblings-function to refer to it.

    So if you have another column you add a CSS class for it:

    select 'dbr.colclass', 'anothercol';

    You can then refer to the column with:

    $(mydbr_selected_cell).siblings('.anothercol')

    You can also use the helper functions described in Editable reports documentation.

    --
    myDBR Team

    Posted 3 months ago #
  3. eugfri, Member

    Great!
    Thank you for the tip!

    Posted 3 months ago #

Reply

You must log in to post.