Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Row/Cell Selection in WIB

Hi All,

when setting the row/cell selection to row in the layout parameters in the WIB, a new column with a radio button appears in the WEB App after all of the lead columns. In the Column heading there is a Delete Icon which acts as a push button. Is there a way to remove this icon from the column heading and replace it with some text? Also, is it possible to instead of having a radio button have a check box or selection tab to enable the end user to select more than one row at a time? I want to run planning functions against the rows selected by the end user but would prefer not to force them to do one at a time.

thanks,

Chuck Hall

BI Solution Consultant

replied

Hi Chuck,

You can get rid of the delete icon as follows using javascript:

Use 'view source' (right click in your web page) and search for the HTML code depicting your layout.

Search notepad for the string "Delete Selected Line".

When you find it, look for the td id value (i.e.,the id of the cell in which the delete icon is sitting in your layout).

It will look something like "<b>MYLAYOUTNAME</b>-1-1-cell"

Now, below the layout component back in the WIB, create a text component(HTML = true) and insert the following:

<script type="text/javascript">
//IF MY LAYOUT IS OPEN
if(document.getElementById("<b>MYLAYOUTNAME</b>-table")){

//FIND ITEM AND SET INNERTEXT ATTRIBUTE AS BLANK
document.getElementById("<b>MYLAYOUTNAME</b>-1-1-cell").innerText="";
}
</script>

You don't have to have the 'if' statement, but if you don't include the 'if layout is open' logic, then if your layout is not open and the system tries to execute the javascript statement, then you will start getting javascript errors.

Also, be aware that if you change your layout around, the cell in which the 'delete icon' exists may change, therefore you will need to update the javascript if you make config changes to the layout...

Good luck,

Rael

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question