* Displays an invisible field when a database field has a value specified? !!

Hi all
I have two fields, a database and a database not
IAM using a LOV to return the values of these two areas, I want to display another invisible field only when the database has filed the value returned by the LOV is equal to a specified value.
I used a trigger WHEN-VALIDATE-ITEM on this field (named db_field) db with this code:

DECLARE
IT_ID POINT;
BEGIN
IT_ID: = FIND_ITEM ('item'); -It's the invisible element that I want to appear
IF: db_field = 'some_value' THEN
Set_Item_Property (IT_ID, visible, PROPERTY_TRUE);
Set_Item_Property (IT_ID, Enabled, PROPERTY_TRUE);

ON THE OTHER
Set_Item_Property (IT_ID, visible, PROPERTY_FALSE);
END IF;
END;

This trigger works fact (the same result as after the CHANGE and POST-TEXT-POINT), but the "article" field is released after leaving this db_field!
I want to show this 'subject' field after returning from the value of the LOV directly not after leaving the db_field
How to do this please?

Hello

You must have a when button pressed trigger, associated with the LOV... right?
Typical code inside that would be:

go_item ('db_field');
do_key ('list_values');

You must write the code that you wrote below after that. No need for when-validate-item trigger here.
If your code in when-pressed button LOV trigger associated with db_filed should be as below:

DECLARE
  IT_ID ITEM;
BEGIN
  go_item('db_field');
  do_key('list_values');
  IT_ID := FIND_ITEM('item'); -- this is the unvisible item that I want to appear
  IF :db_field = 'some_value' THEN
     Set_Item_Property(IT_ID,VISIBLE,PROPERTY_TRUE);
     Set_Item_Property(IT_ID,ENABLED,PROPERTY_TRUE);
  ELSE
     Set_Item_Property(IT_ID,VISIBLE,PROPERTY_FALSE);
  END IF;
END;

It will be useful.

Check the answer as useful / OK, if this can help you

Carole

Tags: Oracle Development

