APEX tutorial: how to use checkboxes - ORA-02292

Hello!
At the end of the APEX Advanced Tutorial: "how to work with check boxes", I get the following message is displayed:
ORA-02292: integrity constraint violation (OEHR_PD_PRODUCT_ID_FK) - book of the foundling

I see that this table has dependencies on SQL Developer.

I wanted to just confirm that it is the cause of the error and that the tutorial is missing instructions on how to approach the foreign constraint? Or maybe I'm doing something wrong?

Thank you very much!
-Igor

It seems that you are right that the article does not address the problem of FK constraint. If you draw the FK constraint and delete the records linked to the foreign table then the delete operation should work just fine.

Earl

Tags: Database

Similar Questions

  • Captivate 4 Widgets Tutorial - How to use check boxes?

    I'm looking for basic tutorials on how to use some of the widgets such as checkboxes. For example, if the user makes a choice with box how can you get to go to the particular slide.

    I don't see anything of the checkbox in the advanced interactions. How exactly would they work? I'd like a few examples in a captivate project.

    Hi shanahyvat,

    This box widget is a static widget. If you can't, click actions for her.

    It works like this.

    1. create as many user variables such as the number of boxes you want.

    2. Insert the checkbox widget.

    3. go to the tab settings of the widget and get the number of checkboxes and enter the names of the variables created by separated by commas.

    4 give the labels you want for the various boxes separated by commas.

    5 Insereted the varibles associated in a text caption.

    6. now run the project audit the status of the variables which you have associated the boxes once you click on the check boxes.

    7. now you can use the State of these variables to check which box was clicked.

    I enclose the cp project and a demo of SWF. Take a look.

  • Is there a tutorial how to use certificates to protect a PDF of sharing/opening/printing it?

    I want to share a PDF file that should not be shared with others and can only be opened on a specific computer. No idea how to use certificates for this. Or are there other ways to do it?

    Thank you

    You can consult the help:

    Acrobat help. Securing PDF files with certificates

  • How to use the utility of recognition of face on Satellite L350D

    Hi all

    I am trying to understand how to use the utility on my laptop satellite L350D-131 face recognition but won't have any look.

    Can someone tell me how to use / start this feature please?

    It should come a manual or a tutorial how to use this tool. I'm not an expert in the field, because I saw this feature only on a laptop in the stores. But it is a security feature nice little addition to the fingerprint system.

  • How to use the prtsc button please, so I can capture Bank to receive the shipment?

    How to use the prtsc button please, so I can capture Bank to receive the shipment?

    If you can view receipts from the Bank to the screen... just left
    Click on your print screen button to copy the screen of your
    Windows Clipboard. Then... Open Windows Paint and
    Reach... Editing / paste. Then go to... File / save as / JPEG.

    If the file needs cropping... you can use the 'Fix' edition
    option in the Windows Photo Gallery.

    Another option:

    If you run any version of Vista Basic...
    the capture tool can be a better tool for the job:

    Use capture tool to capture screenshots
    http://Windows.Microsoft.com/en-us/Windows-Vista/use-Snipping-Tool-to-capture-screen-shots
    (Vista Home Premium, Business, Ultimate, Enterprise)

    Windows Vista - activate the Vista Snipping Tool
    http://www.PCWorld.com/article/137099/activate_vistas_snipping_tool.html

    Vista tutorial - How to use the tool captures of Vista
    http://www.Vistax64.com/tutorials/148532-how-use-Snipping-Tool-Vista.html

  • How to use this API in Oracle ApEx

    I searched for a few days now, trying to find how to use this or any API in the ApEx.

    https://translate.Google.nl/translate?HL=NL & SL = NL & TL = in & u = http % 3A % 2F % www.pstcd.nl%2Fdocumentatie%2F 2F

    This sounds noobish, but I have no idea how to use. If anyone can help or give me some advice, it would be great.

    Hello

    ce04a039-2da9-401b-94c9-1d3300bcbb2b wrote:

    Please change your user ID to something meaningful. Reference: Video tutorial how to change username available

    I searched for a few days now, trying to find how to use this or any API in the ApEx.

    https://translate.Google.nl/translate?HL=NL&SL=NL&TL=en&u=http%3A%2f%2Fwww.pstcd.nl%2Fdocumentatie%2f

    This sounds noobish, but I have no idea how to use. If anyone can help or give me some advice, it would be great.

    As above given RESTful Web Services Web services API, you can:

    • Use a reference to the Web Service created in the shared components and then the process based on this reference page OR
    • Use APEX_WEB_SERVICE API to call the above mentioned APEX_JSON API and web services (if you are using APEX 5.0) to parse the JSON response and then further process.

    See the following thread: access to the Web Service API

    Kind regards

    Kiran

  • Im trying to open the tutorial of 23 minutes on how to use different tools in photoshop and it continues to come with unable to resolve the DNS servers worked fine yesterday? Ive had creative cloud on my laptop for a week and still have not been able t

    Im trying to open the tutorial of 23 minutes on how to use different tools in photoshop and it continues to come with unable to resolve the DNS servers worked fine yesterday? Ive had creative cloud on my laptop for a week and not yet able to get past the basics make me very frustrated.

    I guess you meant the links when you open photoshop CC. I tested all four videos of the 23 min tutorial and they all played fine. If something between you and adobe does not work correctly.

    • Check that your firewall is blocking the net. Try to access youtube videos and see if they play very well
    • Go to the adobe tv site and try to play one of the videos here. Adobe TV
    • If youtube plays very well and adobe tv does not work, next is to check if you have flash installed. Some videos require flash, others are html 5. Sorry that I could not confirm what player has been used for this tutorial. I think that html 5 but not sure.
    • Next is to look at the properties of your browser and check multimedia settings are not disabled if it y in a. (this is totally dependent on the browser)

    If none of this helps, let us know.

  • How o use an icon in a standard report to display the details by using a hyperlink with APEX 5.0

    Hello

    I work with APEX 5.0.

    I would like a report (classic) display a report of details (also classical report) using a hyperlink, but not a "text-hyperlink" like 'click here for details'.

    Instead, I want to use a small icon which will occur the same result when you click on.

    It works fine, when the hyperlink is defined as text like: 'click here for details'.

    When I try to use an image, I don't get the desired result.

    Here's what I tried to Hare:

    1)

    Link-> Link attributes, then filled column: src = "& WORKSPACE_IMAGES. "" #ICON_NAME # "width ="40"height = 40 ' or img src =" & WORKSPACE_IMAGES. " "" #ICON_NAME # "width ="40"height = 40.

    = > no picture for the items in the column, but the link already created for each column of the remains (and works)

    2)

    Formatting of column-> HTML Expression, then filled: < img src = "& WORKSPACE_IMAGES. "" #ICON_NAME # "width ="40"height = 40" >

    = > the image appears for each column element, but the hyperlink is gone.

    Somone has idea how to use a picture/icon to have a hyperling in screens reported a detail?

    Thank you in advance for sharing your experience.

    Kimd cordially

    Hi Patrick,

    Link to the column-> then filled:

    Link text = #ICON_IS #

    Link attributes =.

    Target = this Application Page

    Page = 5

    Article 1 = P5_DEPTNO

    Value 1 = #DEPTNO #.

    Article 2 = P5_DEPARTMENT

    Value 2 = #DNAME #.

    Put this   in the link text not in attributes of link

    Remove the code from the link attributes.

    I don't have how to make it the way that describe you.

    Apex. Oracle.com is a hosted version of application Express, you can build online applications.

    Go to this link and the application workspace https://apex.oracle.com/en/

    Hope this helps you,

    Kind regards

    Jitendra

  • How to use java with apex

    Hi all

    I m using apex 4.1 and the East * 11 g oracle database * I want to know how to use the java (servlet, jsp, all java in the apex technologies) and what I need to do to use java in the apex please guide me


    Thanks and greetings
    Akram

    Hello
    >
    How to configure the web server with the apex listener and what are the requirements,
    >
    You can find details here.http://www.oracle.com/technetwork/developer-tools/apex-listener/documentation/index.html

    Note that the Apex and ApexListener are two totally different things.

    Kind regards

  • How to use reports and Jasper in the Apex to print PDF

    I again and here knowledge how to use jasper reports to print PDF files

    Please see Dietmar excellent tool. I'm just a happy camper.

    http://www.Opal-consulting.de/Apex/f?p=20090928:4:542360562486677:no:

  • How to use a checkbox - Yes/No in a db update form

    Hello;
    I'm trying to use a check box on a form, I created. I need a function or not. If it is enabled, it's Yes, if not, not.

    I have it in a form that can add a "user" or to update an existing record. For now, it is throwing an error and it is for the code in the box. The following code is important for that and the error:

    page userEdit.cfm

    < name cfparam = "url. RecordID' type = 'integer' default '0' = >
    < name = "cfparam variables.ID" type = "integer" default = "#url." RecordID #">"
    < name cfparam = "variables. Default Pnom"=" ">
    < name cfparam = "variables. Default lname"=" ">
    < name = "cfparam variables.userName" default = "" > "
    < name = "cfparam variables.password" default = "" > "
    < name = "cfparam variables.email" default = "" > "
    < name = "cfparam variables.admin" default = "" > "

    < cfif url. RecordID GT 0 >
    < name cfquery = "useRec" datasource = "#APPLICATION.dataSource #" >
    SELECT user. FName, user. Lname, user.userName user.password user.email, user.admin, user.ID
    The USER
    WHERE user.ID = < cfqueryparam value = '#URL. "RecordID #" cfsqltype = "cf_sql_integer" >
    < / cfquery >

    < cfif useRec.RecordCount EQ 1 >
    < cfset variables. RecordID = useRec.ID >
    < cfset variables. Fname = useRec.Fname >
    < cfset variables. Lname = useRec.Lname >
    < cfset variables.userName = useRec.userName >
    < cfset variables.password = useRec.password >
    < cfset variables.email = useRec.email >
    < cfset variables.admin = useRec.admin >
    < / cfif >
    < / cfif >
    < head >
    ......
    < body >
    < cfoutput >
    < action = "action.cfm cfform" method = "post" > "
    < cfinput type = "hidden" name = "ID" value = "#variables.ID #" >
    ... more for the fields here...
    < cfinput type = "checkbox" name = "admin" value = "#variables.admin #" >
    ... introduce buttons here...
    < / cfform >
    < / body >

    «"" "Action page:»»"»

    < isDefined ("Form.RecordID") cfif >
    < cfquery datasource = "#APPLICATION.dataSource #" >
    UPDATE user
    User SET. Fname = < cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form. ' Fname # ' >.
    user. Lname = < cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form. "Lname # ' >.
    user.userName = < cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.userName #" >.
    User.Password = < cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.password #" >.
    User.email = < cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.email #" >.
    User.admin = < cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.admin #" >
    WHERE ID = < cfqueryparam value = '#form. "RecordID #" cfsqlType = "CF_SQL_INTEGER" >
    < / cfquery >
    < cflocation url = "indexUser.cfm? "RecordID = #Form.RecordID # ' addtoken ="no">
    < cfelse >
    < result cfquery = "GetNewRecord" datasource = "" #APPLICATION.dataSource # "dbtype ="ODBC">"
    INSERT INTO user
    (Fname Mname, Lname, username, password, email, admin)
    VALUES (< cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.) ' Fname # ' >.
    < cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form. "Lname # ' >.
    < cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.userName #" >.
    < cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.password #" >.
    < cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.email #" >.
    < cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.admin #">) "
    < / cfquery >
    < cflocation url = "indexUser.cfm" >
    < / cfif >

    My error message:

    Run database query error. [Macromedia] [SequeLink JDBC Driver] [ODBC Socket] [Microsoft] [ODBC Microsoft Access driver] Number of query values and destination fields is not the same.
    The error occurred on line 33.

    That's the line where it is supposed to put the checkbox in the database on the action page.
    How to use a checkbox for this? The box is the admin in the db and that is set to a value of yes/no tab

    Thank you.

    CFmonger

    Quote:


    Posted by: CFmonger
    I have corrected the error, it is not that throw more. He made a new record now when I check the checkbox.

    I think we should probably with me that this box will do when it updates or adds a new record in the database scope? Fix? That is why it adds a new record instead of just checking the Yes/No in the database table.

    If it's my problem, how do I reach the present?

    This isn't your problem. The code in the OP shows the application update and insert the same if/else logic-driven.

  • How to use the checkbox to display the values of booolean?

    Hi all

    I'm learning to use APEX. I built an editable report after the 'top advanced tutorials', and I use static LOVs to insert Boolean values in two columns.
    The underlying table has two columns of type VARCHAR2 (1) NOT NULL with a a check constraint, so it must contain either 'Y' or 'n'), and the static LOV requires users to only choose beetween 'Yes' and «»

    I would use checkboxes to insert this field. Is this possible? Where can I find examples / tutorials about it?

    Thank you
    Andrea

    See this:

    http://www.inside-Oracle-apex.com/checkboxes-in-tabular-forms-the-easy-way/

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • How to use oracle APEX remote with a database located on a remote server

    Hello

    I am a new user with the Oracle Technologies. I installed ORACLE 10 g XE and APEX upgrade version 4.0 on my laptop.
    My Manager has setup a remote server with a Linux Red Hat. He has installed on this server EBS R12 with a 11i database.

    As a training, I would like to play with the tables on the server with APEX 4.0 installed on my laptop.
    The server is on the same local network and as a result of the description above, it is possible to connect my local APEX in the database?

    If this is not the case, this means that I have to install APEX on the 11i Server database, and then connect to the server to play with these tables?

    Thank you very much for your time and support the members of the CCSE.

    Kind regards

    Ulrich

    Hi, Ulrich,.

    Yes, you can access another database from your database to the APEX. The mechanism used for this is called a "database connection". You create such a link of database in your local database, then you can access remote data like this:

    SELECT *
      FROM databaselink@EMP
    ;
    

    If you want to use remote objects in APEX you create local views to encapsulate this (search the forum for apex and database links, you will find some interesting discussions).

    brgds,
    Peter

    -----
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at

  • How to use the checkbox to select several lines of af: table

    Hi all
    I want to use the checkbox to select several lines of af: table

    Kind regards
    Tom

    Hello

    look at this link
    http://Sameh-Nassar.blogspot.com/2009/12/use-checkbox-for-selecting-multiple.html

    Kind regards
    Felix

  • How to use an option button in the report of the IR to redirect itself to view another report

    IHH team, I have a requirement where I have an IR report option button. By clicking this radio button, another report appears under the main report with few other details of the selected item. The idea was to have a zoom of report as seen in the Group of MS Excel.  However, I am stuck because I don't want the user to press the "submit" button each time after selection of a radio button. I want the result to Report2 to change on the selection radio button in report 1.

    Please notify.

    Kind regards

    Samar

    for example

    Report1 details

    RB col_id text1 text2 Text3

    1 . abc erd 45

    2 ghj dfgrt 67

    Suppose the user selects the first option button, the page displays another report with details below the main report

    Report1 details

    col1_id text1 text2 Text3

    RB1 1 abc erd 45

    2 RB2 ghj dfgrt 67

    Report2 details

    col1_id col2_id text1 text2 Text3

    1 11 ihj pkpk 78

    1 23 ljl kpk 45

    user6255521 wrote:

    Please update your forum profile with a real handle instead of 'user6255521': Video tutorial how to change username available

    When asking a question, always include the information referred to in these guidelines: How to get the answers from the forum

    I was able to achieve using the linl. I created a link on the col_id and it redirected to itself after you set the value of col2_id. I also changed the style of the button link and so col1_id looks like a button.

    However, I was interested to know if we can achieve this with a radio button and use the update form the Report2.

    You mean like this? It is very simple to implement using dynamic measurements.

    1. Add a column of radio group to the main report:

    select
        apex_item.radiogroup(1, d.department_id) rbg
      , d.*
    from
        oehr_departments d
    

    APEX 5.0, apply a static ID "rbg" to the column of radio group.

    2. create a hidden page unprotected element to maintain the value of the selected radio button to use as a filter in the detailed report. In the example, it is P31_DEPARTMENT_ID.

    3 refer to the element of filter in the WHERE clause of the report detail:

    select
        *
    from
        oehr_employees
    where
        department_id = :p31_department_id
    

    Set the Items property of the Page to send in the definition of report P31_DEPARTMENT_IDretail area.

    4. create a dynamic action of change on the Group of radio buttons:

    Event: Change

    Selection type: jQuery Selector

    jQuery Selector:td[headers="rbg"] input[type="radio"]

    Real Actions

    Seq: 10

    Action: Set value

    Type of value: Expression of JavaScript

    JavaScript expression:$(this.triggeringElement).val()

    Selection type: Article (s)

    Point: P31_DEPARTMENT_ID

    Seq: 20

    Action: Discount

    Selection type: Region

    Region:

    The best way to get help with something like that is for you to reproduce the problem with an example on apex.oracle.com. Set up as much as you can before posting here and when you post the question, share identification information of developer comments for the workspace so that we can see the example and work the solution directly.

Maybe you are looking for