Toggling text element based on the selection of a list item

Hello friends,

I have a header data block where I have a field to not enter the name of book and a REGD Item list that displays 'Yes' and ' ' and a text REG_NO element.

When the user selects 'Yes', the text REG_NO element must be enabled so that the user can enter the number of the book.

By choosing 'No', the REG_NO element must be disabled.

I have included a trigger WHEN-LIST-CHANGED in the list REGD item.

I added the following code in the trigger above:

--=======================================

BEGIN

IF: HEADER. REGD = ' don't

THEN

SET_ITEM_PROPERTY('HEADER.) REG_NO', ENABLED, PROPERTY_FALSE);

ON THE OTHER

SET_ITEM_PROPERTY('HEADER.) REG_NO', ENABLED, PROPERTY_TRUE);

END IF;

END;

--=======================================

However, when the form is opened, the text REG_NO element is enabled.

When the user chooses the 'no' in the list item REGD, then the text REG_NO element is disabled as expected.

However, when you choose 'Yes' in the item list REGD, the text REG_NO element does not get activated.

Can someone let me know how to activate the text element.

Concerning

Hawker

When you disable an item, NAVIGALE, INSERT_ALLOWED, and UPDATE_ALLOWED properties are also set to False, then you will need to reactivate their when you reactivate an item.

Tags: Oracle Development

