How can I be able to create a primary key in a Form on a Table with Report?

When I click the "Create" button, a form appears allowing me type in data for those columns. But primary key is not there. I really need to specify my primary key here also. Because the primary key for this table is a Serial Number, not just a sequence number.
I noticed that when I created this page earlier, the primary key was ruled out by default. I wish there is a way to accomplish this. Thanks!

Hello,
>> a pk field is not null implicit …
I’m not sure I understand your statement. Every item, including the one holds the primary key, is null for a new form. The question is, when you are filling the form, how to populate this field. The APEX wizard assumes this field will be populated by the system, hence it hides it from the user, however it’s a valid situation where the primary field is filled by the user.
As primary field should not be changed, hence the productive advice by Martin. If the form displays an existing record, the primary field item should be set to Read Only.
Regards,
Arie.
Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.

Similar Messages

  • 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.

  • 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

  • How can I modify a column to a primary key column

    Hi,
    I've created a table with no primary key. How I can set the primary key column now? The datatype of the "primary key" column is Raw(35).
    Thanks,
    Mike

    Mike,
    Issue the following command:
    ALTER TABLE table_name
    ADD CONSTRAINT constraint_name PRIMARY KEY(column_name);
    NOTE: If you want to place the primary key data in a separate tablespace, then you can add the key word USING INDEX TABLESPACE after the column_name.
    Regards,
    John

  • How to change the source type for a primary key on a form?

    Hi,
    At the time of creating a form, I had set the source type for the primary key to an existing sequence.
    Now I want to change the source to a trigger.
    Can anyone suggest how to do it?
    Thanks in advance,
    Annie

    Annie:
    Define the trigger and then delete the page process named 'Get PK'
    Varad

  • How can I open a catalog created on Win7 LR 1.4.1 on new Mac with latest LR 3.6 download? Too new!!!

    Any ideas please...I have transferred the media files and catalogs via my network, definitely onto the pictures folder of my MP 2011 Intel Mac. I go to open the catalog and get this peculiar message saying..
    The Lightroom catalog named “Lightroom 3 Catalog” cannot be opened because it is too new to be used by this version of Lightroom. Would you like to select a different catalog?
    The catalog appears to have been created by a version of Lightroom that is newer than the Lightroom version you are using.
    Is the Mac latest 3.6 version of LR really older and unable to read a latest PC 1.4.1 coded catalog?
    Is there anyway of saving the PC generated Catalog in an older catalog format d=so that a mac with 3.6 LR can read it?
    any answers very greatfully received!!

    I know this was a long time ago, but just in case someone else has this problem.  It happened to me and what happened is that I still had LR 3 installed on my computer.  Instead of opening LR4, I opened LR3 and it had some photos missing.  When I went for my backups, of course they were too new, because they were created with LR4 and I was using 3.  Both were side by side and I didn't realize I had opened the wrong one.

  • How can I be able to add url link in the standard text

    Hi expert,
    I want to add a url link in the standard text.Please guide me how can i be able to do that.

    Hi experts,
    I findout that there is no option in the standard text to add a url link and i findout the solution also we can create text module sepreatly ,here we can add a url link and then add in the smartfrom.In this way the user only can edit the text contents of the samrtfrom without seeing ht settings.
    Thanks everyone for help.

  • How can I save a website created on iweb, but that I no longer have it saved in my computer, so I can open it in my new computer and republish it ......

    How can I save a website created on iweb, but that I no longer have it saved in my computer, so I can open it in my new computer  with iweb
    and republish it on another server, since mobile me would be gone on jun 2012.

    You need the Domain.sites2 file that's located in your Users/Home/Library/Application Support/iWeb folder in order to be able to manage and publish the site from another computer?
    Do you have that file? If you do copy it to the same folder on the other computer and you're ready to go.
    If not then you'll have to recreate the site from scratch.  Chapter 2.3 on the iWeb FAQ.org site has tips on using some of the existing files, image, audio, video, etc., from the published site in the recreation of the site. 1 
    OT

  • How can I exchange my pc created documents on Excel, Word, and PowerPoint with my mac and my Pages, Numbers and Keynote created content with my pc?  I need to create and edit between both.

    How can I exchange my pc created documents on Excel, Word, and PowerPoint with my mac and my Pages, Numbers and Keynote created content with my pc?  I need to create and edit and exchange between both types of operating systems.

    Your Windows system will not open any Pages, Numbers or Keynote documents. No applications exist for Windows that can open those formats. You will need to export your documents in Word, Excel and PowerPoint formats, respectively, before you'll be able to view and edit the documents on your Windows system. The iWork documents can natively open Word, Excel and PP documents, though there are limitations on what can be imported (for instance, Numbers does not support all possible Excel functions). Consult the documentation for the relevant iWork application for details on importing and exporting.
    If you are asking how to get the documents from one system to the other, then there are several ways to do that, including file sharing, using an external drive (hard drive, USB flash drive), or emailing the documents to yourself. Which would be best for your situation I can't say without more details about your usage.
    Regarsd.

  • I have two iTunes accounts. One was set up for my iPhone; the second was created for my iPad. I just updated my iPhone and it linked my to my second iTunes account instead of y primary. How can I change it back to my primary account?

    I have two iTunes accounts. One was set up for my iPhone; the second was created for my iPad. I just updated my iPhone and it linked my to my second iTunes account instead of my primary account. How can I change it back to my primary account?

    Hey bjboles,
    Welcome to Apple Support Communities.
    The article linked below describes what to do after changing your Apple ID, but you can use it as a guide to resolve the incorrect Apple ID account information entered issue that you described.
    Apple ID: What to do after you change your Apple ID - Apple Support
    Ciao, 
    -Jason

  • How can I use the SQL to create a primary key for a existing table?

    create table a(bm number,mc varchar2(20));
    when the table was created,i want to make the column bm as
    the primary key and my SQL is "alter table a enable primary key bm",the system show
    me error,how can I write the right one?

    create table a(bm number,mc varchar2(20));
    when the table was created,i want to make the column bm as
    the primary key and my SQL is "alter table a enable primary key bm",the system show
    me error,how can I write the right one? You do not have any primary key defined on your table yet, so, it does not make sense to enable it (if at all possible) !
    You need to add PRIMARY KEY using something like this:
    SQL> alter table a add constraint pk_a_bm primary key (bm) ;

  • I'm going to another country for a year and I would like to unlock my phone to take another sim other than my carrier. My contract with my present carrier is finished yet they still wouldnt unlock the iphone 4 for me. How can I be able to unlock it?t

    I'm going to another country for a year and I would like to unlock my phone to take another sim other than my carrier. My contract with my present carrier is finished yet they still wouldnt unlock the iphone 4 for me. How can I be able to unlock it?t

    Only the carrier to whom the device is locked can unlock it.
    If you do not meet their requirements or they do not offer unlocking there is no official way to unlock the device.
    Who is your carrier?

  • Hi , my problem is that i can only create absolute links to other pdf-files in a main pdf-file. how can i switch to or create relative links. Thanks for help!

    Hi , my problem is that i can only create absolute links to other pdf-files in a main pdf-file. how can i switch to or create relative links. Thanks for help!

    I’m using version 11.0.10. So where the Menu resides in a folder ready to be burnt on to a CD, that same folder is where the links point to.
    Thanks

  • HT4061 My iPhone 4 has been recently stolen :( and I am wondering how can I be able to blocked my iPhone 4 so the one steal it cannot use my phone pls let me know what to do thanks.

    My iPhone 4 has been recently stolen :( and I am wondering how can I be able to blocked my iPhone 4 so the one steal it cannot use my phone pls let me know what to do thanks.

    Apple does not get involved with lost or stolen items.  A carrier may offer IMEI blocking (non in the USA currently do, but elsewhere some do).  Your carrier would already know your IMEI number anyway, so just contact them and ask them about it.
    It is VERY good that you had a passcode lock on the device.  That means your personal information will be safe.  And yes, after 10 failed attempts (each with increasing time out between allowing another attempt) the device will permanently lock them out until they restore the device in iTunes.  Anyone can go ahead and restore your iPhone as new in iTunes, but that also wipes everything off it and restores it to new condition - which does mean they can go off and use it as theirs, but at least all your data is gone.
    Did you file a police report it was stolen?  Also your carrier should be told (and ask them about IMEI blocking).  Sorry it is gone, but you did the best thing possible to protect yourself and your information when you set up that passcode lock.

  • How can I open a document created in Classic on MacOS X?  When I tried to open it, it says Classic Not Supported. What do I do?

    How can I open a document created in Classic on MacOS X?  When I tried to open it, it says Classic Not Supported. What do I do?

    The short answer is:
    Single click on the document you created in Classic, bring up your 'popup' menu (right click or control-click), select 'Open With' and choose the Mac OS X application you believe will open the document.
    If this does not work. Tell us which Classic application you created the document with and which applications you have which you believe will open your 'classic' document.

Maybe you are looking for