is it possible to apply the sort on the columns added to a dynamic display object?

Hi all


We use JDeveloper Studio Edition Version 12.1.3.0.0 and deployed on GlassFish Server Open Source Edition 3.1.2.2 (build 5) and connect to the SQLServer database.


We have created a dynamic display object in the AM Impl, all objects in view columns are added dynamically.


All lines are displayed correctly, but when sorting columns data disappear. (point of view are being refreshed, of course).


is it possible to apply the sort on the columns added to a dynamic display object?

This is how we show data in the JSF page:


< af:table lines = ' #{bindings. " DynamicVO.rangeSize}' fetchSize = "#{bindings." DynamicVO.rangeSize}.

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

var = 'row' rowBandingInterval = '0' value = ' #{bindings. " DynamicVO.collectionModel}.

selectedRowKeys = ' #{bindings. " DynamicVO.collectionModel.selectedRow}.

selectionListener = "#{bindings." DynamicVO.collectionModel.makeCurrent}.

rowSelection = "single" id = "t1" >

< af:forEach elements = "#{bindings." Var DynamicVOIterator.attributeDefs}' = 'def' varStatus = 'vs' >

"< af:column headerText =" #{def.propertyMap.label} "sortable ="true"sortProperty =" #{def.name} ".

ID = "clmn$ {vs.index}" >

< af:outputText value = "#{row [def.name]}" id = "ot1" / > "

< / af:column >

< / af:forEach >

< / af:table >




Thanks guys, I created a custom class that contains a model that can be sorted in a pod of support and I have to the adf work table it and it is very good about sorting.

JSF:

Rows = "#{pageFlowScope.crudBean.dynamicTable.collectionModel.RowCount} '"

contentDelivery = 'immediate' var = 'row' rendered = 'true '.

Binding = "#{backingBeanScope.crudBackingBean.tasksTable} '"

selectionListener = "#{backingBeanScope.crudBackingBean.customListener} '"

"rowSelection ="single"id ="t1"partialTriggers =": pt_gr2 "columnStretching =" column: clmn0 ">

inlineStyle = "width: 100px;"  ID = "clmn$ {vs.index}" > "

Tags: Java

