Dive into Oracle ADF

Send me a mail
 Dive into Oracle ADF   Click to see the XML version of this web page.   (Updated: 2/3/2008; 9:13:13 PM.)
Tips and tricks from Steve Muench on Oracle ADF Framework and JDeveloper IDE

Search blog with Google:
 

Search BC4J JavaDoc:
 

April 2004
Sun Mon Tue Wed Thu Fri Sat
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30  
Mar   May

Get Firefox!

Wednesday, April 28, 2004

Several customers have sent in questions about why their combobox controls, supported by an ADF List of Values binding, only show 10 rows, instead of all the rows in the dataset that the combobox is based on.

The answer is that in 9.0.5.1 production, the "Range Size" property of iterator bindings now defaults to 10. To show all rows in that iterator, just select the iterator binding that your LOV binding is getting its list data from in your binding container -- by clicking on the "UI Model" tab of the Structure Pane while your JSP page is active -- and in the property inspector, change the Range Size from 10 to -1 to show all rows.


2:07:43 PM    



Arron writes in to ask, "If I have ADF bindings for ADF Business Components view object row values like Returned and Total, of type oracle.jbo.domain.Number, how can I use an EL expression to calculate a percentage related one to the other?".

The answer involves accessing the input value of the bindings (which will be the "raw" attribute value of type oracle.jbo.domain.Number, and then the "value" property of the Number object that will return the value as a double. In EL, the expression would look like this:

<c:out value="${(bindings.Returned.inputValue.value / bindings.Total.inputValue.value) * 100}"/>

If you are doing this inside a <c:forEach> loop over your range binding's dataset, then you don't need the extra inputValue property in the EL expression. It would look like this:

<c:forEach var="Row" items="${bindings.EmpView.rangeSet}">
:
<c:out value="${(Row.Returned.value / Row.Total.value) * 100}"/>

2:02:58 PM    


© Copyright 2008 Steve Muench.