cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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