Similar Questions

  • Is it possible to apply the gradient to a textbox control.

    Is it possible to apply the gradient to a textbox control.

    Thank you

    Ayathas

    If it is an ordinary instance of textfield, you can still exclude the background (textfield.background = false) and draw a fill behind it to give the impression of a graadient barrier.

  • It is possible to reach the column of the table pagination in the ADF?

    I have this huge table of important data and want to have some "frozen" a table and beside him several pages of groups of columns that I can see with a 'next' button, "previous", similar to this site:

    Regular season standings | MLB.com: Standings

    is this possible in ADF 12 c?

    Thank you in advance,

    Nik12c

    Hello

    You might have a property defined in the bean and set the visible property for the columns according to its value. Set the required values in the actionListener to the buttons.

    For ex: here's an example using the Emp table.

    JSPX source:

    
    
                    
                    
                        
                            
                                
                            
                        
                        
                            
                        
                        
                            
                        
                        
                            
                                
                            
                        
                        
                            
                                
                            
                        
                        
                            
                                
                            
                        
                        
                            
                                
                            
                        
                        
                            
                                
                            
                        
                    
    

    Backing bean:

    package view.backing;
    
    import javax.faces.event.ActionEvent;
    
    public class ColPaginationBean {
        private int visColGroup=1;
    
        public void setVisColGroup(int visColGroup) {
            this.visColGroup = visColGroup;
        }
    
        public int getVisColGroup() {
            return visColGroup;
        }
    
        public ColPaginationBean() {
        }
    
        public void prevCols(ActionEvent actionEvent) {
            // Add event code here...
            visColGroup--;
        }
    
        public void nextCols(ActionEvent actionEvent) {
            // Add event code here...
            visColGroup++;
        }
    }
    

    Arun-

  • Is it possible to extend the column title "DATE"?

    Hi, I made a table;

    SQL > SELECT * FROM BookCopy;

    DATEACQUI DATEDESTR BTID BCID
    120 9 9 FEBRUARY 06

    The title means 'DATEACQUIRED' but it is said that "DATEACQUI".

    Anyone know if it is possible to extend the title without using VARCHAR, thank you

    Hello

    In SQL * Plus, you can set the width of the DATE column as you would for a VARCHAR2.

    COLUMN  dateacquired  FORMAT A12
    
    SELECT  SYSDATE  AS dateacquired
    FROM    dual;
    

    product

    DATEACQUIRED
    ------------
    29-JAN-09
    
  • Is it possible to paste the column headers in the window?

    Hello world.

    Anyone know if there is a way BI answers to paste the headers of the columns in a table on the page
    to keep visible while I scroll down?

    I have huge tables, and it is easy to get lost in there...

    Thank you!!

    Using what version?

    Of 11.1.1.6.0 freeze pane enabled.


    true
    200
    300
    60
    15

    Let me know want it.

    Thank you.

  • How to bind the user interface component to a display object that is created from a SQL query

    I use JDeveloper 11.1.1.2.

    I created a method in my ApplicationModule to create a dynamic ViewObject instance based on a 'voCode"passed in:

    public loadVO (String voCode) {} ViewObject

    ViewObject viewObject = findViewObject (voCode);
    If (viewObject == null) {}
    viewObject = createViewObject (programCode);
    }
    return viewObject.
    }

    I created a Client interface for this method and updated the control data of the ApplicationModule.

    The "Oracle JDeveloper 11g Handbook", I should be able to create a link from the tree and an executable methodIterator to the method of "loadVO" through the control of AOS data.

    I tried to manually add the binding to the definition of the page my page jspx, I like to see if I can replace an existing binding with this new binding.
    I was not able to add the link under "tree to create binding" 'Root Data Source' both 'Tree level rules' must be specified.
    I was able to specify the root 'Data Source' to point to the "loadVO" and the corresponding parameter, but not able to add a rule.
    When I clicked on the icon "+" to add the rule, anything that allowed me to clarify the rule (if I know which rule I should add).

    How can I bind the module of the application 'loadVO' method while it is exposed in the data control to provide data to a UI like PivotTable component?

    On the other hand, I was able to create the "methodIterator" first for the method 'loadVO' AM but I wasn't able to create a tree link to refer to the "methodIterator".
    Is it possible to call the method loadVO with the value of specific setting via the "methodIterator" of a bean method?

    Published by: pyin_amec on January 25, 2010 15:57

    I've corrected the subject line and change my question to better reflect the problem I tried to solve.

    Published by: pyin_amec on January 26, 2010 07:41

    Hello
    It worked for me... I created an inputtext area where I can enter a query and run...
    It could be that useful...

    AM Impl

         public void createVoWithQuery( String pQuery )
         {
    
              ViewObjectImpl vo = null;
              if( findViewObject( "DemoVo" ) != null )
                   findViewObject( "DemoVo" ).remove();
    
              vo = ( ViewObjectImpl )createViewObjectFromQueryStmt( "DemoVo", pQuery );
              //  vo.setKeyAttributeDefs( new int[]{0} );
              vo.executeQuery();
         }
    
         @Override
         protected void prepareSession( Session session )
         {
              super.prepareSession( session );
              if( findViewObject( "DemoVo" ) == null )
                   createViewObjectFromQueryStmt( "DemoVo", "Select 1 from dual" );
         }
    

    Page Def

    
        
          
        
        
      
      
        
          
    
          
        
        
          
        
        
          
            
          
        
      
    

    page

    
              
                
                  
                    
                      
                    
                  
                
              
              
              
                
                  
                    
                  
                  
                
              
            
    
  • How do I synchronize the columns added in Jdeveloper Studio Edition Version 11.1.1.7.0 views

    Hello

    I added a few columns in the database Table and I want to synchronize my point of view on this basis. I am able to synchronize entities, but how do I synchronize the based entity views or views in general?

    Thank you

    Vicky

    And to display objects that are not based on an entity, you must change the query

    will appear as

    Timo

  • Is it possible to apply the Ken Burn effect to a slide show brought her another slideshow on your site?

    I have several slideshows on a current site that I am working on, but I want just a slide have the Ken burns effect. When I placed the widget on my site all my slide our hit show. Is it possible that you can designate what show you want to have the effect go?

    Unfortunately the slides in the show can be applied with different effects, they would be same for all slides.

    Thank you

    Sanjit

  • If is it possible to apply the wiggle expression loop to individual characters in a block of text?

    I'm relatively new to After Effects and text animation. What I was, I was wondering if there is a way to essentially take the effect of a wiggly selector, rotation, which applies to each individual character, and then pass? Also impressive that the expression 'loop wiggle' is, it seems to apply only to the entire text block.

    Selectors of expression work on indexes text and the expression of Dan is not adapted specifically work on text animators. It only returns a uniform value. You have to build a loop around it for each character through the clues. If you really have such a short text, it can be faster and easier for you to understand, to use only the many animations of text because there are letters and limit the influence of each in a single character...

    Mylenium

  • Is it possible to apply the profile of variable width to the marks left by the form of task?

    Task form is selected.
    Screen Shot 2012-03-22 at 8.56.48 PM.png
    After having applied a blow on the work plan - the race of properties appear in the toolbar and are by default "uniform" for the layout Variable width profile.
    Screen Shot 2012-03-22 at 8.57.24 PM.png
    I select the profile second on the list.
    Screen Shot 2012-03-22 at 8.57.39 PM.png
    And draw another path.
    Screen Shot 2012-03-22 at 8.57.56 PM.png
    Yet, the same uniform contour.
    Screen Shot 2012-03-22 at 8.58.21 PM.png
    I realize that the form of the task creates a form shows - but surely there is always a "path" that is used initially to save the race. A Variable width profile cannot be applied to a Blob brush stroke?
    Screen Shot 2012-03-22 at 8.58.38 PM.png
    Why would I do this? I want to be able to sketch quickly, make the design of the characters and have a single shape to export Flash as a symbol of the head, etc.. I could use the tool brush and then object > path > terms of contour, and then use the Pathfinder Panel for unit all the traits described together form a compound... but it's too disruptive to sketch...

    If you want to create a blob brush object (with a match nil) less boring then a fat less then straight then double-click on your blob Brush tool icon and tweak the settings...

    G

  • Is Possible to apply the term in a publication?

    I want to make an expression related to the duration of time to 'MainComp.

    At the "MainComp" follow the length of another Composition.

    Mylenium is right, you cannot act on the compositions with expressions.

    However, there are workarounds.

    _You can precompose your comp and put on an expression is timeRemap.

    _another solution is to add an adjustment on top of your model layer. On the adjustment layer, you can add an effect of 'time' (time skew for example) and its value of timecode by the expression a link.

    First solution is the simplest and gives better results, the second is that if you impossible precompose.

    See you soon,.

    François

  • Is it possible to change the definition of LOV uses dynamic action?

    Hello

    I have a multiple selection LOV page article, P27_MULTI_CLASS_CODE, defined as below.  The loading of the page, this list contains only values based on what was passed to P27_OLO_CODE or P27_OLO_CODE_SW.

    SELECT DISTINCT c.class_code d, c.class_code r

    O ORGANIZATION,

    POSITION p,

    CLASS c

    WHERE o.org_wk = p.org_wk

    AND p.class_wk = c.class_wk

    AND o.org_active_flag = 'Y '.

    AND p.pos_active_flag = 'Y '.

    AND c.class_active_flag = 'Y '.

    AND (o.olo_code =: P27_OLO_CODE)

    GOLD o.olo_code =: P27_OLO_CODE_SW)

    ORDER BY c.class_code ASC

    Before submitting the page, I want the definition of LOV's P27_MULTI_CLASS_CODE to change the following (similar application without reference to the P27_OLO_CODE or P27_OLO_CODE_SW) based on the question if the user selects a checkbox, P27_ALLOW_SW.   In doing so, P27_MULTI_CLASS_CODE would contain a wide range of values, rather than the limited values.

    SELECT DISTINCT c.class_code d, c.class_code r

    O ORGANIZATION,

    POSITION p,

    CLASS c

    WHERE o.org_wk = p.org_wk

    AND p.class_wk = c.class_wk

    AND o.org_active_flag = 'Y '.

    AND p.pos_active_flag = 'Y '.

    AND c.class_active_flag = 'Y '.

    ORDER BY c.class_code ASC

    I wanted to avoid writing Javascript.  Is this possible using dynamic measurements... or at least somehow update P27_MULTI_CLASS_CODE so that it ignores the P27_OLO_CODE and the P27_OLO_CODE_SW?

    Tried to create dynamic action to clear the value of P27_OLO_CODE or P27_OLO_CODE_SW, in the hope this would trigger P27_MULTI_CLASS_CODE to display all the values, but it has failed.  Any ideas?

    APEX 4.2

    You can do this by editing the query lov a little:

    SELECT DISTINCT c.class_code d, c.class_code r
      FROM ORGANIZATION o,
           POSITION p,
           CLASS c
    WHERE o.org_wk = p.org_wk
       AND p.class_wk = c.class_wk
       AND o.org_active_flag = 'Y'
       AND p.pos_active_flag = 'Y'
       AND c.class_active_flag = 'Y'
       AND ((:P27_ALLOW_SW = 'Y' AND (o.olo_code = :P27_OLO_CODE OR o.olo_code = :P27_OLO_CODE_SW))
            OR :P27_ALLOW_SW = 'N')
    ORDER BY c.class_code ASC
    

    (of course, use the correct value for P27_ALLOW_SW)

    The "cascade LOV Parent article (s)" value P27_ALLOW_SW and also add "Page elements to submit" element (Note: this item appears only when you have entered a value in the element of parent lov cascading items)

    Now, after changing P27_ALLOW_SW the lov will update to P27_MULTI_CLASS_CODE.

  • Is it possible to take the fields on a form and display on a form is submitted?

    I have created a form in MUSE and takes advantage of the information that was entered and present back to the sender of the information they sent in the confirmation form.  I don't know how to do this in MUSE.

    Hello

    If you host your site on Business catalyst, then it is possible. It's not a way in Muse to do.

    Kind regards

    Aish

  • String truncation warning Possible - 1241024 - in the column #.

    I am running the following command in a simple MaxL script, whose output is sent to a text file:

    display variable App.DB.SubVar;

    The text file seems to have raised very well, with the value of substitution displayed variable. However, the following warnings appear each time that the stderr output. Should I be worried? Is it possible to fix this?

    WARNING - 1241024 - Possible string truncation in column 3.
    WARNING - 1241028 - output column defined with warnings.
    WARNING - 1241024 - Possible string truncation in column 4.
    WARNING - 1241028 - output column defined with warnings.

    This is only a warning saying that it is possible that it may be truncated, I don't think it is to check to see the full size

    If you set it to something like
    Set column_width 1028;

    and start the variable display again and will probably not all of the warnings.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Please is possible to create the most common adf components dynamically?

    Or you have any comments or advice?

    I need to dynamically create forms for a definition on the tables.

    I need, but in any case I have not found a way to dynamically create entities, that point of view.

    Thanks :)

    Sorry, I do not understand your question.
    Please give more information about your problem. What version of jdev do you use?

    The answer to the question in the topic his Yes, you can create almost all the components of the adf from java code.

    Timo

Maybe you are looking for