Skip to Content
avatar image
Former Member

how to highlight rows of a table UI Element just in time with button press?

Hi Brothers,

I have a Table UI Element and a delete button. The delete button deletes rows of the table and marks the rows red in an action. However, the red marking only appears after leaving the row, not just in time with the button press...

How can I have my row beeing marked just in time with pressing that delete button??

Thanks, Johannes

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 02, 2008 at 11:49 AM

    Hi,

    It would be helpfull if you could post the code or the steps you have followed...

    One option that could be of use for you is to set the leadselection to a different element after delete button is pressed.

    Regards

    Ayyapparaj

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 02, 2008 at 12:03 PM

    Hi

    Create an attribute of type TextViewDesign in the node that you bind to the datasource of the table.Bind this attribute tothe design property of textview(Cell Editor).Based on the condition set this attribute to your need(bold or something)

    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c29a4d25-0c01-0010-50ae-e69d0e1c61f3]

    Regards,

    Khushboo

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 02, 2008 at 12:11 PM

    One might wanna check the coding. You have to pay attention when there's only 1 element in the table.

    		// set the lead selection away for the marking to take effect
    		if (wdContext.nodeCustomerWithTxt().size() > 1){
    			if (leadSelection > 0){
    				int leadSelectionChange = leadSelection -1;
    				wdContext.nodeCustomerWithTxt().setLeadSelection(leadSelectionChange);		
    			} else { // leadSelection == 0
    				int leadSelectionChange = leadSelection +1;
    				wdContext.nodeCustomerWithTxt().setLeadSelection(leadSelectionChange);		
    			}
    		}
    

    So long, Johannes

    Add comment
    10|10000 characters needed characters exceeded