Can we create an APEX Form based on Table which has no Primary Key

Hi,
I have a requirement.
I need to create a FORM based on a table having no Primary Key but it is having Unique Key . I can use Unique Key as an alternate of Primary Key.
but When I tried to create a Form, I got the following message.
Source tables for forms and tabular forms must have a primary key
Thanks,
Deepak

Deepak_J wrote:
Hi,
I have a requirement.
I need to create a FORM based on a table having no Primary Key but it is having Unique Key . I can use Unique Key as an alternate of Primary Key.
but When I tried to create a Form, I got the following message.
Source tables for forms and tabular forms must have a primary key
Thanks,
DeepakGood database design will always require a PK on the tables. There are only very few and rare expetions to this rule. One would be when you have store the data only temporarily in this table, like it is often done for import/loader tables. The data is first loaded in the "import"-table, then validated and then transported to the "real" tables. In such a scenario you can ignore the primary key on purpose. Because you already have a UK on this table it can't be such a scenario.
For most other scenarios you should always add a PK. Ask critically why there is no PK on it. Is there a reason for it or was the table designer just not doing its job well?
Btw: A UK is identical to a PK if the column is mandatory (NOT NULL). In this case you could simply change the constraint from UK to PK.

Similar Messages

  • Unable to create new entry in table that has no primary key

    Hi
       I have a table which is required to have no primary key (except mandt). After i generate table maintanance, when I go to create new entries, the table control to enter the new values does not appear. When I click on edit->new entries, it goes back to the fields tab of the table. Same when i check through SM30.
    If i maintain atleast one primary key, I am able to get the table control in new entries screen. However the requirement permits no primary keys except mandt. How can this be resolved?
    Thanks
    NM

    Hi,
    THE PROBLEM WITH UR TABLE IS
    YOU HAD DECLARED MANDT AS THE PRIMARY KEY AND THERE IS NO OTHER KEY IN UR TABLE
    iT'S NOT ALLOWING YOU TO ADD NEW ENTRIES BECAUSE MANDT IS THE ONLY PRIMARY KEY IN YOUR TABLE AND IT WILL HAVE A DEFAULT VALUE BASED ON THE CLIENT. SO  IT'S NOT SHOWING YOU THE CREATE NEW ENTRIES OPTION.
    SO TRY TO PUT ONE MORE FIELD AS THE PRIMARY KEY SO THAT YOUR PROBLEM WILL SOLVE VERY EASILY  ALSO MAKE SURE THAT TABLE IS ACTIVATED.
    REVERT IF U NEED SOME MORE HELP
    Thanks &Regards.
    Pavan.

  • How can I import data using .dmp into the table which has more columns then in import

    I am building the history for warehouse purpose on Oracle 8i database and want to use the old import (.dmp) files (from oracle 7.3.4) to import data but the underlying table is having few more columns which are not in my old DMP file .. how can I import the data into these altered tables while using the same *.imp files .
    Any solutions ?

    That is the most obvious solution .. but think of the case when my operational database which is the source of my data is undergoing changes every quarter i.e after every 3 months there are some changes on underlying table structures which means structures of my import files will always be different after evry quarter .. you can imagine the number of temporary import structures I need to create .. can't there be a solution wherein I can write an SQL over the import file to read the data in required format ..

  • Need to create form on a table with report with a table has NO primary key

    Hi, I tried to created some insert/update/delete form+report in an application, it works fine only if the table has primary key. Does anyone know how to create the same functionality with a table with no primary key? I saw an application is built on older version of htmldb that is using tables with no primary keys at all.
    Here are the specific issues that I am facing:
    - I am building some Form on a table with Report, it requires the table with primary key for form to update. Is there a workaround that I can use tables that has no primary keys at all?
    - Say if primary key is necessary in the previous report+form, but the maximum number of columns that I can use to composed a primary is only 2 for that Form-Report, I cannot find anything handling > 2 primary key. Do you know if there are some ways to composite a primary key from many columns together?
    Your help is really appreciated.
    Thanks,
    Angela

    Sorry to ask response so late. I had no time to get back to that issue before.
    Regarding the triggers, I can make it work for the update, but not the insert.
    Here is my trigger:
    create or replace trigger STATUS_T1
    instead of insert on STATUS
    begin
    insert into STATUS ("LABEL", "AREA", "OWNER", "TEST_NAME", "STATUS", "REMARKS", "BUGS", "DEV_MGR", "TEST_BY_DATE")
    values(:new.LABEL, :new.AREA, :new.OWNER, :new.TEST_NAME, :new.STATUS, :new.REMARKS, :new.BUGS, :new.DEV_MGR, :new.TEST_BY_DATE);
    end;
    by any chance, you can notify what is wrong?
    I already skip the ROWID when inserting to the view STATUS, but I cannot figure out what is wrong when inserting a new record to that view.
    It gave me the following errors:
    ORA-06550: line 1, column 38: PL/SQL: ORA-00904: "ID": invalid identifier ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
    Error Unable to process row of table STATUS
    Then, I turned to debug mode, I am thinking that maybe because I use a HIDDEN item to hold the value of ROW_ID as I use the rowid (called ID in the view) to retrieve the record as a column link from previous page. What do you think?
    Thanks again,
    Angela

  • Creating an EJB that has no primary key

    I want to create an EJB for a table that has no primary key using
    J-developer but I get an error like this :
    "cmp-field of type 'java.lang.Long' does not have a no-arg constructor which is needed for properties/fields based mapping"
    How can I go on?

    Sorry primitives are NOT allowed to be primary Key candidates - OOPS!
    it looks like you may have to use String
    or provide your own Primary Key class which (perhaps) extends Long

  • Can I create a saturation mask based to a gradient map?

    Hi
    can i create a saturation mask based on a gradient map?
    for the example a gradient blue from 2441f6 to 6075f6
    and have a luminocity mask based of this gradient
    can i do it?
    how can i do it?
    thanks
    cheers

    The gradient maps are not use to sample color, but to recolor, so you cannot use it to create the selection, use the selection to limit the gradient map to the blue areas of the sky.
    You could MASK a gradient map using the saturation of the sky, to recolor based on the actual saturation of the sky.
    Select the sky with your favorite method, jump it to a new layer (CTRL+J)
    Use the technique in the linked tutorial to extract the luminosity, it should land on its own layer.
    Hide that layer, and delete the selective color one.
    Now add your gradient map adj layer, enter the two colors as desired.
    Show the layer with the saturation converted to a layer. Select all, copy.
    ALT+click the layer mask of your gradient map adj layer, and paste. You might need to paint in black the areas you do not want affected.
    I tried it here, and had semi satisfactory results given the very heavy compression of your file, and also because the colors are pretty unrealistic.
    Here is the image showing the saturation mask, and the results on the side:

  • Can I create an HCM Form without involving any workflow steps?

    Hi Experts,
    Can I create an HCM Form without the involvement of any Workflow steps ? I tried to create a simple form to save the User id( IT0105) of a person. I tried to simulate the process through program RPASR_TEST_PROCESS_EXECUTION. But, finally it failed saying "No workflow assingned. Process not successfully completed" . How should I proceed if I dont want any workflow steps to be included?
    I just want the form to update the infotypes directly when I save.
    Pls advice,
    Thanks in advance!
    Mahesh

    Yes. This is undocumented for some reason (I learned it from SAP folks! haha). Set the workflow to:
    NO_WORKFLOW
    You're welcome. haha

  • Creating Dynamic Form based on table

    I have to create 7-8 Form on a Table with Report.
    Just wondering if there is a way, we can create this dynamically, so that I don't have to create this manually for each table.
    Exp - I will have a table list, once I will select table_name from the LOV, then this will display the Report/Form region for that table...and so on...
    thanks,
    deepak

    Hi Deepak,
    So, basically, you want to be able to create an application without actually having to create it manually?
    The nearest you could get, I think, is something like: Re: Creating Item dynamically and Automating tedious repetitive tasks / creating hundreds of different items (there may be other threads along these lines as well).
    The principle is that you do pretty much what an Application Export/Import would do. I have to stress, though, that this is totally unsupported by Oracle and also most forum users, myself included, would not be able to help you!
    Andy

  • Can I create a fillable form document

    Can I create a fillable form document

    Hi johnnieg59361496,
    You can use Acrobat to create a fillable PDF. If you don't have Acrobat, please feel free to give it a try. You can download a 30-day trial from http://www.adobe.com/products/acrobat.html. And here's some information that will help you get started: https://helpx.adobe.com/acrobat/topics/forms.html.
    Please let us know if you have additional questions.
    Best,
    Sara

  • Certain Numbers templets allow you to drag and drop contacts to populate cell data, how can I create that functionality in my own tables?

    Certain Numbers templets allow you to drag and drop contacts to populate cell data, how can I create that functionality in my own tables?

    If you haven't come across the workarounds thread you may find helpful tips there on this and other ways to work with Numbers 3.
    ronniefromcalifornia discovered how to bring contacts into Numbers 3. As described in this post:
    "Open Contacts
    Select all the cards you want
    Copy
    In Numbers, in a table, select cell A1
    Paste
    Boom. Works great. Even brought in the pictures. Cool."
    So instead of drag and drop, just select in Contacts, copy, and paste into Numbers
    SG

  • How to make a form using a wizard when the table has no primary key ?

    Hi,
    I want to make a form to update, delete a table. The table has no primary key. The problem is that the Wizard ask for a primary key.
    How to avoid using a primary key ? i mean I don't want to create a primary key if is is possible.
    I would like to use the wizard; is it possible ?
    Thank you for your kind answers.
    Christian

    I believe the key is choosing 'Interactive' as opposed to 'Classic' in the implementation and then you can choose 'Existing Trigger' for the primary key source and it should work to use an existing column as your proimary key.

  • How to build a tabular form with a by the user insertable primary key

    I have build a build a tabular form with the wizzard. Wat should I do to make the primary key insertable by the user.
    When I change the PK from 'hidden' to 'text field', I get a checksum error when i am trying to insert.

    Fred: When you use the tabular form wizard, notice the help text on the right hand side of each page. The help page where you define the type of primary key (Existing trigger, PL/SQL function, existing sequence) clearly states
    Tabular forms do not support user entered primary key values
    Makes sense when you think about it. The MRU process needs to determine whether to update a record or insert a new record. It does that by comparing the checksums (and/or) pk values from when the page was first rendered and then when you make changes and submit it. Newly inserted rows will have a blank PK/checksum.
    If you allow user to change the PK, how will the system know which rows are new and which ones are old?
    For example, lets say you have
    create table t
    pk int primary key,
    data varchar2(10)
    )You have 2 rows
    1 red
    2 yellow
    If the PK were to be editable, user could go in and change the above to
    2 red
    1 yellow
    Now what? Would you like the system to create a new row with 1/yellow or change the existing pk=1 row to yellow? Same with the other row.
    Bottom line: The built-in processes dont support this. You can always write your own manual tabular form and implement whatever you logic you wish in your After Submit processes.
    Hope this helps.

  • I have an Epson XP-405 and can't get it to scan to my Mac which has Mavericks installed

    I have an Epson XP-405 printer and can't get it to scan to my Mac which has Mavericks 10.9.1 installed
    Is there a fix ?

    Try Image Capture, it is located in your Applications Folder.
    Also see > Mac Basics: Using a scanner

  • I can't install Snow leopard on my hard disk which has 10.4.11 on and lots of space.

    I can't install Snow leopard on my hard disk which has 10.4.11 on it and lots of space, I run the snow Leopard install disk and it says it cant be installed on my hard disk, which has 160 GB of space.

    Which iMac? If it's a G5, the highest OS you can run is Leopard. Are you using the full retail copy of Snow, or a grey, machine specific disc from another computer? If it's the latter, that's the reason.
    Message was edited by: WZZZ

  • HT201272 How can I recover a purchased app on one itouch (which has since died) and put it on my new itouch device if I haven't syncronised my old device with my mac/itunes account before it died?

    How can I recover a purchased app on one itouch (which has since died) and put it on my new itouch device if I haven't syncronised my old device with my mac/itunes account before it died?

    It is easy to download items you have purchased from iTunes again; this article will walk you through it: http://support.apple.com/kb/HT2519
    You want the "Apps on iOS" section.

