Form of customization on R12 - master - details form

Hi Experts,

I need to update enabled false for one of the fields in the master - MSDS by customization of form in R12, but I'm not able to achieve this goal, as the update allowed arrives for all records in the block of retail. Help/suggestions to do this update helped fire for one record. It's very urgent, your suggestions will be of great help.

Thank you

Séverine

Hello

According to my understanding,.

You must deactivate the feature update for the category field. In the category assignment field only the field form that is allowed to be updated.

If you want to disable the update to this field based on the State, right?

If Yes, then proceed as below.

Create a form like this customization.

Triggering event: ONCE - NEW - ITEM - INSTANCE

Trigger object: CATEGORY_ASSIGN. CATEGORY_CONCAT_SEGS_FF

Condition: CATEGORY_ASSIGN. CATEGORY_SET_NAME = "Stock".

In the actions

type: property

Object type: agenda

Target the object: CATEGORY_ASSIGN. CATEGORY_CONCAT_SEGS_FF

Property_name: UPDATE_ALLOWED

value: FALSE

Then save and close the form and change the RESP and still go to this form and check. Now, you cannot update this field for this condition.

Hope this will help you.

Tags: Oracle Applications

Similar Questions

  • Form master / detail apex 5 tries to update the lines of details without apparent change

    A form master / detail of Apex default 5.0 creates buttons back and forward on the main table. When you move between records, the detail region launches a message: update 0 row (s), 0 or the inserted rows.

    Glance in occasional of the user, it will look like a mistake: I, what has changed and why it has not been saved?

    If nothing has changed, why is a MRU statement update being generated?

    How do I remove this behavior? Is this a bug?

    You can see in https://apex.oracle.com/pls/apex/f?p=74308:LOGIN_DESKTOP:113903018138704:, the application of MasterDetail Claim_Charge. Credentials are of assistance/Viewer.

    Thank you!

    Hello

    Create a new hidden element Px_RUN_MRU and the value of

    Source used "Always replace the value that exists in the session state."

    Source of Type ' static assignment (the value corresponds to the source attribute) ' and

    Value of source or phrase "N".

    Then create new PL/SQL process for tabular and use the code

    if :Px_RUN_MRU = 'N' and :APEX$ROW_STATUS IN('C', 'U', 'D') then
      :Px_RUN_MRU := 'Y';
    end if;
    

    Make sure that this process is captured in the form of process MRU.

    Then change tabular MRU to love affection

    (:request like ('SAVE') or :request like 'GET_NEXT%' or :request like 'GET_PREV%')
    and :Px_RUN_MRU = 'Y'
    

    Kind regards

    Jari

  • Create a form master detail.

    Hello

    I am creating a form master detail following this tutorial: Blog of Zeeshan Baig: master form design / detail in Oracle ADF

    However, I'm stuck at this stage where I need to create a link to the view. I'm not able to add the departmentview departmentid. The Add button is not turning on.

    Please refer to the screenshot below. Thank you.

    cvl2.jpg

    You have chosen DepartmentsView in both places.

    You must choose the DepartmentsView to the source and the EmployeesView in the destination.

    See you soon

    AJ

  • Unique constraint in the form of master detail error

    Hi all

    I need help, the following requirement.

    I have a master detail form developed on master-child table. the tables have the composite key.

    Old masters has a composite key on columns (A, B)

    Children table has a composite key on columns (A, B, C)

    Child block look something like below

    C       A          B

    10 AAA 1000

    20 1300 BBB

    30 CCC 1400

    40 DDD 1200

    Increments of column C with 10 for each record, and if a new record is insert in intermediaries the records it is incremented to 5.

    My requirement is when an end user attempts to insert record between 20 and 30 or 30 and 40 and clicks on save, the value of the C column must regenerate as shown below

    C       A          B

    10 AAA 1000

    20 1300 BBB

    XXX 30 900

    40 CCC 1400

    50 DDD 1200

    Button Save I wrote the following code

    Declare
      ln_Count NUMBER :=0;
      ln_c number :=0
      cursor c1 is
      select c
      from child
      where a=:child.a
      and b=:child.b
    Begin
      Go_Block('Child');
      First_Record;
      LOOP
      ln_Count:= ln_Count+10;
      :child.C := ln_Count;
      EXIT When :System.Last_Record = 'TRUE';
      Next_Record;
      END LOOP;
    
    
      For c_cur in c1 Loop
      update child
      set c:=ln_c+10
      where a=:child.a
      and b=:child.b 
      and c=c_cur.c
      end loop;
      Forms_DDL('commit');
         
         commit_prc('Commit');  -- We have our own program unit to call commit_form
    
    END;
    

    I tried above in a way because, before approving the changes to the table, I update the existing values in the table of the C column so I would not get unique constraint error.

    When you click the button Save, I get a constraint exception. Hope I made my requirement clear.

    Can someone give me a clue to this implementation.

    Thank you

    malandain

    With this update, all your C-columnvalue became negative. When you post the form thereafter, forms update agaion records one by one the new positive figures. Because the numbers of 'old' in the db are now negative, there will be no violation-UK.

  • How to create the column of the table for long-form Master detail relationship

    Apex 4.1

    Oracle 11g

    I created a form master detail and see the main table hotel_list and table hotel_mapping as detailed below.

    Hotel_list

    ID HOTEL_NAME

    1 Holiday Inn

    Hotel Hilton 2

    Hotel_mapping

    ID HOTEL_NAME MAPPING_NAME

    1 Inn Holiday Inn Select hotel

    2 holiday hotel Holiday Inn Select

    3 hotel Holiday Inn Holiday Inn Hotel

    4 Hilton Hotel Hilton Hotel chain

    Hotel Hilton 5 HiltonHotel

    Table Hotel_name Hotel_list is a linked table Hotel_mapping

    When I add a line to the Hotel_mapping table for the selected row in the hotel_list table, mapping_name of column is null, therefore impossible to create the relationship between the main table and the secondary table.

    I would like to know, how to create the relationship?

    Thank you very much

    Best regards

    Yong Huang,

    simple step see creating a form detailed master with APEX - Assistant Master retail

    and check how to maintain the relationship between two tables,

    simple return the packaged application «Sample of Masters details»

    and try to understand this concept...

    In your example, use Hotel_list.ID as a foreign key in the table Hotel_mapping

    and maintain the relationship with the column ID...

    and choose the display type of the column Hotel_list.ID in table Hotel_mapping as List(Query Based LOV) select.

    otherwise the best way is to create sample on oracle.apex.com

    I hope this helps...

    Leave.

  • How to display two dept details at the same time in the form of master-detail

    Hi Experts

    In Forms 6I, using the Scott schema, table DEPT & EMP has created a simple form of master-details relationships.

    Currently when user Dept Block shows all lines dept and EMP block display data based on the selection of deptno.

    It's only a deptno both.

    If the user in the No. 10, block EMP Dept will display all the data related to 10

    If the user moves to 20 Deptno, block EMP will display all the data related to 20.

    And so on.

    But our requirement, what happens if we want to see the 10 and 20 at once (both several deptno)

    Thank you

    Thanks for your information.

    In fact, our requirement is only to display data, he own be no matter what update of data/insertion.

    So below and working for our requirement

    • Remove relationship
    • Additional box on master block.
    • Write code cursor on the box selection - which will fill/clear data block information based on the checkbox selection on block Master.

    Oracle Apps training: how to display two Department employee details at the same time in the master/detail relationship

  • Master / detail Edit - any form of detail is displayed on the page?

    I have a simple application, built on a master of table BPR_PROC (a single column, PROC_NM). And a secondary table BPR_RUN (PROC_NM columns and a few others). There are only 4 pages: (1 House, Master 2, 3, 4 Login details). I did this as a standard form - create selection master / detail.

    When I create or edit a master (PBR_PROC), the mounting happens on details page - well, very well so far. But no form is displayed with the detail rows exist (according to the BPR_RUN of detail table) or whatever it is for me to go into details. (I'm sure I've done app M - d. before and the change of details form appears at the bottom of the details page but I am noit do here).

    Question: How can I fix to add / modify detail rows?

    WS: APEX_EXAMPLES_01
    User: demo
    PW: demo
    Appl: BPR_991203

    Thank you
    Howard

    (For later: Question: is there a simple way to do the master editing on master rather than on the detail page?)

    Howard (in training) wrote:
    Ah! I've recreated the problem - this time on pages 12 & 13 and as before

    the point value / Expression 1 Is NOT NULL column condition on the detail region seems to lack a little:

    So, it's a "bug"?

    Probably something to do with the creation of forms of master-detail using ROWID instead of a real process of generated by the wizard of PK. APEX theory. PKs relational DB meaningful, immutable like immutable PKs. Despite the bug condition region of detail, is why your column editable PROC_NM if it is used as the PK? It is a good way to break things. (I created now orphaned detail rows).

    If you want to take advantage of the built-in features of APEX as ARP and MRU wizard-generated process, then go with the flow: use surrogate keys. Otherwise you'll spend your time to write a lot of code manual.

  • Master detail form can not insert foreign key

    Hello

    I Master detail form, in the data block master, I Header_ID primary key and it is generated through trigger on the main table and this field is found in the data block but is hidden on the Web, this Header_ID is a key in another table, on the form, I created the main form and has also created the good relationship. now, when the new record is inserted, the Header_ID in the main table is filled properly while in the secondary table that goes with the NULL value. I have no idea how to solve this problem, any help will be appreciated

    Rather than use a database trigger, select INSERT before triggering in the basic data block to fill the HEADER_ID.

    In the before INSERT trigger, you'd have a line like:

    select seq.nextval into :MASTER.HEADER_ID from dual;
    

    When you do this in the before INSERT trigger will fill the element in the block MASTER that feeds in turn the question into the DETAILS or blocks.

  • How to determine the ROWNUM in a Master detail form

    Hello

    I work in a master detail form with controls and information in order of points; I have created a process that allows users to select a product on a tabular presentation ID and the next column is filled automatically with the Product Description.

    To achieve this, I followed some instructions by Denes Kubicek (http://apex.oracle.com/pls/otn/f?p=31517:241), but my case is slightly different:

    < ul > I use a form tabular-created by Wizard, instead of manual tabular form; and < /ul >
    < ul > instead of using another page as a Popup to pass the parameter of the ROWNUM, I use a plugin called "tabular form Super LOV" which is a modified version of Super LOV the SkillBuilders who works on tabular forms. < /ul >

    The product ID is returned in the line by the plug-in; but in the case of the Description of the product, it is always returned in the first row; and my problem is that I don't know how to determine the line where the user clicked to call the plugin.

    I created an example in apex.oracle.com in case someone wants to look at:
    Workspace: ediazjorge
    User name: test
    Password: test
    App name: Sample App
    The app number: 1550

    BTW, I use Apex 4.1.1.00.23 and Oracle DB 10.3.2.

    Thanks in advance,

    Erick

    See what {message identifier: = 10436048}

    OR

    {message: id = 10458307}

    You must use something like below

    //in your case currIndex means the ROWNUM value you have
    $('input[name="f03"]')[currIndex].val('some thing')
    

    And for the jquery selector try this

    $('img[alt="Popup Lov"]')
    
  • Is master detail in cascade LOV possible for details on a form?

    I have a form master detail to assign levels of skills to employees. Skill levels fall within areas. I have a LOV on the level of skills in the details, but I want to filter LOV skills by area, using a LOV cascading as follows:
    --------------------------------------------------------------------------------------------------------
    Master region
    Data on employees, etc..
    ---------------------------------------------------------------------------------------
    Detail region
    * [LOV domain] * {it is page-level element.  He appears only once on the page}

    * [skillset LOV] *... and other skills related fields {}
    * [skillset LOV] *... and other skills related fields {}
    * [skillset LOV] *... and other related skills fields {here are the details, many on each page}
    * [skillset LOV] *... and other skills related fields {}
    * [skillset LOV] *... and other skills related fields {}
    etc.

    [buttons, etc.]
    --------------------------------------------------------------------------------------------------------

    I added the page level [area LOV] element as part of the selection list. It works and is called P45_DOMAINS

    I then modified the query on the [skillset LOV] to add a where clause for the item clause:

    where DOMAIN =: P45_DOMAINS

    It does not work. [Skillset LOV] returns no data.

    Hello
    What version of Apex?

    If on 4.x then you did P45_DOMAINS LoV the Parent of the child LoV?

    If your form detail is a tabular form then LoVs cascading are not supported. You must build your own LoVs cascading using the technique from Denes Kubicek example here.

    See you soon,.

    Published by: Dominique on 23 August 2012 09:29

  • Form master-detail recording detail does not with ORA-20001

    Hello

    I have a master/detail form, the detail record has a timestamp field that I people using systimestamp via the default, it is a single field of view and everthing records very well. But if I change the format of the timestamp field via the DD-MON-YY HH24 attrubutes column, I get the following error on save

    Internal error in the routine mru: ORA-20001: error in MRU: line = 1, ORA-20001: find the invalid timestamp value, please check the timestamp format.

    Someone knows what's goin?

    Thank you...

    Looks like your display only column is based on the database column.
    If this is the case, you have little control for it in ApplyMRU.
    What you need to do is
    a. keep the TimeStamp column hidden with any mask format
    b. Add the form as a table with the format mask you want to display a column of data not

    In a Word, the DB column is in the proper format as required by the ApplyMRU but you display for users of the truncated version of that.

    See you soon,.

  • Validation of tabular form regarding the item master detail

    Hi guys,.

    I have installation master detail on my page with a layout table below.

    The master record has a field called RCV_QTY.

    The tabular presentation has a column called box_qty.

    What I'm trying to do is to validate it against the user to add lines in the table form which when added, is more than the amount of heading RCV_QTY.

    I tried the following function returns the validation text error but it's not enough work.

    As the line in the custom of tabular form be seen by the following SELECT INTO statements on submit, I guess I need more of a process of dynamic action type?


    DECLARE

    v_hdr NUMBER;
    v_line NUMBER;

    BEGIN

    SELECT hdr.rcv_qty
    IN v_hdr
    OF XXMEL_VMI_RCV_HDR_TMP hdr
    WHERE the hdr. VMI_RCV_HEADER_ID =: P2_VMI_RCV_HEADER_ID;

    SELECT SUM (line. BOX_QTY)
    IN v_line
    OF XXMEL_VMI_RCV_HDR_TMP hdr
    Online XXMEL_VMI_RCV_LINE_TMP
    WHERE the hdr. VMI_RCV_HEADER_ID = line. VMI_RCV_HEADER_ID
    AND hdr. VMI_RCV_HEADER_ID =: P2_VMI_RCV_HEADER_ID;


    IF (NVL(v_line,0) - NVL(v_hdr,0)) < 0
    THEN
    RETURN (' ERROR: the sum of the quantities of tag is greater than the quantity of the received header ');
    ON THE OTHER
    RETURNS A NULL VALUE.
    END IF;

    END;

    Any help would be great.

    I use Apex V4.0.

    Hello

    You must use the API APEX_APPLICATION total up to the Box_Qty of detail in Validation, and compare with the RCV_QTY. something like

    DECLARE
      V_BOX_TOT NUMBER := 0;
    BEGIN
      FOR I IN 1..APEX_APPLICATION.G_F01.COUNT LOOP
         V_BOX_TOT := V_BOX_TOT + TO_NUMBER( NVL(APEX_APPLICATION.G_F01(I),'0'));
     END LOOP;
     IF V_BOX_TOT > :P1_RCV_QTY THEN
        RETURN FALSE;
     ELSE
       RETURN TRUE;
     END IF;
    EXCEPTION
      .....
    END;
    

    Kind regards

  • Validation of the detail in a form records master detail.

    Hi all

    IAM trying to validate the detail records in a form master detail. I have a check box in the detail Section. I want to add validation that all the detail records are checked or all are unchecked. To do this, I added valdation method on the entity to master, but it only runs when any attribute of the master record is changed, but not when it comes to his detail record is updated or inserted. Please tell me where I can write this validation logic or how can I trigger to perform the validation method when a child record is updated.

    Thank you, Pradeep

    Please ask such questions on the JDeveloper forum in the future because it is not related to the JHeadstart.

    To get the desired behavior, you must check the Association membership on the association of the entity between the master and detail EO.

    Steven Davelaar,
    Jheadstart team.

  • Master-detail-shape; Hide/show columns in the form of details according to the column

    Hello

    I have a form master detail. In the long form, I have the columns:
    ID, MASTER_ID_FK, PC_SOURCE, A_C1, A_C2, A_C3, B_C1, B_C2, B_C3

    The PC_SOURCE of the column must be a LOV with values
    NULL VALUE
    A
    B

    So if I choose or enter a master record the detailed form appears and I can enter one or more detail records.

    PC_SOURCE is the first column.
    If I choose one, the columns B_C1, B_C2, B_C3 should disappear as there should be no possible entry.
    If I have B, A_C1, A_C3, A_C2 columsn should disappear as there should be no possible entry.

    Is this possible?

    I tried a bit of my own, but without success. I tried to put in the first column (lov SOURCE PC) in the attributes of the element a javascript call like onChange = "do_Refresh('#PC_SOURCE#'); »

    The javascript funktion do_Refresh tries to grab the value of the column and the value of a hidden item P1_SOURCE as document.getElementById('P1_SOURCE').value = v_source;

    But this does not work, because there is not the value of the recovered column.
    And probably can´t work because of more lines of a detail.

    Thank you and best regards,
    Matthias

    Hello

    The html code of your detailed form will be an array of the elements of entry with names f01, f02, etc.. The columns of the key of the fields are normally hidden, so your PC_SOURCE column will probably use the name f03. A_C1 column name will be f04 etc.

    Once you have the input names for your columns, you can create a dynamic action (DA) to hide the items you want.

    You want the DA to fire when any element PC_SOURCE is changed if you want when to be:
    Event: change
    Selection type: jQuery Selector
    jQuery Selector: input [name = "f03"]
    Condition: no strings attached

    The action is to hide an element in the same line, if the changed item is a value. The action must therefore:
    Action: Run the JavaScript Code
    Fires when the event is: true
    Code: if(this.triggeringElement.value=="A") {$x_Hide ('f04_' + this.triggeringElement.id.split ('_') [1])}

    You then need a lot of real actions for each item that you want to hide.

    Rod West

  • Failed to add new detail in the form of master detail record

    Hello

    I created a simple database application from scratch by selecting the start a page master detail. This has generated a report (for the parent) and a page of form (for the child). On using the form to add a new record to the child, the following error is generated:

    Internal error in the routine mru: ORA-20001: error in MRU: line = 1, ORA-01400: cannot insert NULL into ("Student" 1.) "" DELEGATE. " "" ""DELEGATE_ID"), insert"Student"1." DELEGATE values' ('DELEGATE_ID', 'CLIENT_ID', 'NAME', 'INITIAL', 'SEX', "SPECIAL_NEEDS") (: b1,: b2,: b3: b4,: b5,: b6)
    Error failed to process the update.

    The field 'child' in the error message is automatically hidden on the form and I guess on the generation of this form using the wizard I would have had the opportunity to link the field delegate_id to a trigger or a sequence like this seems to happen when you create a scratch from application database using other types of page. I'm new to Apex then I would be grateful if someone could let me know why this default behavior occurs.

    Kind regards

    Kevin.

    I tried for Apex 4.0.2 (my version) and 4.1 (on apex.oracle.com) and I'm wondering for the production of main PK and details in both versions.

    What are your steps exactly in the wizard? Like this?
    Create page-> form-> form detailed Master
    Now you see a list of steps sub whose "Source of primary key.

    Oh I see "Create an Application Assistant." in your message. Start with an empty application (blank page) and use the wizard to create a Page. Maybe it's the difference.

    Published by: InoL on November 18, 2011 09:27

