How to add paging component

Hi,
In my repository, there may be a large amount of objects under one folder. Is there any paging component with which we can only retrieve limited amount of objects at one time, just like that in data base?
Thanks,
Ray

Hi Sandip,
I've seen someone mentioned paging component, in KM Flex UI.
Yes, my purpose is to fetch only limited number of objects from backend at one time. Just like Anupama said, fetch and display only 20 objects in one page and a button below to see rest objects.
For example, I have 100 files under directory /myrep/folder1; when a user clicks on folder1,
findResources()
in
IMutableNamespaceManager
will be called, which will in turn call
getChildren()
, which, without paging, will fetch all 100 files from backend, but I just want it to fetch the first 20 records, for one page.
So, to limit the number of objects fetched from backend, what can I do with the query, or paging component, or the layout...
Thanks,
Ray

Similar Messages

  • How to add HR component in Netweaver 2004

    Hi
    i was installed sap Netweaver 2004 successfully. It has BASIS, ABAP, BI components available by default.
    i want to add HR component. How to do it???? What is the Link in SMP?
    pls. provide solution
    regards
    raghu

    Reyes!
    Yes. i checked "Package level" from SPAM. It shows ONLY following components,
    BASIS        640  
    ABAP         640
    PI_BASIS   2004_.....
    BI               3.50 
    Now how do u add HR component, logistics and others.............
    Psl. provide solution.......... it's urgert..........
    regards
    raghu

  • How to add one component when some action take place

    Hi,
    i created a GUI using Netbeans Ide, In that i want add a component when i click some button
    i showed it here see the diagram
    [click here to see|http://www.mediafire.com/imageview.php?quickkey=jtgzjrfenwm]
    my sample code
    public class ProcessFiles1 extends javax.swing.JFrame implements ActionListener,
                                                        PropertyChangeListener{
        private JProgressBar progressBar;
        / Creates new form ProcessFiles1 */*
    *    public ProcessFiles1() {*
    *        initComponents();*
    *    /** This method is called from within the constructor to
    *initialize the form.*
    WARNING: Do NOT modify this code. The content of this method is
    *always regenerated by the Form Editor.*
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">
        private void initComponents() {====================================>here i am not adding Progress bar
                                                                                                                             to GUI
            jToggleButton1 = new javax.swing.JToggleButton();
            jToggleButton2 = new javax.swing.JToggleButton();
            jComboBox1 = new javax.swing.JComboBox();
            jLabel1 = new javax.swing.JLabel();
            jLabel2 = new javax.swing.JLabel();
            jComboBox2 = new javax.swing.JComboBox();
            jScrollPane1 = new javax.swing.JScrollPane();
            jTextArea1 = new javax.swing.JTextArea();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            setTitle("Admin@localhost");
            setIconImage(Toolkit.getDefaultToolkit().getImage("c:\\Logo.PNG"));
            jToggleButton1.setText("Select File");
            jToggleButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    FileChooser(evt);
            jToggleButton2.setText("Run Files");
            jToggleButton2.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    addComp(evt);
            jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
            jComboBox1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jComboBox1ActionPerformed(evt);
            jLabel1.setText("Success");
            jLabel2.setText("Faild");
            progressBar = new JProgressBar(0, 100);
            progressBar.setValue(0);
            progressBar.setStringPainted(true);
            jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
            jTextArea1.setColumns(20);
            jTextArea1.setEditable(false);
            jTextArea1.setRows(5);
            jScrollPane1.setViewportView(jTextArea1);
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());=================>from here i am adding components
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addGap(26, 26, 26)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 965, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(layout.createSequentialGroup()
                            .addContainerGap()
                            .addComponent(jToggleButton1)
                            .addGap(18, 18, 18)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jToggleButton2)
                                .addGroup(layout.createSequentialGroup()
                                    .addComponent(jLabel1)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(32, 32, 32)
                                    .addComponent(jLabel2)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                    .addContainerGap(29, Short.MAX_VALUE))
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jToggleButton1)
                        .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel1)
                        .addComponent(jLabel2)
                        .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(26, 26, 26)
                    .addComponent(jToggleButton2)
                    .addGap(18, 18, 18)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 583, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(20, Short.MAX_VALUE))
            pack();
        }// </editor-fold>
    private void addComp(java.awt.event.ActionEvent evt)---------------------------------------->when 'runfile' button clicked i am
                                                                                      trying to add progressbar component it is not adding
           layout.addLayoutComponent("Progress", progressBar);
           pack();
         }how can i add progressbar when runfile button clicked
    please any one focus some light on this
    Thanks in advance,
    Nagaraju.
    Edited by: uppala on Dec 18, 2009 11:33 AM

    Well, normally the code would be:
    panel.add( someComponent );
    panel.revalidate();But since you are using the IDE to generate your code you need to learn and understand how to use the GroupLayout and all its constraints to add the component.
    My advice is to get rid of the IDE generate code and create the GUI yourself.

  • How To add One component to a TabbedPane

    Hi,
    I have a TabbedPane with four tabs in it
    the tabs are created dynamically it may be four or five
    i want to add only one component to it i.e JTable
    if i just add a component to the tabpan like below
    tabpane is an instance of JTabbedPane
    tableofvalues is an instance of JTable
    tabpane.add(tableofvalues); this code creates a
    default tab and add the component
    but i dont want the default tab i just want only the component
    can somebody please give me a solution for this
    give me the overiding function also

    i need to add one component which is common to all the tabs You can't. A component can only be added to a single container.
    However you might be able to share a model. For example:
    JTextField forTab1 = new JTextField("some data");
    JTextField forTab2 = new JTextField( forTab1.getDocument() );

  • How to add sprite component to application

    Hi,
    In my application i am using a custom component which
    extends Sprite class. I am adding this component to application as
    <local:mySprite width="500" height="300" /> but it is showing
    following error on application run;
    Type Coercion failed: cannot convert mySprite@129be5e1 to
    mx.core.IUIComponent.
    How should i overcome this problem, if any suggestion please
    reply.
    Thank you.

    Everything you add to the display list of the application
    must implement IUIComponent. Wrap the sprite in a UIComponent or
    UIMovieClip.

  • How to add new component to JFrame dynamically?

    Hello,I'm now study the GUI and here i meet a problem.I want to display a pic use JComponent.In paint() method i paint the pic.because i use a button to open a FileDialog to choose a pic file and send the path info to the constructor of JPicPane(i extends it from JComponent),so it will be add to the frame when it was visible and we know that there is a swing thread problem.so i use invokeLater(new Runnable(){....pack();});I want to know besides pack() can i use other method to change the layout sothat the new component could be displayed.becasue pack() will make the frame changeits size.(it displays the preferred size of components?) I don't want it make the frame change size and the component be displayed,is there any approch else?one method occur to me is chang the prefer size of contentPane sothat the pack won't make the frame small.is there any other method?and by the way,what's the different between invokeLater and invokeAndWait?
    thank you all! thank you!

    No idea why it is slow(er). The difference between invokeLater and InvokeAndWait are described here and in the tutorial that is linked there.

  • How to add calender component

    hi maxideon. i done upto the diagram which is shown to you. now i have small problem
    anybody please go through this link then you will get idea
    [http://www.mediafire.com/?sharekey=c2ec1a687d8279f091b20cc0d07ba4d2ddbbdb9f07ee802d]
    in the paint diagram i wrote "i want a seperator like that to the existing structure" after that i have a calender class,i want to add that calender below of that seperator(i am showing with green box).how can i add it.please help me
    thanks in advance
    nagaraju.

    i done as you told but i got some problem. when i doing like below my tree struture frame totally disappeard the freshely added calender appeard.
    public class HorizantalDemo extends JPanel
      private JSplitPane splitPane;
      private JTable jtable;
    JPanel p=new JPanel();
      JSeparator  js=new JSeparator();
    splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,
                                       jsp, jsp1);-------------------------------------------------->*split pane created with tree strucute(left side) table structure(right side)*
            splitPane.setOneTouchExpandable(true);
            splitPane.setDividerLocation(150);
              p.setLayout(new BoxLayout(p,BoxLayout.Y_AXIS));--------------->*box layout*
            p.add(js);-------------------------------------------------------------------->*adding jseparator to Jpanel*
            p.add(new UseJCalendar());----------------------------------------->*adding calender class to Jpanel*
            splitPane.setLeftComponent(p);------------------------------------>*adding Jpanel left side of the splitPane(while doing this total tree structure and table structure in splitPane disappear and this calender only appear,actually this calender need to appear below the tree structure with seperator)*
    frame.getContentPane().add(splitPane);the above one is my problem please help me
    thanks in advance
    nagaraju.

  • How to add a text Component ( text annotation) to the Tiff Image

    Hi.............
    This is the first time I am using Sun Developers Forum.......................
    My problem is.............I want to add a component ( Text or Label ) to the Tiff Image which is displayed on the JIMICanavs [ from JIMI API ].
    Even , if anybody knows about How to add a component to the JIMICanavs , Please help me..................................

    I'm curious: is JIMI still popular? What advantange does it have over the current Java 2D support in the J2SE, or over JAI?

  • How to add a new url link in a view of an existing webdynpro component?

    How to add a new url link in a view of an existing webdynpro component?

    hi ,
    refer SAP online hep :
    Implementing Enhancements in a View
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/46/233f2189f74f08e10000000a114a6b/frameset.htm
    To enhance the layout of the view, you can create new UI elements. This procedure is no different u2013 from a technical viewpoint u2013 from creating UI elements in components themselves. All UI elements created within the enhancement implementation can then be processed as usual.
    Enhancements  means inserting user developments into SAP development objects at predefined positions.
    The Enhancement Framework enables you to add functionality to standard SAP software without actually changing the original repository objects, and to organize these enhancements as effectively as possible.
    refernce :
    have a look at this article
    How to Create Enhancement Implementation in Web Dynpro ABAP
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/700317da-bd79-2c10-368e-8f18bf5d8b81&overridelayout=true
    as pointed correctly by Saurav in earlier thread
    regards,
    amit

  • How to add adf faces in component pallete of jdeveloper 11g?

    how to add adf faces in component pallete of jdeveloper 11g?

    Hi,
    the replacement of ADF Faces HTML components in JDeveloper 11 is Trinidad. For existing applications, a migration path will be provided in JDeveloper 11 production. I wouldn't recommend configuring ADF Faces in JDeveloper 11.
    You an configure ADF Faces Components in JDeveloper 11 by :
    - Tools --> Manage Libraries
    - Create a User Library
    - select ADF Faces adf-faces-impl.jar
    - Enure the namespace is not af or afh but something different to not cnflic with teh ADF Faces RC components
    Note that adding the ADF Faces components to the component palette will not make them show in the ADF binding context menu nor will it automaticaly set up the web.xml file. The components are available as any other JSF library set
    Again, I wouldn't go this way ;-)
    Frank

  • How to add interface to customlize MXML Component when use Flex Builder 3?

    How to add interface to customlize MXML Component when use
    Flex Builder 3?

    David,
    I don't believe you can add the interface via the creation
    dialog in FlexBuilder 3. You can always manually add the
    "implements" property to your MXML Component root tag. Something
    like this: <mx:VBox implements="com.mycorp.IMyInterface">
    If you want autogeneration of the interface, then create an
    ActionScript class with that interface and then copy the generated
    functions and setter/getters into the script block of your MXML
    component.

  • How to remove and add the component to JFrame at runtime.

    Hi
    How to delete the JTabbedPane component from the Jframe at runtime and how to add the same component with different data at runtime.
    But the remaining components should not distrub.
    When i try to delete and add the component at runtime the remaing components are distrubed.
    when i minimize and maximize the screen, the components are adjusted. but i need a help on this without minimize and maximize the screen.

    Hi
    I am sending my code snippet, please look into this......i am doing the same even though i am not able to..................can u suggest anything seeing this code snippet.
    here one function called createtabpane (It creates the JTabbedpanes with the table information at runtime).
    private void getTimeSheetObj(String weekDate){
    //Object[][] rowObj=null;
    try {
    System.out.println("Inside the gettimesheet method try block");
    if(projTables!=null){
    for(int i=projTables.length-1; i>=0; i--){
    JTable jt = projTables;
    jTabbedPane_Main.remove(jt);
    System.out.println("Removing Table:"+i);
    jPanel_Tabbedpane.remove(jTabbedPane_Main);
    jTabbedPane_Main = new JTabbedPane();
    jTabbedPane_Main.revalidate();
    jPanel_Tabbedpane.revalidate();
    getContentPane().validate();
    getContentPane().repaint();
    jTabbedPane_Main.addChangeListener(new ChangeListener(){
    public void stateChanged(ChangeEvent ce){
    getTabbedPaneListenerValues();
    // this.setState(JFrame.ICONIFIED);
    // this.setExtendedState(JFrame.MAXIMIZED_BOTH);
    res = GetTimesheetResponseDocument.Factory.parse(new File("C:\\Narayana.xml"));
    response = res.getGetTimesheetResponse();
    proDets=response.getProjectDetailsArray();
    numOfPro = proDets.length;
    String taskDayValues[] = new String[8];
    System.out.println(numOfPro);
    proArr=new Object[numOfPro];
    Object[][] taskValues=null;
    for(int p = 0;p<numOfPro;p++){
    System.out.println("Inside1");
    taskDet = proDets[p].getTaskDetailsArray();
    taskValues = new Object[taskDet.length][8];
    for(int t=0;t<taskDet.length;t++){
    System.out.println("Inside2");
    taskValues[t][0] = (taskDet[t].getTaskName());
    taskValues[t][1] = (taskDet[t].getDay1HH()+":"+taskDet[t].getDay1MM()).toString();
    taskValues[t][2] = (taskDet[t].getDay2HH()+":"+taskDet[t].getDay2MM()).toString();
    taskValues[t][3] = (taskDet[t].getDay3HH()+":"+taskDet[t].getDay3MM()).toString();
    taskValues[t][4] = (taskDet[t].getDay4HH()+":"+taskDet[t].getDay4MM()).toString();
    taskValues[t][5] = (taskDet[t].getDay5HH()+":"+taskDet[t].getDay5MM()).toString();
    taskValues[t][6] = (taskDet[t].getDay6HH()+":"+taskDet[t].getDay6MM()).toString();
    taskValues[t][7] = (taskDet[t].getDay7HH()+":"+taskDet[t].getDay7MM()).toString();
    System.out.println("After taskvalues");
    proArr[p]=taskValues;
    createTabPanes(jTabbedPane_Main, proArr);
    System.out.println("outside");
    jPanel_Tabbedpane.add(jTabbedPane_Main);
    jTabbedPane_Main.getAccessibleContext().setAccessibleName("Proj");
    getContentPane().add(jPanel_Tabbedpane);
    pack();
    }catch(XmlException xe) {
    System.out.println("Inside the XmlException block");
    System.out.println(""+xe.getMessage());
    } catch(IOException ioe) {
    System.out.println("Inside the IOException block");
    System.out.println(""+ioe.getMessage());
    /* JOptionPane.showMessageDialog(null,
    "Values Displayed in the below tables",
    "Alert!",JOptionPane.ERROR_MESSAGE); */
    System.out.println("Initial JFrame Bounds:"+this.getBounds());

  • How to dynamicly add a component to a panel

    when I click a button, I want to add a component to a panel, how can I do ?
    I try to do this:
    public void actionPerformed(ActionEvent e)
    contentPane.add(label,"north");
    contentPane.repaint;
    but there is no effect. Could u help me?

    Could you tell me why the repaint method doesn't work?repaint() does some low level validation and its more often suits for refreshing JList,TextFields etc etc...
    JPanel is somehow a more weighted component compared to JLabel,JTextFields etc,etc and hence it needs some heavy refreshing and these heavy refreshing can be obtained by doLayout() and validate() and some times both.
    when I add a component into another component, how can I get the new performace of the updated component?Is there a universal way? Pls put ur question more clearly.

  • How can add some suggested value to a propert on a Declarative Component,

    how can add some suggested value to a propert on a Declarative Component?

    kenyatta,
    Where you want to add the value ?
    If you want put some UIComponent(Value) to your declarative Component than follow my blog ( http://jneelmani.blogspot.com/2009/02/11g-how-to-create-declarative-component.html ) and add your value in STEP-5.
    You can watch live-demo at http://www.oracle.com/technology/products/jdev/viewlets/viewlet.html
    --Neelmani Jaiswal
    Edited by: Neelmani Jaiswal on Mar 23, 2009 11:11 AM

  • HT1752 I am working on a chart in paged with 7 columns. Problem has occurred with amount of row. I have completed 999 rows and it won't allow me to continue. As I need to do approx 3000+ rows, can anyone explain to me how to add extra rows. Thanks Jane

    I am working on a chart in pages with 7 columns.
    Problem has occurred with amount of rows. I have completed 999 rows and it won't allow me to continue. As I need to do approx 3000+ rows, can anyone explain to me how to add extra rows. Thanks Jane

    Try posting in the Pages forum
    https://discussions.apple.com/community/iwork/pages

Maybe you are looking for