Maybe you are looking for

  • SPED PIS/COFINS - Plano de contas Global e Local.

    Olá Pessoal, Após aplicar todas as notas referentes ao SPED PIS/COFINS começei rodas os arquivos e validá-los, porém uma das primeiras coisas que encontrei foi aqui estamos utilizando o plano de contas Brasil(ACBR) e temos o plano de contas global(PC

  • Problems Setting up Email on Curve 8520

    I'm not able to set-up email on my new curve 8520. I know that other people have posted about it before, but I still can't seem to get it working! I have BIS and have already created a Blackberry ID. Whenever I go to email setup, the only option I'm

  • Question about backing up Referenced Iphoto Library

    I was wondering about the best way to back up a referenced iphoto library. At this point in time I have my referenced iphoto library and my "master" photo library (a folder that contains all of the actual photos) on one external drive. I would like t

  • How do I get rid of MY Start by Incredibar

    When I open new window I get a My Start page and junk advertising. I have tried to delete through remove program and deleted a strange "user" file. Search search.does not find an other files with search. I did search with "ib" as suggested on some fo

  • Create a new bookmark under an existing bookmark in the tree

    I have a script to search through a time sheet report for the pages without the string "Employee Signature" and to then create new bookmarks under the existing bookmarks in the tree. So far the script will execute the book marks for the pages in the