Maybe you are looking for

  • Lost the rear button after the update and the button how to get back home?

    Firefox updated to 7 and I lost all my Add ons including the home button and the front/rear button. I could get all my Add ons restored except for the home button and the forward/backward buttons. How to make a comeback? Wish now that I had not updat

  • Laptop turns off on off on off on--will not stop!

    We have a dv6812nr Pavilion dv6700 model number that lights up for about 2 seconds (LED lights up but not black screen error message) but then goes off for a few seconds, then on, then turned off, then on, then off.  Repeat this process until we have

  • Satellite M70-340: display driver has stopped working

    HI, I BOUGHT ALL NEW LAPTOP FROM DUBAI THE MONTH LAST. HIS GIVING DISPLAY PROBLEM BEGAN THE IALMRNT5 DISPLAY DRIVER HAS STOPPED WORKING NORMALLY. MUST RESTART TO COMPLETE SYSTEM RESTORE" I DID ALSO DRIVE FORMATTED, REINSTALLED PREDRIVERS. BUT IN VAIN

  • Digital electronics FPGA Board Hardware Driver for Windows 10

    My son just made me aware that his school has a dozen of National Instruments Digital Electronics FPGA boards, but they have never been able to get them to work or actually use them in the curriculum. It seems that he has left his instructor know tha

  • How to view the data in the text file to the format column

    Hello I am acquiring data from an oscilloscope. Wen I save the data in a text file to aid wite spreadsheet string, all the displayed voltage values r first, then values of time... in addition to its delimited by tabs How can I view it like the r of t