Set the element property in the detail block

Hello

I wish to address an item property in my block of detail that consists of several documents as a tabular presentation. For example, when I use APIs like the code below. The API defined the entire column for this particular element rather than the game each element in each record. Could you please take a look below coding and advisor how I can configure each element in each record?


-----------------------------------------------------------------------
BEGIN


GO_BLOCK ('USER_RESP');

last_record;
premier_enregistrement;
LOOP

If: USER_RESP. End_date is null then
-app_item_property.set_property ('USER_RESP.) END_DATE ', ALTERABLE_PLUS, PROPERTY_OFF);
set_item_property('USER_RESP.) END_DATE ', INSERT_ALLOWED, PROPERTY_OFF);
set_item_property('USER_RESP.) END_DATE ', UPDATE_ALLOWED, PROPERTY_OFF);
end if;

When the output: system.last_record = "TRUE";
next_record;
END LOOP;
premier_enregistrement;




END;

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

Published by: user11270809 on January 12, 2010 18:15

Hello
better do you in pre-record trigger

If: USER_RESP. End_date is null then
SET_ITEM_INSTANCE_PROPERTY('USER_RESP.) END_DATE ', CURRENT_RECORD, UPDATE_ALLOWED, PROPERTY_FALSE);

on the other
SET_ITEM_INSTANCE_PROPERTY('USER_RESP.) End_date ', CURRENT_RECORD, UPDATE_ALLOWED, PROPERTY_true);
end if;

Published by: amitphynyl on January 12, 2010 23:19

Tags: Oracle Development