Similar Questions

  • Make a required field if another field has a value

    Hello

    I have created a PDF form and I need to have a validation that checks if a field has a value, then another field is mandatory.  For example: If the hours of field has a value, then the Description field is mandatory, otherwise, Description field is not mandatory.  Any help you can provide would be helpful.

    Thank you.

    As a script custom validation of the hours field, enter this code:

    this.getField("Description").required = (event.value! = "");

  • How only include a WHERE clause only when a connection variable has a value?

    I use JDeveloper 11 g using business components of the tables. I'm now modify the auto-generated SQL code to include WHERE clauses which depend on the values of bind variables. For example I have something like this:
    SELECT mytable.firstColumn
    FROM myTable 
    WHERE myTable.secondColumn= :VariableValue
    However, this means that when VariableValue is null SQL would fail and I get an error. Is there a way I can include the WHERE clause (or clause AND according to the position in SQL) only when a bound variable has a value (or a particular value)?

    Or use: WHERE NVL(:VariableValue,myTable.secondColumn) = myTable.secondColumn

  • How to print line empty on the model of BEEP when the field has no value?

    I have a BEEP pattern like below and all these CHILDREN, NAME, GRAND_CHILDREN, are fields arranaged in the model as a line. REPS can enter the values in each of these areas for maximum 3 lines. The first 2 rows have values and the last is empty.

    CHILDREN: NAME: GRAND_CHILDREN: NAME:
    Son daughter of John Smith
    Daughter Laura son Kevin

    In the third row, because the fields have no value, the report print empty lines, but I want to remove this blank line and display only the rows (first 2 rows) that have values for the fields.

    Does anyone know how to get around this problem? Please help me solve this problem.

    Thanks in advance,
    RV

    Just having a condition in 3rd row, where DependentDD3 is printed.

    -3rd line 1st column
    last column - 3rd row

    This is true for nullity of DependentDD3. If you want to check for all columns and hide, use condition as

  • ADF query Panel poster not only any value in form master detail, but the field has a value.

    Hi, I use jdeveloper 12.1.3 1.

    1. I request ADF, master form Panel and secondary table.

    2. by default create insert button is enabled in the secondary table. ( button)

    3. no data is demonstrated at the start and it's ok because the main table of the form and the details is under the Panel request af.

    4. even if no data is shown in the form of af, when we get the value of the field (i.e. product) to support bean, field returns a value.

    5. If I am not able to disable the button.

    I tried to use backing bean to disable this key under certain conditions (example: If there is a value for the product on the screen can turn on this button), even if nothing appears on the screen, if we get the value for the field (i.e. product) it returns a value.

    Attr.png

    Hello

    Tell me if I'm wrong, but you want to disable the button if there is no data in the form of master?

    Try with this property disabled in your button:

    Disabled = ' #{bindings. " Product.inputValue == null} ".

    change 'Product' for the field in the form that will always return a value when there is a line.

    Kind regards

    Ruben.

  • Combine values separated by '&' only if the second field has a value.

    I try to combine the 2 fields and add & symbol between the two, but only if there is in the second text field.  In this way, I wouldn't end up with "names of seller: Joe Smith &" If there was only one seller name.

    Here is my current script is add automatically of course "and" all the time.

    Get the field values as strings

    var s1 = getField("s1").valueAsString;

    var S2 = getField("s2").valueAsString;

    Combine values, separated by &

    Event.Value = s1 + '&' + s2;

    Replace the last line with:

    Event.Value = s1;

    If (s2! = "" ") event.value +="&"+ s2;

  • Deletion of a link when the database field is empty?

    Using ASP and Access - I make a list of organizations using repeated regions. Some require a link to their Web site, others do not. The code I use is fine when an organization has a web address. However, those who still do not receive the "Web Site" linked text, but lacks a URL in the (orgWebsite) relevant data field is empty. I need to remove the linked Word and the void < a > HTTP: / / < /a > that is rendered when a field is empty.
    Ideally, I want that he continues to behave as it does when a URL is present on the database, but leave no case of absence code. I'm pretty sure this means him < A HREF = and the "Web Site" text must be contained in the ASP code, but none of my attempts worked. Appreciate any assistance on this...
    Thank you

    Assuming that your URL is stored in a field called URLLink then the code
    looks like this

    < %="">< br="">ThisLink = recordset.fields.item("URLLink").value < br=""> ThisLink if <> "" then< br="" >="" %="">
    Website: http:// <%=ThisLink%> ' > <%=ThisLink%>
    <%End if%>

    --
    Paul Whitham
    Certified Professional Dreamweaver MX2004
    Adobe Community Expert - Dreamweaver

    Valleybiz Web design
    www.valleybiz.NET

    "Lancs" wrote in message
    News:e6qddr$f9v$1@forums. Macromedia.com...
    > Using ASP and Access - I make a list of organizations using
    > repeated
    > regions. Some require a link to their Web site, others do not. The code I am
    > help
    > right when an organization has a web address. However, those who don't
    > still
    > get the linked 'Site Web' text, but it lacks a URL as the relevant data
    > field
    > (orgWebsite) is empty. I need to delete the linked Word and the void
    > HTTP: / / returned when a field is empty.
    > Ideally, I want to keep it to behave as it does when a URL is present on
    > the
    > database but leave no case of absence code. I'm pretty sure that this happening by the
    ><>
    > HREF = and the "Web Site" text must be contained in the ASP code but
    > no
    > my attempts worked. Appreciate any assistance on this...
    > Thank you
    >
    ("> http://<%=rsOrgs.Fields.Item("orgWebsite "). Value% > "> Web site
    >
    >

    < / [email protected] > "

  • Printing of invisible fields

    I have a couple of forms that have invisible fields I have script to become visible only when the user selects 'Yes' on some radio buttons when you fill out the form in Reader. They work great, but the problem is that we have some "old school" users who still prefer to print the form and then fill them out by hand (sometimes you just can't teach old dogs new tricks!). We are ok with this, but it means that the invisible fields do not print. I thought maybe by switching 'Visible (printing only)' could solve this problem, but then they don't show up for the majority of users who actually fill the form digitally.

    Is it possible to set these fields so that they will display if the user prints a blank form to complete by hand?

    Maybe a script pre printed that said: "if [mandatory fields] is empty (which would mean that the user is most likely printing a blank form), then change the fields 'Invisible' to"Visible '?" What would this script?

    Or y at - it an easier way?

    Thanks for any help!

    JO

    I don't think that the option button has a value no value, try to test against.

    N.

  • display of a field Access

    I use ColdFusion to display a field from MS Access database on a Web page. The field has a Memo data type in the database, and all the text appears if I open the Access table. However, if I try to render the field in a ColdFusion page, it's cut the text so that the final words of the field do not appear. Any suggestions? Thank you.

    That means Tim, it's that you must check the box "Allow a recovery of text (CLOB) for a long time.".

    It's under 'Advanced' properties when you view your data source in the CF administrator.

  • My EO fields are numeric values, but when I create the EOIMPL class they are converted to INTEGERS numbers. Why, please explain.

    Mr President

    My EO fields are numeric values, but when I create the EOIMPL class they are converted to INTEGERS numbers. Why, please explain.

        public static final int PURQTY = AttributesEnum.Purqty.index();
        public static final int STAXRATE = AttributesEnum.Staxrate.index();
        public static final int UNITPURPRICE = AttributesEnum.Unitpurprice.index();
        public static final int SALQTY = AttributesEnum.Salqty.index();
        public static final int UNITSALPRICE = AttributesEnum.Unitsalprice.index();
        public static final int PARTICULARS = AttributesEnum.Particulars.index();
        public static final int AMOUNT = AttributesEnum.Amount.index();
    

    Can keep us in digital format.

    Concerning

    No.... These int values not the type of display object attributes. These integers is the index of attributes.

    To determine the type of the VO attributtes, you should see the Get accessor of the attribute and the setter

    as

      /**
       * Gets the attribute value for the calculated attribute CountDockets.
       * @return the CountDockets
       */
      public BigDecimal getCountDockets()
      {
        return (BigDecimal) getAttributeInternal(COUNTDOCKETS);
      }
    
      /**
       * Sets value as the attribute value for the calculated attribute CountDockets.
       * @param value value to set the  CountDockets
       */
      public void setCountDockets(BigDecimal value)
      {
        setAttributeInternal(COUNTDOCKETS, value);
      }
    

    This means that the attribute type CountDockets BigDecimal

  • How to adjust the display width of fields?

    work in jdev 11.1.2.3.
    the form looks like DESIGNER Visual, all fields of the same length, and there is no width attribute to adjust. When run, some too long display fields.
    How to adjust the display width of fields in the design?
    Thank you.

    Hello

    You don't need to repeat once again, unless you have changed the properties after initial drag and drop.

    If you have changed, use the value #{bindings.yourAttribute.hints.displayWidth} to the columns property.


    label = "#{Bindings.Name.hints.label} '"
    required = "#{Bindings.Name.hints.Mandatory} '"
    * Columns = "#{Bindings.Name.hints.DisplayWidth}" *.
    maximumLength = "#{bindings.name.hints.precision} '"
    shortDesc = "#{bindings.name.hints.tooltip}" id = "it38" > "

    Thank you
    NGO

  • Need a script to display the hidden field if number = 568845

    Hi all

    Using Acrobat Pro 9.1 on iMac with OS 10.6.8

    I am working on a form to fill out and need a script to display a hidden field when a button is clicked.

    I've set up a numeric field to type a number, and the hidden field is "text1".

    Now, I need a script to the button open only the hidden field, if the field number = 568845

    In this way the customer can fill in the code and then show and type in the field.

    Any help would be appreciated.

    Ron

    Given that you use it by a button, you can't use event.value because a button has no value, and in any case, you want to check the value of another field. So this place like your button MouseUp event (of course, you have to adapt the name of the text field...):

    If (this.getField("Text1").value == "568845") {this.getField ("Hidden_Field") .display = display.visible} else {this.getField('Hidden_Field').

    display = display.hidden}

  • Field containing desired values display

    Hi all
    I find the field where this field contains the value I want to search.
    For example, I want to show all fields containing the value "book".
    These fields belong not only to the tables, but also to all oracle database like view objects, etc.
    After the field/fields displayed, is it possible to know which table to which belongs the field/fields that were shown up to?

    Is there any query to handle this?
    If so, I need.
    Any help would be appreciated.

    Before THX

    cycon wrote:
    I want to find the name of the column based on the content of the column

    Looks like at Re: how to search in all rows and all columns? should do.

    Please try to give the search function of the site a go, you never know what you can find :)

  • How can I display the last field added to the Manager (bottom) and keep the scrolling feature?

    Issues around scrolling on managers of blackberry is a real headache.

    I would like to be able to add fields to the bottom of a Manager and have this field displayed on the merits without taking the focus to another control.

    I'm looking for something similar to how works the yahoo chat window, for example.

    I was not able to get the last label field added to the box to display.

    Here is the code relavent I have:

    
     //adds a labelfield and a nullfield to the display    public void update()  {     UiApplication.getUiApplication().invokeLater( new Runnable()        {            public void run()            {             try               {                 scrollingWindow.add(new LabelField("Hello1" + count) );                   //add nullfield to facilitate scrolling                   NullField nullField = new NullField( NullField.FOCUSABLE );                   scrollingWindow.add(nullField);                   count++;              }             catch( Exception ex )             {                 Dialog.alert( ex.getMessage() );              }            }        }); }
    

    Any ideas?

    Couple of quick things:

    (1) you can make your LabelField focusable and save adding the NullFields

    New LabelField ("Hello1" + count, Field.FOCUSABLE)

    (2) have you tried to discover what field has focus, then set the focus on your new field, and then reset back to that he originated from?

  • APEX4: Filling of fields of database based on the value of SelectList

    Hello

    I have a Select list and 4 fields of text on a form. By choosing a value in the select list, I have to fill out text fields from its values from the database by using the value in the list select as primary key.

    How can I do this in 4 APEX?

    Thanks for the help.
    -Hozy

    OK, the problem was solved on apex.oracle.com

    You were not able to access the application because your application uses DB account as the authentication scheme, who obviously would not work on apex.oracle.com.

    I have change the authentication to Apex on apex.oracle.com scheme.

    About 3-4 truggers were not valid for account forms, the customer and transfer did not work. Who sets also.

    There is no data, then finished by create minimal records juices.

    Now take a look at the Page 14 and dynamic Actions. Only Address1 and Address2 are Benoit updated, based on the customer account. You will need to add additional Dyna for the zip code and city Actions.

    Next time around, please make it easier for someone to help out you by
    1. the manufacture of safe objects are valid
    2. it some (dummy data) in the relevant tables

    Kind regards

Maybe you are looking for