How could i set the RangeSize of an UI iterator programatically ?

I have a use case to vary the RangeSize of an UI iterator programatically (the value is obtained from a user input). I found that the RangeSize parameter in the <iterator> definition does not accept EL expressions. I tried to set this RangeSize through a method call in the task flow before this UI view is invoked and bound the method to this UI view's pageDef and removed the RangeSize while defining the iterator.
<iterator Binds="Employee"
              DataControl="EmployeeAMDataControl"
              id="EmployeeIterator"/>
Java Code to set the RangeSize: // accepts the iterator name as a string input
    DCBindingContainer bindings = (DCBindingContainer) this.getBindings();
    DCIteratorBinding objectIterator = bindings.findIteratorBinding(iterator);
    objectIterator.setRangeSize(_getRangeSize()); // _getRangeSize() returns an int
   public BindingContainer getBindings()
       FacesContext fc = FacesContext.getCurrentInstance();
       return (BindingContainer) fc.getApplication().evaluateExpressionGet(fc, "#{bindings}", BindingContainer.class);
This setting is ignored and the iterator always to return 25 records. Any suggestions on how i could achieve this use case ?
thanks
kaarthik

Hi karthik,
Try setting the same using the viewobject in the code.
    DCBindingContainer bindings = (DCBindingContainer) this.getBindings(); 
    DCIteratorBinding objectIterator = bindings.findIteratorBinding(iterator);
    objectIterator.getViewObject().setRangeSize(_getRangeSize());
Thanks,
Raj Gopal K