Similar Questions

  • Update of the detail block

    Hello

    I have 3 blocks on my form for example something like order number, line number and the quantity ordered. Order number is master block and line number is it's detail & line number is a master of order of quantity as is the detail. Line number and the quantity ordered cannot update or insert on.

    I set up so that when I ask order number, it gives different numbers of line and the quantity associated with the number of the line.

    for example

    Order number 2020222787972

    Number of line 1
    2
    3

    Quantity ordered 45

    where 45 is the quantity ordered for the line number 1.

    I want to be able to double-click on a different line number and when I do it has the quantity ordered of update to take account of the quantity ordered for the line number with this order number, but I don't know how to write the trigger to do this.

    Could someone offer any help?

    Thank you much much in advance,

    Published by: user6549864 on October 17, 2008 01:01

    Assume that the lines are in block SUMMARY summary field id and block ONLINE

    You can do the following:

    :SUMMARY.QUANTITYITEM:=:LINE.QUANTITYITEM;
    

    places in a WHEN-MOUSE-DOUBLE-CLICK-trigger on the line to block works when doubleclicking, placed in a TIMES-NEWS-RECORD-INSTANCE-trigger is change when navuigating to the specific line. In the case of showing during navigation, it would be still more senseful to place the point summary point in block PAY directly and set "no property of elements poster"1 and set article summarized as mirror-element for the original amount column

    hope this helps

  • How to query the master block based on one of the values of the detail block

    Hello
    In the form of version 6i, I have a field in data block which is not defined as a database element. I use this field to store a block of retail value. If I want to ask the form using this field (which represents one of the values of retail block), how should I do this? Pointers?

    TIA,

    Yes, as Ammad10786 says, the ID's I mentioned are just placeholders for your real values. And done MASTERBLOCKID refers to columns in the masterblock which is the primary key or the join condition to the retail block.

  • Data not to see the detail block on running the query

    I have a dev - 6i form. It contains two revenge joined database. The form was working properly but now all of a sudden, as I F8 run query it gives two error messages and do not run the block of detail data.

    FRM-40819: System Variable is not editable.
    FRM-40735: trigger YOU POPULATE DETAILS raised unhandled exception ORA-06502.
    What is the reason how to get rid of him?

    Hello

    Unless changes occurred, you will not get error, maybe it occurred without your knowledge.

    Cases - open your source fmb file, rename and delete the link and create the link - compiles now.

    Run the form, and then paste the result here.

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

    Gul says:
    I have a dev - 6i form. It contains two revenge joined database. The form was working properly but now all of a sudden, as I F8 run query it gives two error messages and do not run the block of detail data.

    FRM-40819: System Variable is not editable.
    FRM-40735: trigger YOU POPULATE DETAILS raised unhandled exception ORA-06502.
    What is the reason how to get rid of him?

  • Filtering the detail block before saving records

    I have my form
    Head_Blk
    Det_Blk

    I get in my Det_Blk from Table1, via a query defined in WHEN TIMER EXPIRE at the form level
    GO_BLOCK ('det_blk');
    CLEAR_BLOCK;
    FOR idx IN C_QUOT LOOP
    IF: SYSTEM. RECORD_STATUS! = 'NEW' THEN
    CREATE_RECORD;
    END IF;
    : D_PROD_CODE: = IDX.prod_CODE;
    : D_PROD_NAME: = IDX. PROD_name;
    : D_QTY: = IDX. QUOTD_qty;
    : D_RATE: = idx.quotd_rate;
    num_total_rows: = C_QUOT % ROWCOUNT;
    END LOOP;
    PREMIER_ENREGISTREMENT;

    The det_blk is filled with records, now user will enter into quantity in some records, NOT necessary all records.

    How can I finally register records of block detail, just whose quantity is greater than 0.

    Please advice me... TYVM

    Try this in the VALIDATION KEY:

    GO_BLOCK('det_blk');
    FIRST_RECORD;
    WHILE (:system.record_status != 'NEW' ) LOOP
       IF :det_blk.D_QTY = 0 THEN
         CLEAR_RECORD;
       END IF;
       NEXT_RECORD;
    END LOOP;
    COMMIT_FORM;
    
  • validate the detail block

    Hello

    I have the block master / detail on form 10g. multi-record block of retail is.

    When the master record is added or updated to ensure there is at least one record.

    at the form level tried post-forms-validation validation

    If: emp_detail.join_date is null then
    message ("join date cannot be empty '");
    raise form_trigger_failure;
    end if;

    This creates problems when deleting the record in a case.

    If all the records are reterived (f11 + ctrl f11) and then go to the record to delete, record is deleted.
    But if the particular record (for example emp_id 102) is extracted, then registration is not deleted as post-forms-validation validation is met.

    What should be done to ensure that there is at least one record in the block of detail while adding and updating and deletion of not.

    Thank you

    If they are in the template, I guess they are defined at the level of the form. You can INSERT before extra and PRE-UPDATE-triggers at the block level (and this is where they belong in your case). With adjustment of the hierarchy of execution before or after your model-triggers will always run.

  • Coming out of the block how to invite the message like "do you want to save changes?" so any changes made in the current block

    Hello

    I'm working on the Oracle forms 6i. I have a custom query search window (do not use the Oracle QUERY_FIND seeded window feature). Build manually (BLOCK_1 and WINDOW_1). When I click on the search button, then I Block table that has windows (BLOCK_2 and WINDOW_2) and in this form, I have a button called details. When I click on the Details button, it opens the details Block (BLOCK_3 and WINDOW_3).

    There is no functionality seeded t define the relationship of master details. (everything is customized)

    Now, if the user has made a few changes on the block of retail and click the X (close) on this window without COMMIT the record, then how can I display a message to the user as a block level saying that "Do You want to save changes?" and after selecting one of the action i.e. Yes, no or cancel how to perform the action according to the user's action.

    This form I have three different blocks and WINDOWS for individual block so when i have all three open window and click on F4, then it closes all windows of three then how can I close the window when the user uses them short key F4 to close the window.

    Thank you very much in advance.

    Melanie,

    Thanks for the update. I tried KEY-EXIT, WHEN now-BLOCK-INSTANCE, KEY of VALIDATION, but unfortunately these triggers are not fired. I found the work around that.

    I made after the code in the APP_CUSTOM package in the close_window procedure.

    IF: SYSTEM. BLOCK_STATUS = 'CHANGE '.

    THEN

    FND_MESSAGE. SET_STRING (' do you want to save the changes you made?) ');

    l_button:-fne_message.question(button1...icon);

    and then based on the user action that performs the action.

    END IF;

    It works for me. Problem solved.

    Thank you very much for your time and your suggestions.

  • How to master day & detail block approal flag?

    Hello experts,

    I have the main form and details homologation form.

    the user will select a docment is and records master & details will be questioned.

    now it will just click the button approve and master & details of approval flag will be updated.

    Give me a logic how to implement...

    Note: the user will not manually penetrate anything.

    Please help me.

    Thank you

    Yoann

    What exactly is the problem?

    Update the indicator in your master block, go in the detail-block and loop through all records, to update indicators accordingly.

  • How to validate that a single check box is checked in detail block

    Hi all

    I am using oracle 10 G on windows forms.

    I need help on how to validate that a single checkbox is checked in the retail block. I have multiple records in the block of detail and I have checkboxes for each record in the detail block.

    I have a button to select values in the detail records where the check box is checked. But I want to make sure that only one record is not more than one check.

    How to validate this on a shutter release button?

    Thank you

    When I did this sort of thing, I create a variable of TYPE number form level and then add or subtract the variable I to check and uncheck the boxes. If the value of the variable is 1, then you know that only check box is selected. If the value is greater than 1, then you know that the user has selected more than one checkbox. You could also add the code to your trigger when-box-changed to test the variable and tell the user to uncheck selected record before selecing a new record.

    Regarding the variable level of form, you can use a GLOBAL package specification, PARAMETER or program unit. I prefer to use the specification of CENTRAL unit package, because this method has a smaller memory footprint. For example, in the node of the unity of the object browser program create the following:

    /* Form variables package spec */
    PACKAGE Form_Vars IS
      CheckBox_Cnt     NUMBER := 0;
    END;
    

    Now in your trigger when-box-change...

    BEGIN
       IF ( Form_Vars.CheckBox_Cnt = 0 ) THEN
          Form_Vars.CheckBox_Cnt  := Form_Vars.CheckBox_Cnt  + 1;
       ELSE
          /* it's assumed the value is greater than 0 */
          Message('Please uncheck selec ted record before choosing a new record.');
          RAISE Form_Trigger_Failure;
       END IF;
    END;
    

    Hope this helps,
    Craig B-)

    If someone useful or appropriate, please mark accordingly.

    Published by: Silvere on February 3, 2011 10:15

  • How centering the legend and set its display property to block in Dreamweaver cc?

    I am a newbie to Dreamweaver and articles http://www.Adobe.com/content/dotcom/en/DevNet/Dreamweaver/article-index.html by David powers has been very useful for me.

    I followed all the instructions which he describes and wow, I am happy with myself. However, at the present time, I am on article: http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt3.html, but I'm stuck on the subtopic:

    Hair images with captions.

    Up to now, my question is: How do I Center the legend and set its display property to block in Dreamweaver cc?

    Please forgive me if this question seems so childish!

    Thank you for your assistance expected!

    Sincerely,

    Newbie

    If you look in the css file over to the figcaption css selector you will see:

    figcaption {}

    display: block;

    text-align: center;

    make-weight: bold;

    do-size: 14px;

    }

    As I don't use DW css Panel, I can't tell you how to do that through that, BUT doing it manually just open the file main.css figcaption roller and the type it as shown above.

  • Value to automatically fill in the details on app_id block base

    Hi all

    I have 2 control data block in my forms, is a common first name in the block and the other a name is common_detail.

    In my common block, there is a column called app_id and value when the same user enter this value, the remaining elements for common block is filled...

    Note:-this app_id is also exist in my block of common_dtl.

    Now what I want to use this common block app_id to fill my block of common_dtl

    So I tried to create the join relationship in a common block but no luck.

    Now I wonder what I have to use cursor and a loop to fill common_dtl block or y at - it another way that I can use? Thank you

    ASA Amatu

    At Design time:

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

    1 create a control block in block Master, database property is set to Yes...

    2. create a no. areas related to the block of retail...

    3. in the retail block, u should have these control-related positions

    at each point of them, you have a copies the value of the item of property u indicate here the:MASTER_BLOCK. Nom_element

    4. repeat copy item value for each element of releated to the details.

    5.ENFIN, in the retail block, create A time-news-block-Instance Trigger

    RUN THE QUERY; -Built-in

    I did all your steps provided but I get the following error message.

    Error

    FRM-30445: use of the Item property include REF requires non-null Alias property.

    Block: HEARING_COMMON

    Form: APP_HEAR_RSLT

    FRM-30085: unable to adapt to the shape for the release.

  • Set the individual properties of elements with layout tabular insated of all possible?

    Forms [32 bit] Version 10.1.2.3.0 (Production)
    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    Hello

    I have a form with an configuration master block as a tabular layout. In this block, I have a button that calls a form of sub with the detail for this master block records. What I'm trying to do is change the color of the button for this specific record if it has detail records. I did it for another form, but in this case, if I set the color property for the button to change the color for ALL buttons in the page layout table (since it is the same element) is possible to change only the color of the button on the document that has a record detal and not the rest?

    You use the built-in function of Set-point-Instance-property and set attribute plastics (PV) to change the appearance of the button.

    Craig...

  • Setting the properties of elements of façade in XControl to a VI that uses the XControl

    Hi all

    I'm new to XControls and I try to use them to make a generic digital indicator that fit into a matrix of waveforms of a similar measure and allow the user to display the first value of a waveform, it chooses by selecting the name of the desired channel in the waveform table. I have the XControl work, with a ring filled automatically with the NI_ChannelName of the input waveform array fields and the value of the ring being used to index the waveform table to select the appropriate data.

    What I want to do next is automatically set the value of control of ring in the XControl to the value that the user has selected the last time he ran the VI that uses the indicator. However, the properties of the control ring do not seem to be accessible from the VI that uses the XControl, and none of the XControl General properties seem to be accessible from the front VI in the XControl. The value of the ring is not part of the entrance of DataIn cable waveform table, so I don't have a good method to pass data to the control of the ring outside of what is in this table of waveform. I might add the value in the waveform table, if this helps, but indicators XControl do not transmit their return DataOut appellant VI to allow me to record the user selected value.

    Is there a good way to read and write the properties of façade elements in an XControl of VI that uses the XControl?

    I apologize for not posting my code; the computer with LabVIEW license is having network problems at the present time. I'll post the code when I can.

    Thank you!

    Erik

    In your State cluster typedef container, include a reference to a control of the ring.

    In your vi of façade, in the case of change of Direction, create a reference to your ring and connect to a plan by which he sends out the view state.  Also be sure to write true to the status changed in the result of the Action.

    In your xctl, select New-> property.  Name it after the property in the ring that you want to access.  Use the view clustered State (in your new property VI) to access the reference to the ring; son of a property node.  Change the control value in the appropriate type & connect to the property you want.

    Be sure to connect the path error through everything that might cause an error.

    When you drop an instance of the xctl and create a property from this node, your new property will be available.

  • Set the value of the page elements using apex.submit

    Hey,.

    Does anyone have an idea how to set the value of several page elements using apex.submit?

    Here is my request, she works for this element of the page, but I want to first the value of the other elements of the page (i.e. P30_SHOW_REF) as well.

    select s.nr as NRR, 
    '<input type="button" value="clickme2" onclick="document.getElementById(''BUTTONS'').style.display = ''block'';apex.submit({request:''SET'',set:{''P30_KLT_NR'':'||s.nr||'});"/>' Button 
    from klant s
    

    Thanks in advance!

    Hi Julijan,

    Here is the example:

    apex.submit({
      request:"DELETE",
      set:{"P1_DEPTNO":10, "P1_EMPNO":5433});
    

    Concerning

    J

  • Apex 5, call a modal page, set page elements, in values referenced title page elements are not the same (correct) than the item itself

    Hello

    Apex 5.

    IR (departments) on page 2 I want to open a modal page 3 (classic report) with the detail data (from emp) for a Masters depno via a link on depno column.
    In Page 3, I created two elements P3_DEPNO and P3_DNAME. These elements are defined in modal page 3 of page 2.
    When I do these two visible elements on page 3 I can see, the values are set correct according to the value in column (depno) link on page 2.
    However, I would like to place these element values in the page title of page 3
    Title: PGE for DepNo: & P3_DEPNO., DepName: & P3_DNAME.

    It happens that the values mentioned in the title of the page are not the same (good) as in the items himself.
    Initially, they are NULL. Only when I refresh page 2 the values change but remain the same (last called depno) as long as I'm doing a new refresh of page 2.

    I wonder how I can run to display the values of the correct point in the title of the page corresponding to the values of the correct page element (that I have hidden).

    Y at - it something more to do, or it could be a small bug?

    I've created a little demo app on
    https://Apex.Oracle.com/pls/Apex/f?p=75955:2

    WS: AMLWS001

    Demo/demo (developer is)

    Please see the report 1.

    Thank you in advance!

    André

    Hi andremi,

    andreml wrote:

    Hello

    Apex 5.

    IR (departments) on page 2 I want to open a modal page 3 (classic report) with the detail data (from emp) for a Masters depno via a link on depno column.
    In Page 3, I created two elements P3_DEPNO and P3_DNAME. These elements are defined in modal page 3 of page 2.
    When I do these two visible elements on page 3 I can see, the values are set correct according to the value in column (depno) link on page 2.
    However, I would like to place these element values in the page title of page 3
    Title: PGE for DepNo: & P3_DEPNO, DepName: & P3_DNAME.

    It happens that the values mentioned in the title of the page are not the same (good) as in the items himself.
    Initially, they are NULL. Only when I refresh page 2 the values change but remain the same (last called depno) as long as I'm doing a new refresh of page 2.

    I wonder how I can make it work to display the values of the correct point in the title of the page corresponding to the values point right page (what I have hidden).

    Y at - it something more to do, or it could be a small bug?

    Page title is rendered before the page elements, that is why is not highlighted in your title.

    I don't think directly, we can use the page as a page element value.

    Creates a copy of yours and made the change it new App id - 45390

    There, I created a static area without a model before your report area and put your article into that.

    then displayed title PGE for DepNo: & P3_DEPNO, DepName: & P3_DNAME. for the area of your report.

    Kind regards

    Jitendra

Maybe you are looking for

  • iPad transfer of aerial photo

    I just returned from vacation with a few hundreds of photos on my iPad, but unfortunately only half load down from my office which is is paired with? all ideas

  • HP Pavilion beats: HP pavillion beats screen turns off randomly

    So, this Christmas I was very happy to get this laptop and it costs $600. Overall, this is a laptop in circulation, in the way that the graphics could be better and the sound quality of the speakers is not as good as I expected to be. Anyway, back to

  • Problem with Wifi on all Apple devices on my network

    Hello everyone, a few days ago, I started having WIFI problems on my network at home with only the APPLE DEVICES, we have a MacBook Pro 2012, two IPhone 6 + s and also a PC all WIFI windows running on a Netgear R7000 Nighthawk (ISP Comcast). The wind

  • Windows Vista - what should I do after system restored?

    My home edition vista recently will not start. After I turned it on, it loads for a while and stops automatically. I tried pressing some buttons for example F2, F8, F10 function for repair and recovery, and it is able to load the previously saved sta

  • Error message: Thunking spooler APIs from 32 to 64 years has stopped working.

    The error message appeared several times including in QuickBooks where it only allows me to send an invoice and in Outlook where it prevents me from printing.  When you print, it says that the printer does not work even though I can print a test page