Similar Questions

  • Select the value of the text element based on the selection list

    Hello

    I have a selection list that displays a number of codes of a table, and I want to display the description of the code (from the same table) in a field of text next to it.

    The selection list works good based on an LOV, but I can't seem to find how to get the return value, so I can identify the correct description of the table to be displayed.

    Thank you

    See this link: http://htmldb.oracle.com/pls/otn/f?p=31517:80:6340934958598741:NO

    It will have a lov that calls an application process that fills a text box...

    Thank you

    Tony Miller
    Webster, TX

  • Reading JSON file based on the selected drop-down list item

    I have little code shown below.

    I'm trying to read data from a JSON file based on certain criteria, in this case all the suburbs on a territory

    I can do that quite easily in a liquid hard coding the territory, however, I want to use the value of the < select > option

    I understand that this can be achieved with JavaScript, is it possible otherwise?

    < select id = 'territory' >

    < option value = "xx" >--please select--< / option >

    < option value = "CBD" > CBD < / option >

    < option value = "North" > North < / option >

    < option value = "South" > South < / option >

    < / select >

    {model module_json json="/_System/shipping/shipping.json" = "" = "shipping" collection "}

    < select id = "suburbs" >

    < option value = "xx" >--please select--< / option >

    {% for section in shipping.territory %}

    {% If the element.} TERRITORY is '< value on top of select >' %}

    < option value = "{{point." POSTAL CODE}} "> {{point." SUBURBS}} < / option >

    {% endif %}

    {% endfor %}

    < / select >

    Hi Craig,.

    You can skip liquid altogether and use JS to get the values you need for json.

    If you want to use liquid you need to load the last part with AJAX/XHR to enter the selected value.

    1. create a new file suburb.html and ajax request after #territory selected with the option as a parameter:

    URL: suburb.html? = north shipping

    2. the suburb.html file would be:

    {assign = globals.get.shipping-% selectedTerritory %}<- this="" will="" have="">

    {model module_json json="/_System/shipping/shipping.json" = "" = "shipping" collection "}

  • Dynamic action - set a value of element based on the selection of lines of report

    Hi people,

    Does anyone have an example how to set up a dynamic action, which could fill an element with the selected ID based on the selection of line of the report on the same page?

    Demo:
    http://Apex.Oracle.com/pls/Apex/f?p=19543:2

    If I select an item in the report, then I would fill in 'Selected ID' element with the value of the selected report EMPNO line.


    Later, I would use it for the display of parts of master / detail on the same page.

    Thank you very much
    Tomas

    For this sample page, add the following JS code to run when the page is loaded.

    $('.highlight-row td').click( function(){
      //fetch record id from the cell contents of first column in row
      id = $(this).parent().children('td:eq(0)').text();
      //set page item to selected id
      $('#P2_SELECTED_ROW').val(id);
    });
    
  • Auto-fill text box values field based on the selection of the menu drop-down

    Try to fill in address, city, province, zip from text fields based on the selected option in a select form field. The following code works fine in Internet Explorer, but in Chrome or Firefox, after selection, text, the fields are filled with the word "undefined."

    I found a PHP script Jquery here version that would probabably do the trick.
    http://StackOverflow.com/questions/3657127/jQuery-populate-text-input-from-table-based-on-select-Valeur

    Maybe someone has a version of CF. they could share?

    Thanks in advance to anyone who can point me to a solution for this code, or a better way to fulfill my need.

    <!--> destinations with address auto-fill, city, etc.
    < script type = "text/javascript" >
    function selectAddress (list) {}
    take the first element is empty
    If (list.selectedIndex > 0) {}
    var locationID = list.options [list.selectedIndex] .value;
    locationAddress var = list.options [list.selectedIndex] .locationAddress;
    var locationCity = list.options [list.selectedIndex] .locationCity;
    var locationState = list.options [list.selectedIndex] .locationState;
    var locationZip = list.options [list.selectedIndex] .locationZip;
    document.getElementById('locationID').value = locationID;
    document.getElementById('locationAddress').value = locationAddress;
    document.getElementById('locationCity').value = locationCity;
    document.getElementById('locationState').value = locationState;
    document.getElementById('locationZip').value = locationZip;
    }
    }
    < /script >
    < b >
    < td align = 'right' bgcolor = "#FFFFFF" valign = "top" > Destination name < table >
    < td align = "left" bgcolor = "#FFFFFF" valign = "top" >
    < select name = "locationID" onChange = "selectAddress (this)" class = "smallforms" > "
    < option value = "" > SELECT the DESTINATION ››› < / option >
    < cfoutput query = "allLocations" >
    "" < option value = "" #locationName # "locationAddress =" #allLocations.locationAddress # "locationCity =" "#allLocations.locationCity #" locationState = "#allLocations.locationState #" locationZip = "#allLocations.locationZip #" > #locationName # < / option >
    < / cfoutput >
    < / select >

    Others: cfinput name = "destinationNameOther" type = "text" class = "smallforms" size = "75" >
    < br / >
    < input id = "locationID" name = "locationID" type = "hidden" > < br >

    Address: < input class = "smallforms" id = "locationAddress" name = "locationAddress" type = "text" size = "30" >
    City: < input class = "smallforms" id = "locationCity" name = "locationCity" type = "text" size = "20" >
    State: < input class = "smallforms" id = "locationState" name = "locationState" type = "text" size = "2" >
    Postal code: < input class = "smallforms" id = "locationZip" name = "locationZip" type = "text" size = "8" > < br / >
    < br / >
    < table > < /tr >

    In your last code done selectAddress refers to "index" but I'm not declared or assigned. I think that you are missing 'var index = list.selectedIndex;' statement.

  • How can we make a visible element on the screen based on the selection of an existing menu in the same screen

    February 2015 release OPA

    How can we make a visible element on the screen based on the selection of an existing menu in the same screen.

    I have a list box and a text box in the same screen.

    I have a visibility rule on the text box saying that it is only available for one of the selection in the menu dropdown.

    problem is now unless I hit the button next to the screen and return to the original screen the text box does not appear.

    Is there a solution to more to come this problem.

    Please help me

    The feature you describe is called "dynamic visibility" (http://documentation.custhelp.com/euf/assets/devdocs/february2015/PolicyAutomation/en/Default.htm#Guides/Policy%20Modeling%20User%20Guide/Interviews/Screens/Add_questions_to_screens.htm#Dynamic). It allows to control the visibility of another article on the same screen, without writing a separate rule of visibility and click on Submit.

    Using out-of-the-box functionality, you can have dynamic visibility based on Boolean values and value lists (but not regular drop-down lists).

    The example in the February 2015 User Guide based on a Boolean value on the same screen. See slide 27 of the bridge-features and benefits for an example of what it looks like to a list of value: http://www.oracle.com/technetwork/apps-tech/policy-automation/overview/opafeb2015featuresbenefits-2431219.pdf

    If you are wondering what is a list of values, see here: http://documentation.custhelp.com/euf/assets/devdocs/february2015/PolicyAutomation/en/Default.htm#Guides/Policy Modeling User Guide/Value_lists/What_is_a_value_list.htm

    See you soon,.

    Jasmine

  • Create the style of paragraph based on the selection

    Is there a way to create a paragraph style based on the selection in the same way, the "New paragraph Style" dialog box without having to go through ALL the elements of style individually?

    Thank you

    Hi Ken,

    Dave (Thanks Dave) code and put it into a string:

    REM note the quotes "escaped".

    myString = "if (app.documents.length > 0 & app.selection.length = 1 & app.selection [0] .hasOwnProperty (""baseline" ")) {"& vbCr '.

    myString = myString & "myDoc = app.documents var [0];" & vbCR
    myString = myString & "var myPstyle = myDoc.paragraphStyles.add ({name:" "myNewStyle" ""}); "& vbCr
    myString = myString & "myPstyle.properties = app.selection [0] .properties;" & vbCr

    myString = myString & "}" & vbCr

    REM run now the string using "DoScript" (requires that you have a

    Instance of rem InDesign "myInDesign"...

    myInDesign.DoScript myString, idScriptLanguage.idJavaScript

    That should do it.

    Thank you

    OLE

  • Change the content of the page based change the selection box

    Hi all

    I want to create a page with 2 box selection and 1 table below

    • Selection box
      • Box1: 1-12 (months of the year)
      • Box2: 2010-2015 (year between 2010 and 2015)
    • Table
      • Get data from view GET_DATA_SALARY. This view having a 4 column: NAME, SALARY, FAC_MONTH, FAC_YEAR
      • This table will be based on the selected value of 2 boxes above change

    Please help me solve this problem.

    Thank you

    To put it simply, add a button that submits the page.

    Add a where clause clause to your report

    where FAC_MONTH = P_MONTH

    and FAC_YEAR = P_YEAR

    Gus

  • Why omit Photoshop elements 14 for the selection of Color Variations in the color "adjust" knocked down? That was helpful. What do you suggest me to use in a place?

    Why omit Photoshop elements 14 for the selection of Color Variations in the color "adjust" knocked down? That was helpful. What do you suggest me to use in a place?

    If you have a copy of PES 11 or earlier version, you could install it and use it for this.

    You can apply here:

    Feature request/Bug Report Form

  • When you save a file to the [.jpg] format, I wonder to choose a quality from 1 to 100. What are the changes in the created file based on the selected quality setting?

    When you save a file to the [.jpg] format, I wonder to choose a quality from 1 to 100. What are the changes in the created file based on the selected quality setting? I would like to know what changes, so in the future, I can set my camera to one who will give me the highest quality in a first time, which allows me to make cultures and always preserve the quality.

    Thank you

    Dovid

    Thank you twenty-one... your answer of common sense to me.

    so, in short, can I assume down the chosen quality over compression algorithm?

  • Quarter filter based on the selected month

    Hi all

    I need to filter the report with quarter based on a period in the report guests.

    The user selects the name of month in prompt report, the report should show the information of quarter data falling from the chosen month. I used the subreport that provide a quarter of the month. This degrades performance report, so I need a solution to find a quarter of the month in the filter of the report itself. Can anyone provide an idea on that?

    Well, now that I know the syntax, it should work for you:

    Assumptions: "month" is in the format "LUN - AA' (DEC-11); quarter is in the format "YYYY Q M" (2012 Q 2);

    Here are the pieces of the CASE statement...

    LEFT (' @{pv_month}', 3)... allows at least 3 letters ("Jan", "Feb", etc.) of the selected month...

    .. Right('@{pv_month}',2) .save the month selected two-digit year...

    Cast (Right('@{pv_month}',2) AS INTEGER)... .converts as a whole two-digit year. It is how we use the year in a calculation to determine the correct exercise when the month is September, October, November or December. In this case, (11) two-digit year is less than the tax (2012) year.

    Here are the facts:

    Q-11 MAY 2011 3 MAR-11
    JUN-11 AUGUST - 11 2011 Q 4
    SEVEN.-11 TO 11 - NOV 2012 Q 1
    DEC-11 TO 12 FEBRUARY 2012 Q 2
    etc...

    The above represents an exercise. As you can see, for the months from March to August, the exercise is the same as the selected year (all that is needed is to convert the year to two digits of a four-digit year).
    When the month is seven, Oct or Nov, the year must be incremented by 1. Month Jan and Feb, exercise is identical to the year chosen, but Dec must be dealt with separately, because even if exercise is the same as Jan and Feb (2) year should be incremented.

    Gather all this logic, you get the following:

    BOX WHEN IN LEFT('@{pv_month}', 3) ('SEP', 'OCT', 'NOV') THEN '20'. Cast (Cast (Right('@{pv_month}',2) AS INTEGER) + 1 AS CHAR). "Q 1'
    OTHER CASES WHEN leash (' @{pv_month}', 3) = 'DEC' THEN '20'. Cast (Cast (Right('@{pv_month}',2) AS INTEGER) + 1 AS CHAR). "Q 2'
    On the OTHER BOX WHEN IN LEFT('@{pv_month}', 3) ("JAN", "FEB") THEN '20'. Right('@{pv_month}',2) | "Q 2'
    OTHER CASE WHEN LEFT('@{pv_month}', 3) IN ('MAR', 'April', 'MAY') THEN '20'. Right('@{pv_month}',2) | "Q 3'
    ANOTHER BOX WHEN IN LEFT('@{pv_month}', 3) ("JUN", "JUL", "Aug") THEN '20'. Right('@{pv_month}',2) | "Q 4'
    END END END END END

    This will give you a quarter based on the selected month. You can use in the filter (Advanced > convert this SQL filter) and apply it on your column 'quarter '.

    WARNING: I did at home in order to check the syntax...

  • Checkbox validation based on the selection of the values LOV

    I'm trying to validate a checkbox custom on the opportunity page, based on the selection of the values LOV.

    For example only when the user selects 'rating = A', the box should be able to select and save.

    If the user selects other that 'A' in the field assessment, the box should not save.

    or

    Is it possible to do, the READ ONLY checkbox, enable only when the side 'A' is selected.

    Any thoughts / help on this.

    Thank you, Kumar

    Edited by: user10833334 may 4, 2010 06:43

    There is no function to make a read-only field based on the contents of another field, it is not an option. I will list my thoughts on how you might handle this below.

    -Option 1: I recommend that you use validation to manage it. I don't know exactly to your needs, but you could write a field validation that checks to see if the flag is checked and rating <>has and sends an error message to the user, if it is not. The user would not be able to save the file until it Unchecks the box or sets the side = A.
    Advantages: User gets a message explaining the problem with the data and is forced to fix it before you save it.
    Cons: Requires interaction from the user to save and if they do not pay attention, the data may be lost if they cancelled without saving the changes.

    -Option 2: Another option would be to use the workflow to validate the registration. In this scenario, you can create a workflow that determines whether the field is out of adjustment, and if it is not correctly set, the workflow would update the box accordingly. In this scenario, you would use the 'Actions if Condition is False' also to inform the user that the flag cannot be controlled unless the side =. Then, you must set the Action "Update the values" update the uncontrolled field.
    Pros: Manages the work without user interaction.
    Cons: The con in this case, is that there is no workflow 'Before NEW record saved' trigger, so it is likely that the user sets the value incorrectly when creating the folder and it would stay like that until they update the record again.

    Some people might argue that there is another option that uses the functionality of dynamic page layout to make the field read-only, but this isn't a good option. You would need to convert using the Type of the opportunity in a way that would make use of the possibilities of lourdes for your users and I mention it only to you recommend to avoid his review completely.

    Good luck and let me know if you have any questions.
    Thom

  • Fill a combobox based on the selection of another

    Hi all

    I have a combobox that is filled dynamically. I want to fill an another combox based on the selected item in the combobox first. I use PHP to manage the connection to the database. The drop-down list box cbDivision fills very well.

    Can someone point me in the right direction?

    Here is my code:
    [Bindable]
    public var selectedItem:Object;

    [Bindable]
    private var datalist: ArrayCollection collection;
    private void resultHandler(event:ResultEvent):void {}
    DataList = event.result.data.row;
    }
    [Bindable]
    private var datalist2:ArrayCollection;
    private void resultHandler2(event:ResultEvent):void {}
    Datalist2 = event.result.data.row;
    }

    "" < mx:HTTPService url = " http://127.0.0.1/getDivisions.php"
    ID = "xmlGetDivisions".
    showBusyCursor = "true".
    result = "resultHandler (Event)" "
    method = 'GET' / >

    "" < mx:HTTPService url = " http://127.0.0.1/getFacilities.php"
    ID = "xmlGetFacilities".
    showBusyCursor = "true".
    result = "resultHandler2 (Event)" "
    method = "POST" >
    < mx:request xmlns = "" >
    < DivisionValue >
    {selectedItem.Division}
    < / DivisionValue >
    < / mx:request >
    < / mx:HTTPService >

    "< mx:ComboBox ="116"x ="60"id ="cbDivision"editable ="false"active = 'true' prompt = 'Please select' close ="selectedItem = ComboBox (event.target) .selectedItem, xmlGetFacilities.send ();"initialize =" getDivisions () "dataProvider ="{datalist}"= 'Division' labelField >
    < / mx:ComboBox >

    < mx:ComboBox = "413" x = "60" id = "cbFacility" editable = "false" enabled = "true" initialize = "xmlGetFacilities.send (); ' prompt = "Please sΘlectionner" dataProvider = "{datalist2}" labelField = "Name" > < / mx:ComboBox >


    Thank you in advance!

    No need to answer. I have it working now. It turns out that it was a problem with my PHP code.

  • Vary the accounts based on the selection of feature in data form

    Hi all

    I use Hyperion Planning 11.1.1.0.

    I have a problem by varying the members accounts on the dataform based on the selection of members of the entity of the dimension of the page.

    Currently, we use the Begbalance as a member (column) in the dataform and kept hidden. And we set the value of Begbalance-> actual values to zero for accounts that correspond to a specific entity...

    Then, on the form, I put 'delete missing data... That way I can show the accounts that should appear for an entity.

    But the list of members of the entity has more than 200, and thus also the accounts.

    Therefore, it is very tedious to do this adjustment for them...

    Someone please you suggest a better way to achieve the same * (i.e. different accounts on the dataform based on a selection of entity?) *.

    Kind regards.

    Alicia

    Hello

    You use the technique that a lot of consultants allows you to control what is displayed on a form.
    How do you set the values, if you have an excel template that you just update and then send the data to essbase it can facilitate the management of it a little.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Passing DB values to the text based on the Select Value box

    Hello

    I'm very big thing back to the Oracle APEX. In my project, I have a requirement in which I need to pass different values for the corresponding text boxes on a different page based on the value I select in the item "Select Value".

    I tried using processes calling for demand, but could not get the desired result.

    Please suggest!

    Hello

    Can you repeat your scenario on apex.oracle.com? It will be easier to fix it this way.

    Kind regards

Maybe you are looking for