6 Replies Latest reply: May 14, 2012 3:44 AM by Tulasi Kamodula RSS

    No of records limitation in af: selectManyShuttle

    SreeniGaddam
      Hi All,

      We are using <af:selectManyShuttle> coponent for records selection and opening them as popup.
      We also implemented search query to populate the component .

      left side componet is binded to a VO,and VO has very generic query which returns the all records .

      But in the left hand side pane ,i can see only set of records, (e.g 20 ) , if move 20 rows to right hand pane .
      and again click on search for more rows ,i cannot see more records in left hand side.
      I want to understand is there any limitation in <af:selectManyShuttle> or is it required to tune the VO query .


      Thanks in advance for your help ..

      Sreeni
        • 1. Re: No of records limitation in af: selectManyShuttle
          vinod_t_krishnan
          check if the RangeSize for the iterator of the VO is set to 20.. if so then set that to -1 to show all the records
          • 2. Re: No of records limitation in af: selectManyShuttle
            SreeniGaddam
            expected behaviour is if there are more no of records , user willl see a scroll bar ..so that user can scroll down and move more records to right side pane.

            user is not able to see more than 20 -25 records ..at a time

            thanks for the needful
            • 3. Re: No of records limitation in af: selectManyShuttle
              SreeniGaddam
              Any suggestions on this .
              • 4. Re: No of records limitation in af: selectManyShuttle
                Tulasi Kamodula
                Can you post the code of the table you were using?

                If the you set the range size of the VO iterator to -1 (As vinod mentioned) you should be seeing a scroll bar showing all the rows. You can try checking the query again and see how many rows are actually returned.

                Thanks,
                TK
                • 5. Re: No of records limitation in af: selectManyShuttle
                  SreeniGaddam
                  Thanks for your response

                  I have shuttle component, and on top of shuttle component we implemented search query .

                  a VO (LableVO) is bonded to shuttle component and query .
                  My requirement is user enters some criteria (e.g Label code = 10) there are more than 100 rows which satisfies the criteria.
                  As per the Range Size =25 (VO range size) , user can see 25 rows on the left side pane , user cannot see more than 25 , there is no paging option in shuttle component to see more rows .
                  If user selects some them or all (e.g 10 or 25) moved to right side pane and click on search..User can’t see remaining records.
                  Because VO and shuttle components are assuming 25 records are already displayed, since there is no paging (scroll) option, it’s not displaying remaining set of records.
                  Please guide is how to tune both VO and shuttle components to gets my requirement satisfied.


                  Popup code

                  :popup id="vlcLab"
                  binding="#{pageFlowScope.CreateEditRule.labelRichPopup}"
                  contentDelivery="lazyUncached">
                  <af:dialog id="d6"
                  title="#{aatwebBundle['LABEL_POPUP_TITLE']}"
                  partialTriggers="pfl6"
                  affirmativeTextAndAccessKey="#{aatwebBundle['POPUP_OK_BTN_LABEL']}"
                  dialogListener="#{pageFlowScope.CreateEditRule.labelDialogListener}">
                  <af:panelGroupLayout layout="vertical" id="pgl24">
                  <af:query id="qryId5" headerText="Search" disclosed="true"
                  displayMode="compact"
                  value="#{bindings.LabelVOCriteriaQuery.queryDescriptor}"
                  model="#{bindings.LabelVOCriteriaQuery.queryModel}"
                  queryListener="#{bindings.LabelVOCriteriaQuery.processQuery}"
                  queryOperationListener="#{bindings.LabelVOCriteriaQuery.processQueryOperation}"
                  modeChangeVisible="false"
                  resultComponentId="::sms5"
                  saveQueryMode="hidden"
                  binding="#{pageFlowScope.CreateEditRule.labelQueryComponent}"/>
                  <af:separator id="s9"/>
                  <af:selectManyShuttle value="#{pageFlowScope.CreateEditRule.selectedLabelList}"
                  leadingHeader="#{aatwebBundle['LEADING_HEADER']}"
                  trailingHeader="#{aatwebBundle['TRAILING_HEADER']}"
                  simple="true"
                  label="#{bindings.LabelVO.label}"
                  id="sms5">
                  <f:selectItems value="#{pageFlowScope.CreateEditRule.allLabel}"
                  id="si40"/>
                  </af:selectManyShuttle>
                  </af:panelGroupLayout>
                  </af:dialog>
                  </af:popup>
                  • 6. Re: No of records limitation in af: selectManyShuttle
                    Tulasi Kamodula
                    Can you post your pageDef code?

                    Thanks,
                    TK