Similar Messages

  • How could I set the proxy settings for just some URLs and not for all?

    Hello,
    I am using HttpURLConnection to establish a HTTP connection . The connection pass through a proxy, and it requires security.
    I know that I can set the proxy settings in the system properties, and this works perfect.
    But I don't want to set the proxy settings in the system properties, because this proxy settings will be for ALL the URLs, and I just want for a few URLs.
    How could I set the proxy settings for just some URLs and not for all?
    Thanks

    java.net.URL.openConnection(java.net.Proxy proxy)
    @since 1.5

  • How do you set the value of an enumeratio​n programati​cally

    I would like to be able to select (programatically) the value of an enumeration.  I don't seem to be able to find any reference to how to do that.
    Thanks.
    Solved!
    Go to Solution.

    True, True.  The original post wanted to know how to programmatically "select" the enum value.  To me, that means to either force the enum to display another value, or retrieve the current value.   I thought Ben was referring to the fact that you can't programmatically set or initiate new values into an enum.  Which as he said, can only be done with a Ring.
    "In your example you're not "getting" the value of the enum. You're converting it to a string. That's a different operation."
    I showed two ways to get the value,  one gets the current string value associated with the numeric value, and the other gets the current numeric value.  i went further in the attached vi, by demonstrating how to change the current (displayed) value of the enum by using a string.  (IFF you already know the string values in the enum.)   
    In my program, i use a typedef cluster with an enum in it.  At runtime, i need to "select" the active enum value based on which operation i'm performing.  I know from elsewhere in the program what operation i need, but it's string, and there's no easy way to change the value of an enum with a string, except with the backdoor methods i showed.  
    I wish my cohort woulda used a ring.  ;-)

  • How could I set the roboform add-on on Firefox 29! It does'nt work.

    Just tell me why Roboform does'nt work with Firefox 29 ?

    Contact Roboform for an updated version of their Firefox extension for Firefox 29.

  • How could i set the Fotonumber to one

    Wie kann ich die Fotonummern bei meinem iPhone 4 wieder auf 1 zurücksetzen??

    javafx.stage.Screen screen = Screen.getPrimary();
    javafx.geometry.Rectangle2D rectangle2D  = screen.getVisualBounds();
    Scene scene = new Scene(root, rectangle2D.getWidth(), rectangle2D.getHeight());

  • When I send messages off-line, they enter in the addressed mailbox with the date and hour which I've clicked "Send later". How could I set up to the real time?

    When I send messages off-line, they enter in the addressed mailbox with the date and hour which I've clicked “Send later”. How could I set up to the real time?

    What you say about Send Later timestamp is correct.
    When you click Send or Send Later a time is set regardless of when you actually sent the Send Later email.
    Please voice your vote at this link:
    https://bugzilla.mozilla.org/show_bug.cgi?id=560901
    You will need to logon/register.

  • How do I set the thumbnail image of my videos that export to my computer?  I'm using Premiere Elements 11 on a windows 8.1 PC 64bit.

    How do I set the thumbnail image of my videos that export to my computer?  I'm using Premiere Elements 11 on a windows 8.1 PC 64bit.
    Or how does Premiere 11 determine where to set the image for the video it is exporting? 
    I already know how to use Freeze frame and save the image to my computer by Publish+Share/Computer/ Immage.
    Thanks,
    Mike

    Mike
    This is not Adobe. Rather user to user. We are all visitors here.
    Just a bit of history....back in the days of Premiere Elements 4, you could set a "poster frame" in what was called the Project area. You did this by right clicking a blank area there and, from the drop down menu that appeared, selecting View/Preview Area, and using the poster frame feature there.
    As I said, when a video imports into Premiere Elements, the thumbnail of the import has been presenting as the first frame of the video. With this Preview area "poster frame" option, you could set the video's thumbnail in the Project area so that the first frame was another frame in the video. But, this "perk" was restricted to thumbnails of the video in Project area.
    If you exported to file with the first frame modified video, the export's thumbnail in Windows Explorer would present with other than the real first frame or the poster frame as the first frame.
    Also, in more recent versions, I have observed that the export to file does not display the real first frame of the video in Windows Explorer. Seems random, but I have not kept track.
    And, remember, at the onset I wrote
    As far as I have ever seen, Premiere Elements Windows uses the first frame of the video for its thumbnail in the program.
    I know of no way within Premiere Elements to control what the program opts to do in this matter. In some compatibility
    issues, it opts to give no image but a generic one.
    I did not say that you can expect to have the Premiere Elements' export file's thumbnail in Windows displaying with its real first frame. And, the more you get into this, depending on the versions, more details need to be added to my comment about "...first frame of video for its thumbnail in the program..."
    I would have to look into all this further to get perspective on the contributing factors.
    ATR
    Add On...The Poster Frame feature appeared in versions 4, 7, 8, and 9 by my count.

  • How do I set the "reply to" field in the iPad 2 Mail app?  I use an email forwarding service (not an actual email account) that I would like people to reply to.

    How do I set the "reply to" field in the iPad 2 Mail app?  I use an email forwarding service (not an actual email account) that I would like people to reply to, so setting up an account with the correct reply-to address doesn't work because there's no associated outgoing mail server.  I had this working under iOS4 but it seems to have disappeared when I upgraded to iOS5.

    Welcome to the forum, NicoleYM. I don't think the Touch Mail has as many options as the Mac Mail app. However, you could set a standard signature. Go to Settings > Mail, Contacts, Calendars > Signature. There you can type a reply address and hope people see it.
    Alternatively, you can go to your GMail account in your web browser and click on Settings > Forwarding and POP/IMAP. There you will have an option to forward all emails (or only some, if you set up a filter) to your other address.
    Good luck!

  • ¿How do I set the calendar to start week on Monday and not Sunday in my iphone?

    ¿How do I set the calendar to start week on Monday and not Sunday in my iphone?

    The jewish calendar does not have names for the days of the week. The week ends with the holy Sabbath (Saturday) and therefore the Sunday is the first days after Sabbath (Yom Rishon), the Monday the second day after Sabbath (Yom Sheini), etc.
    The Christians believe that Christ was raised on the first days of the week (Mathew 28:1, et al) AFTER the Sabbath was over. So their holy day is the Sunday and the working week starts on a Monday.
    The business days in the western world are numbered starting with the Monday as day number 1 (Timetables of Airlines, Calendars, even Microsoft Windows...).
    Unfortunately in the United States religious freedom extends to a level which is not understood easily by the rest of the world. Since the MAC OS X allows to change the first day from a Sunday to a Monday, one might wonder why Apple decided to give the iPhone a jewish touch.
    It could be supposed that this is the way of the least resistance. Only few complain about this issue, but if it were the other way around a lot of people would complain...
    PS: I agree with the others here: It is very, very annoying and more than once I entered an appointment into the wrong day...;-)

  • How do I set the default print margins for ALL printers in mozilla.cfg

    How do I set the default print margins for ALL printers in mozilla.cfg, even ones that are not yet installed / connected to the computer?
    I'm trying to install firefox with MDT and apply certain print options, but the printers themselves are connected at a later stage so the print.printer_myprinterhere cannot be used.

    Best answer I could find: [https://mike.kaply.com/2012/03/16/customizing-firefox-autoconfig-files/#comment-132668]
    If you can figure out how to add the printer name, this can be used to lock the margins.

  • How do you set the zoom level to Inherit Zoom for all bookmarks in a pdf?

    How do you set the zoom level to Inherit Zoom for all bookmarks in a pdf?

    beatngu13
    I made an account just to "like" your comment and say that you are a god among men.
    I've been searching for hours about how to make the zoom level persistent throughout following links in various PDF's I have, and most sources were saying to just buy acrobat pro and edit the bookmarks manually with it.
    I saw that it was possible to write an application to change the property, and considered doing it after the only pre-existing custom application I could find was asking for $50.
    Thanks to you, I no longer have to worry about re-zooming every time I click a bookmark, and I'm not out $50 or the time it would take to code an app myself!
    From the bottom of my heart, thank you!

  • How do I set the column content to automatic break lines

    Hello Guys,
    I have a problem with the column width and the column content of a standard report. Within the report are hugh entries which aren't interrupted by an space character. I set my column width to a special value by usingen "css style: display block; width: 300px;". Now the problem is that some of the column entries have a longer width than the column width is setted. So they overlock the entries of the column next to them.
    My question is: How do I set the column content to automatic break lines after a certain count of characters?
    After researching a couple of websites and discussion thread I found maybe a reference to the solution. I hope it help you to give me an answer.
    COLUMN LAST_NAME FORMAT A4
    regards
    wderr

    Wderr,
    PDFs are another animal entirely. Try adjusting the width of the column under the Print Attributes tab of the report.
    If that doesn't work you'll probably need to create custom XSL-FO layouts which, depending on the tools you have at your disposal, could take some time.
    Regards,
    Dan
    Blog: http://DanielMcGhan.us/
    Work: http://SkillBuilders.com/

  • How can i set the number of results that can be displayed on the page

    hello im just wondering how i can set the numebr of results that can be dispaleyd on the jsp, when the there are more than 5 results i want the suer to press more
    how is this odne could anyone send me a example code?
    and also how can i get results from the query displayed as select list options, so that when they press one of teh results it goes to correspnding page
    Thank you

    Hi,
    I assume that you have the connection to the DB.
    You can try this code.
    Statement stmt = con.createStatement();
    String sql = "<some sql code for selecting>";
    ResultSet rs = stmt.executeQuery(sql);
    rs.last();
    int count = rs.getRow(); // this is the number that shows how many numbers you have after select query
    rs.first(); //we moved cursor again to the begining of the results.
    if (count > 5) {
    for (int i=0;i<5;i++) {
      //as an example
      rs.getString(0);
      rs.getString(1);
      rs.getString(2);
    out.print("<a href='morePage.jsp'>More</a>");
    else {
    for (int i=0;i<count;i++){
      //as an example
      rs.getString(0);
      rs.getString(1);
      rs.getString(2);
    rs.close();
    stmt.close();I hope this would help you.
    If you have problems let me know..
    Ismail TURK

  • How do you set the burn rate?

    I have been told that best results are attained when DVDs are burned at a slow rate, such as 4X. I have no idea of the rate of my burns, and I 'm wondering how I can set the rate at 4X. Is the burn rate manipulated thru DVD Studio Pro, or is it simply determined by the balnk media you insert? For example: does an 8X disc automatically burn at 8X, and a 4X disc automatically burn at 4X?
    Thanks, Bob

    The burn rate cannot be higher than what the drive is rated for, or the speed the disc is rated for, whichever is lower. So if you have a 2x burner (most likely considering the age of your computer), then that is the maximum speed you can burn at regardless of the speed of the disc media (which could be 16x).
    Toast is software. So you would not use it "instead of" your Pioneer burner. You would use it with your Pioneer burner.

  • How could I set a fixed window for all resulution?

    because I design the website in MAC when I transfer to PC it
    change shape
    how could I set a fixed size window for all resulution?

    Using layers for page layout is just asking for trouble.
    Trouble with
    centering content, and trouble with expanding text.
    Use tables until you can manage a proper CSS layout scheme,
    i.e., NOT
    layers. Start here -
    http://www.projectseven.com/tutorials/css/qdmacfly/index.htm
    http://www.macromedia.com/devnet/mx/dreamweaver/css.html
    http://www.macromedia.com/devnet/dreamweaver/articles/tableless_layout_dw8.html
    http://www.macromedia.com/devnet/dreamweaver/articles/css_concepts.html
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Media Fusion" <[email protected]> wrote in
    message
    news:[email protected]...
    > What would you suggest then, and why not layers? I am
    just going off of
    > what I
    > know and I am completly open for correction or cretique
    on process,
    > thought
    > process etc...
    >
    >
    quote:
    Originally posted by:
    Newsgroup User
    > Ugh.
    >
    > Layers? Surely you jest?
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    > ==================
    >
    >
    > "Media Fusion" <[email protected]>
    wrote in message
    > news:[email protected]...
    > > yes excatly, nothing should change when you bring
    the files from mac to
    > > pc, the
    > > only thing that may be a slight issue is how you
    coded the fonts for
    > > text.
    > > As
    > > long as you set it up with pretty universal fonts
    not much should
    > > change.
    > > I go
    > > cross platform all the time, code is code. If you
    want to really contain
    > > the
    > > positiong and location of your site design look in
    to using layers in
    > > combination with tables. That fixed my problem with
    how different
    > > browsers
    > >
    >
    >
    >
    >
    >
    >

Maybe you are looking for

  • I unchecked "sync bookmarks and notes" on iBooks in settings but I still keep getting books my wife has highlighted, how do I stop this?

    There is bound to be someone smarter than me! How do I do thiS? we download and study the same ibooks for a class discussion, but when I download I get all her nights and notes in the margins, how do I just download the book from our account without

  • Get file name and path from  adf inputFile

    Hi, I use adf's inputFile component. I need to get the file name and filePath. Does anyone knows how to do that? Thanks in advance

  • Debit and Credit in FB50

    Dear All, We use FB50 to post JV's. Is there any way to display the difference b/w Debit and Credit on the same screen without simulating. When there is a difference in Debit and Credit the indicator is red and when Debit is equal to credit indicator

  • 5508 Reporting on Offline AP's (UP/DOWN)

    Apologies if this is posted in the wrong spot or a duplicate post that maybe has been already answered. We have a Single 5508 controller deployed with 284 AP's attached at the moment. Every day I get mixed amount of AP's that are offline for whatever

  • Call web service using Java code

    Hi all, Sorry if this question sounds stupid. I am new to web services. I am having a web service written in oracle, using soap-api. I want to call this web service in Java application, parse the result and save it in the database. Can anyone please