Make detail items in master/detail form read only

I want to make detail items in master/detail form read only for certain conditions (master STATUS = Closed). I see how to do this on the master record items but not on detail items.

Take a look at this thread: Re: Conditionally make a tabular form uneditable
You will need to modify the code, but it should help since a master detail is just a standard form with a tabular form attached to it..
Thank you,
Tony Miller
Webster, TX
Time flies like the wind, but fruit flies like bananas.

Similar Messages

  • BC4J - To get the detail of details in a Master-Detail relationship

    Hi,
    I am developing an application in JDev using Buss Components for Java.
    I need to show the details from the details in a Master-Detail relationship of ViewLink Objects.
    e.g I am browsing through a list of book publishers, if I pick one book publisher, all the books published by this publisher should be displayed. And when I pick one book out of these, the list of buyers should appear for this book.
    Is it possible to do it via the wizards in JDev?
    If not, is their any other way of doing it?
    Thanks,
    Any help would be appreciated.
    null

    Sure. Arbitrary levels of master/detail are easy to handle. It's just the first time you set it up in the "Data Model" panel of your Application Module, the UI gestures may not be the most obvious.
    Depending on whether you need to just browse the data, or both browse and update it, you would decide whether or not you need underlying Entity Objects for Publisher, Book, and Buyer.
    To keep it simple, just assume you want to browse so the Entity Objects are not required to be involved.
    You would develop three View Objects:
    [list=1]
    [*]Publishers - with a query like SELECT publisher_name, publisher_id FROM PUBLISHER ORDER BY publisher_name
    [*]Books - with a query like SELECT title, isbn FROM book ORDER BY Title
    [*]Buyers - with a query like SELECT name, company FROM buyer ORDER BY company, name
    [list]
    Then, you define two View Links:
    [list=1]
    [*]BooksFromPublisher - linking the Publishers view to the Books view, and
    [*]BuyersForBook - linking the Books view to the Buyers view
    [list]
    Then, you define an Application Module that sets up the data model you want to work with in a particular application that reuses these reusable view object and view link components.
    On the "Data Model" tab, you'll see the master/detail views available in the "Available" list like this:
    - Publishers
    |
    +- Books
    - Books
    |
    +- BuyersTo construct a master/detail/detail view with these "raw ingredients" do the following:
    [list=1]
    [*]Click on Publishers in the Available list, and click (>) to shuttle it into the data model
    [*]In the data model tree, select the Publishers view to make it the active selection.
    [*]Back in the Available list, click on the Books view that is indented under Publishers and click (>) to use Books as a detail of the current view in the data model.
    [*]In the data model tree, select the Books view to make it the active selection.
    [*]Back in the Available list, click on the Buyers view that is indented under Bookss and click (>) to use Buyers as a detail of the current view in the data model.
    [list]
    Hope this helps.
    null

  • Make form read only if a field is filled in

    Is there a way to make an entire form read only if a certain text field is filled in?  I know that adding a digital signature field to a form, increases the size of the form, so I would prefer not to add a digital signature field to my form.  However, I would like the feature that says after the form is signed, it is read only.  I added a text box to the form and tried to add some script that read:  if (this.rawValue != "") (this.access = "readOnly"), but that didn't work.  Is there a way I can accomplish this without adding a signature field to the form?

    Hi,
    It depends on where you placed the script, probably best place is the exit event.
    if (this.rawValue != null || this.rawValue != "")
         this.access = "readOnly";
    else
         this.access = "open";
    This will only lock the field that the script is inside.
    You should check out Paul's example LockAllFields, which contains a function in a script object. While Paul calls this from a click event in a button, you could call it fromthe exit event of the particular text field.
    Re: Saving Fillable Form as non-fillable PDF
    Hope that helps,
    Niall
    Assure Dynamics

  • To make RFQ form or Quotation form read only after the satus is made closed

    Hi All,
    I have a requirement where we need to make all the fields either on RFQ or Quotation form read only/freezed/greyed out once the document status is made Closed from Active satus. The User should not be able to change any value in the RFQ or Quotation form. The same needs to be achieved in core purchasing module. Looking forward towards kind suggestions. Thanks.
    With Best Regards,
    Nirabh Nayan

    Hi,
    Please perform form personalization.
    Triggering event : WHEN-NEW-RECORD-INSTANCE, WHEN-VALIDATE-RECORD
    Triggering object : PO_HEADERS
    condition : :PO_HEADERS.STATUS='Closed'
    In action, Type : property
    Object type : Block
    Target object : PO_Headers
    Property name : update_allowed
    value : false.
    Like this, you need to create a actions for all the Blocks available in RFQ/Quotation Form ( ex: PO_lines, PO_Shipments etc)
    Thanks,
    Subhashini

  • Tabular Form - Read only condition for certain users

    Is it possible to make a select list field in a tabular form read-only to certain users? Here's the situation:
    The tabular form lists the users who need to select "Approve" or "Reject" in that field (they are approving or rejecting an engineering change)
    I want all of them to see the approval/rejection of their team, but only have access to edit the select list associated with their record.
    Thanks in advance.
    Apex 4.0.0.00.46

    You could use either "authorisations" tab or "conditional display" for the relevant column attribute.
    Report Attributes->Column Attributes->authorisationsIt would be better to have some more detail about what you are trying to get (maybe a quick mock up of the form, for example) but, I can envision something along the lines of the following:
    For each approval/rejection field:
    1. Create an authorisation appropriate for access to to each approval/rejection field e.g. authorisation scheme "FOO"
    2. In the relevant fields column attributes, set the authorisation to "FOO"
    3. now create a read only "public" copy of the above field, using the "display as text (based on LOV does not save state)" - set the authorisation for this field as "{NOT FOO}"
    (if you don't want to use authorisations, you could build an equivalent using "conditional display" instead, which is basically the same thing, except column specific)
    The downside is of course that you're duplicating fields in your query, which creates a bit of redundancy. There may be better ways to achieve this (maybe you could make use of the APEX_ITEM api, for example) but this is fairly easy to set up IMO.

  • Cannot make changes to the contents of this read-only folder

    I recently got a new laptop and loaded Office 2013.  We have three inboxes in Outlook and are using Cox IMAP.  I get the following message when I try to delete emails from the primary inbox "Cannot make changes to the contents of this read-only
    folder". Emails can be deleted from the other folders with no problem.
    Does anyone know what could be causing this and how to fix it?

    Hi
    As per the information and details provided by you, to solve the problem of Outlook inbox folder, please follow these steps: -
    Step 1: - If you are unable to delete all emails from a given Outlook folder, most likely that folder is locked.
    Restarting Windows should fix it.
    Step 2: - If you are unable to delete only some emails, then your
    Outlook data file might be corrupted.
    Step 3: -
    Empty your Deleted items mail folder, then try again to delete emails.
    Step 4: -
    Hard deletes the selected emails – While the emails are highlighted/selected, keep the
    Shift key pressed and hit the Delete key.
    Step 5: -
    Restart Outlook in Safe Mode and try deleting the emails from there.
    Step 6: -
    Edit the culprit email (Actions > Edit Message), save it back and try to delete it.
    I hope this information will be helpful for you.
    Thanks and regards
    Shweta@G 

  • Best practice for making form read-only at certain steps in process?

    I have a process with a single form and 4 Assign Task operations.  During Assign Task operations 1 and 3, the form is edited.  During Assign Task operation 2 and 4, it should be read-only (it is reviewed and acknowledged, but not changed).   There is no single criteria in the form data that indicates whether a form should be read-only or not -- this is only signaled by the step in the process.  What is the best way to manage the read-only state?
    Is there a way to make the form read-only via a setting in Workbench, or should I do this via a script in the form?
    Thanks!
    Toby

    I have a process with a single form and 4 Assign Task operations.  During Assign Task operations 1 and 3, the form is edited.  During Assign Task operation 2 and 4, it should be read-only (it is reviewed and acknowledged, but not changed).   There is no single criteria in the form data that indicates whether a form should be read-only or not -- this is only signaled by the step in the process.  What is the best way to manage the read-only state?
    Is there a way to make the form read-only via a setting in Workbench, or should I do this via a script in the form?
    Thanks!
    Toby

  • Urgent :need help to setup Master to snapshot(read only) environement

    Hi,
    I need your help urgently. I don't know much about master to Snapshot configuration. I need to do prototype of master to snapshot(read only) as soon as possible. I need replication setup/configuration scripts.
    DB1 is master database (8i) and DB1 is Snapshot site db.
    both dbs are identical except they have different Global_name.
    I want to replicate table from DB1---> DB2 unidirectional.
    Global name for DB1 is DB1.world and for DB2 is DB2.world
    TNS names are DB1 and DB2 respectively and TNSNAMES.ORA file is same on both server.
    Schema owner of Mster site (who owns the tables that I want to replicate) is user 'SYNAPSE'. On DB2 I have also same schema with same tables. Lets say table called 'TEST' that I want to replicate from DB1 to DB2.
    for simplicity I want to have only one account(user) on both site who can do administration and take care of all other task including replication.
    I need scripts to do setup for the replication environment described above.
    In short please provide me script to replicate DB1 to DB2 (Master to snapshot).
    I appreciate your help very much.
    You can reach me at [email protected] as well.
    Thank you.
    Pravin

    Finally I figured out how to setup/configure master to Snapshot environment but I have to say that Oracle documents are very confusing.
    The problems I ran into are:
    User Repadamin can't create MV in schema owner other than repadmin. Work arround I used is let that schemema owner allow to create MV.
    Other proble ran in is Constraint(FK) violation when trying to do using refresh group. To resolve this problem either disable constraints on snapshot site or create constraints usinf deferred option.
    Pravin

  • Howto make created folders/ files from one teacher, read only for other teachers?

    Hello there,
    as an admin @ school I was wondering how to make created folders/ files from one teacher, read only for other teachers?
     - In a 2008domain, created a group "teachers"
     - created a folder "teacher data" where all teachers have read/write permissions
    ideal,a teacher who make's a folder in "teacher data" should be the only oen who is able to add file's to that folder and dele that folder or files. Other teachers may be able to read the content of the folder.
    Is this possible to set up and how?
    many thanks.
    Nico.
    rds

    Hi Nico,
    You could set the permissions below to resolve the issue:
    For the root folder "teacher data": give the full control permission to CREATOR OWNER – "Subfolders and files only" and give the read/write permissions to the group "teachers"– "This folder only".
    Best Regards,
    Mandy 
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • File Browse Item in Master-Detail Form

    Hi,
    This is what I need to do.
    I have a master table called Regulations. As part of the Regulation Creation process, users need to upload supporting files. The number of files is not fixed, so I have a detail table for the uploaded files. I was planning to create a Master Detail form and have a File Browse item in the detail region? Is there a way I can put a File Browse item in the detail region of the Master Detail form?
    Any other implementation suggestions are welcome.
    Thanks,
    Ramesh

    See
    http://the-stickman.com/web-development/javascript/upload-multiple-files-with-a-single-file-element/
    It has some interesting implementation ideas relating to your question.
    Also see
    Upload Multiple Files
    Re: insert multiple files from a single form

  • How can I insert in the table detail of a master/detail form??

    Hello, I have created a master/detail form from the assistant, and with the code generated by APEX I do not manage to insert a row in the table detail, I press the button 'Add Row' and refill information, when I press the button ' to apply changes ' me the following mistake appears:
    'Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. current checksum = "C85B64D53C8D63E9D3EE83B82728DFA3", item checksum = "244B1FED90DF5CC5B0DDB6728F4D02DD"., update "CRM_ADMIN"."ASIGNACIONES_AM_CONTACTOS" set "SECUENCIA" = :b1, "CODIGO" = :b2, "NOMBRE_CLIENTE" = :b3, "NOMBRE" = :b4, "COMENTARIOS" = :b5, "CODIGO_COMERCIAL" = :b6'
    How I can solve and be able to insert in the table it detail?
    Thanks

    Hi Law,
    Text in a shape or a text box will not feature in the table of contents.
    To get a colour behind your titles, type them into your document (not a shape). Format as Heading or some other paragraph style the TOC will recognise.
    Select the title text and Format Panel > Text > Font > Gearwheel > Advanced Options.
    Choose Character Fill Color and choose a colour from the palette (left) or colour circle (right).
    Example Titles (all on the same page for a smaller screen shot).
    Chapter 3 (in a coloured Text Box or Shape) does not appear in the TOC:
    Hint for cheats :
    To give the titles a wider Character Fill Colour, add some Tab characters before and after.
    Regards,
    Ian.

  • How to access detail-rows in master-detail form?

    I have a master-detail form(one to many relationship). The master and detail are in separate blocks. The detail rows are displayed in a tabular form.
    I need to access the detail-rows since the database writes for the detail rows will be managed by a procedure.
    I have been looking through the documentation and have been unable to find any syntax for iterating through the detail-rows.
    Any help is appreciated. Thanks.

    go_block(detail)
    first_record;
    in a loop while not last_record
    -- do your stuff
    next_record;
    end loop;

  • To get value in detail part of master detail form

    hi all
    i am using forms 6i
    there is a master detail form
    in the master part
    i am just mentioning one field as per the requiremnt
    FIELD BELONGS TO DATA BLOCK XXNP_JL_001.FIELD
    this FIELD field is populated by a flexfield NAP_GL_WELL
    VALUES are
    abc                           123
    def                            456
    fgh                            875
    in the master part of the form there is also a button called POPULATE which populates values  for the fields in the detail form
    in the detail part of the form
    i am mentioning two fields
    item_number belongs to data block XXNP_JL_EST_002 and      opn_value belongs to data block XXNP_JL_RES_005
    now the requiremnt is as follows
    say the WELL field has a value 'abc'
    then in the detail part
    whenever and only when the item_number is '1010103002' the opn_value field should have value 123
    similarly when the WELL field has a value 'def'
    in the detail part
    when the item_number is '1010103002' the opn_value  field should display value '456'kindly guide on how this can be achieved
    thanking in advance
    i did a when validate trigger on opn_value field
    BEGIN
    IF  :XXNP_JL_RES_005.OPN_UOM_CODE='PKU' and :XXNP_JL_EST_002.ITEM_NUMBER='1010103002' THEN
            SELECT hierarchy_level
            INTO :XXNP_JL_RES_005.OPN_VALUE
            FROM fnd_flex_values
            WHERE flex_value_set_id = 1009757
            AND FLEX_VALUE=:XXNP_JL_001.FIELD ;
            END IF;
            END;Edited by: makdutakdu on Jul 4, 2012 12:40 PM
    Edited by: makdutakdu on Jul 4, 2012 1:05 PM
    Edited by: makdutakdu on Jul 4, 2012 1:09 PM

    HI
    If i understood your question on overview, your requirement is
    get master details in details column.
    If this is correct,
    YOu can write a simple plsql to get master value in details columne thru trigger
    If my understanding is not correct, please tell me

  • Creating Detail record in Master Detail form

    I have created a Master Detail form with the Detail form being on a second page.
    I have no problem editing an existing detail record. However, if I attempt to create a new Detail record (insert). I get an error. It appears that the value of the field that I am linking the Master and Detail records with, does not get passed to the second (detail) form when I press the 'Create' button and I have not been able to ascertain where I may need to modify the parameters of the page.
    Any guidance would be appreciated.

    Hi Judy,
    It's been 5-6 months since I've created a Master/Detail APEX application, but I don't remember having to create any special trigger or anything. I created a few maintenance appls over tables I created, and created an inquiry appl using Oracle vendor tables. All of them have worked nicely.
    If the PK/FK's are set up correctly it just works. :-) Like magic. If I recall correctly, as you create the appl you define the the key fields to use. If the tables are defined correctly, and you 'tie' them together using the correct key fields in the application everything should work nicely.
    Tony

  • Can't add new detail record in Master Detail form

    Hi ,
    I've created a simple database application from scratch by initially selecting a Master Detail page. This generated a report page (for the parent ) and a form page (for the child ). On using the form to add a new child record the following error was generated:
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-01400: cannot insert NULL into ("STUDENT1"."DELEGATE"."DELEGATE_ID"), insert into "STUDENT1"."DELEGATE" ( "DELEGATE_ID", "CLIENT_ID", "SURNAME", "INITIALS", "SEX", "SPECIAL_NEEDS") values ( :b1, :b2, :b3, :b4, :b5, :b6)
    Error Unable to process update.
    The 'child' field listed in the error message is automatically hidden on the form and I had presumed that on generating this form using the wizard that I would have had an opportunity to link the delegate_id field to a trigger or a sequence as seems to happen when creating a database application scratch using other page types. I'm new to Apex so I'd be grateful if anyone could let me know as to why this default behaviour occurs,
    regards,
    Kevin.

    I tried it for Apex 4.0.2 (my version) and 4.1 (on apex.oracle.com) and I am asked for master and detail PK generation in both versions.
    What are your steps exactly in the wizard? Like this?
    Create page -> Form -> Master Detail Form
    Now you see a whole list of sub steps including "Primary Key Source".
    Oh I see "Create Application wizard." in your post. Start with an empty application (blank page) and use the Create Page wizard instead. Maybe that's the difference.
    Edited by: InoL on Nov 18, 2011 9:27 AM

Maybe you are looking for