Forum Stats

  • 3,770,034 Users
  • 2,253,052 Discussions
  • 7,875,276 Comments

Discussions

Problem With af:listview

Hammam Samir
Hammam Samir Member Posts: 109 Red Ribbon
edited Jul 12, 2018 5:32AM in JDeveloper and ADF

Hello,

I'm using J developer version 12.1.3.0.0

I have created a jsp page with list view, but the list view not listing or viewing all records in the table properly,

since the docs refers that list view will not list all records by default,i have only 3 records in the table and it

lists all of them but the appearance is not correct , it looks like that,

listview Issue.png

looks like there is a hidden records and when clicking the load more button,

it repeats the records in the same way , while there is no more records at all

Someone can help with that

Best regards

Hammam Samir

Tagged:

Answers

  • dvohra21
    dvohra21 Member Posts: 14,254 Gold Crown
    edited Jul 12, 2018 12:56AM

    1-27 of 3 items does not seem like proper itemization. Usually it is 1-3 of 27 items.

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 37,669 Red Diamond
    edited Jul 12, 2018 1:18AM

    User, can you show us the page source, please?

    Is the data coming from a VO or another source?

    Timo

  • Hammam Samir
    Hammam Samir Member Posts: 109 Red Ribbon
    edited Jul 12, 2018 5:32AM

    Hi Mr. Timo,

    Here is the source for the list view

    the list view is inside 3 levels of panel splitter in the page and it comes from a view object

      <af:listView value="#{bindings.Business_campaign_View2.collectionModel}"

                                                                 var="item"

                                                                 emptyText="#{bindings.Business_campaign_View2.viewable ? 'No data to display.' : 'Access Denied.'}"

                                                                 id="lv1" immediate="true"

                                                                 selectionListener="#{bindings.Business_campaign_View2.treeModel.makeCurrent}"

                                                                 selection="single"

                                                                 fetchSize="#{bindings.Business_campaign_View2.rangeSize}"

                                                                 inlineStyle="grid-rows:auto ; min-width:350pt; flex-align:center; table-layout:fixed;">

                                                        <af:listItem id="li1"

                                                                     inlineStyle="orphans:inherit; grid-flow:rows;">

                                                            <af:panelGridLayout id="pgl5" inlineStyle="orphans:5;">

                                                                <af:gridRow marginTop="5px" height="auto" id="gr7">

                                                                    <af:gridCell marginStart="5px" width="dontCare"

                                                                                 columnSpan="2" marginEnd="5px" id="gc9">

                                                                        <af:outputFormatted value="#{item.bindings.CampaignName.inputValue}"

                                                                                            id="of1"/>

                                                                    </af:gridCell>

                                                                </af:gridRow>

                                                                <af:gridRow marginTop="5px" height="auto" marginBottom="5px"

                                                                            id="gr8">

                                                                    <af:gridCell marginStart="5px" width="dontCare"

                                                                                 id="gc10">

                                                                        <af:outputFormatted value="#{item.bindings.StartDate.inputValue}"

                                                                                            id="of2">

                                                                            <af:convertDateTime pattern="#{bindings.Business_campaign_View2.hints.StartDate.format}"/>

                                                                        </af:outputFormatted>

                                                                    </af:gridCell>

                                                                    <af:gridCell marginStart="5px" width="dontCare"

                                                                                 marginEnd="5px" id="gc11">

                                                                        <af:outputFormatted value="#{item.bindings.EndDate.inputValue}"

                                                                                            id="of3">

                                                                            <af:convertDateTime pattern="#{bindings.Business_campaign_View2.hints.EndDate.format}"/>

                                                                        </af:outputFormatted>

                                                                    </af:gridCell>

                                                                </af:gridRow>

                                                            </af:panelGridLayout>

                                                        </af:listItem>

                                                    </af:listView>

    Thanks

    Hammam

This discussion has been closed.