Export an ADF table with default column order

Hello

Jdev 11.1.1.5.0

We have ADF Table with column drag and drop option. Also we have implemented ADF Table with excelHTMl type of export.

Everything works as expected. Only problem is if we try to exchange a few columns by drag-and - drop option and then export the table, we receive the order of the columns with brewing. But our demand is, the user must obtain the export with the initial order table by default.

It would be great, if you can suggest an idea to export the ADF table with default column order.

Thanks in advance,

MSR.

I realized the required functionality. We can restore the default order of the columns to aid

   Function richeTableau = this.getFetchResultsTable ();
   Iterator rItr = rTable.getChildren () .iterator ();
   {while (rItr.hasNext ())}
       ((RichColumn) rItr.next ()).setDisplayIndex(-1);
   }

Then we can call the real export help feature

   queue the event via a JavaScript inserted into the page
   FacesContext context = FacesContext.getCurrentInstance ();
   Erks = ExtendedRenderKitService
   Service.getService (context.getRenderKit (), ExtendedRenderKitService.class);
   erks.addScript (context, "customHandler()");

Tags: Java

Similar Questions

  • Gears - error when you try to insert values into a table with multiple columns

    Hello

    I started playing with the gears and SQlLite today and I get an error when I try to insert values into a table with multiple columns.

    I have:

    var db = google.gears.factory.create('beta.database');
        db.open('developerSet');
        db.execute('create table if not exists Developers (DeveloperName text, DeveloperAge int)');
    
        var devName = "Davy"
        var devAge = 32;
    
        try {
            db.execute('insert into Developers values (?, ?)', [devName, devAge]);
            alert('success');
        }
        catch (e) {
            alert(e);
        }
    

    I get the error:

    net.rim.device.api.database.DatabaseException; insert into developers values (?,?): SQL logic error or missing database.

    I use this reference: http://code.google.com/apis/gears/api_database.html

    Everything works if I have only one field as:

    var db = google.gears.factory.create('beta.database');
        db.open('developerSet');
        db.execute('create table if not exists Developers (DeveloperName text)');
    
        var devName = "Davy"
        var devAge = 32;
    
        try {
            db.execute('insert into Developers values (?)', [devName]);
            alert('success');
        }
        catch (e) {
            alert(e);
        }
    

    I use the plug-in Visual Studio 2.0 for 2008 that are running Windows XP SP and Simulator 2.13.0.56

    Thank you

    Davy

    Yes, a SQLite database will persist between battery pulls.  The database is registered either to internal MEM or removable media (not the device memory), depending on which is available on your device.

    In general, its not considered a best practice to remove your table as soon as it is empty and re - create it again when you want to add data.  This adds extra overhead fresh for the final, delete and insert first for a given table.  Instead, define and finalize your drawing before you create your table.  Once created, review the static schema.

    That being said, for development purposes, it may be easier to provide an easy way to drop your tables while you develop your schema.

    See you soon,.

    Adam

  • Export of Excel tables with hyperlinks in Muse

    Hello!

    I am trying to export an Excel table with hyperlinks added in Adobe Muse. I understand how to export tables using HTML - but when I do that, even if my table is here very well, my break links and does not work when I open them with Muse.

    Do not believe anyone has any ideas on how I can get this to work?

    Thank you! x

    Table text importer may break the style and links, you can save the spreadsheet as an HTML page and then paste the code in Muse.

    Thank you.

    Sanjit

  • Declare a type of table with multiple columns

    I have a table with a column of type, and I want to create one with two columns.

    My type is:
    create or replace type "NUMBER_TABLE" in the table of the number;

    And I use it in function:

    FUNCTION GetValues()
    return NUMBER_TABLE
    as
    results NUMBER_TABLE: = NUMBER_TABLE();
    Start
    Select OrderId bulk collect in: results from (select * from tbl_orders);
    -Other code...
    end;

    I want select it be like this:
    Select OrderId, OrderAddress bulk collect into: results from (select * from tbl_orders);

    How to do this?

    Is that what you are looking for:

    CREATE OR REPLACE TYPE two_col_rec AS OBJECT (empno NUMBER, ename VARCHAR2(10))
    /
    
    CREATE OR REPLACE TYPE two_col_table AS TABLE OF two_col;
    /
    
    CREATE OR REPLACE FUNCTION GetValues RETURN two_col_table AS
       results two_col_table := two_col_table();
    BEGIN
       SELECT two_col(empno, ename) BULK COLLECT INTO results FROM emp;
       --
       RETURN results;
    END;
    /
    show errors
    
  • Fill a table with two columns using a custom bean

    Hello

    Can you provide me or give me a link to an example of populating a table (with two columns) with a custom bean?

    Thank you

    TSPS

    Hello..
    I'm Jules Destrooper is what you want

    http://download.Oracle.com/docs/CD/E18941_01/tutorials/jdtut_11r2_36/jdtut_11r2_36.html

    Hopes, will help you

  • How to create a table with editable column values.

    Hello world
    I think it's very simple, but I am unable to find how to do this. This is my requirement. I need to create a table with n columns and 1 line initially. the user must be able to enter data into this table and click of a button must insert the data into the database table. Also, there should be a button at the bottom of the table to add 1 line to the table.

    I know how to do the insertion of data, but can someone please let me know how to create a table which allows the user to enter data and how to create a line button Add 1?


    Thanks in advance!

    Raghu,

    Go through the tutorial of Toolbox Page & Advanced section of the Guide of the OFA table.

    Step 1 - you need to create EO & VO from this EO. This EO will be table of database where you want to insert the data.

    Step 2 - create an advanced table region. (See this section in table advanced for more details)

    Step 3 - attach this VO in the BC4J region advanced Table component.

    Kind regards
    GYAN

  • Unique table with several columns or several tables split?

    What is the best.

    A table with multiple columns inside or divided into several tables. Why?
    How will the performance in the two scenarios?

    Hello

    user13024762 wrote:
    I have a table EMP that has column EMP_ID, EMP_NAME MGR_ID, MGR_NAME, SALARY, EXP_IN_MNTHS, EXP_IN_YRS... etc with multiple columns

    I have the following tables
    EMP-> EMP_ID, EMP_NAME

    Each row in the table emp thie represents a separate employee. I guess other columns in the emp table might be birth_date, social_security_number and status (by example, 'Active', 'Leave', 'complete'). Here's what an employee has (at least) one of. If there is a one-to-many relationship between an employee and an attribute, then you probably want another table for this attribute.

    BISHOP-> EMP_ID, MGR_ID, MGR_NAME

    There is a one-to-many relationship between employees and managers? In other words, an employee may have 2 or more managers? If Yes, then you need another table.
    If there is only a one-to-one relationship between employees and managers (in other words, if an employee is never more than 1 Manager) so why don't you just have a mgr_id column in the emp table?
    Managers are also used for? (This is often the case, as in scott.emp and hr.employees.) If so, do not store their names in the EME and tables of mgr. Store name (and date of birth and other information) in the table emp only and, if you need a table of Bishop, just the emp_id and mgr_id column.

    SAL-> EMP_ID, SALARY

    There is a one-to-many relationship between the employees and wages? In other words, an employee may have 2 or more treatments? If so, how will you use the values? Is a special treatments in some way, as it will be used more often than others? (In other words, you may have a current and past wages salary, but the last wages are rarely used.)
    If you never have more than 1 salary for a given employee, why not just have a sal column in the emp table?

    EXP-> EMP_ID, EXP_IN_MNTHS, EXP_IN_YRS

    There is a one-to-many relationship between the employees and what whether you store in this table?

    etc. with more tables

    What is the best based on

    (1) performance and data recovery
    (2) ease of use
    (3) maintainability

    A one-to-many relationship requires an additional table. If an employee can have up to 3 managers, don't have mgr1, mgr2 and mgr3 columns in the emp table. Use a separate table, with up to 3 lines for the same employee, instead.
    For 1-1 relationships, it is usually best to not have separate tables.

  • Table with 300 columns

    While talking with a friend, he told me that sometimes he uses tables with 300 columns that will be available only once for the extraction of information. For me, it's a little strange because 300 columns looks like a large number of columns for me...

    Have tables with columns as is common practice in the data warehouse? If Yes, can you explain to me on what situations, this can happen and how often?

    Concerning

    We have tables with columns of cca 150.

    You should know that we don't talk to relational systems which are standardized. Its common practice when building data warehouse. Number of columns in the tables will depend on the complexity and the size of your warehouse and the number, size and complexity of your source systems.

    Point is that even now, when the data warehouse is "done", we still add/remove columns changes to warehouse such as changing the source systems.

  • GetLength errors on CLOB. Retrieves the size of a table with CLOB columns

    Hello

    I try to find the size of a CLOB to a table column and get the error

    PLS-00306: wrong number or types of arguments in the call to "GETLENGTH.

    When you try to use dbms_lob.getlength. Here is the code


    declare
    number num.
    Start
    for rec in (select xmlupload from FILE_TABLE where file_table_id = 33635) loop
    NUM: = dbms_lob.getLength (rec.xmlupload);
    end loop;
    dbms_output.put_line (num);
    end;

    Database version: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi


    I'm actually trying to find the size of a table with CLOB columns, is there an easy way to do this Besides using getlength and without having to contact the Administrators (they are outsourced)?

    It works fine on my computer, the version is also 10g.

    SQL> declare
      2  num number;
      3  begin
      4  for rec in (select cntnt from ims_toms_msge where rownum<3) loop
      5  num := dbms_lob.getLength(rec.cntnt);
      6  dbms_output.put_line(num);
      7  end loop;
      8
      9  end;
     10  /
    3837
    3837
    
    PL/SQL procedure successfully completed.
    

    You should check if xmlupload is the CLOB data type.
    In addition, if you just want to get the CLOB size, you can use LENGTH() as well, you will get the same result;

    SQL>  select length(cntnt), dbms_lob.getLength(cntnt) from ims_toms_msge where rownum<2;
    
    LENGTH(CNTNT) DBMS_LOB.GETLENGTH(CNTNT)
    ------------- -------------------------
             3837                      3837
    

    Published by: PhoenixBai on September 24, 2009 13:40

  • External table with mixed columns

    Hello everyone. We use Oracle 11R1. We have an external table pointing to a CSV with 7 columns inside. The file has always column 7 but the column order differs from time to time. Each column has a header that remains consistent. Is there a way to map the column names to the column header, s so that we did not change the definition of the external table every time a new file is available in?

    Thank you.

    Hello

    As John said, you must assign names of columns when the table is created.  I guess you could have a dynamic SQL solution that reads the header you mentioned, uses this information to write a CREATE table, drop the table, and then recreated with the new order of the columns.

    You may have a view that maps the 7 columns in your table of 7 columns in the view.  Which column gets the mapping to that may depend on the header.

  • ADF table filter - date column - in the table data type is timestamp

    Hello

    I want to filter adf table based on the time stamp column, but unable to do so.

    Details.

    1. The data type of the column (dateAdded) in the database is timestamp.
    2. the type of this column in the mode attribute is oracle.jbo.domain.Timestamp. and the format is DD/MM/YYYY
    3. the part of the code in my page jspx is

    < af:column sortProperty = filterable "DateAdded" = "true" width = '80' sortable = "true" headerText = "creation Date" id = "c6" >

    < f: facet = name 'filter' >

    < af:inputDate value = "#{vs.filterCriteria.DateAdded}" id = "id1" > "

    < af:convertDateTime pattern = "dd/MM/yyyy" / >

    < / af:inputDate >

    < / f: facet >

    < af:outputText value = "#{rank." DateAdded}"id ="ot5">

    < af:convertDateTime pattern = "#{bindings." MYCASE_CONS_VO1.hints.DateAdded.format}"/ >

    < / af:outputText >

    < / af:column >

    4. everything by filtering this field giving entered in the format DD/Mm/yyyy, the query runs but no change in the result (the value of this field in the table lavel is 10.54.16.000000000 18 June 14 h)

    Note: In the interface user, the value of the field is display in the format DD/MM/YYYY.

    Please feel free to ask me questions. Enjoy for little help.

    Thank you

    ASIS

    You can try with that mentioned in the link:

    http://dkleppinger.blogspot.in/2011/09/how-to-ignore-time-component-of-date.html

    Date query shows no results for the date of the day

  • ADF table with more lines not able to create new record

    Hi I have situation where I adf table 13 lines that is able to create new records and I have the table who got about 3000 documents, but I have to refresh the page after I click the createinsert button in order to have an empty space to enter new record am jdeveloper 11.1.1.7.0 using IE and firefox

    JSFF page creating record

    <? XML version = "1.0" encoding = "UTF - 8"? >

    " < = xmlns:jsp jsp:root ' http://Java.Sun.com/JSP/page "version ="2.1" "

    ' xmlns:af = ' http://xmlns.Oracle.com/ADF/faces/rich "" "

    ' xmlns:f = ' http://Java.Sun.com/JSF/core ">

    < af:panelHeader text = 'maintain Provience"id ="ph1 ".

    inlineStyle = ' height: 844px; ">

    < f: facet = 'context' name / >

    < name f: facet = 'bar menu' / >

    < name f: facet = "toolbar" / >

    < f: facet = name "legend" / >

    < f: facet = 'info' name / >

    < af:panelCollection id = "pc1" inlineStyle = "width: 1033px;" height: 790px; ">

    < f: facet = 'menus' name / >

    < f: facet name = "toolbar" >

    < af:toolbar id = "t2" >

    < af:commandButton actionListener = "#{bindings." CreateInsert.execute}.

    Text = "CreateInsert."

    ID = "cb1" / >

    < af:commandButton actionListener = "#{bindings.Commit.execute} '"

    Text = "Register" id = "cb2" / >

    < af:quickQuery label = 'Search' searchDesc = 'Search' id = 'qryId1 '.

    value = "#{bindings." ImplicitViewCriteriaQuery.quickQueryDescriptor}.

    model = ' #{bindings. " ImplicitViewCriteriaQuery.queryModel}.

    queryListener = ' #{bindings. " ImplicitViewCriteriaQuery.processQuery} ">"

    < f: facet = 'end' name >

    < af:commandLink text = "Advanced" rendered = "true" id = "cl1" / >

    < / f: facet >

    < / af:quickQuery >

    < / af:toolbar >

    < / f: facet >

    < name f: facet = 'bar of Θtat' / >

    < af:table value = "#{bindings." Var ProvinceView1.collectionModel}"="row ".

    lines = ' #{bindings. " ProvinceView1.rangeSize}.

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

    fetchSize = "#{bindings." ProvinceView1.rangeSize}.

    rowBandingInterval = '0 '.

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

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

    "rowSelection ="single"id ="t1"partialTriggers =": cb1: qryId1.

    columnStretching = 'last' immediate = "false" >

    < af:column sortProperty = "#{bindings." ProvinceView1.hints.ProvinceCode.name}.

    sortable = "true".

    headerText = "#{bindings." ProvinceView1.hints.ProvinceCode.label}.

    ID = "c1" >

    < af:inputText value = "#{row.bindings.ProvinceCode.inputValue} '"

    label = "#{bindings." ProvinceView1.hints.ProvinceCode.label}.

    required = "#{bindings." ProvinceView1.hints.ProvinceCode.mandatory}.

    columns = "#{bindings." ProvinceView1.hints.ProvinceCode.displayWidth}.

    maximumLength = "#{bindings." ProvinceView1.hints.ProvinceCode.precision}.

    shortDesc = "#{bindings." ProvinceView1.hints.ProvinceCode.tooltip}.

    ID = "it2" >

    < f: validator binding="#{row.bindings.ProvinceCode.validator}"/ >

    < af:convertNumber groupingUsed = "false".

    model = ' #{bindings. " ProvinceView1.hints.ProvinceCode.format}"/ >

    < / af:inputText >

    < / af:column >

    < af:column sortProperty = "#{bindings." ProvinceView1.hints.ProvinceName.name}.

    sortable = "true".

    headerText = "#{bindings." ProvinceView1.hints.ProvinceName.label}.

    ID = "c2" >

    < af:inputText value = "#{row.bindings.ProvinceName.inputValue} '"

    label = "#{bindings." ProvinceView1.hints.ProvinceName.label}.

    required = "#{bindings." ProvinceView1.hints.ProvinceName.mandatory}.

    columns = "#{bindings." ProvinceView1.hints.ProvinceName.displayWidth}.

    maximumLength = "#{bindings." ProvinceView1.hints.ProvinceName.precision}.

    shortDesc = "#{bindings." ProvinceView1.hints.ProvinceName.tooltip}.

    ID = "it1" >

    < f: validator binding="#{row.bindings.ProvinceName.validator}"/ >

    < / af:inputText >

    < / af:column >

    < af:column sortProperty = "#{bindings." ProvinceView1.hints.ProvinceDateActive.name}.

    sortable = "true".

    headerText = "#{bindings." ProvinceView1.hints.ProvinceDateActive.label}.

    ID = 'c4' >

    < af:inputDate value = "#{row.bindings.ProvinceDateActive.inputValue} '"

    label = "#{bindings." ProvinceView1.hints.ProvinceDateActive.label}.

    required = "#{bindings." ProvinceView1.hints.ProvinceDateActive.mandatory}.

    shortDesc = "#{bindings." ProvinceView1.hints.ProvinceDateActive.tooltip}.

    ID = "id2" >

    < f: validator binding="#{row.bindings.ProvinceDateActive.validator}"/ >

    < af:convertDateTime pattern = "#{bindings." ProvinceView1.hints.ProvinceDateActive.format}"/ >

    < / af:inputDate >

    < / af:column >

    < af:column sortProperty = "#{bindings." ProvinceView1.hints.ProvinceDateInactive.name}.

    sortable = "true".

    headerText = "#{bindings." ProvinceView1.hints.ProvinceDateInactive.label}.

    ID = 'c3' >

    < af:inputDate value = "#{row.bindings.ProvinceDateInactive.inputValue} '"

    label = "#{bindings." ProvinceView1.hints.ProvinceDateInactive.label}.

    required = "#{bindings." ProvinceView1.hints.ProvinceDateInactive.mandatory}.

    shortDesc = "#{bindings." ProvinceView1.hints.ProvinceDateInactive.tooltip}.

    ID = "id1" >

    < f: validator binding="#{row.bindings.ProvinceDateInactive.validator}"/ >

    < af:convertDateTime pattern = "#{bindings." ProvinceView1.hints.ProvinceDateInactive.format}"/ >

    < / af:inputDate >

    < / af:column >

    < / af:table >

    < / af:panelCollection >

    < / af:panelHeader >

    < / jsp:root >

    JSFF not able to create the record when you click the createinsert button

    <? XML version = "1.0" encoding = "UTF - 8"? >

    " < = xmlns:jsp jsp:root ' http://Java.Sun.com/JSP/page "version ="2.1" "

    ' xmlns:af = ' http://xmlns.Oracle.com/ADF/faces/rich "" "

    ' xmlns:f = ' http://Java.Sun.com/JSF/core ">

    < af:panelStretchLayout id = "PSL1" >

    < f: facet name = "center" >

    < af:panelHeader text = "Manage the Code window" id = "ph1" >

    < f: facet = 'context' name / >

    < name f: facet = 'bar menu' / >

    < name f: facet = "toolbar" / >

    < f: facet = name "legend" / >

    < f: facet = 'info' name / >

    < af:panelCollection id = "pc1" >

    < f: facet = 'menus' name / >

    < f: facet name = "toolbar" >

    < af:toolbar id = "t1" >

    < af:commandButton actionListener = "#{bindings." CreateInsert.execute}.

    Text = "CreateInsert."

    ID = "cb1" partialSubmit = "true" / >

    < af:commandButton actionListener = "#{bindings.Commit.execute} '"

    Text = "Save."

    ID = "cb2" / >

    < af:quickQuery label = 'Search' searchDesc = 'Search' id = 'qryId1 '.

    value = "#{bindings." ImplicitViewCriteriaQuery.quickQueryDescriptor}.

    model = ' #{bindings. " ImplicitViewCriteriaQuery.queryModel}.

    queryListener = ' #{bindings. " ImplicitViewCriteriaQuery.processQuery} ">"

    < f: facet = 'end' name >

    < af:commandLink text = "Advanced" id = "cl1" / >

    < / f: facet >

    < / af:quickQuery >

    < / af:toolbar >

    < / f: facet >

    < name f: facet = 'bar of Θtat' / >

    < af:table value = "#{bindings." Var BranchesView1.collectionModel}"="row ".

    lines = ' #{bindings. " BranchesView1.rangeSize}.

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

    fetchSize = "#{bindings." BranchesView1.rangeSize}.

    rowBandingInterval = '0 '.

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

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

    rowSelection = "single" id = 't2' columnStretching = 'last '.

    "partialTriggers =": cb1: qryId1 ' immediate = "false".

    columnResizing = "enabled" >

    < af:column sortProperty = "#{bindings." BranchesView1.hints.BranchAd.name}.

    sortable = "true".

    headerText = "#{bindings." BranchesView1.hints.BranchAd.label}.

    ID = "c13" >

    < af:inputText value = "#{row.bindings.BranchAd.inputValue} '"

    label = "#{bindings." BranchesView1.hints.BranchAd.label}.

    required = "#{bindings." BranchesView1.hints.BranchAd.mandatory}.

    columns = "#{bindings." BranchesView1.hints.BranchAd.displayWidth}.

    maximumLength = "#{bindings." BranchesView1.hints.BranchAd.precision}.

    shortDesc = "#{bindings." BranchesView1.hints.BranchAd.tooltip}.

    ID = "it11" >

    < f: validator binding="#{row.bindings.BranchAd.validator}"/ >

    < af:convertNumber groupingUsed = "false".

    model = ' #{bindings. " BranchesView1.hints.BranchAd.format}"/ >

    < / af:inputText >

    < / af:column >

    < af:column sortProperty = "#{bindings." BranchesView1.hints.BranchCode.name}.

    sortable = "true".

    headerText = "#{bindings." BranchesView1.hints.BranchCode.label}.

    ID = "c8" >

    < af:inputText value = "#{row.bindings.BranchCode.inputValue} '"

    label = "#{bindings." BranchesView1.hints.BranchCode.label}.

    required = "#{bindings." BranchesView1.hints.BranchCode.mandatory}.

    columns = "#{bindings." BranchesView1.hints.BranchCode.displayWidth}.

    maximumLength = "#{bindings." BranchesView1.hints.BranchCode.precision}.

    shortDesc = "#{bindings." BranchesView1.hints.BranchCode.tooltip}.

    ID = "it4" >

    < f: validator binding="#{row.bindings.BranchCode.validator}"/ >

    < / af:inputText >

    < / af:column >

    < af:column sortProperty = "#{bindings." BranchesView1.hints.BranchName.name}.

    sortable = "true".

    headerText = "#{bindings." BranchesView1.hints.BranchName.label}.

    ID = "c2" >

    < af:inputText value = "#{row.bindings.BranchName.inputValue} '"

    label = "#{bindings." BranchesView1.hints.BranchName.label}.

    required = "#{bindings." BranchesView1.hints.BranchName.mandatory}.

    columns = "#{bindings." BranchesView1.hints.BranchName.displayWidth}.

    maximumLength = "#{bindings." BranchesView1.hints.BranchName.precision}.

    shortDesc = "#{bindings." BranchesView1.hints.BranchName.tooltip}.

    ID = "it2" >

    < f: validator binding="#{row.bindings.BranchName.validator}"/ >

    < / af:inputText >

    < / af:column >

    < af:column sortProperty = "#{bindings." BranchesView1.hints.BranchAddressLine1.name}.

    sortable = "true".

    headerText = "#{bindings." BranchesView1.hints.BranchAddressLine1.label}.

    ID = "c7" >

    < af:inputText value = "#{row.bindings.BranchAddressLine1.inputValue} '"

    label = "#{bindings." BranchesView1.hints.BranchAddressLine1.label}.

    required = "#{bindings." BranchesView1.hints.BranchAddressLine1.mandatory}.

    columns = "#{bindings." BranchesView1.hints.BranchAddressLine1.displayWidth}.

    maximumLength = "#{bindings." BranchesView1.hints.BranchAddressLine1.precision}.

    shortDesc = "#{bindings." BranchesView1.hints.BranchAddressLine1.tooltip}.

    ID = "it6" >

    < f: validator binding="#{row.bindings.BranchAddressLine1.validator}"/ >

    < / af:inputText >

    < / af:column >

    < af:column sortProperty = "#{bindings." BranchesView1.hints.BranchAddressLine2.name}.

    sortable = "true".

    headerText = "#{bindings." BranchesView1.hints.BranchAddressLine2.label}.

    ID = 'c3' >

    < af:inputText value = "#{row.bindings.BranchAddressLine2.inputValue} '"

    label = "#{bindings." BranchesView1.hints.BranchAddressLine2.label}.

    required = "#{bindings." BranchesView1.hints.BranchAddressLine2.mandatory}.

    columns = "#{bindings." BranchesView1.hints.BranchAddressLine2.displayWidth}.

    maximumLength = "#{bindings." BranchesView1.hints.BranchAddressLine2.precision}.

    shortDesc = "#{bindings." BranchesView1.hints.BranchAddressLine2.tooltip}.

    ID = "it1" >

    < f: validator binding="#{row.bindings.BranchAddressLine2.validator}"/ >

    < / af:inputText >

    < / af:column >

    < af:column sortProperty = "#{bindings." BranchesView1.hints.BranchCityCode.name}.

    sortable = "true".

    headerText = "#{bindings." BranchesView1.hints.BranchCityCode.label}.

    ID = 'c12' >

    < af:inputText value = "#{row.bindings.BranchCityCode.inputValue} '"

    label = "#{bindings." BranchesView1.hints.BranchCityCode.label}.

    required = "#{bindings." BranchesView1.hints.BranchCityCode.mandatory}.

    columns = "#{bindings." BranchesView1.hints.BranchCityCode.displayWidth}.

    maximumLength = "#{bindings." BranchesView1.hints.BranchCityCode.precision}.

    shortDesc = "#{bindings." BranchesView1.hints.BranchCityCode.tooltip}.

    ID = "it5" >

    < f: validator binding="#{row.bindings.BranchCityCode.validator}"/ >

    < af:convertNumber groupingUsed = "false".

    model = ' #{bindings. " BranchesView1.hints.BranchCityCode.format}"/ >

    < / af:inputText >

    < / af:column >

    < af:column sortProperty = "#{bindings." BranchesView1.hints.BranchSuburb.name}.

    sortable = "true".

    headerText = "#{bindings." BranchesView1.hints.BranchSuburb.label}.

    ID = "c9" >

    < af:inputText value = "#{row.bindings.BranchSuburb.inputValue} '"

    label = "#{bindings." BranchesView1.hints.BranchSuburb.label}.

    required = "#{bindings." BranchesView1.hints.BranchSuburb.mandatory}.

    columns = "#{bindings." BranchesView1.hints.BranchSuburb.displayWidth}.

    maximumLength = "#{bindings." BranchesView1.hints.BranchSuburb.precision}.

    shortDesc = "#{bindings." BranchesView1.hints.BranchSuburb.tooltip}.

    ID = "9" >

    < f: validator binding="#{row.bindings.BranchSuburb.validator}"/ >

    < / af:inputText >

    < / af:column >

    < af:column sortProperty = "#{bindings." BranchesView1.hints.BranchProvinceCode.name}.

    sortable = "true".

    headerText = "#{bindings." BranchesView1.hints.BranchProvinceCode.label}.

    ID = "c11" >

    < af:inputText value = "#{row.bindings.BranchProvinceCode.inputValue} '"

    label = "#{bindings." BranchesView1.hints.BranchProvinceCode.label}.

    required = "#{bindings." BranchesView1.hints.BranchProvinceCode.mandatory}.

    columns = "#{bindings." BranchesView1.hints.BranchProvinceCode.displayWidth}.

    maximumLength = "#{bindings." BranchesView1.hints.BranchProvinceCode.precision}.

    shortDesc = "#{bindings." BranchesView1.hints.BranchProvinceCode.tooltip}.

    ID = 'it8' >

    < f: validator binding="#{row.bindings.BranchProvinceCode.validator}"/ >

    < af:convertNumber groupingUsed = "false".

    model = ' #{bindings. " BranchesView1.hints.BranchProvinceCode.format}"/ >

    < / af:inputText >

    < / af:column >

    < af:column sortProperty = "#{bindings." BranchesView1.hints.BranchPostalCode.name}.

    sortable = "true".

    headerText = "#{bindings." BranchesView1.hints.BranchPostalCode.label}.

    ID = "c5" >

    < af:inputText value = "#{row.bindings.BranchPostalCode.inputValue} '"

    label = "#{bindings." BranchesView1.hints.BranchPostalCode.label}.

    required = "#{bindings." BranchesView1.hints.BranchPostalCode.mandatory}.

    columns = "#{bindings." BranchesView1.hints.BranchPostalCode.displayWidth}.

    maximumLength = "#{bindings." BranchesView1.hints.BranchPostalCode.precision}.

    shortDesc = "#{bindings." BranchesView1.hints.BranchPostalCode.tooltip}.

    ID = "it7" >

    < f: validator binding="#{row.bindings.BranchPostalCode.validator}"/ >

    < / af:inputText >

    < / af:column >

    < af:column sortProperty = "#{bindings." BranchesView1.hints.BranchTelephone.name}.

    sortable = "true".

    headerText = "#{bindings." BranchesView1.hints.BranchTelephone.label}.

    ID = "c6" >

    < af:inputText value = "#{row.bindings.BranchTelephone.inputValue} '"

    label = "#{bindings." BranchesView1.hints.BranchTelephone.label}.

    required = "#{bindings." BranchesView1.hints.BranchTelephone.mandatory}.

    columns = "#{bindings." BranchesView1.hints.BranchTelephone.displayWidth}.

    maximumLength = "#{bindings." BranchesView1.hints.BranchTelephone.precision}.

    shortDesc = "#{bindings." BranchesView1.hints.BranchTelephone.tooltip}.

    ID = "it3" >

    < f: validator binding="#{row.bindings.BranchTelephone.validator}"/ >

    < / af:inputText >

    < / af:column >

    < af:column sortProperty = "#{bindings." BranchesView1.hints.BranchDateActive.name}.

    sortable = "true".

    headerText = "#{bindings." BranchesView1.hints.BranchDateActive.label}.

    ID = "c10" >

    < af:inputDate value = "#{row.bindings.BranchDateActive.inputValue} '"

    label = "#{bindings." BranchesView1.hints.BranchDateActive.label}.

    required = "#{bindings." BranchesView1.hints.BranchDateActive.mandatory}.

    shortDesc = "#{bindings." BranchesView1.hints.BranchDateActive.tooltip}.

    ID = "id2" >

    < f: validator binding="#{row.bindings.BranchDateActive.validator}"/ >

    < af:convertDateTime pattern = "#{bindings." BranchesView1.hints.BranchDateActive.format}"/ >

    < / af:inputDate >

    < / af:column >

    < af:column sortProperty = "#{bindings." BranchesView1.hints.BranchDateInactive.name}.

    sortable = "true".

    headerText = "#{bindings." BranchesView1.hints.BranchDateInactive.label}.

    ID = "c1" >

    < af:inputDate value = "#{row.bindings.BranchDateInactive.inputValue} '"

    label = "#{bindings." BranchesView1.hints.BranchDateInactive.label}.

    required = "#{bindings." BranchesView1.hints.BranchDateInactive.mandatory}.

    shortDesc = "#{bindings." BranchesView1.hints.BranchDateInactive.tooltip}.

    ID = "id1" >

    < f: validator binding="#{row.bindings.BranchDateInactive.validator}"/ >

    < af:convertDateTime pattern = "#{bindings." BranchesView1.hints.BranchDateInactive.format}"/ >

    < / af:inputDate >

    < / af:column >

    < af:column sortProperty = "#{bindings." BranchesView1.hints.BranchHub.name}.

    sortable = "true".

    headerText = "#{bindings." BranchesView1.hints.BranchHub.label}.

    ID = 'c4' >

    < af:inputText value = "#{row.bindings.BranchHub.inputValue} '"

    label = "#{bindings." BranchesView1.hints.BranchHub.label}.

    required = "#{bindings." BranchesView1.hints.BranchHub.mandatory}.

    columns = "#{bindings." BranchesView1.hints.BranchHub.displayWidth}.

    maximumLength = "#{bindings." BranchesView1.hints.BranchHub.precision}.

    shortDesc = "#{bindings." BranchesView1.hints.BranchHub.tooltip}.

    ID = "it10" >

    < f: validator binding="#{row.bindings.BranchHub.validator}"/ >

    < / af:inputText >

    < / af:column >

    < / af:table >

    < / af:panelCollection >

    < / af:panelHeader >

    <!-id = "af_one_column_stretched"->

    < / f: facet >

    < / af:panelStretchLayout >

    < / jsp:root >

    Go to the pageDef and for related iterator to your table, set ChangeEventPolicy property to the ppr

  • ALTER TABLE with the column NULL time consuming

    Hello

    I have a table with nearly 2 million documents (about 10 GB size table) when I perform the following change statement its run fast

    ALTER TABLE tbl_1 ADD (DEFAULT col_4 NUMBER 100 NOT NULL);

    but when I do not give the NOT NULL in the alter its taking a long time to complete this i.e tbl_1 of ALTER TABLE ADD (NUMBER col_4 by DEFAULT 100); once I do the column as NOT NULL.

    Can someone explain why is it happening like that regarding the execution point.

    Thanks in advance.

    I can reproduce the effect in 11.2.0.1 - but not in 12.1.0.1.

    drop table tbl_1;

    create table tbl_1

    as

    Select rownum id

    , lpad ('* ', 50,' *') padding

    of the double

    connect by level<=>

    ALTER TABLE tbl_1 ADD (NUMBER col_4 by DEFAULT 100);

    --> slow in 11.2.0.1; fast 12.1.0.1

    ALTER TABLE tbl_1 ADD (DEFAULT col_4 NUMBER 100 NOT NULL);

    --> Quick 11.2.0.1 and 12.1.0.1

    A SQL trace for two operations (11g) shows that the altar slow (without the constraint explicit non-null) made explicit (and tedious) update of any row in the table:

    Update 'TBL_1"set"COL_4"= 100

    call the query of disc elapsed to cpu count current lines

    ------- ------  -------- ---------- ---------- ---------- ----------  ----------

    Parse        1      0.00       0.02          0          1          0           0

    Run 1 11,63 33.56 8336 1016125 2053531 1000000

    Fetch        0      0.00       0.00          0          0          0           0

    ------- ------  -------- ---------- ---------- ---------- ----------  ----------

    Total 2 11,63 33,58 8336 1016126 2053531 1000000

    The other trace file does not contain the explicit Update. I guess in the optimized case that oracle stores somewhere that col_4 has the value 100 and updates only the line of the block after completing DML operations. But that's just a guess.

  • Update a table with one column of another

    Oracle 11g
    Hello

    i'im trying to update the two columns of table SUPPORT (SUPPORT_X, SUPPORT_Y) with two columns of table POST_HTA_BT (POSTHTABT_GPS_X, POSTHTABT_GPS_Y)

    Understand that the two tables have the colum below:

    SUPPORT (SUPPORT_ID, SUPPORT_PLAQUE, POSTHTABT_ID, SUPPORT_X, SUPPORT_Y,...)

    POST_HTA_BT (POSTHTABT_ID, POSTHTABT_GPS_X, POSTHTABT_GPS_Y,...)

    The SUPPORT_PLAQUE has type varachar. Except the keys, the other columns are varchar type in both tables.

    The point here is to update the support_x, support_y with posthtabt_gps_x and posthtabt_gps_y.But before the update we have Sheik if the fifth number of the support plate is a number of characters from "0" to "9"and the rest of the caracter of the support_plaque is '00000'

    Please note that the support_plaque is stored in the table with the form: "0025800000!"

    So I did the below script, I try to execute in sql develop.

    SET SERVEROUTPUT ON

    DECLARE
    chiffre_liste varchar (200): = '0 ', '1', '2', '3', '4', ' 5 ', ' 6' ', 7', ' 8 ', ' 9';
    CURSOR CUR_GPS_SUPPORT IS
    Select MEDIA. SUPPORT_X, SUPPORT. SUPPORT_Y, POSTE_HTA_BT. POSTHTABT_ID, SUPPORT. EXPL_ID,
    SUPPORTED. SUPPORT_PLAQUE, POSTHTABT_GPS_X, POSTHTABT_GPS_Y
    support,.
    POSTE_HTA_BT
    where
    SUPPORTED. SUPPORT_X IS NULL and
    SUPPORTED. SUPPORT_Y IS NULL and
    SUPPORTED. POSTHTABT_ID = POSTE_HTA_BT. POSTHTABT_ID and
    SUPPORTED. EXPL_ID = POSTE_HTA_BT. EXPL_ID
    Order of SUPPORT. POSTHTABT_ID;

    w_POSTHTABT_ID POSTE_HTA_BT. Type of POSTHTABT_ID %;
    w_SUPPORT_X SUPPORT. TYPE % SUPPORT_X;
    w_SUPPORT_Y SUPPORT. TYPE % SUPPORT_Y;
    w_EXPL_ID SUPPORT. TYPE % EXPL_ID;
    w_SUPPORT_PLAQUE SUPPORT. TYPE % SUPPORT_PLAQUE;
    w_POSTHTABT_GPS_X POSTE_HTA_BT. TYPE % POSTHTABT_GPS_X;
    w_POSTHTABT_GPS_Y POSTE_HTA_BT. TYPE % POSTHTABT_GPS_Y;

    BEGIN
    DBMS_OUTPUT. Put_line ('loading the coordoonnees GPS - GPS Coord update takes care of starting ');

    FOR HEART LOOPING CUR_GPS_SUPPORT

    w_POSTHTABT_ID: = cur. POSTHTABT_ID;
    w_SUPPORT_PLAQUE: = cur. SUPPORT_PLAQUE;
    w_SUPPORT_X: = cur. SUPPORT_X;
    w_SUPPORT_Y: = cur. SUPPORT_Y;
    w_POSTHTABT_GPS_X: = cur. POSTHTABT_GPS_X;
    w_POSTHTABT_GPS_Y: = cur. POSTHTABT_GPS_X;

    If substr (cur.support_plaque, 5, 1 chiffre_liste) and substr (cur.support_plaque, 6, 5) = '00000'
    w_SUPPORT_X: = CUR. POSTHTABT_GPS_X
    w_SUPPORT_Y: = CUR. POSTHTABT_GPS_Y
    END if;
    EXCEPTION WHEN NO_DATA_FOUND THEN w_SUPPORT_X: = NULL and w_SUPPORT_Y: = NULL;
    END;

    -Updated the table of the supports
    Update SUPPORT
    Set SUPPORT_X = w_SUPPORT_X,
    SUPPORT_Y = w_SUPPORT_Y
    where SUPPORT_PLAQUE = w_SUPPORT_PLAQUE;
    -On valid imm? immediately
    commit;
    EXCEPTION when no_data_found then null;
    -No details found
    END;

    END;
    /

    and I got the following errors:

    Error report:
    ORA-06550: line 2, colum 34:
    PLS-00103: symbol ',' met instead of one of the following symbols:

    * & = - + ; <>/ is mod remains not rem
    <>< Hurst (*) > or! = or ~ = > = < = <>and like2 or
    like4 likec between | submultiset of type multiset Member
    ORA-06550: line 2, column 52:
    PLS-00103: symbol ';' met instead of one of the following symbols:

    ), * & = - + <>/ is mod remains not rem = >
    <>< Hurst (*) > or! = or ~ = > = < = <>and like2 or
    like4 likec between | Member of multiset must
    ORA-06550: line 38, colum 48:
    PLS-00103: symbol 'CHIFFRE_LISTE' met instead of one of the following symbols:

    (
    Symbol "(" a été substitué à "CHIFFRE_LISTE" verser continuer.) "
    ORA-06550: line 39, 12 colum:
    PLS-00103: symbol 'W_SUPPORT_X' met instead of one of the following symbols:

    ), * & -+ / at rem mod < Hurst (*) > rest and or.
    multiset
    ORA-06550: line 40, 12 colum:
    PLS-00103: symbol 'W_SUPPORT_Y' met instead of one of the following symbols:

    . (), * @ % & = - + <>/ is mod remains not rem
    <>< Hurst (*) > or! = or ~ = > = < = <>and like2 or
    like4 likec between | mult
    ORA-06550: line 41, colum 9:
    PLS-00103: symbol 'END' met instead of one of the following symbols:

    . (), * @ % & = - + <>/ is mod remains not rem
    <>< Hurst (*) > or! = or ~ = > = < = <>and like2 or
    like4 likec between | multiset members
    06550 00000 - "line %s, column % s:\n%s".
    * Cause: Usually a PL/SQL compilation error.
    * Action:

    I checked the line number, but do not see the error in my code.

    Please could you help me?

    peace

    Hello

    glad to know that it worked. In fact, I don't see the reason to make these complicated processes.

    Remember the mantra:

    • If you can do it with SQL then do it with SQL

    Good evening!

    Alberto

  • Create a table with one column '&amp; '.

    Hi all

    I need to create a column on my table with the character &. I try this way:

    SQL > CREATE TABLE 'CRIMIS_CARGA '. "" TM_EXCEL_CONSEN ".
    2 (NUMBER OF 'LINEA',
    3 'ID_INSTITUCION & ASSOCIATE' VARCHAR2 (510 char));

    but I can't because that ASD sqlplus to associate value...

    The ideas people?

    Kind regards
    dbajug

    set the escape ' \'

    Oracle@test > CREATE TABLE 'TM_EXCEL_CONSEN '.
    2 (NUMBER OF 'LINEA',
    3 VARCHAR2 (100)) 'ID_INSTITUCION\ & ASSOCIATE;

    Table created.

    Oracle@test > desc 'TM_EXCEL_CONSEN '.
    Name Null? Type
    ----------------------------------------- -------- ----------------------------
    NUMBER OF LINEA
    VARCHAR2 (100) ID_INSTITUCION & ASSOCIATE

