Make a mandatory item based on another article

Hi all

I'm having a problem while doing a required field in a table. I use following code when validating trigger:

If: XXONT_ABC.ORG IS NOT NULL THEN
set_item_property('XXONT_ABC.) WASHING "(, EXIGE, PROPERTY_TRUE);"
end if;

This code makes the other XXONT_ABC field. WASH required but when I move down to 2nd row, yet it is mandatory for 2nd place while I'm not entered any value in XXONT_ABC.ORG.

Please suggest.

Thank you.

Published by: Amit1cs on May 16, 2013 15:22

Hello

did you try with set_item_instance_property. Try this.

Concerning
Sri

Tags: Oracle Development

Similar Questions

  • Display list items based on another element of the list

    Hi all

    I want to display the list item based on another element of the list, but his does not work.

    This is my code:


    / * WHEN-NEW-FORM-INSTANCE * /-his work.
    DECLARE

    rg_district recordgroup;

    rg_name VARCHAR2 (40): = "district";

    vtemp NUMBER;

    BEGIN

    rg_district: = FIND_GROUP (rg_name);

    IF ID_NULL (rg_district)

    THEN

    rg_district: =.

    CREATE_GROUP_FROM_QUERY (rg_name,

    'select dist, dist district_mas.

    );

    vtemp: = POPULATE_GROUP (rg_district);

    POPULATE_LIST ('BLOCK3.) Of RIDING ", rg_name);

    END IF;

    END;

    * / CHANGED AFTER a - list * /-does not work. Cannot complete the list based on the list

    DECLARE

    rg_branch recordgroup;

    rg_name1 VARCHAR2 (1000): = "branch";

    vtemp NUMBER;

    BEGIN

    rg_branch: = FIND_GROUP (rg_name1);

    IF this is ID_NULL (rg_branch)

    THEN

    DELETE_GROUP (rg_name1);

    rg_branch: =.

    CREATE_GROUP_FROM_QUERY

    ("rg_branch",

    "SELECT FROM dist_branch WHERE district IN branch (DIST DISTRICT_MAS WHERE DISTRICT = SELECT').

    || : BLOCK3. DISTRICT OF

    );

    vtemp: = POPULATE_GROUP (rg_branch);

    POPULATE_LIST ('BLOCK3.) Branch of THE ', rg_branch);

    END IF;

    END;

    Table:

    CREATE TABLE DISTRICT_MAS

    (

    DIST VARCHAR2 (100 CHAR)

    );

    CREATE TABLE DIST_BRANCH

    (

    NEIGHBORHOOD VARCHAR2 (100 CHAR),

    DIRECTORATE GENERAL OF THE VARCHAR2 (100 CHAR)

    );

    Values:

    insert into district_mas values ('chennai');

    insert into district_mas values ('coimbatore');

    insert into dist_branch values ('chennai', 'chennai_north');

    insert into dist_branch values ('coimbatore', 'Podanur');


    Concerning

    Nassik M

    I tested the code below when the list has changed


    DECLARE

    rg_branch recordgroup;

    rg_name1 VARCHAR2 (1000): = "branch";

    vtemp NUMBER;

    QT VARCHAR2 (10): = "';

    BEGIN

    rg_branch: = FIND_GROUP (rg_name1);

    IF this is ID_NULL (rg_branch)

    THEN

    DELETE_GROUP (rg_name1);

    END IF;

    rg_branch: =.

    CREATE_GROUP_FROM_QUERY

    (rg_name1,

    'SELECT branch, branch OF THE DISTRICT WHERE the dist_branch =' | QT | : BLOCK3. DISTRICT OF | QT);

    vtemp: = POPULATE_GROUP (rg_branch);

    POPULATE_LIST ('BLOCK3.) Branch of THE ', rg_branch);

    END;

    Hope it's work...

    Hamid

  • Hide/show items based on another point when the page is rendered.

    Hello

    I am trying to hide or display the elements on the page when the page is rendered according to the value of a checkbox control.

    That's what I use.

    Body HTML attribute:

    OnLoad = "initialCheck (); »


    Header HTML:
    function initialCheck () {
       if (html_GetElement('P21_BEN_SAVINGS').value != 'YES') {
          html_HideItemRow('P21_COST_SAVING');
          html_HideItemRow('P21_LOCATION_CODE');
          html_HideItemRow('P21_ACCOUNT_NO');
          html_HideItemRow('P21_SVG_DEPT');
          html_HideItemRow('P21_RATIONALE');
       } else {
          html_ShowItemRow('P21_COST_SAVING'); 
          html_ShowItemRow('P21_LOCATION_CODE');
          html_ShowItemRow('P21_ACCOUNT_NO');
          html_ShowItemRow('P21_SVG_DEPT');
          html_ShowItemRow('P21_RATIONALE');
       }
    }
    I want the items listed to show when the page is loaded when the P21_BEN_SAVINGS is checked (equal to 'YES'), but they are hidden in this situation.

    I see not the onload call in Firebug, and I don't know if it is the configuration of firebug or that JavaScript is not fair.

    Thanks for any help!

    Matt

    Hi Matt

    Try this

    function initialCheck () {
       if ($v('P21_BEN_SAVINGS') != 'YES') {
          $x_HideItemRow('P21_COST_SAVING');
          $x_HideItemRow('P21_LOCATION_CODE');
          $x_HideItemRow('P21_ACCOUNT_NO');
          $x_HideItemRow('P21_SVG_DEPT');
          $x_HideItemRow('P21_RATIONALE');
       } else {
          $x_ShowItemRow('P21_COST_SAVING');
          $x_ShowItemRow('P21_LOCATION_CODE');
          $x_ShowItemRow('P21_ACCOUNT_NO');
          $x_ShowItemRow('P21_SVG_DEPT');
          $x_ShowItemRow('P21_RATIONALE');
       }
    }
    

    Max

    Published by: - Max - April 28, 2010 10:42

    Published by: - Max - April 28, 2010 10:43

  • Make a visible element based on another component whether or not visible

    I have a button component that I want to only be visible when a tilelist in my application component is not visible. I tried the following code in the button tag, but it doesn't seem to work: -.

    visible = "{profile1urlList.Visible = true}" "

    I think so

    set visible = "{! profile1urlList.visible}" should be enough. "  Sorry put a '!' (exclamation point in front of the 'profile1urlList.visible' should do)

  • Make a mandatory DFF field based on another field

    Hi all

    We have a requirement where we need to do a mandatory DFF field based on another field.

    example:

    FDF has two fields:

    Depose1: the values 'Email', 'Fax '.
    Depose2

    If "Email" is selected in 'Field1' Field2 should become mandatory.

    All entries on this will be really useful.

    Thank you and best regards,
    Satya.

    Please see old topics that cover the same subject - http://forums.oracle.com/forums/search.jspa?threadID=&q=DFF+AND+mandatory+ANd+Dependant&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001

    Thank you
    Hussein

  • How to choose the item value list based on another value of list item

    Hello friends,
    I have two list items named xxx and yyy... OK, my problem is I want to choose a value of yyy list item based on the value of article xxx...

    Example: I select 'Computer' in xxx... Based on this I want to choose the item values in yyy as a monitor, keyboard, mouse, etc... This must be done at run time. How can I do this... Give me a few examples of code [pls tell me trigger appropriate to place this encodings]
    Thanks in advance,
    Battistelli

    Very simple to use the LOV and query of the lov which is attached to the YYY field, use the query as below...

    SELECT columns
    FROM table
    WHERE column_name = :XXX_FIELD
    

    Use the ENTER OF LIST Yes property for the YYY field.

    -Clément

  • Make a mandatory or optional field according to the value in the other field

    Hello

    I added a new location of the merchant class just under the name of merchant in the fresh details in iexpense page. I want to make this field option or required depending on the value selected in the field Type of expense.

    If Type of expense is like mileage so merchant should be mandatory otherwise in option.

    I found controller associated with this page is DetailsPageGlueCO and here is the code that I am trying to extend DetailsPageGlueCO.

    package oracle.apps.ap.oie.entry.lines.webui;
    Import oracle.apps.ap.oie.entry.lines.webui.DetailsPageGlueCO;
    Oracle.apps.fnd.framework.webui import. *;
    Import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    Import oracle.apps.fnd.framework.OAException;

    SerializableAttribute public class XXDetailsPageGlueCO extends DetailsPageGlueCO
    {
    ' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
    {

    super.processFormRequest (pageContext, webBean);

    Try
    {
    String ExpReportType = pageContext.getParameter ("ExpTypeChoice"); take the value of the list of ExpTypeChoice

    If (ExpReportType.toLowerCase () .indexOf ("mileage")! =-1) / / check if the value selected in the list ExpTypeChoice is of type mileage
    {
    Code to intercept the value in ExpTypeChoice list, and then newly added fact XXMerchantLocation required field?



    }
    } catch (System.Exception e)
    {
    throw new OAException ("you must enter merchant location");
    }
    }
    }

    Pls. suggest a piece of code in the section / / Code to intercept the value in ExpTypeChoice list, and then fact newly added XXMerchantLocation required field?

    Published by: yannick bigot on January 2, 2012 06:42

    Bigot,

    To make a required field on the selection, you must join a SPEL with the bean and make true or false based on your requirement.

    See article PPR of the developer's Guide.

    Kind regards
    GYAN
    www.gyanoracleapps.blogspot.com

  • Cannot use disk, error: Disc Copier could not find a CD-ROM drive supported. You will not be able to make copies of the disc to another.

    Original title: follow question Winsows XP repair

    I get following messages is displayed when I try to use disk functions.  #1 API can not see all CD ROMS in the system, please check to see if they are properly plugged...

    #2 disc copy could not find a CD-ROM drive supported.  You will not be able to make copies of the disc to another.

    Should I take the modem to a computer repair shop to get this repaired?

    Hello

    I suggest to refer to the procedure described in the following article and check the status of the issue.

    Error messages occur when you run Easy CD Creator in Windows XP.

    http://support.Microsoft.com/kb/285910

  • Make movie non-interactive clip, unless another video clip is visible

    Hi, I do an escape from game and I encountered a problem. When an item is added to the inventory, I would like the user to click on the item to affect another object (for example the screwdriver by clicking on cache live and displays another image) but when I add the code to the element, if the element is clicked and it is far the object that it affects, the image appears and it seems really stupid.

    So what I would like to be able to do, possibly using if and instructions else or what is simpler, is to have only the inventory item be clickable if the clip of the object's affect is visible on the stage. I hope this makes some sense, and thanks in advance for any help!

    For the button you want to allow to be clicked, just include the conditional inside its event handler function.   And you do not need to specify "is true" to test a Boolean value (ditto for fake).  So if wedge2_mc is this button that you don't want to do anything until the desklarge_mc is visible, then use...

    wedge2_mc.addEventListener (MouseEvent.CLICK, unjamdrawer);
    function unjamdrawer(e:MouseEvent):void {}

    {if (desklarge_mc.visible)}

    desklarge_mc. Visible = false;
    screwdriver1_mc. Visible = true;

    }
    }

  • Make a mandatory field if the selection is made in the drop-down list

    Hello

    Does anyone know how to make a field optional mandatory change based on a selection made in a drop down list?

    For example, I have a combo that has option 1-3, and I have a hidden field that is optional. When option 3 is chosen the hidden field is visible, but I also want to be required before a the form submission is possible.

    Thanks in advance for any idea!

    You can place this code in your event out of you in the drop-down list... Just change TextField1 your domain name and make sure that the language is set to JavaScript:

    If (this.selectedIndex == 2) {}

    TextField1.presence = "visible";

    TextField1.mandatory = "error";

    TextField1.mandatoryMessage = ' this field is required ".

    }

    else {}

    TextField1.presence = 'hidden ';

    TextField1.mandatory = "disabled";

    }

  • How to get the print page numbers in a report based on another report

    Hello


    I have a requirement in which I need to print the page based on another report number
    example my game application has 3 reports

    1 report prints the pages 1-100
    Report page no. 2 should start from 101 to 110
    3 report 111-

    Can someone make me please how to do this?

    THX in advance
    Kumar

    Hello

    You can create all report queries three in a single report, create a separate query in the data model and then create the layout in the proper sequence as required.

    If you want to use separate reports only you can try the following:

    In the first report, use the shutter release after report and record the total number of pages of a table as a record.

    In the second report, extract the value stored in the table and add it to the Page No. to get the Page number for the second report.
    Also in the second report use the shutter release after report and update the record created first in the total number of pages + total number of pages of the first report.

    In the third report to extract the value stored in the table and add it to the Page No. to get the Page number for the third report.
    Don't forget to delete the folder created in the trigger after the third report table report.

    I hope this helps.

    Best regards

    Arif Khadas

  • Help! For an assignment, I need to use InDesign 2014 to make a digital item. I have the CC with 2015. How can I get the version of 2014 for my Mac

    Help! For an assignment, I need to use InDesign 2014 to make a digital item. I have the CC with 2015. How can I get the version of 2014 for my Mac

    Sorry, I can not explain this. It is not sensible.

    Try going to your cloud creative desktop App. Click on the "gear" icon > Preferences > General. Sign out and then sign in using your Adobe ID and see if it looks different.

  • How do column filter based on another column

    In my report, I have column a thru d. I would like to create a filter based on another column where column is column B. I can enter a value that the column cannot be equal to, but I would use a column instead of a value.

    Thank you.
    Jonathan

    Try this: icon on the filter columns->-> convert this advanced filter for SQL
    You can reference any other column

    BTW: Have you had a chance to look at my suggestion for your post
    Tables from a Table

  • Choose field from the joined table based on another field?

    Hello!

    Is it possible to select a field in a row of attached table based on another field? Consider the following data in the CVALUES table:
    ID  C1   C2    C3    C4    C5    C6
    T1  9.6  10.3  12.4  19.6  19.6    0
    T7  9.6  10.4     0     0     0    0
    T3  8.2   9.9  11.4  19.6  19.6    0
    T8  8.3  10.7  13.5  20.7     0    0
    T5  9.4  10.3  12.7  22.9  19.6    0
    ...
    And the following data in the table MDETAIL:
    ID           MDATE        CNUM     ...
    T1  03/28/2012 18:00:00    4
    T1  03/28/2012 18:00:00    1
    T8  03/29/2012 06:00:00    6
    T8  03/29/2012 06:00:00    5
    ...
    I want to get the column corresponding to the VALUE field in the table MDETAIL CVALUES. I'm doing this:
    SELECT m.t1, m.mdate,
           CASE WHEN m.cnum = 1 THEN c.c1
                WHEN m.cnum = 2 THEN c.c2
                WHEN m.cnum = 3 THEN c.c3
                WHEN m.cnum = 4 THEN c.c4
                WHEN m.cnum = 5 THEN c.c5
                WHEN m.cnum = 6 THEN c.c6 END AS cvalue
      FROM mdetail m
      JOIN cvalues c ON m.id = c.id
    The CVALUES table records are unique; only one line by ID.

    This method works and it's fast, but it's messy code and I think there must be a better way to do it. I use cvalue value in several calculations so each calculation that I use is this giant glob of CASES inside!

    Hello

    With a decoding it would be easier, but as ugly :-)

    SELECT m.t1, m.mdate,
           DECODE( m.cnum , 1 , c.c1, 2, c.c2, 3, c.c3, 4, c.c4, 5, c,c5, 6, c,c6) cvalue
      FROM mdetail m, cvalues c
      WHERE m.id = c.id
    

    Success!

    FJFranken

  • Delete based on another column dublicate records

    How can I remove duplicate records, based on another column.

    the table structure
    CREATE TABLE IA_EXPORT_LEVEL
    (
    A_NO VARCHAR2 (22 BYTE),
    IM VARCHAR2 (18 BYTE),
    ctn_level NUMBER (2)
    )

    reviews
    A_NO IM ctn_level

    S1 S1 1
    S1 M1 2
    S1 h1 3
    H2 S2 1
    S2 h2 2
    S3 h1 2
    S3 h1 3
    S4 h6 4
    S4 h6 5

    I want to delete all records other than the minimum value of the ctn_level

    output should like below
    S1 S1 1
    H2 S2 1
    S3 h1 2
    S4 h6 4

    Published by: OraFighter on December 16, 2011 13:44
    DELETE FROM IA_EXPORT_LEVEL where rowid IN
    (select rid from
    (select rowid rid, row_number() over (partition by A_NO,IM order by ctn_level) rn from IA_EXPORT_LEVEL )
    where rn > 1 )
    /
    

    Hope your question.

Maybe you are looking for

  • Very low sound on Compaq Presario C350EU

    I had a problem with no sound at all, I have installed Conexant and managed to get her back, but it is very low. Can someone please help?Message edited by Ameida on 21/07/2009 17:48

  • How to download data from test to SFIS via webservice

    Hello world I need to download data from test to SFIS via the webservice and the service will return the result., but I have no idea of web service. I need to submit as soon as possible. If anyone can write it.

  • Computer Dell won't start windows xp

    what it means when it says floppy diskette seek failure drive 1 not found serial ATA SATA - 2 Dell Dv051 series BIOS version A03

  • Windows XP SP3

    I tried to install Windows XP Service Pack 3 when my computer rebooted in the middle of the upgrade. I received a message that my computer has recovered a "fatal error". I tried again and it did the same thing. I use the 32-bit version of XP. Any sug

  • How to reinstall or repair Windows Photo Gallery

    Can't play videos in Windows photo Gallery