Need to set the Vissible row count Dynamically

Hi,
   I have requirement where i am supposed to set the Vissible row count for a table dynmaically, depending upon the number of rows in a table.

Or use a calculated attribute.
Create an attribute in the context called calcVisibleRowCount of type integer and make it read only and calculated. Then bind that attribute to the visibleRowCount attribute of your table.
The method for the attribute looks something like this:
(this displays 10 rows per page if more than 10 records in the node, otherwise it displays the same number of rows in the table as in the context)
  public int getCalcVisibleRowCount(IPrivateStartsida.ILayoutElement element)
    //@@begin getCalcVisibleRowCount(IPrivateStartsida.ILayoutElement)
          if (wdContext.nodeXXXX().size() > 10) {
               return 10;
          } else {
               return wdContext.nodeXXXX().size();
    //@@end
Note that this attribute is not created in the node that you want to count number of elements in.
Edited by: Richard Linnander on Apr 1, 2011 3:41 PM

Similar Messages

  • Setting the Vissible Row count Dynamicaly

    Hi,
        I need to set the Vissible row count dynamically in Webdynpro Java, depending upon the number of rows in the internal table.

    Hi Delphi,
    This is Webdynpro ABAP Forum, Try to post in Webdynpro Java. I dont know WD Java.
    Create one attribute of type i  ex : COUNT TYPE I, and bind to visible row count property of table.
    In code Describe table and get total no of records to one variable.
    Finally use Set_attribute - Pass COUNT Value. Now Based on Count Value you get no of table rows.
    Hope it Helps.
    Cheers,
    Kris.

  • HT5622 I have just received a new iphone 5s and need to set the Apple ID with my work email.  I used my work email on my personal iphone 4s to set up an icloud account and it will not let me use my work email as the Apple ID on my new iphone. What do I do

    I have just received a new iphone 5s and need to set the Apple ID with my work email.  I used my work email on my personal iphone 4s to set up an icloud account and it will not let me use this email as the Apple ID on my new iphone.  As it is a work phone I need to use this email address as my Apple ID.  How do I do this?

    when you open the app store scroll down to the bottom it will display the apple id currently in use, change it to your normal apple id email

  • How to set the Selected row and Column in JTable

    Hi,
    i have a problem like the JTable having one Method getSelectedRow() and getSelectedColumn to know the Selected row and Column but if i want to explicitly set the Selected Row and Column,then there is no such type of Methods.If anybody has any solution then i will be thankful to him/her.
    Praveen K Saxena

    Is that what you're looking for? :myTable.getSelectionModel().setSelectionInterval(row, row);
    myTable.getColumnModel().getSelectionModel().setSelectionInterval(column, column);

  • I need to set the position of components on a page that contains a MenuBar,

    I need to set the position of components on a page that contains a MenuBar, but MenuBar does not provide a getPreferred size method.
    How can I get the MenuBar's size in AWT?
    Thanks.

    A menubar is not a general component that is added to a frame like any another. It is the specific responsibility of the setMenuBar/setJMenuBar methods to deal with this.

  • [svn:fx-4.x] 15171: In SpriteVisualElement.addingChild() need to set the nestLevel if ILayoutManagerClient or if IUITextField ( this was missing).

    Revision: 15171
    Revision: 15171
    Author:   [email protected]
    Date:     2010-03-31 10:21:49 -0700 (Wed, 31 Mar 2010)
    Log Message:
    In SpriteVisualElement.addingChild() need to set the nestLevel if ILayoutManagerClient or if IUITextField (this was missing).  Because of this styles weren't being set up in the text field
    QE notes:
    Doc notes: None
    Bugs: SDK-25987
    Reviewed By: Alex
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-25987
    Modified Paths:
        flex/sdk/branches/4.x/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as

    PS-Since I am missing some of my app. cd's, with
    Macintosh, are u able to just drag the app. folders
    and drop them on your new Mac and they are fully
    executable? In other words, are all Mac compatible
    programs self contained within their app. folder, and
    they can be simply dragged and dropped without having
    to be installed? Or is it that some apps can, and
    other mac apps have to be installed/restored from
    b.up software?
    Answer to this: it doesn't work. I tried it; my hard drive started having issues and I did "backups" in this way by dragging and dropping the applications to DVDs. By the time I bought an external HD a couple of days later, I couldn't use my laptop at all anymore, and after replacing the laptop's HD I tried to use the DVDs with copies of the applications. And they did NOT work. Ultimately I only lost a few things--.Mac's Freefall is the only thing that comes to mind right now--but reinstalling all the applications from original disks or from downloads (and tracking down the purchase receipts!) was very time-consuming. Fortunately the folks at the store just shrugged and put iLife back on the system for me, since I had no idea how to extract it off the disks that came with the computer.
    I think dragging and dropping did work with A FEW things, but only with basic stuff like Widgets.
    Hopefully if/ when disaster strikes again, the cloned drive I now have will make everything much easier. I'm using SuperDuper and it seems to work well enough.
    Oh, and I had all my photos/ music/ pictures/ documents/ calendars/ address books/ keychains/ mail backed up in a variety of ways: simply burnt to disk, or burnt to disk using .Mac's backup, or on iDisk. I got all that stuff back without difficulty. The applications were the hassle and so far as I can tell, the applications are what make cloning essential.

  • Need to set the account ID twice for CampaignManagementService?

    We're using GetCampaignsByAccountIdRequest to get the list of campaigns in an account.
    We found that we must set the account ID for the request to succeed:
    GetCampaignsByAccountIdRequest.setAccountId(AccountId);
    However, it seems it's also mandatory to set the account ID when crreating the java service stubs:
    BasicHttpBinding_ICampaignManagementServiceStub _service;
    CampaignManagementServiceLocator locator = new CampaignManagementServiceLocator();
    _namespace = locator.getServiceName().getNamespaceURI();
    _service = (BasicHttpBinding_ICampaignManagementServiceStub) locator.getBasicHttpBinding_ICampaignManagementService();
    _service.clearHeaders();
    _service.setHeader(_namespace, "CustomerAccountId", AccountId);
    Do we indeed need to set the AccountId twice as above?
    Thanks

    As a best practice you should always specify the identifier of the account being accessed in the CustomerAccountId header
    element. Some of the campaign management operations for example GetCampaignsByAccountId,
    require that you specify the account ID in the request message body, and most of them require that you specify the account ID in the CustomerAccountId header
    element.
    In a future version of the API we plan to make this more consistent, for example exclude the AccountId from the body, and only require CustomerAccountId in the header. 
    I hope this helps!

  • My dad died and I need to set the IPAD up as new.  How do I do that?

    My dad died last May and my mom gave me his iPad to use.  I need to set the iPad up as new but having problems.  I tried the online restore instructions using iTunes, but I can not read my dads apple password completely.  I have his apple ID but the password he wrote down is in pencil and fuzzy to read 2 letters correctly.  Does anyone know how to totally reset this?

    Brian, thank so much for this info.  I have been plugging along on the internet to find an answer to this puzzle before I had to go to the Apple store cuz I know it will cost some bucks to fix.  I am on a starving artists income, so god love the internet cuz I finally found the solution on this link.  I hope it can help others with the same problem like me.  Step #1- I had the latest version of itunes on my pc originally cuz I have an ipod, but I ended up having to uninstall and reinstall the latest version.  Than 2nd step I had to reset my host file too (do not ask me why, but follow this link's info for step 2)- thttp://support.microsoft.com/kb/972034
    Here is the rest of the instructions on this link to now follow for step #3.  http://www.macworld.co.uk/how-to/iosapps/how-hack-ipad-iphone-passcode-3504927/
    I appreciate everyone's support on this matter, my thanks!

  • SP2010 I need to set the include in search option switch on all document libraries to off across all site collections on the whole farm?

    SP2010 I need to set the include in search option switch on all document libraries to off across all site collections on the whole farm?
    Has anybody seen If this can be done programmatically any help would be gratefully welcomed thanks.

    i am not sure about the script, why not create crawl rule which will exclude the allitems.aspx from showing in the search results.
    Go to search service application, crawling section, click crawl rules to create a crawl rule to excludehttp://*allitems.aspx page.
    also check this:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/f431dd0e-871b-4f9e-990e-8f3b7ca932a4/crawl-rule-exclusion-sharepoint-2013
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • The last row count

    how can i make it when i after insert the data in a table ,it let me know the new total row number or the last row number.
    example.
    -now got 12 row datas
    -after i insert a new entry
    -it tell me now is row 13
    thanks

    Re: the last row count
    jesperdj Registered: Jun 10, 2003 1:00 AM      Nov 10, 2005 2:05 AM
    Let's get this straight first: You are talking about inserting a row into a database and counting the number of rows in a database table, right?
    Or are you talking about a table in a GUI?
    inserting row into a database is not a problem..and then..where after i insert the data into the database..i will retrieve the whole database and display it in my TAble in GUI...my problem now is..how i make it to highlight the new insert data in my table?or other way to say,how i highlight my newly insert datarow in my table?

  • HT3180 setting date and time - my apple tv get stuck and says it needs to set the network date and time.  Does anyone know how to do this?

    My apple tv gets stuck and says it need to set the date and time on the network.  Does anyone know how to do this?

    I was able to get my Apple TV working again by downgrading the firmware following the instructions in this message:
    https://discussions.apple.com/message/20008613#20008613
    In case that message disappears, here's my translation:
    1. Connect your Apple TV to your computer via USB. Don't plug in the power cable.
    2. Download the older 5.0.2 firmware from Apple here:
    5.0.2 (Apple TV 2): AppleTV2,1_5.0.2_9B830_Restore.ipsw
    5.0.2 (Apple TV 3): AppleTV3,1_5.0.2_9B830_Restore.ipsw
    3. Open iTunes and select the Apple TV. Hold down the option key and press the restore button at the same time.
    4. In the dialog that opens select the firmware that you downloaded.
    5. The restore process will take a few minutes. Once it's done plug your Apple TV back into your TV. If the date and time message persists just press the menu button to skip it. This got mine working again.

  • How do I set the value of a dynamic row text field

    I have a repeated row form which contains a button and multiple text fields.  There is a text field (Input Data Field) further up with some information I want to place in the table and multiple buttons that I want to read the value of and set to the table.  I apologize there are multiple questions I have and I am using pseudocode to describe it.
    Top form looks like
    InputField
    | ButtonX1 | ButtonY1 | DescriptionX1 (read only Text Field)
    | ButtonXn | ButtonY1 | DescriptionXn
    OutputRow looks like
    | ButtonOutput | OutputField1 | OutputField2 | OutputField3 |
    So I would like it to do
    ButtonX1.click
    OutputTable.OutputRow.addInstance(true)  //this works - everything else I have questions on
    OutputTable.OutputRow.OutputField1.rawValue = DescriptionX1.rawValue
    Question 1
    How do I address the location in each table to set a value
    Question 2
    How do I get the value of the description field in the same table and row as the button
    I would like to say something to the effect of  OutputTable.OutputRow[??].OutputField1.rawValue = this.parent.DescriptionX
    OutputTable.OutputRow.OutputField2 = InputField.rawValue
      Same question as above - how do I specify a dynamic row - is this the proper syntax for getting the value from the input field?
    OutputTable.OutputRow.OutputField3 = this.ButtonLabel
    Question 3
      How can I get the value of the button's label to set in the field
      There should be very many of these buttons and buttons will be added - I would prefer to set the value based on the button's label to make the value easier - not requiring changing the code
    Question 4 - unrelated to those above.
    Is it possible to build the first table
    | ButtonX | ButtonY | Description |
    from an XML File.  I have seen examples of how to build if it is just data, but can the XML be pushed into a form with code to do the above actions?

    Each object in a form must have a unique name. I doing so it is not neccessarily the name but the path or SomExpression associated with that object that must be unique. In your case you have a Table.Row.object configuration. The Row is the part that is repeating so to give each object a unique name an instance number is placed on the repeating part. So objects in the 1st row woudl be Table.Row[0].object...objects in the second row woudl be Table.Row[1].object etc .....You can see this by adding a debug instruction on the Enter event of the description field. Put the code app.alert(this.somExpression) and when you enter the field you will see what the somExpression is. Do this for a few rows and you will see the pattern (don't forget to remove the debug code from the enter event). Now you know what you have to use to address the fields. If no instance is given it is assumed to be 0 ..that is why only the 1st row is being affected.
    So now to answer your questions:
    Question1: The square bracket notation is an issue for javascript (this is the notation for an array) so we have to use a different means of addressing the field to include the instance number. So to address the Description in the 3rd row we woudl use:
    xfa.resolveNode("Table.Row[2].Description").rawValue = "This is my new description";
    Note that the instance number is 2 for the 3rd row because the instance numbers are 0 based.
    Question2. The resolveNode notation allows you to pass a string so you can also concatinate expressions to make the string. If you are writing code on a button in the same row you can get the instance that you are on by using the expression this.parent.index. The "this" portion refers to the current object (the button) and the parent.index gets you th eindex of the Buttons parent. If the button is embedded deeper in a hierarchy then you can continue to add parent indicators until you get back to the node that you want. So rewriting your expression from Q1 it woudl be:
    xfa.resolveNode("Table.Row[" + this.parent.index + "].Description").rawValue = "This is my new description";
    Question3: The buttons caption can be retrieved by using ButtonName.caption.value.text.value
    Question4: When you say build from an XML file. What are you expecting to come from the XML file? The caption that goes on the button? Typically the XML file carries data (not to say that it cannot carry other things). Just need a bit of clarification on this one first.
    Hope that helps
    Paul

  • How to set visible row count dynamically

    i  need to place input field so that user enters value for visible row count in ALV WEBDYNPRO

    Hi Prabhu,
    As Suggested use set_visible_row_count. First count your table entries. based on count display records.
    count = LINES( lt_n_contract ).
      IF count > 5.
        lt_table_settings->set_visible_row_count( value  = 10 ).
      ELSE.
        lt_table_settings->set_visible_row_count( value  = 3 ).
      ENDIF.
    Cheers,
    Kris.

  • How to get the duplicate rows in dynamically generate data table [list items collection] and send emails in sharepoint2010

    Hi,
    i have share point list like  below
    ID   name AdminEmail Useremail   URl   DueDate   UploadSatus
    1    ppp     [email protected]  [email protected]    url  some date    uploaded
    2    yyy       [email protected]   [email protected]   url somedate    empty
    3  xxx         [email protected]   [email protected]    url   somedate   empty
    4  jjj           [email protected]    [email protected]  url     somedate   emp
    AdminEmail and UserEmail  are lookup column
    i using query the list using caml query
    inside of foreach i am checking  two condition like below
    one is upload status in not empty
    i need to send to mail to admin user  this part i have done my adding all list items which have datatable apply group by working fine
    in send condition i am checking difference between DueDate And current date value
    if the value is =1 or -1
    if the value is i
    thank
    i am getting the
    table like below
    ID   name AdminEmail Useremail   URl   DueDate   Upload
    2    yyy       [email protected]   [email protected]   url   somedate    empty
    3  xxx         [email protected]   [email protected]    url   somedate   empty
    4  jjj           [email protected]    [email protected]  url     somedate   empty
    my issue is here  how can i get the dynamic table rows which are same values of AdminEmail and user email  one set and distintict rows are another set
     sets which are same emails are same
    3  xxx         [email protected]   [email protected]    url   somedate   empty
    4  jjj           [email protected]    [email protected]  url     somedate   empty
    set 2
    2    yyy       [email protected]   [email protected]   url   somedate    empty
     how can i get this separate this can any one tell i need to send mail only one time to user [adim and user] .planing to aviod duplicate mail
    Srinivas

    your case better to use the two data tables to store the data
    DataTable dt = list.Items.GetDataTable();
    foreach (DataRow row in dt.Rows)

  • Maximum Row Count - dynamically change

    Hi,
    How can I change dynamically (eg. from some item) value "Maximum Row Count" in "Report Attributes -> Layout and Pagination"?
    Is this possible?
    best regards,
    Jarek

    Thank you for your answer, but I want to do something else.
    I want to show all rows from my query in report with pagination.
    The number of rows increases.
    According to documentation, field "Number of Rows" sets the number of rows which I can see on one page and field "Maximum Row Count" sets the maximum number of rows which I can see on all pages (number of rows to query).
    I thougth, that when I set (before page is shown) a variable from eg. query "SELECT count(*) FROM table", I will be able to put this variable name in "Maximum Row Count" field, to see all rows from my query. However this field is the numeric field and I can't put any variable name there :(
    The only way to always show all records from my query is to set "Maximum Row Count" field to very high number? Is this natural way in apex? Is this only way?
    best regards,
    Jarek

Maybe you are looking for

  • Strange problem in module pool programming

    Hi all, we have a module pool program which consists of screen 100 and 200 and 3 sub-screens 201,202 and 203.the problem is when we double click on any field we get a pop up message which should appear only when we press the 'SAVE' button for which o

  • Content viewer not working?

    Hi My shared folios do not show up in content viewer in ipad. I have signed out and then in, nothing. Both old shares and newly created ones. What's up?

  • Setting up the FTP in OBIEE Delivers.

    Hi All, My requirement is to transfer an ibot which been generated in the PDF format from one machine to another. I know this can be done using the settings in advanced delivery options like java script. Can anayone suggest me the settings need to be

  • Embedded POWL  / FPM

    Hi All, i have embedded a BOWL into a WD-component and use this component in a FPM variant. The FPM Configuration has tow variants. Problem. when switching between the two variants the POWL loses the query that was previously selected. Question: Is t

  • Audio on Power Point files

    When I receive an email with a .pps file, there is no audio when it's played back.