Centering Table withing a form

I'm using a table to create my form input fields.  I'd like the table to be centered on the page rather than the default left justified.  The Format>Align>Center command does not work.  Any ideas on what I can do to center the table within a form?  Thanks.  Mark Reynolds

The answer may depend on other code you have on the page, but presuming that your table can be 600px wide, try the following CSS -
table {
     width:600px;
     margin:0 auto;
Note that this will affect ALL tables on the page.  If you have more than just this one table, then add an ID to that table and to the selector, e.g.,
table#form {
     width:600px;
     margin: 0 auto;
<table id="form"...

Similar Messages

  • How to Highlight the CURRENT RECORD in a Table with Report Form

    Hi,
    I have created a Table with Report Form....let suppose the table is - EMP
    Report page - 1
    Form page - 2
    Now, when I do Create / Update on Page 2,....the control is back on Page1.
    Suppose in the Report Page (Page1)..we have 10 records....NOW how should I highlight the CURRENT RECORD in Page 1 with some color to identify the record which I have updated/created just now...
    Thanks,
    Deepak

    Hi Deepak,
    You could do that with a custom report template. I've done that here: [http://apex.oracle.com/pls/otn/f?p=267:175]
    Go to Shared Components, Templates and create a new Report template as a copy of your existing one. Then edit your template. In the above example, the Column Template 1 setting was:
    &lt;td #ALIGNMENT# headers="#COLUMN_HEADER#" class="t18data"&gt;#COLUMN_VALUE#&lt;/td&gt;I copied this into the Column Template 2 setting and updated the Column Template 1 setting to:
    &lt;td #ALIGNMENT# headers="#COLUMN_HEADER#" class="t18data" style="background-color:red; color:yellow;"&gt;#COLUMN_VALUE#&lt;/td&gt;I then set the Column Template 1 Condition to: Use Based on PL/SQL Expression
    and the Column Template 1 Expression to: '#EMPNO#' = '&P178_EMPNO.'
    (In my example, P178_EMPNO is the single item on the linked to page.
    Save those changes and go to your report and change its template to the new one. As long as a selection has been made and P178_EMPNO has a value, the condition will make sure that the report uses the first template for the row with the matching EMPNO value. All other rows get the template from Column Template 2.
    Andy

  • How to include the search criteria in "Form on a Table with Report" form.

    Hi,
    I am struggling hard to get to this point can any body help me...
    I had created a page type form and in that I selected Form on a Table with Report..so the hirerachy is Form >> Form on a Table with Report. In that I managed to give one column of data hyperlink so that once we click on that column data it will takes to next form to display all other information.
    But, the problem is there is not serach criteria available on this type of page.Could any body give me a solution how to get on to this.
    Cheers,
    krishna.

    Hi,
    Could, some body please answer to my question I raised above.
    Cheers,
    Krishna.

  • Update Multiple DB records in one table with one form

    I am developing an onine proofing system that will display a
    number of images, and then allow the customer to approve each
    image, as well as provide comments.
    I currently have a table setup with the various elements (an
    image that dynamically gets its name, details about the image, and
    the neccessary form fields).
    See This
    Image for the layout
    I would then apply a repeat region (the number of signs would
    vary), and like to update all the records with the customer's
    comments and approval with one form. How is this done? I have
    downloaded a trial of the developers toolkit, but the documentation
    is horrible. I would be willing to buy an extension that will allow
    this, if one exists.

    I found an extension that did this in about two minutes:
    http://www.webassist.com/professional/products/productdetails.asp?PID=117
    Excellent software, highly recommended. Easy to figure out,
    and got this "problem" resolved fast.

  • Sap database tables with adobe forms

    Hai all,
      I am new to adobe forms...Can anyone explain me how to link sap database with adobe forms....
    Any documents regarding tht will be helpful.....
    Thanks in advance....

    Hi,
    Check these:
    https://www.sdn.sap.com/irj/sdn/adobe
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2a8a0a37-0301-0010-f794-aecd1bb426e0
    http://help.sap.com/saphelp_nw2004s/helpdata/en/37/47a2be350c4ac8afe36b691203971f/frameset.htm
    Regards,
    Subramanian

  • Linking oracle tables with access form

    I am trying to use microsoft acess forms to access oracle tables. pls where can i get sql.net to connect microsoft access from the client to oracle on the server machine using ODBC.
    Thanks

    Hi seyiisq!
    The following link describes exactly what you wanna know.
    [http://www.databasejournal.com/features/oracle/article.php/3358411/Connecting-with-Oracle-Accessing-Oracle-via-Access-and-Excel.htm]
    yours sincerely
    Florian w.

  • How can I combine post to two different tables with one form?

    I am trying to create a "phantom" record in a table to be used later in a report. How can I create a form and properly $_POST to two different tables? Thanks for any suggestions!

    In POST processing, just do the insert to one table, followed by the insert to the second table. I don't understand where you are getting stuck.
    Sometimes when we do an insert, we need the auto-generated ID from the newly created record as a "foreign key" for the record created in the second insert. MySQL has a nifty solution for that. The specific code depends on whether you are using the mysql, mysqli or PDO database connection.

  • How to add tables with existing Form(system form)

    Hi,All
    I want to add another tab with production order window
    Tab (folder) -folder name is Routing process
    uder this folder im creating one matrix with its table.
    Now i want add my matrix data also while clicking on Add button in Prodution order.
    To accomplish this task i want assign my child table also with prodution order object type..how it is possible...?????
    By
    Firos.C

    Hi Firoz,
    For your requirement, you need to add an other folder with PaneLevel, say 3.  in that Pane, you need to add your matrix and bind it to the corresponding table, an UDT, as Vasu had specified and accordingly you need to handle the operations corresponding to the mode.
    Regards,
    Satish. B.

  • Updating one table with colum of another one

    Oracle 11g
    Hi,
    i'im trying to update two colums from SUPPORT (SUPPORT_X, SUPPORT_Y) table with two colums of POST_HTA_BT( POSTHTABT_GPS_X, POSTHTABT_GPS_Y ) table
    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 the varachar type. Except the keys, other colums are varchar type in the two tables.
    The point here is to update the support_x, support_y with posthtabt_gps_x and posthtabt_gps_y.But before update we must cheik if the fifth number of support plaque is a character number between "0" to "9' and if 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 script below i'm trying to execute in sql developper.
    SET SERVEROUTPUT ON
    DECLARE
       chiffre_liste varchar(200):= '0','1','2','3','4','5','6','7','8','9';
       CURSOR CUR_GPS_SUPPORT IS
           select SUPPORT.SUPPORT_X,SUPPORT.SUPPORT_Y,POSTE_HTA_BT.POSTHTABT_ID,SUPPORT.EXPL_ID,
                  SUPPORT.SUPPORT_PLAQUE,POSTHTABT_GPS_X,POSTHTABT_GPS_Y
              from   SUPPORT,
                   POSTE_HTA_BT
            where
              SUPPORT.SUPPORT_X  IS NULL and
              SUPPORT.SUPPORT_Y  IS NULL and
              SUPPORT.POSTHTABT_ID   = POSTE_HTA_BT.POSTHTABT_ID and
              SUPPORT.EXPL_ID  = POSTE_HTA_BT.EXPL_ID
              order by SUPPORT.POSTHTABT_ID;
           w_POSTHTABT_ID         POSTE_HTA_BT.POSTHTABT_ID%type;
           w_SUPPORT_X            SUPPORT.SUPPORT_X%TYPE;
           w_SUPPORT_Y            SUPPORT.SUPPORT_Y%TYPE;
           w_EXPL_ID              SUPPORT.EXPL_ID%TYPE;
           w_SUPPORT_PLAQUE       SUPPORT.SUPPORT_PLAQUE%TYPE;
           w_POSTHTABT_GPS_X      POSTE_HTA_BT.POSTHTABT_GPS_X%TYPE;
           w_POSTHTABT_GPS_Y      POSTE_HTA_BT.POSTHTABT_GPS_Y%TYPE;
    BEGIN
        DBMS_OUTPUT.PUT_LINE('Chargement des coordoonnées GPS -Mise à jour Coord GPS des supports de Départ');
         FOR CUR IN  CUR_GPS_SUPPORT LOOP
              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)  in 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;
            --Update de la table des supports
             update SUPPORT
                set SUPPORT_X            = w_SUPPORT_X,
                    SUPPORT_Y            = w_SUPPORT_Y
             where  SUPPORT_PLAQUE       = w_SUPPORT_PLAQUE;
             -- On valide imm?diatement
             commit;
             EXCEPTION when no_data_found then null;
             -- Pas de coordonnées trouvées
             END;
    END;
    and i got the following errors:
    Rapport d'erreur :
    ORA-06550: Line 2, colum 34 :
    PLS-00103: Symbole "," rencontré à la place d'un des symboles suivants :
       * & = - + ; < / > at in is mod remainder not rem
       <exposant (**)> <> or != or ~= >= <= <> and or like like2
       like4 likec between || multiset member submultiset
    ORA-06550: Ligne 2, colonne 52 :
    PLS-00103: Symbole ";" rencontré à la place d'un des symboles suivants :
       ) , * & = - + < / > at in is mod remainder not rem =>
       <exposant (**)> <> or != or ~= >= <= <> and or like like2
       like4 likec between || multiset member subm
    ORA-06550: Line 38, colum 48 :
    PLS-00103: Symbole "CHIFFRE_LISTE" rencontré à la place d'un des symboles suivants :
    Symbole "(" a été substitué à "CHIFFRE_LISTE" pour continuer.
    ORA-06550: Line 39, colum 12 :
    PLS-00103: Symbole "W_SUPPORT_X" rencontré à la place d'un des symboles suivants :
       ) , * & - + / at mod remainder rem <exposant (**)> and or ||
       multiset
    ORA-06550: Line 40, colum 12 :
    PLS-00103: Symbole "W_SUPPORT_Y" rencontré à la place d'un des symboles suivants :
       . ( ) , * @ % & = - + < / > at in is mod remainder not rem
       <exposant (**)> <> or != or ~= >= <= <> and or like like2
       like4 likec between || mult
    ORA-06550: Line 41, colum 9 :
    PLS-00103: Symbole "END" rencontré à la place d'un des symboles suivants :
       . ( ) , * @ % & = - + < / > at in is mod remainder not rem
       <exposant (**)> <> or != or ~= >= <= <> and or like like2
       like4 likec between || multiset memb
    06550. 00000 -  "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:
    I verified the line number, but don't see the error in my code.
    Please could you help me?
    peace

    Here the new  script
    SET SERVEROUTPUT ON
    DECLARE
       TYPE chiffre_liste IS TABLE OF VARCHAR2(10);
        my_list  chiffre_liste;
       CURSOR CUR_GPS_SUPPORT IS
           select SUPPORT.SUPPORT_X,SUPPORT.SUPPORT_Y,POSTE_HTA_BT.POSTHTABT_ID,SUPPORT.EXPL_ID,
                  SUPPORT.SUPPORT_PLAQUE,POSTHTABT_GPS_X,POSTHTABT_GPS_Y
              from   SUPPORT,
                   POSTE_HTA_BT
            where
              SUPPORT.SUPPORT_X  IS NULL and
              SUPPORT.SUPPORT_Y  IS NULL and
              SUPPORT.POSTHTABT_ID   = POSTE_HTA_BT.POSTHTABT_ID and
              SUPPORT.EXPL_ID  = POSTE_HTA_BT.EXPL_ID
              order by SUPPORT.POSTHTABT_ID;
           w_POSTHTABT_ID         POSTE_HTA_BT.POSTHTABT_ID%TYPE;
           w_SUPPORT_X            SUPPORT.SUPPORT_X%TYPE;
           w_SUPPORT_Y            SUPPORT.SUPPORT_Y%TYPE;
           w_EXPL_ID              SUPPORT.EXPL_ID%TYPE;
           w_SUPPORT_PLAQUE       SUPPORT.SUPPORT_PLAQUE%TYPE;
           w_POSTHTABT_GPS_X      POSTE_HTA_BT.POSTHTABT_GPS_X%TYPE;
           w_POSTHTABT_GPS_Y      POSTE_HTA_BT.POSTHTABT_GPS_Y%TYPE;
    BEGIN
        DBMS_OUTPUT.PUT_LINE('Chargement des coordoonnées GPS -Mise à jour Coord GPS des supports de Départ');
        my_list := chiffre_liste('0','1','2','3','4','5','6','7','8','9');
         FOR CUR IN  CUR_GPS_SUPPORT LOOP
              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) in (my_list) then
                 if substr(cur.support_plaque,6,5)='00000' then
                     w_SUPPORT_X := CUR.POSTHTABT_GPS_X;
                     w_SUPPORT_Y := CUR.POSTHTABT_GPS_Y;
                 End if;
            END if;
            --EXCEPTION WHEN NO_DATA_FOUND THEN w_SUPPORT_X,w_SUPPORT_Y := NULL ;
            --END;
            --Update de la table des supports
             update SUPPORT
                set SUPPORT_X            = w_SUPPORT_X,
                    SUPPORT_Y            = w_SUPPORT_Y
             where  SUPPORT_PLAQUE       = w_SUPPORT_PLAQUE;
             -- On valide imm?diatement
             commit;
             --EXCEPTION when no_data_found then null;
             --Pas de coordonnées trouvées
             --END;
          END LOOP;
    END;
    And i got the error:
    Rapport d'erreur :
    ORA-06550: Ligne 40, colonne 12 :
    PLS-00383: non-concordance de type détectée à 'SUBSTR' dans une clause IN ou NOT IN
    ORA-06550: Ligne 40, colonne 9 :
    PL/SQL: Statement ignored
    06550. 00000 -  "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:
    I think to do a loop with your i idea, something like this:
    DECLARE
    TYPE liste_1 IS TABLE OF NUMBER INDEX BY VARCHAR2(10);
    my_list  liste_1;
    Begin
       my_list('0') := 1;
       my_list('1') := 1;
       my_list('2') := 1;
       my_list('3') := 1;
       my_list('4') := 1;
       my_list('5') := 1;
       my_list('6') := 1;
       my_list('7') := 1;
       my_list('8') := 1;
       my_list('9') := 1;
        for i in my_list  loop
           if substr(cur.support_plaque,5,1) in my_list(i)  then
                 if substr(cur.support_plaque,6,5)='00000' then
                     w_SUPPORT_X := CUR.POSTHTABT_GPS_X;
                     w_SUPPORT_Y := CUR.POSTHTABT_GPS_Y;
                 End if;
           End if;
       End loop
    END;
    What do you think?

  • No data found error on Form on a Table with report

    Hi Everyone, I'm using Application Express 4.1.0.00.32 on Windows 7. I built a Form on a table with report. Earlier I was using rowid as a passing parameter but then I had to change it to primary key column from report to form.
    So in the "Fetch row process" I changed the "Items containing primary key value" and "Primary Key column" to P1004_PERSON_ID and PERSON_ID respectively. Which is my primary key.
    My Form is working exactly fine but at on point it throws "no data found error".
    I have a required date field in the form. So if the user doesn't fill in the date field and try to save the form, it throws the "Feild required error" and then when user enters date and try to save then it throws the error "No data found.". here is the snapshot... snapshot
    How can I fix this error.I'm really stuck.
    I checked debubber..it is as follows... in debughger it's still showing rowid. I don't know why. How can I fix that.
    Execution
    Message
    Level
    Graph
    0.00233
    0.00932
    S H O W: application="101" page="1004" workspace="" request="" session="123235901404364"
    4
    0.01161
    0.00102
    Language derived from: FLOW_PRIMARY_LANGUAGE, current browser language: en-us
    4
    0.01261
    0.00046
    alter session set nls_language="AMERICAN"
    4
    0.01307
    0.00042
    alter session set nls_territory="AMERICA"
    4
    0.01348
    0.00053
    NLS: CSV charset=WE8MSWIN1252
    4
    0.01401
    0.00042
    ...NLS: Set Decimal separator="."
    4
    0.01443
    0.00053
    ...NLS: Set NLS Group separator=","
    4
    0.01495
    0.00050
    ...NLS: Set g_nls_date_format="DD-MON-RR"
    4
    0.01545
    0.00051
    ...NLS: Set g_nls_timestamp_format="DD-MON-RR HH.MI.SSXFF AM"
    4
    0.01597
    0.00050
    ...NLS: Set g_nls_timestamp_tz_format="DD-MON-RR HH.MI.SSXFF AM TZR"
    4
    0.01647
    0.00079
    ...Setting session time_zone to -05:00
    4
    0.01726
    0.00046
    Setting NLS_DATE_FORMAT to application date format: DD-MON-YYYY
    4
    0.01772
    0.00060
    Setting NLS_TIMESTAMP_FORMAT to application timestamp format: DD-MON-YYYY HH24.MI.SSXFF
    4
    0.01832
    0.00092
    ...NLS: Set g_nls_date_format="DD-MON-YYYY"
    4
    0.01924
    0.00049
    ...NLS: Set g_nls_timestamp_format="DD-MON-YYYY HH24.MI.SSXFF"
    4
    0.01973
    0.00083
    ...NLS: Set g_nls_timestamp_tz_format="DD-MON-RR HH.MI.SSXFF AM TZR"
    4
    0.02056
    0.00099
    NLS: Language=en-us
    4
    0.02154
    0.00157
    Application 101, Authentication: PLUGIN, Page Template: 5091946581246503
    4
    0.02312
    0.00065
    ...fetch session state from database
    4
    0.02377
    0.00106
    fetch items
    4
    0.02483
    0.00065
    ...fetched 103 session state items
    4
    0.02548
    0.00194
    Authentication check: NTLM (NATIVE_CUSTOM)
    4
    0.02742
    0.00188
    ...Execute Statement: begin declare begin wwv_flow.g_boolean := f_ntlm_page_sentry_parm; end; end;
    4
    0.02930
    0.00050
    ... sentry+verification success
    4
    0.02980
    0.00042
    ...Session ID 123235901404364 can be used
    4
    0.03021
    0.00114
    ...Application session: 123235901404364, user=VARMAN01
    4
    0.03135
    0.00162
    ...Check for session expiration:
    4
    0.03297
    0.00075
    Session: Fetch session header information
    4
    0.03372
    0.00113
    ...Setting session time_zone to -5:00
    4
    0.03485
    0.00080
    Branch point: Before Header
    4
    0.03565
    0.00598
    Fetch application meta data
    4
    0.04165
    0.00081
    ...metadata, fetch computations
    4
    0.04245
    0.00076
    ...metadata, fetch buttons
    4
    0.04321
    0.00086
    Setting NLS_DATE_FORMAT to application date format: DD-MON-YYYY
    4
    0.04406
    0.00058
    Setting NLS_TIMESTAMP_FORMAT to application timestamp format: DD-MON-YYYY HH24.MI.SSXFF
    4
    0.04464
    0.00049

    Just an observance... SQL is still showing the rowid instead of the P1004_PERSON_ID ??
    where "PERSON_ID" = :p_rowid;
    should it not be :
    where "PERSON_ID" = :P1004_PERSON_ID:
    thx, Bill

  • Form on Table with Report works in one environment but not in another.

    Here's a short description of the problem:
    Created a form on a table with report (using the wizard) in an ApEx application. The form and report work perfect in development environment. Once the application is moved to the Test environment, the insert feature of the form does not work. We have verified that the underlying table the form is based on is there with all the fields, primary key, sequence and trigger.
    Any ideas?
    Marc

    Ben,
    I assume that apex_public_user has all the approporiate privilegesapex_public_user requires no privileges other than those it is created with during installation and the execute privileges on procedures it may acquire as URL-invokable procedures are developed and registered.
    Marc - What are the symptoms of the problem (insert does not work) ? What does the debug output show when you run the page in debug mode? Does the "request" value of the button (create button?) match one of the request values recognized by the DML process?
    Scott

  • Is it possible to update multiple tables with a dynamic form?

    I have columns from two tables populating a dynamic form. I am trying to have the form update both tables on submit. I have tried both a linked transaction and a custom transaction but I am not making progress. Only the master table is being updated. Is it possible with ADDT to update two tables with a dynamic form?

    I meant
    SXMSMSTAT
    SXMSSYERR
    Thanks.

  • Creating form base on a table with more than two columns key

    Hi all,
    I'trying to develop an application with HTMLDB and I'm facing a problem. I have a table with a primary key of 3 columns and I'm not able to load the data into the html db form.The web flow (generated with the wizard) is a browse page with a link to edit page. In the edit page I deleted the standard process and added a custom one.
    This process is PL/SQL anon block and fires onload after header.
    The code is the following:
    Select ENABLED,PARAMETERS,CHECK_LEVEL into :P16_ENABLED,:P16_PARAMETERS,:P16_CHECK_LEVEL FROM CHECK_SETS_CHECKS
    WHERE CHECK_ID=:P16_CHECK_ID AND CHECK_SET_ID=:P16_CHECK_SET_ID AND
    EXECUTION_ORDER=:P16_EXECUTION_ORDER
    i.e. I select the other values using the table primary key.
    When the form renders I don't see the 3 value selected from the query but only the pk ones. I know that the the query is executed because if I change a column name to a non existing one I get an error.
    What I'm missing?
    Thanks,
    Giovanni

    Giovanni,
    Check the source type of the items. They should no longer be source type 'Database Column'.
    Scott

  • Tabular form on table with no p.k

    hi all
    the question i'm about to ask is basic question on creating table , and as a result of that about tabular form
    i have table like this
    IND NUMBER(2)
    COMPANY NUMBER(5)
    CLM_NUM NUMBER(15)
    VERSION_NUM NUMBER(2)
    DATE_GET NUMBER(8)
    CAR_NUMBER VARCHAR2(7)
    MISS_EXPL VARCHAR2(50)
    there can be more than one row with the same data. that's why i cannot do a primary key in this table.
    i want to create a tabular form on this table.
    the question is as follow:
    1.general question not related to tabular form.
    if there is table like in my case,which i cannot see that p.k can create with the columns that i have ,do i have to add column lets say : ID which contain consistent numbers
    which will be the p.k ? , or is it o.k to leave the table with no p.k.
    i know that in apex 1.6 is not giving an option to create table if i'm not declare a p.k , while in 3.1 it give an
    option to create with no p.k
    2. second question is : if i'm not doing a primary key is it possible to create a tabular form.
    i know that the tabular form ask for a p.k but i did not understand if it want the specific p.k of the table.
    3. if it possible(to create tabular on table not declare with tabular form) can i have a problem in the tabular form to recognize the record(row) which need to delete or update?
    4. last question: again general question about creating table
    is it by the accepted to create table which has no p.k but unique constraint like this
    create unique constraint IND ,COMPANY,CLM_NUM,VERSION_NUM ,DATE_GET,CAR_NUMBER?
    thanks for quick response!

    Hi Naama,
    Firstly, a primary key does not necessarily have anything to do with the data on the table. In most of my tables, it is just a sequential value created from a sequence and set by a trigger. In some cases, I do have non-numeric primary keys, but these are simple text fields that can never contain duplicates (for example, country codes) and which the user can not alter.
    So, I would strongly recommend that you create a primary key on your tables.
    Secondly, yes, you can create unique constraints on those fields. But note that Apex will not allow you to use that many fields as a "primary key" on any form.
    If you have records with the same values in all fields, without a primary key, Apex would not know which record was being updated.
    Andy

  • Ora-20001 when creating a form on table with report (bug?)

    Having some trouble creating a "Form on table with report".
    1) I pick my table
    2) take most of the defaults on the page where you pick the report type (interactive) and the page number (I changed it to 950). next->
    3) Do not use tabs. Next->
    4) Select all columns for the report. THEN (here's the problem) set an optional where clause of system_role_name like 'ODPSPOPUP%'. Next->
    5) choose standard edit link. next->
    6) Specify a page of 951 for the form (leave others defaults). next->
    7) Set the form primary key (defined in table). next->
    8) use existing trigger. next->
    9) choose all columns for the form. next->
    10) Leave actions to insert, update, delete. next->
    11) Get to the summary page and click Finish
    Then I get an error page saying:
    ORA-20001: Unable to create query and update page. ORA-20001: Unable to create query and update page. ORA-00933: SQL command not properly ended
    If I go back to step 4 and erase my where clause the wizard completes successfully.
    Also if I change the report type in step 2 from the default of "Interactive" to "Classic" the wizard completes successfully. However upon running the report I get a query parse error. Looks like the where clause in the report sql is: system_role_name like ''ODPSPOPUP%'' (two single quotes on each side).
    It looks as if you cannot specify a where clause with a quoted string. The wizard is expecting a bind variable.
    Workaround(s):
    1) Don't specify a where clause when report type = Interactive in "create form on table with report" wizard.
    or
    2) Specify a bogus where clause using bind variable syntax such as "system_role_name like :BOGUSVARIABLE". Then edit the report query once the wizard finishes and change the where clause to the constant string you wanted to use in the wizard (e.g. "system_role_name like 'MYSYSTEM%'")
    Apex: 3.2.0.00.27
    Database: Oracle Database 11g Enterprise Edition 11.1.0.7.0 64bit Production (Oracle EL5)

    Andy,
    It's a bug, all right. Thanks for the detailed problem description. We'll fix it when we can.
    Scott

Maybe you are looking for

  • When trying to format my internal hard drive, it's greyed out in Disk utility?

    I'm trying ot format my computer and wipe everything off before giving it away, but Disk Utility has everything greyed out and won't let me choose my hard drive. I have the original CD and everything that came with the computer. How do I fix this fas

  • Yosemite upgrade taking too long to restart

    Hello! I am running the upgrade and the bar is full, but it's been a couple of hours with the wheel turning and the message " restarting". My question is, can i manually restart my computer without losing files? I did not made a backup, so I am afrai

  • List of Profit Centers

    Is it possible to remove profit centers from the "List of Distribution Rules" that appears, when using the Tab key in the profit center field on "Service type" sales orders, invoices etc. We are trying to avoid profit centers being chosen that are no

  • Fund Center & Commitment ITem Derivation for Service Procurement

    HI, My scenario is for construction business. There are number of services which are procured. PO is raised to the vendor. All these services gets booked under one GL account. Each of this service is budgeted separately. I have created separate CI fo

  • Project screwed up?

    On a "SAVE" I got an access violation ( something I dreaded wouldn't happen on the actual save ). When I restarted JDEV the next time, the Project was missing ALL the impls,rowimpls and such ( The entire folder was missing ).. the manifest.mf, .jbo a