APEX do not allow to change the lines of the columns that are the primary key?

I have pictures:
http://img508.imageshack.us/my.php?image=21269582oe8.jpg


Book (id_book - 'Primary key', title, year); book_author (id_author id_book - 'Primary key', - 'Primary key'); author (id_author - "Primary key", name)



I created a new page-> Form-> form of 'author' table because I want to add new authors, modification and deletion. During the creation of this page, I have chosen column 'id_author' as '1 primary key column' and everything is OK (I can't edit the 'id_author' column - this column is autoincrement and I can change the 'name' column).

BUT I also created a new page-> Form-> table for table "book_author" because I like to write numbers like id_book and id_author, change and remove them (so add relations between tables: book, book_author and author). During the creation of this page, I have chosen column 'id_book' as '1 primary key column' and 'id_author' as 'column primary key 2'. And on the Web site, I can't edit these fields. And I can not add also new line because I see in each new line: (null).

http://img444.imageshack.us/my.php?image=11324615yk9.jpg

APEX do not allow to change the lines of the columns that are the primary key? It's stupid... What can I do?

Edited by: user10731158 2008-12-20 11:40

Column unique and not meaningful if you ever want to update. In the case of your example, you need to add an ID column in the intersection of book_author table. Honestly, I was so blown away (and pleasantly surprised) by the absence of rebuttal and the "thx" I advanced and set up an example of how I would define the book_author table:

create table  book_author
   (id varchar2(32),
    book_id varchar2(32),
     author_id varchar2(32),
     modified_on     date,
     modified_by varchar2(255),
     constraint book_author_pk primary key (id),
     constraint book_auth_book_fk foreign key (book_id) references books(id),
     constraint book_auth_author_fk foreign key (author_id) references authors(id)
     )
/

create unique index book_author_uq on book_author (book_id,author_id)
/

create or replace trigger  biu_book_author before insert or update on book_author
for each row
begin
     if inserting then
          :new.id := sys_guid();
     end if;
     modified_on := sysdate;
     modified_by := nvl(v('APP_USER'),user);
end;
/

Good luck
Tyler

Tags: Database

Similar Questions

  • "You are not allowed to change the settings for this printer. If you need to change the settings, contact your system administrator.

    XP Pro, SP3. I downloaded the free Bullzip pdf printer. Somehow my old printer pdf in my printer disappeared list which I have used for years. I get this message when installing - "you are not allowed to change the settings for this printer. If you need to change the settings, contact your system administrator. I click ok and it ends, but it doesn't work. It does not appear in the printer control panel as a printer to change anything.

    I built this computer at home and I'm the only one using it. What is this function 'administrator '? I've never had to administrator on any program. Never. That is what it is?

    CNET is infamous for the grouping of things in its downloads as much a / v programs report as junk (I went through the same thing using eSet NOD32 has / v).  I seem to remember that if you ignore the warning and download the exe file and then use a tool like the free 7-zip to extract only the file necessary to run the program you want, you can work around the problem.

    For a pdf printer free which is not CNET - and works well - go here--> http://www.cutepdf.com/products/cutepdf/writer.asp

    EDIT TO ADD A LINK:

    See, for example, http://forums.cnet.com/7723-12543_102-582307/safe-downloads-cnet-com-sorry-but-not-anymore/

  • Direct path SQLLDR allows duplicates in the primary key

    I would use sqlldr path direct to charge millions of records in the table but direct way allows duplicates on the primary key constraints.

    inserts of duplicates
    sqlldr control deploy_ctl/deploy_ctl@dba01mdm = direct ctl_test.ctl = true
    primary key is enabled

    I do not understand the behavior that's why the primary key is always enabled--(logiquement il doit avoir désactivé que doublons insérés)

    Inserts no duplicates
    sqlldr control = ctl_test.ctl deploy_ctl/deploy_ctl@dba01mdm
    primary key is enabled

    Please can I know if there is any work around to use direct path with constraints of primary school in place.

    The only solution is to not use direct load, if your dataset contains records in duplicate, of the documentation:

    /*
    A record that violates a UNIQUE constraint is not rejected (the file is not available in the memory when the constraint violation is detected).
    */

  • Another user has changed the primary key

    uses 11.1.1.5.0 - adfbc jdev

    After each insertion while saving the recording
    get error like this > > > another user has changed the primary key

    What should I do to avoid this?
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <BC4JConfig version="11.1" xmlns="http://xmlns.oracle.com/bc4j/configuration">
       <AppModuleConfigBag ApplicationName="com.rits.glm.model.servicesAM.generalLedgerAM">
          <AppModuleConfig DeployPlatform="LOCAL" JDBCName="goodwell" jbo.default.country="IN" jbo.project="com.rits.glm.GeneralLedger" name="generalLedgerAMLocal" ApplicationName="com.rits.glm.model.servicesAM.generalLedgerAM">
             <Database jbo.locking.mode="optimistic"/>
             <Security AppModuleJndiName="com.rits.glm.model.servicesAM.generalLedgerAM"/>
          </AppModuleConfig>
          <AppModuleConfig DeployPlatform="LOCAL" JDBCName="goodwell" jbo.default.country="IN" jbo.project="com.rits.glm.GeneralLedger" name="generalLedgerAMShared" ApplicationName="com.rits.glm.model.servicesAM.generalLedgerAM">
             <AM-Pooling jbo.ampool.dynamicjdbccredentials="false" jbo.ampool.isuseexclusive="false" jbo.ampool.maxpoolsize="1" jbo.ampool.resetnontransactionalstate="false"/>
               <Database jbo.locking.mode="optimistic"/>
             <Security AppModuleJndiName="com.rits.glm.model.servicesAM.generalLedgerAM"/>
          </AppModuleConfig>
       </AppModuleConfigBag>
    </BC4JConfig>

    a few suggestions
    Houston-25014: another user has changed...
    http://adfhowto.blogspot.com/2010/12/troubleshooting-another-user-has.html
    Another user changed the row with primary key

  • Oracle Apex 5 schedule does not allow to change the custom target link

    The latest version of the calendar is amazing. You can create a date range and the css is very useful.

    The problem is that in Oracle Apex 4.2 I could navigate to different pages stated in a column of the query (Image 1) and with Oracle Apex 5 calendar is impossible for me (Image 2 and Image 3).

    -Image 1:

    apex_42.PNG

    -Image 2

    apex_5.png

    -Image 3:


    apex_5_2.png

    Kind regards

    Hi 1043429 (Please change the name of your forum).

    Use substitution syntax. Instead of #PAGINA # use & PAGE. as you would for items on the page. For consistency, new components such as the new schedule are now using the same substitution syntax like we always used it for items on the page.

    Concerning

    Patrick

    ----

    Member of the APEX development team

  • NMH300 not allowed to change the time

    Okay, would normally not be a problem but I'm streaming video clips on the HUB and they are stamped with a time of 6 hours hurt.

    The 'Time' button is RED and does not allow me to change it.

    1 you already have reset.

    2. they took out hard drives and re-deleted all partitions.

    3. do you have a new installation.

    4. always in red.

    OK, what is there besides the reset button that may sneak in and attach it to the back?

    The initial installation, I had the opportunity to take my city.  Given that the installation, I needed to do a reset.  I don't know whether or not it is when time went red.

    I guess the time running IT / IN HD the self?

    Thank you

    Steve

    It is fixed.  I don't know what it is.  Here's what was going on at the time.

    Whenever I went into the HD and go to the System Configuration, I would get an error message, cannot be found, check the network, etc..  Click OK and I was in and could make changes, but not the time or the button below.  Firmware version was "unknown".

    After all the above stuff to this thing, I returned to my computer 'master' and pulled upward "Easy Link Advisor" for my router in Linksys 610.  I noticed that my computer was red with a stop sign at this topic.  There was an update of the software available.  (note, I was able to venture out into the internet, so I was surprised. not sure it should have intervened, but it seems that, as he might have)

    Updated my PC 'master' software "Easy Link Advisor", I was in the green... and HD system configuration parameters were still available.

    It was very weird.

    But it works now.

    Concerning

    Steve

  • APEX 5 - not able to change the theme template

    Hello

    I created a new application in 5 APEX using 25 blue sensitive theme.

    I'm not able to directly change a template theme.

    I copied one of the page template and then edited the copied one.

    Why I am not able to change a theme template directly in the APEX 5?

    Appreciate your help.

    Thank you

    Deepak

    Hello

    No, this is not true. If you

    1. go to the components shared-> themes
    2. Choose the 25 theme
    3. Click on the "Unsubscribe" button in the subscription area "theme".

    You can start making any changes to the 25 theme as you are accustomed to APEX 4.2.

    A default subscription for all provided APEX of the themes has been introduced to make it easier for customers to meet changes in theme in a later version of the APEX without having to worry if changes could have been made to the theme of the application. Our suggest is that if it is necessary to modify an existing template, copy so that it is obvious that it is a custom editing. These copied models will not be affected when a topic gets updated.

    BTW, I suggest having a look at the universal theme 42 - if you start with a new application.

    Concerning

    Patrick

  • My computer says that I am not allowed to change the preferences of firefox so that I can stick on my site. Your instructions are too complicated! Help

    When I work on my site, a popup says I can't copy and paste. Your instructions are way to complicated. I need simple help to solve this problem. I prefer firefox over chrome, but this issue is so boring. I don't want to type on an entire page in my Web site just to overcome this problem.
    HELP HELP HELP. simple please!

    Use keyboard shortcuts if the buttons on the web page or other methods do not work.

    • Copy: Ctrl + C or Ctrl + insert (Mac: command + C)
    • Paste: Ctrl + V or shift + insert (Mac: command + V)
    • Cut: Ctrl + X or shift + delete (Mac: command + X)
  • try to change the text in a saved file, but it will not allow isolate me the text, place the cursor in the text box or simply go back to remove.

    try to change the text in a saved file, but it will not allow isolate me the text, place the cursor in the text box or simply go back to remove.

    Hello

    in what format save you your file? If it's a jpg file, then the text is compressed and unfortunately PS is telling things as they are. Even if you could change the text before you save, after having been saved in jpg format, the text is merged and is no longer editable.

    A good solution is to save the files as PSD files, photoshop files. In this case, all layers are saved uncompressed and so your text will appear in its own layer in photoshop. All you need to do in this case to change it is the result of a three-step procedure

    (1) select the right layer

    (2) take the text tool in the tools bar

    (3) mark and change your text

    So the crucial question is: in what format you save your file?

  • iOS 10.0.1 "not allowed to use the restricted network port.

    I just upgraded my iPad Mini iOS 10.0.1. He is now running Safari 10. I tried to visit an internal/private IP on port 4190 using HTTP. I get an error that says:

    Safari cannot open the page.

    The error was: "not allowed to use the restricted network port.

    On iOS 9.3 using Safari 9, the same URL opens fine without this error.

    Do not know what has changed since iOS to iOS 10.0.1, 9.3 but I'm unable to visit a web site that I have visited before.

    I know that WebKit maintains a list of ports that you cannot go (e.g. 6666), 4190 is not a restricted port AFAIK. I don't know why I get this error message.

    It seems I was looking at the wrong source code.

    I finally got a clue where to look after visiting the page Web Safari Technology Preview 13.

    https://trac.WebKit.org/browser/releases/Apple/Safari%20Technology%20Preview%201 3/WebCore/platform/URL.cpp

    It seems port got 4190 recently added to the list of blockedPortList

    2306 2049, / / NFS
    220V 3659, / / apple-sasl / PasswordServer [addition of Apple]
    2308 4045, / / lockd
    2309 4190, / / ManageSieve [Apple adding]
    2310 6000, / / X 11
    2311 6665, / / alternate IRC [addition of Apple]
    2312 6666, / / alternate IRC [addition of Apple]
    2313 6667, / / standard IRC [addition of Apple]
    2314 6668, / / alternate IRC [addition of Apple]
    2315 6669, / / alternate IRC [addition of Apple]
    2316 invalidPortNumber, / / used to block all the invalid port numbers
    2317 };
    2318 const unsigned short * const blockedPortListEnd = blockedPortList + * _ARRAY_LENGTH (blockedPortList);
  • I am not able to change the video quality for you tube. There are only two options 360 and Auto. Please help me.

    Hi I am experiencing strange problem for 15 to 20 days and I am not able to change the video quality for you tube. There are only two options 360 and Auto. Help me please if you can because I have a slow internet connection and I want to play video at 240, as it was before. Thanks in advance for your help.

    Could check you whether YouTube is to serve its HTML5 player or the player based on Flash? If you right click on the drive, short a context menu should appear. If the full Firefox context menu is displayed, press and release the ALT key to erase that. The last line of the menu short usually indicates which player he is.

    I'll assume HTML5 because...

    On Windows 7, Firefox should show a wide range of formats in the HTML5 player. However, if some of the features of media are disabled, preventing video MP4 decoding, then YouTube offers only 360 p (with WebM coding).

    If you have intentionally disabled Media Foundation and/or DirectShow in topic: config, then perhaps you would prefer to use the YouTube Flash Player? There are a few Add-ons that can force YouTube to serve you a Flash drive. Either of them will do, you don't need both:

  • Why does not allow Mozilla change (to change) hit? I would like to change to bind "Ctrl + shift" "www" and ".es" thanks!

    Actually, Firefox does not allow for change (strikes)
    Why can't add my own shots?
    I would like to add the keystrokes to add "www" and ".es" (for users of the Spaniards)

  • Photo Gallery can't open the photo because you are not allowed access to the location of the file

    Photo Gallery can't open the photo because you are not allowed access to the location of the file some of the image are open

    Click on the folder and change your permissions for it and all subfolders and files all rights and if necessary take hand the case (and maybe the parent folder or even its parent - and all of the subfolders and files) until you have the permission you need.  Here are the general procedures to help you:

    To view your permissions, right-click on the file/folder, click Properties, and check the Security tab.  Check the permissions you have by clicking on your user name (or group of users).  Here are the types of permissions, you may have: http://windows.microsoft.com/en-US/windows-vista/What-are-permissions.  You must be an administrator or owner to change the permissions (and sometimes, being an administrator or even an owner is not sufficient - there are ways to block access (even if a smart administrator knows these ways and can move them - but usually should not because they did not have access, usually for a very good reason).)  Here's how to change the permissions of folder under Vista: http://www.online-tech-tips.com/windows-vista/set-file-folder-permissions-vista/.  To add take and the issuance of right of permissions and ownership in the right click menu (which will make it faster to get once it is configured), see the following article: http://www.mydigitallife.info/2009/05/21/take-and-grant-full-control-permissions-and-ownership-in-windows-7-or-vista-right-click-menu/.

    To resolve this problem with folders, appropriating the files or the drive (as an administrator) and give you all the rights.  Right-click on the folder/drive, click Properties, click the Security tab and click on advanced and then click the owner tab.  Click on edit, and then click the name of the person you want to give to the property (you may need to add if it is not there--or maybe yourself). If you want that it applies to subfolders and files in this folder/drive, then check the box to replace the owner of subcontainers and objects, and click OK.  Back and now there is a new owner for files and folders/player who can change the required permissions.  Here is more information on the ownership of a file or a folder: http://www.vistax64.com/tutorials/67717-take-ownership-file.html.  To add take ownership in the menu of the right click (which will make it faster to get once it is configured), see the following article: http://www.howtogeek.com/howto/windows-vista/add-take-ownership-to-explorer-right-click-menu-in-vista/.

    Good luck and I hope this helps!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Receive error message, not allowed to enter the Cookies files in Vista

    When I go to Cookies, computer says I'm not allowed to this file... Why is this... I try to keep my cookies for a minum and do not want to use delete temporary files and cookies... because it removes all cookies and I have to sign on some new web pages... can you help me thanks

    Hello

    Cookies: Frequently asked questions
    http://windowshelp.Microsoft.com/Windows/en-us/help/c9daa36b-3bc0-47fa-aea1-5a250e2b4e561033.mspx

    How to allow or block Cookies in Internet Explorer for Vistahttp://www.vistax64.com/tutorials/60641-cookies.html

    Block or allow cookies
    http://windowshelp.Microsoft.com/Windows/en-us/help/ff035adb-411D-40F3-8F9F-23e158f7b8be1033.mspx
    Cookie Viewer - free
    http://www.KarenWare.com/PowerTools/ptcookie.asp

    CCleaner - free (allows you to protect specific cookies from deletion by CCleaner.)
    http://www.CCleaner.com/

    ======================================================

    Here are some easy ways to Take Ownership and Grant Full Admin Control

    Add 'Ownership' to the Menu Popup Explorer in Windows 7 or Vista
    http://www.howtogeek.com/HOWTO/Windows-Vista/add-take-ownership-to-Explorer-right-click-menu-in-Vista/

    How to add appropriate to the context Menu in Vista
    http://www.Vistax64.com/tutorials/112795-context-menu-take-ownership.html

    Take and Grant Full Control permissions and ownership in Windows 7 or Vista right click Menu
    http://www.mydigitallife.info/2009/05/21/take-and-grant-full-control-permissions-and-ownership-in-Windows-7-or-Vista-right-click-menu/

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

    How to take possession of an item in Vista
    http://www.Vistax64.com/tutorials/67717-take-ownership-file.html

    How to change the permissions on the folders
    http://www.Vistax64.com/tutorials/157304-folder-permissions.html

    ===================================================

    From a post by Rehman F.

    Here are the steps to change the ownership and permissions of files and folders:

    1. right click on the file or folder, click Properties, and then click the Security tab.

    2. click on advanced and then click the owner tab.

    3. click on edit and then do one of the following:

    ·    To change the owner to a user or group that is not listed, click other users and groups, and in the box type
    the object name to select (examples), type the name of the user or group, and then click OK.

    ·    To change the owner to a user or a group is listed in the change owner to box, click the new owner.

    4. If you want to take ownership of the contents of the folder, select the replace the owner of sub containers and objects check box.

    5. click OK and then click Yes when you receive the following message is displayed:

    You are not allowed to read the contents of directory folder name. You want to replace the directory
    permissions with permissions granting you full control?

    All permissions will be replaced if you click Yes.

    Note folder_name is the name of the folder you want to take charge.

    6. click on OK and then reapply the permissions and security settings that you want for the folder and its contents.

    Additional considerations

    7· An administrator can take ownership of any file on the computer.

    8· Affecting the ownership of a file or a folder might require that raise you your permissions using user access control

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • How to account user, allowing that file executable permission... not allowed to open the drive hard partition c, d, e, f, g and documents, etc.

    How to account user, allowing that file executable permission... not allowed to open the drive hard partition c, d, e, f, g and documents, etc.

    like Firefox allowed to open and Office World etc.

    and the scores of disk c:d:e:f: documents and unauthorized change setting.

    Hi UMIR,

    Assistance to your topic that you are looking for is more complex than what it is treated in this forum. It would be better suited in the Technet forums where the it professional can suggest you a solution regarding the same. Please visit the link below to find a community that will support what ask you

    http://social.technet.Microsoft.com/forums/en-us/

    I hope this helps.

Maybe you are looking for