Maybe you are looking for

  • Display child windows

    Hello We are the team what to do NOR supported spirometer. 1. are there examples of see the children windows? structure:, start VI contains 3 button for the user to choose which child VI to open and hide if child VI shows (or appear so child VI close

  • How can I get the product key for Windows XP? I have is no longer mine.

    I GOT THE CD OF ORIGIN FOR WINDOWS XP HOME EDITION WITH PRODUCT KEY, NOW I DON'T HAVE THE PRODUCT KEY OF FORMATTING IS MADE FOR MY COMPUTER AND IT ASKING PRODUCT KEY DEAR SIR. I HAD BOUGHT WINDOWS XP HOME OF DIGITAL LIVING ROOM IN BANGALORE (INDIA) 2

  • Printers attached to the port USB E3200 - addresses MAC and IP

    HI - I have a printer connected to the USB port of my E3200. It works perfectly as a network device. It happens to be an Epson Stylus Photo 1400. My question: This printer has now its own MAC or IP address? If yes how can I determine what they are? I

  • Does anyone know how to display items recently printed?

    Recently, I printed a piece of course of Microsoft Office Word (2003), but due to some technical errors I had at hand late... Now, I'll try to find a list of items recently printed so that I can "Print screen" to prove that I printed my work in time

  • validation of the genuine copy of windows 7

    Not a copy genuine Windows 7 ultimate I had a PC custom built and installed Windows 7 Ultimate was on it. Have been using for about 7 months with no problems, the copy of Windows has been activated and saved from Microsoft, but after a