Component dynamically rewrite the contents of the table in Adf

Is there any ADF component that will leave me to dynamically rewrite the records in a table?
Otherwise, if there are 50 records in a table and I would like to re - order the first record with 20th record in an average user of the interface?
In other words, 20th record appears in the higher order followed by the first record.

Sahar,
There is none of these available components. If I understand correctly, your table is from DB data. In this case, the order of the lines depends only on the "order by" clause of the SQL behind your VO, or is random if no "order by" clause is present. You cannot predict even if two consecutive queries return the rows in the same order without "order by" clause
Said, it is clear that even if you think to build this functionality yourself, it may not be a transitory attribute that the order would have gone if not stored in the db.

Next thing I don't understand is that db data are usually used by the user and then one more. So even if you store the order of the rows in the comic book, a user replaces the order stored by the previous user. This has led to the conclusion that you need to store the order in the comic book, but not in the same table. At the end of the day, you need to store the order in a separate table for example title list of PKs of the original table. Remember that at some point of time, the data in the table changes (add a line or drop a line). You have to manage that as well.

Timo

Tags: Java

Similar Questions

  • Dynamically read the table name in the query update

    Hi all

    I am trying to run the updated sql query where the name of the table should be read dynamically from another table below.

    Please let me what wrong with my request.

    setting a day (select CONCAT('T',schemaid) from outline, which the name = 'Analyzer') set c7 = 99;

    "outline" is a table that contains two columns name and schemaid.

    all the table created in our database with the prefix 't' T4345 for example.

    I did as suggested by you

    No, you didn't.  I did not any package creation code in my example, in order to better that you you point the finger.

    Your syntax is invalid for creating a package with the code like this, please read on creating packages and procedures within them if that's what you want to do.

    In addition, your package creation statement is to create a package specification, but you put in the code which must be in a package body, not a notebook loads.

    It should be something like (untested since I don't have your tables)...

    create or replace package my_packg as
    procedure dowhatever.
    end;
    /

    create or replace package body my_packg as
    dowhatever procedure is
    TBL varchar2 (30);
    Start
    Select 't' | SchemaId
    in tbl
    of outline
    where name = 'Analyzer ';
    run immediately 'Update'. "TBL |' set c7 = 99;
    end;
    end my_packg;
    /

    and then call this procedure by calling my_packg.dowhatever ();

  • How to set the default value of the component selectOneChoice in the table to the ADF

    Hi all

    I use jdev 11.1.1.6.0 version.

    I used an adf table in which an attribute is selectOnceChoice.

    To create the table and selectOneChoice I used the data control java bean.

    and drag and drop a table and after that I have drag and drop one of the attributes as selectonechoice and linked with the return of the method list as < key, value > pair.

    I want the default value to select only one option in each attribute rows.

    I checked with simillar issue on post next, but not yet resolved.

    
    
    
    
    

    My jspx code is

    
    <af:column id="c11"
                                             headerText="Invoice To" >
                                        <af:outputText value="#{row.invoiceTo}" id="ot19"/>
    <af:selectOneChoice value="#{bindings.invoiceTo.inputValue}"
                                                        label="#{bindings.invoiceTo.label}"
                                                        required="#{bindings.invoiceTo.hints.mandatory}"
                                                        shortDesc="#{bindings.invoiceTo.hints.tooltip}"
                                                        id="soc3"
                                                        autoSubmit="true"
                                                        valuePassThru="true">
                                      <f:selectItems value="#{bindings.invoiceTo.items}"
                                                     id="si4"/>
                                    </af:selectOneChoice>
    </af:column>
    
    
    

    where invoiceTo is the table attribute and the invoiceTo attribute is dragged and dropped as a SOC function list Source data mapped data value with the List attribute

    and the display attribute

    Data value = invoiceTo List = lovMasterKey attribute

    Display attribute = lovMasterValue

    that list is maintained at < lovMasterKey, lovMasterValue >

    According to the value of invoiceTo line, it should show as default value is selectOneChoice, but its showing no not as a default value.

    Please, help me how set the default value of selectOneChoice in the table according to each value line invoiceTo.

    Thank you all for the help on this issue.

    Problem has been resolved.

    Reason for this was used

    It is solved using code used for the list built for selectoneChoice more

      List lovMasterList = new ArrayList();
    
    SelectItem siItem = new SelectItem();                      
    
    siItem.setLabel(objAfCmnLovMasterListVO1.getLovMasterValue());
    
    siItem.setValue(objAfCmnLovMasterListVO1.getLovMasterKey());
    
      lovMasterList.add(siItem);
    

    Now, I used the code where the line below. InvoiceTo is the key and row.invoiceToItems are the list of articles for selectOneChoice.

    
    
    
      
    
    

    Thank you very much...

  • Update the Table of Adf

    Hi all

    I have a page jspx, with a table and a button.

    Create the table data control, and it contains 4 columns

    (Name, card student, asked (Question or answer)).

    I create the code for the button to work

    1. Select a record

    2 send email

    3. when I send the request goes from Q to A

    All work fine. The mail has been sent. The demand for DB password Q has. But in my jspx table refreshes.

    Until I close and open again, it displays all the data.

    How cal I solve it?

    Thanks in advance

    Christos.

    Simply add partialTrigger on table pointing to the button.

    It will update the table when the button is clicked.

  • Button remove row created dynamically from the Table

    In the form below, I can't any of the buttons to work properly.

    There is a table at the bottom of the form and to the right a green + button. Clicking this button adds a row to update. This line when it appears has a delete on the left (white red with "X") button. If I click on the delete button, it works fine. But if I create several of these updates of lines, by clicking on the button on the third instance removes the first instance instead of the third instance. How can I fix it?

    https://Acrobat.com/#d=4mzuO1Pjz-0Z4ntuLZAy4w

    On the Remove button, you must change the setting stayed the removeInstance.

    removeInstance (this.parent.parent.index - 1);

    When you simply type this.parent.index, it refers to Subform3 where there is always only one instance.  You add instances of Row1 [1] as a result, you must climb a level more.  This.parent.parent.index. because you use Row1 [1] then you must use-1 as it is good otherwise will be the incorrect instance

    If you had an exclusive name each line, you can then use this.parent.parent.index (without the - 1).

  • input field for text inside the table tree adf

    Hello

    I want to know, how to create a field of text within the tree adf table entry.

    I have three table tree of hierarchical level, places-> Services-> employees.

    This function I want as editable email field.

    can someone tell me please how to do this?

    Thanks in advance,
    SAN

    Hello.

    Drag table tree and try this code in your jspx

    
                        
                            
                                
                            
                        
                        
                            
                        
                        
                            
                        
                        
                            
                        
                        
                            
                        
                    
    
  • Spaces displays do not properly in the columns of the table 11g ADF.

    We have a simple af:table with only two columns (clickToEdit) is activated.
    Please see the photos below:

    Screenshot 1:
    http://i.imgur.com/84PCL.PNG
    (as you can see in the last line, the "Baby" value contains spaces left - line is edit mode)

    Screenshot:
    http://i.imgur.com/t6SXe.PNG
    (in the last line the leading spaces are left once the line becomes read-only)

    Why are the main places to cut once the line goes read-only.
    Is it possible to display the 'real' value in the column. I need to distinguish the leading spaces (if it exists).

    Published by: Andrei Ciobanu on August 10, 2011 04:34

    Published by: Andrei Ciobanu on August 10, 2011 04:51

    Published by: Andrei Ciobanu on August 10, 2011 04:53

    Laughing out loud...

    Timo

  • Enable sorting (Order by) in the table tree ADF

    Hello

    How can I sort ADF tree using a temporary Variable... ?
    'Name' is a temporary variable in my VO... I want to sort the ADF tree with the attribute "Name"...

    Thank you
    Swathi

    Hello

    check this hope it helps
    http://Hazem-ADF-tips.blogspot.in/2012/06/define-default-sorting-order-of-ADF.html

    Concerning

  • dynamically change the selection table of

    is it possible to dynamically change the table used in a select statement for an interactive report 3.2 on 11g database? I have a series of similar tables, one for each month of the year. I want to click a month on one page and to set up a table for this month report. I want to use a page for this report and have all the links from the link to the previous page on the same page, just different results based on what month has been clicked.
    I know I could just install 12 different reports and conditionally display each region based on a value passed to the page, but I prefer to create only a single page and a report on this page.

    Thanks for ideas or solutions.

    Hello:

    Because the tables involved are fixed for a given month, you can try something like

    select * from tab_1
    where :p_mth=1
    UNION
    select * from tab_2
    where :p_mth=2
    UNION
    ....
    select * from tab_12
    where :p_mth=12
    

    only the query for the IR. "P_MTH" is the page element has the value entered by the user for the months for which data should be retieved.

    CITY

  • Droping a table from within a procedure by passing the name of the Table as an Argument

    HII All

    I want to remove a table from a procedure dynamically passing the table name as a parameter of a procedure manual

    to do this, I wrote the following procedure

    CREATE OR REPLACE PROCEDURE DEL_TAB (TAB_NAME IN VARCHAR2) AS

    V_TAB_NAME VARCHAR2 (10);

    V_STMT VARCHAR2 (50);

    BEGIN

    V_TAB_NAME: = TABLE_NAME;

    V_STMT: = 'DROP TABLE' | V_TAB_NAME;

    RUN IMMEDIATELY 'V_STMT ';

    DBMS_OUTPUT. PUT_LINE(V_TAB_NAME||) e TABLE DELETED ');

    END DEL_TAB;

    but whenever I'm execute it gives me an error

    ERROR on line 1:

    ORA-06550: line 1, column 15:

    PLS-00357: Table, view or sequence of reference 'A' not allowed in this context

    ORA-06550: line 1, column 7:

    PL/SQL: Statement ignored

    Please tell me the solution...

    Thanks in advance

    Alisson

    Why do you want to implement this procedure? If you want to remove a table just issue the DROP of stand-alone statement. Why write a procedure for this? Also you must understand the difference between REMOVE and DROP in the context of RDBMS. You either use them which is incorrect. DELETION is to remove rows from a table and DROP is to remove the database table.

    And with regard to your problem

    > RUN IMMEDIATELY 'V_STMT ';

    This should be

    immediately run v_stmt;

    You closed the V_STMT variable is in single quotes. You must remove the apostrophes.

  • Try to get the input parameter of a web service Yanick based on the value of the table

    Hello-

    I am new to ADF and Jdev 11 g (I'm a developer of forms). I had created a web service from a db stored pl/sql package. I can run a function with a parameter of the ADF faces.

    Instead of the input being entrable user parameter, I want to be based on a selected value of ADF table column. How to correlate the value of the selected row in the column as an input function parameter?

    I played with an ADF output text based on the table column ADF PartialTriggers the value set for the ADF... table that updates the output text based on the selected column. Can I use some kind of partial trigger on the input parameter?

    From a point of view of forms, I am looking for ownership of "Copy Item value" :)

    Two options:
    Declarative in tab link, as shown here:
    http://blogs.Oracle.com/Shay/2009/07/java_class_data_control_and_ad.html
    (its a method POJO but should be the same for a Web Service invoke).

    Or via code in your backing bean:
    http://blogs.Oracle.com/Shay/2009/06/setting_parameter_value_for_bi.html

  • How to dynamically add columns to the table

    Hi all

    I'm new to ADF and need help on sub condition.

    We have created a ViewObject on the EMPLOYEE table that has under columns:

    EMP_ID,

    EMP_NAME,

    DEPARTMENT,

    COST_CENTER,

    BUSINESS_UNIT

    COUNTRY

    GCODE

    We need to create a page in the ADF with employee table to show only below the columns

    EMP_ID,

    EMP_NAME,

    DEPARTMENT,

    COST_CENTER

    Later, if necessary user should be able to add other columns to the page dynamically.

    Can you please advice on how to implement this feature.

    Thank you.

    Kind regards

    Vidya

    Hello.

    There could be a simple solution, which is to use the component PanelCollection.

    Drag ' drop your VO to a page and create a Table with all the attributes.

    For columns that emp_id, emp_name, cost_center, set the Visible property to false.

    Put the PanelCollection component on your page and drag your table inside.

    When you run the page you will see the view menu in the upper left corner of the table above. You can show/hide columns in this menu.

  • Is it possible to customize the sensitive presentation - sequence of the table of contents, Index, tabs filter?

    Hello

    I use RoboHelp 2015 and reactive production layout, I need to rearrange these tabs. I want the tab of filtering of dynamic content to be displayed before the table of contents.

    Is it possible to re - sequence tab filters before tab table of contents by making some backend work in CSS or code?

    forum post.png

    Or the other way improved - if we select filters say - sales, then sales related subjects should be displayed (rather extended below - just like the expansion of text).

    Is it possible to customize the sensitive provision in this way?

    --

    Thank you

    Christophe

    It is possible through the HTML code. In Notepad, open the file "Topic.slp". On line 35, you will see a list of links:

    You can cut and paste the link to get the correct order. The first tag appears on the left side. Please be sure to cut and paste the entire link ''.

  • RoboHelp 2015 (12.0.2.384): The search returns topics do not are included in the table of contents

    ENVIRONMENT: Windows 7 Enterprise SP1, 8.00 GB of RAM, 64 - bit OS, Office 2010, Adobe Acrobat X Pro, Acrobat Reader DC 2015.017.20050

    DESCRIPTION OF THE PROJECT:

    • A single RoboHelp HTML project with three exits. One of the outputs is a 'validation' reference that has its own Table of contents.
    • Validation reference Table of contents contains a subset of the subjects in the main help system. For example, the help system main table of contents contains a folder named 'Administration '. This folder is not in the table of contents of reference for Validation.
    • The reference of Validation is displayed on a public web site. Therefore, we applied the tag "Non_public_info" contained in the topics shared that we do not want to appear on the public website.
    • WebHelp parameters are:
      • Validation reference TOC
      • No map file, no sequence to browse
      • Conditional compilation expression: NOT_Non_public_info_AND_NOT_StyleGuidelines_AND_NOT_TRP (we keep our Style rules in the project to facilitate access during development. TRP content must be rejected because it was not released.)
      • Exclude non referenced topics of output is selected.
      • Search options. Only 'Show Total number of search results' and 'View AND search Option in outputs' are selected.
    • After generating the WebHelp, we remove the files that we don't want (RoboHelp generates empty folders, even if the files are not in the table of contents.)

    PROBLEM: A search in the help of Validation reference reveals the topics that we think should not be included because the subjects themselves are not in the table of contents of Validation reference. For example, the section "Data quality analysis" is in the main table of contents help, but not in the table of contents of reference for Validation. Therefore, we do not expect the topic appears in the search results pane at all. But he does. When the user clicks on the subject, the "Resource not found" message appears.

    Nothing shows the topic Style_Guidelines because the StyleGuidelines label conditional construction applies to the entire folder and the "Style guidelines" book in the main table of contents. (Same thing for the TRP folder).

    QUESTION: Why are topics which are not in the table of contents and whose records are not in the project at all appearing in the WebHelp during a search? We need to rewrite the expression of conditional compilation or establish conditions differently. We assume not have topics in the table of contents, not including the topics not referenced in the output, and remove empty folders would be the way to go. Any help is welcome!

    Thank you very much.

    Carol Levie

    The table of contents does not control what ends up in the output for output online. All content tagged and tagged content which is not excluded by the expression of construction will be included. The parameter 'Exclude topics not referenced output' more exclude all subjects which are not in the table of contents AND are not related to any topic which is included in the output.

    On the other hand, for the print output the table of contents control which is found in the output. I think that it will fire a lot of people.

    If you generate the help and that you do not remove the unwanted files, do you still have the error? If this isn't the case, you know that the topic is referenced somewhere in the content of the reference of the Validation.

    Here is the help of RH11. I can't imagine it would have changed, but you could do a search to verify a second time for RH2015.

    Exclude output not referenced topics

    Select this option to exclude any topic that exists in the project, but is not the default theme in page layout or is not referenced table of selected contents, index or sequence to browse, or any referenced subject.

    Note: RoboHelp shows the topics not referenced that are excluded from the output in the output view module.

  • Trouble accessing the table of contents by using select Boolean box.

    Hi all. I use jdeveloper 11.1.1.6.0
    In my page jspx, I have only one table and an input text box.
    table is created by a VO that has three content such as empname, empno, sal
    I added the extra column in the table for a select Boolean box.
    My requirement is, whenever I have check the box add the salary corresponding to the
    TextBox, when I deselect the check box, the corresponding value should be inferred from the text dynamically box
    its urgency. Please help in the coding of java.

    Published by: 994115 on April 18, 2013 02:15

    Hello

    If the table is set for the selection of simple lines, you can get this information from the binding of the ADF. To do this, in the file PageDef, bind to the attribute of the attribute of the iterator salary used by the table. To access the value of salary call you

    BindingContext bctx = BindingContext.getCurrent ();
    BindingContainer links = bctx.getCurrentBindingEntry ();
    AttributeBinding salaryBinding = bindings.get ("Salary") (AttributeBinding);
    Oracle.jbo.domain.Number salaryValue = (Oracle.jbo.domain.Number) salaryBinding. getInputValue();.

    PS. : If the salary is not of type oracle.jbo.domain.Number, and then modify the code above

    Frank

Maybe you are looking for

  • Symbol of the day before for iphone6

    Can how I reinstall the software from Apple Watch on my phone. I can't find my kidnapped.

  • Error Code C646 Windows Update encountered an unknown Error__

    I keep the error code and get (C646 windows update encountered an unknown error) when you try to download and install the update of security for microsoft works 8 (KB977304) it is on Windows Vista

  • Windows Media Player does not open

    First, Windows Media Player doesn't recognize CD when loading, but I could play my music library. Now WMP will not open at all. Tech was charged $100 without solving the problem. Windows Media Center seems to be OK.

  • U2715H, Macbook Air, black bars

    Hello I bought a new U2715H yesterday. I use it with 3 Macs:Mac Mini - mid-2010 (GPU: Nvidia GeForce 320 M)-works greatMacBook Pro 13 "Early 2015 retina (GPU: Intel Iris 6100)-works greatMacBook Air 11 '' mid 2011 (GPU: Intel HD Graphics 3000)-not so

  • Use a non-English language

    Hello How can I display text no English throughout my application? Can I read the each piece of text in a language property file? Thank you