Prevents the user to insert only the main block

Hello

Form [32 bit] Version 6.0.8.11.3 (Production) and win 8.

1. I have a block of master / detail, but normally, the user can insert records in the master, or in the retail block,.

I stopped to insert only in detail a mating by changing the property "to prevent operations without a master" of the relationship.

but he can always insert only in the main block, how to prevent this?

2. what was spent on the forum, there is no one answering questions, there are simple questions that I posted about two days ago

and they're stuck since when, where are the people?

See this thread:

Block master / detail: how to save changes if the retail block has a record

('Zlatko Sirotic' is my 'old' user id - before the 7 Jive OTN forum upgrade)

Concerning

Tags: Oracle Development

Similar Questions

  • Use the MC button to perform function on the main timeline

    I was wondering how (or if it is possible) to use a button that I have in a clip to perform a function on the main timeline. Specifically, I want the button in the clip to stop on an image of the main timeline. Any suggestions?

    Hello
    _root is the main scenario.
    So if you have your button (say button1) the code would be

    Button1.onRelease = function() {}
    _root.gotoAndStop (20);
    }

    This would prevent the main timeline to frame 20.
    This is for actionscript 2 (flash 8).

    for cs3 (actionscript 3) this would be it

    Button1.addEventListener (MouseEvent.Click, clickHandler);
    function clickHandler(event:MouseEvent):void {}
    _root.gotoAndStop (20);
    }

    Hope this helps
    Alan

  • How to manage the plsql error occurring in the exception block

    We know how to manage exceptins located in the BEGIN block.
    But I am unable to catch the exception in the exception block. Write an erroeneous code so that the control will go to the exception block and there is also a plsql error, but I am unable to handle that error, it returns the error to the calling environment.

    DECLARE
    CNT NUMBER (5): = 0;

    BEGIN

    Select "Chris" IN double's NTC;
    DBMS_OUTPUT. Put_line (to_char (CNT));

    EXCEPTION
    WHEN invalid_number CAN
    DBMS_OUTPUT. Put_line (' error occurred inside the start block ');

    CNT: = "deba";

    WHILE OTHERS THEN
    DBMS_OUTPUT. Put_line (' error occurred inside the start block ');

    END;

    Please suggest me how to catch this exception?

    Hello

    DECLARE
    CNT NUMBER (5): = 0;

    BEGIN

    Select "Chris" IN double's NTC;
    DBMS_OUTPUT. Put_line (to_char (CNT));

    EXCEPTION
    WHEN invalid_number CAN
    DBMS_OUTPUT. Put_line (' error occurred inside the start block ');

    CNT: = "deba";

    WHILE OTHERS THEN
    DBMS_OUTPUT. Put_line (' error occurred inside the start block ');

    END;

    First of all your exception mouhamadou who you have sent i.e. invalid_number itself does not.
    You should use named exception VALUE_ERROR to catch the exception in the main block.

    SQL> DECLARE
      2  cnt NUMBER(5):=0;
      3  BEGIN
      4  select 'debalina' INTO cnt from dual;
      5  DBMS_OUTPUT.PUT_LINE(to_char(cnt));
      6  EXCEPTION
      7  WHEN Invalid_number THEN
      8  DBMS_OUTPUT.PUT_LINE('error has occured inside main block');
      9  end;
     10  /
    DECLARE
    *
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    ORA-06512: at line 4
    
    SQL>  DECLARE
      2   cnt NUMBER(5):=0;
      3  BEGIN
      4  select 'debalina' INTO cnt from dual;
      5  DBMS_OUTPUT.PUT_LINE(to_char(cnt));
      6  EXCEPTION
      7  WHEN VALUE_ERROR THEN
      8  DBMS_OUTPUT.PUT_LINE('error has occured inside main block');
      9  end;
     10  /
    error has occured inside main block
    
    PL/SQL procedure successfully completed.
    

    Your doubts regarding catch the exception in the exception block, you can run as below, by nesting a block Begin in the exception block itself.

    SQL> DECLARE
      2  cnt NUMBER(35):=0;
      3  BEGIN
      4  select 'debalina' INTO cnt from dual;
      5  DBMS_OUTPUT.PUT_LINE(to_char(cnt));
      6  EXCEPTION
      7  WHEN Value_error THEN
      8  DBMS_OUTPUT.PUT_LINE('error has occured inside main block');
      9  Begin
     10  cnt:='deba';
     11  Exception
     12  WHEN OTHERS THEN
     13  DBMS_OUTPUT.PUT_LINE('error has occured inside exception block');
     14  End;
     15  END;
     16  /
    error has occured inside main block
    error has occured inside exception block
    
    PL/SQL procedure successfully completed.
    

    Hope your question is clear.
    :)
    Twinkle

  • Progress bar - prevent the user from moving forward

    Adobe Captivate 9

    Is it possible to prevent a user from moving the progress bar?  I like including the progress bar, so that users know their progress but do not want to make them to move anyway.

    Any ideas?

    The easiest (only for HTML output) using the new widget from CpExtra of InfoSemantics. It has many more features that can be very useful, but it is not free:

    Introduction to CpExtra | Infosemantics Pty Ltd

  • Stop the automatic execution of the View object without setting to insert only?

    Hello

    I have a View object that is used to insert only.  However, as I have to be able to filter through the lines not validated with a view criteria, I can't put the View tuning object to insert only.

    I do not want to run queries to the database because the attribute I am filtering by is a transitional attribute that is set when a new line is created.  The only purpose of this attribute should be used for filtering.  When my VO runs a query, I get an error because this attribute is not in the table of database mapped to the VO.  Currently, this attribute is added to the EO and I added it to the VO as attribute 'of the entity.  Another reason, I want to query the DB is because there are more than 500 k rows in the table.

    In short, I need a way to stop all the display object queries until I called the line below but I can't adjust the View object to insert only.

    welltdwVO.setQueryMode(ViewObject.QUERY_MODE_SCAN_UNPOSTED_ENTITY_ROWS);
    

    Thanks for reading.

    Hello

    First keeping a transitional attribute at the level of the entities should not raise an error make sure you follow the instructions.

    http://docs.Oracle.com/CD/E21764_01/Web.1111/b31974/bcentities.htm#BABHGCAH

    Secondly, to prevent the execution of the query you can run together of empty lines on the view object, before displaying the page. If an iterator is involved, and it doesn't have to be so also on the property of RowCountThreshold-1.

  • With the help of A6, must create menu screen which allows the user to click a button creates a branch to other screens and return to the main menu. When returning to the main screen on which button will be gray or inactive.  How can I do this?  I created

    I am trying to imitate a piece of equipment.  I need the user to be able to click on the specific buttons that have the user to another or screens.  After viewing these screens that will be the user to the main screen where the user which buttons were pressed and which still needed to be pressed.  I create buttons image with the 3 States - who has worked except when the user returns to that slide is reset to zero, and if the user does not see the 3rd State of the button.  How can I get this 3rd State of stay after the user returns to the main screen?

    You can not 'keep' a State, that's what I said in my first answer: "you can create an image with that look of '3' State, make it invisible and show it with the same action when a button is triggered. You will need to insert extra that third picture, first hide it out and make it visible to the advanced action, which I explained. I called this additional 'Done_one' image in the example. The three States you're talking about are in a totally different way to Captivate: for down, more and up-state. You can just tell Captivate to keep a low State, it will be down when the button is pressed. Where my explanation of an additional image.

    No need for all the variables. Looks like you have a lot to learn about variables and advanced actions. I don't see another easy way to achieve what you want. It is not so difficult, tons of examples on my blog.

  • Prevent specific users to drop the partition of table

    Hello

    I'm having the following problem: on the CUSTOMERS table, I implemented a policy that prevents specific users to delete records that have REPORT_DATE (it is a DATE column) over 2 months. Works very well.
    These users are actually "login" I identify using sys_context ('USERENV', 'OS_USER').

    However... I realized that these users can fall any partition of this table (the table partitioned BY RANGE) so the policy that I have implemented is unnecessary.

    My question: is it possible to prevent specific users to delete a partition?
    All partitions in the CUSTOMERS table are associated with a REPORT_DATE unique that's why I want to prevent the destruction of the wall that has a REPORT_DATE related more than two months...


    Thank you
    MR. R.

    Hello

    Revoke the privilege of the Oracle user who is connected. (privileges are granted to the and helped by users Oracle, no internal users that you identify well as SYS_CONTEXT.)

    If it is the owner of the schema, and then create a different pattern of all the newspapers-ins, which has only the privileges that these users must have. Modify the application so that it uses this log-in Oracle and not the owner of the table schema.

  • How can I prevent the software Adobe Reader crashing on my non privileged user?

    I am running Windows 7 and I need to create a user non-preferred on my computer. When I open a PDF file, it crashes almost instantly (I can view the document three seconds approximately). If I just open Adobe Reader without a PDF and click on Edit-> Preferences, it crashes. If I open a PDF file in any browser, it crashes.

    What I was able to guess, it seems that Adobe Reader tries to read the registry of my privileged user. I have tried to uninstall Adobe Reader, temporarily to grant privileges to my non-privileged user, install Adobe Reader on this user, and then remove the permissions, but the accident is still happening. The only way to stop Adobe Reader to plant is to start the program as an administrator, or change the type of administrator account. How can I prevent the software Adobe Reader crashing on my non privileged user?

    I had corruption of the registry "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders", where many of the keys have values set for the directories of the user of my administration. I did not write exactly which keys have been corrupted and causing the accident, but once I have finished all the fixing Adobe Reader worked perfectly and I was able to open the preferences.

  • How to prevent the user from creating jobs

    Hello

    We need to prevent the user from creating jobs on a dev environment. It's a 10.2.0.4 standard database on 64-bit linux.

    Their scheme has only connect and resource roles. Is it possible to prevent them from creating jobs? 11 g, it's permission to CREATE a TASK, but I don't know how I can do this in 10g.

    Thanks for all the ideas!

    I try again...

    If you revoke execute privilege on DBMS_JOB package with 'regular' users (i.e. non admin), then they will not be able to do anything, including by creating with the SUBMISSION process.

    No you want?

  • Prevent the Insert with Error Message

    Hello

    I have a req where a user cannot insert two rows of the same kind.

    To achieve this I write a process to compare the line that is inserted with the existing lines.

    I don't know where and what to include in the code while once create button an error message pops up and the insertion of the line is not processed or the line is not processed.

    How to display an error message?
    How to prevent you insert this line?

    Please suggest.
    Thank you.

    If I add a row to a table and use all THE columns duplicate values, but the id column (which should be unique [system-generated]), I would still have some duplicate data in all the other columns, correct?

    If the OP wants to ensure without duplicating the data are entered, he would have the better to try and produce a checksum for all data entered in the line and determine if any other input line generates a corresponding checksum, if so, then an error message should / could be displayed showing the possibility of a double row of data...

    Thank you

    Tony Miller
    Webster, TX

  • Maximum width on a text box does not prevent the user from typing too

    I have a text box with the field of the item to a width of 100, a maximum width of 240 and a height of 5. A user can type more than 240 characters on the screen (it does not seem to cut at any time) and then when they run they get an error of area too long given that the DB has only 240 tanks. (they can also copy and paste more than 240 characters here too)

    Is there anything else I need to do to make the field stop accepting characters after 240? I know I can cut the field before you save it in order to prevent the error, but want it so that the user can just walk more than they should.

    APEX 3.1, oracle 10g.

    Hi mimi,

    Make a "* Textarea character counter with *" rather than a normal text box. It will then work. If you want you can even use ' Textarea character Counter and check the spelling.

    Watch Ben always overload things: P

    Mike

  • Insert only the fields updated

    I have a log table that is based on the main table. The main table have 50 frames. Any updates in the master data shall be recorded in a new table. If the main table will be only the latest data updated.
    Any change in the main to insert in a connected table table. I need to insert only the fileds all fields update.
    How to write the insert statement in forms 6i for insertion in a connected table where only the fields changed.

    INSERT TO EMASTER_LOGTABLE
    (ECODE,
    ENAME,
    EDEPT,
    ETRADE
    )
    VALUES
    (: ECODE,)
    : ENAME,
    : EDEPT,.
    : ETRADE
    )
    Line will be inserted in the EMASTER_LOGTABLE with the field updated only not all fields, except primary.

    ORA-01858 is returned when you switch from the non-numeric characters at a time.  SQL more:

     SQL> SELECT To_date('##') as MY_DATE from DUAL;
    SELECT To_date('##') as MY_DATE from DUAL
    *
    ERROR at line 1:
    ORA-01858: a non-numeric character was found where a numeric was expected

    If you notice, in the code, I gave you above, I created a special 'NvlDate' to use all NVL functions where you are testing for a date.

    Put it in your trigger and use it on EACH column which is a date.

    +(... I not create NVLDate for no reason!) +

  • new links will be open in a tab, only in the main window

    with firefox 21, links will not open a new tab, only in the main window. I put the option of opening tab, but it still does not work

    The setting in Firefox/tools > Options > tabs: "new pages should be opened in ': 'a new tab/window' is for links that specify a target window to open the link.

    This option allows to divert these links into a new tab instead of a new window.

    Links that do not specify a target will open in the current tab if it does not change JavaScript.

    If this is not the case then you can have an extension interfere.

    For links that do not specify a target, use a middle click or hold down the Ctrl key and click the link or use the context menu to open the link in a new tab or window.

    This applies to the bookmarks and other links so that you can click the view Image in the context menu of an image or click on the address bar to get a new tab with this link, the Reload button.

    Click on a JavaScript link to avoid having a blank tab.

  • Windows appear on the taskbar, but won't focus, other 3 goes, only 1 that seems to be the main window is not found

    Windows appear on the taskbar, but won't focus, other 3 goes, only 1 that seems to be the main window is not found

    ALT + tab select window; ALT + SPACEBAR; maximize; sigh

  • I accepted the last update. Now, I can not display to the right of the main Itunes store, where top songs, etc would be. As the screen does not. Only on the HOMEPAGE of ITUNES STORE! Help!

    I accepted the last update. Now, I can not display to the right of the main Itunes store, where top songs, etc would be. As the screen does not. Only on the HOMEPAGE of ITUNES STORE! Help! I've tried everything. Google it. Searched through itunes, etc. It MUST be a bug, because it started right after I accepted the 12.3.3 update on my laptop running Windows 7 32.

    I count on the part of the main screen, which is not. Its strange. PLEASE HELP ME! In addition to the main page of the Itunes Store, everything else works fine as before. Music from my library work screens, etc.

    I also have exactly the same problem since the last update. Tried to find a way to solve the problem but no luck. Someone please help!

Maybe you are looking for