[ADF, JDev12.1.3] How to hide the LOV "magnifying glass" through a bean managed?

Hallo,

I want to hide the "magnifying glass" to a field LOV.

This is possible only by using a CSS approach like this Ashish Awasthi (Jdev/ADF) Blog: search to hide from af icon: inputListOfValues using CSS & StyleClass-Oracle ADF?

Since then, I need to calculate in a bean managed if the magnifying glass must be hidden or not... I would like to know if there is an appproach simple and clean alternative.

Thank you

Federico

Hi Federico,.

You can use the same approach, as mentioned in the blog. Just you need not set the StyleClass on the page.

In the method of bean managed when you calculate that there should be no magnifying glass, then get the reference to lov and set its styleclass (LOV.setStyleClass) and refresh the LOV.

This way you can conditionally hide and display magnifying glass.

Thank you

Tags: Java

Similar Questions

  • [ADF, JDev12.1.3] How to hide the asterisk for required fields in an af:form?

    Hallo,

    I would like to not display the asterisk in front of the label of the fields...

    ... so I set for all areas of the ShowRequired property to false.

    I do not understand why the asterisk continues to display...

    I have to set another property somewhere?

    Thank you

    Federico

    Check the documentation for the showRequired property (jdev or online: ADF RichClient API - ).

    As a workaround, you can put af:inputText in af:panelLabelAndMessage component and set simple = "true" to hide the label.

    Dario

  • [ADF, JDev12.1.3] How to get the column headers, request of VO and VO bind vars used by an af:table?

    Hallo,

    I want to create a method that takes as a parameter the id of an af:table (used to display the search results) and returns:

    • the column headings of the af: table
    • Visible property (true/false) of the columns af:table
    • the actual query of the VO instance used to create the af: table
    • the values of real bind variables passed to the query of the instance of VO

    I would like to create a servlet which takes the parameters reruns the query and returns a report Excel/PDF file that contains exactly the same columns and same of the af records: table.

    I'm a little confused on who use the code to achieve this... you kindly help me?

    I did a similar qustion here Re: [ADF, JDev12.1.3] how to export an af:table to Excel in an ADF Essentials application? but then I guessed that it was preferable to create a new thread.

    Thank you

    Federico

    For this, you can use this type of code

    Context LocaleContext = _adfTableBinding.getLocaleContext ();

    for (attr AttributeDef: attributeDef) {}

    Label As String = attr.getUIHelper () .getLabel (context);

    _logger.info ("Attritbute name:" + attr.getName () + "column name:" + attr.getColumnName () + "Col4Query name:" + attr.getColumnNameForQuery () +)

    "Name:"+ label);

    }

    which produces this output

    Timo

  • How to disable the LOV Popup button in a list manager

    I would like to disable or hide the LOV of Popup button in a list manager. The small button LOV Popup that appears before the buttons Add and Remove. Our users want to paste the text into the search and box only use the Add and Remove buttons.

    I use APEX 4.0.2.00.07 and theme 10 - sand.

    Thanks in advance for any help.
    DP

    Try this one:

    
    

    Or send me the HTML source of the page to mgoricki8 (at) gmail. com

    BR,
    Marko

  • How to display the HTML page generated from a bean managed OUCSSPortalADFLibrary?

    ? Hello

    I have an af:commandButton in my jsff. By clicking on the button will perform an action of the managed bean located in the OUCSSPortalADFLibrary. The action of the method generates the HTML string of the new page to display in the same window. I tried what follows but failed to make it work.

    In my jsff:

    < af:commandButton action = "#{pageFlowScope.MyManagedBean.generateHtml}" id = "cb1"/ > "

    < af:outputText value = "#{pageFlowScope. . "{MyManagedBean.html}" id = "ot1" escape = "false" / >

    In my bean managed:

    SerializableAttribute public class MyManagedBean extends SSBaseManagedBean {}

    private String html;

    public void generatehtml() {}

    generate the html string

                   html = "<! "" DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional / / as"------"http://www.w3.org/TR/html4/loose.dtd------" > < html >... < / html > "; " "

    }

    public String getHtml() {}

    Returns the html;

    }

    }

    Kindly help/tips how to operate or any other way.

    Thank you in advance.

    Hi Lena,.

    ADF managed beans, you can use ExtendedRenderKitService to call the javascript. Something like window.location.href or similar can be used to replace the URL data: text / html mentioned in response format.

    Kind regards

    SAI

  • [ADF, JDev12.1.3] How to set the value of an attribute of VO 'max (attribute) + 1' when creating a new record?

    Hallo,

    I have a VO that selects records from a table databace where FkId = < value >.

    For example: this is the database table...

    ID RowDetNumber OtherFields FkId

    1   3     1            ...

    2   3     2            ...

    3   3     3            ...

    4   3     4            ...

    5   4     1            ...         |

    6   4     2            ...         | -VO selects these records (where FkId = 4 for example)

    7   4     3            ...         |

    8   5     1            ...

    9   5     2            ...

    When a new record is created the field RowDetNumber must be calculated with the logic of the max (RowDetNumber) + 1.

    So for the example above, the calculated value should be 3 + 1 = 4.

    I would like to know how I can calculate the value and assign to the RowDetNumber attribute.

    I did some experiments using a Groovy expression as a default value for the field, but I got only errors.

    I'm a bit confused on how I can do so a few details / examples / tips are welcome

    In particular, a small example for every possible approach would be happy.

    Thank you

    Federico

    Federico, the solution mentioned in the block will work as it only generates unique numbers without guarantee that the generated numbers are without flaw. However, if you want to use max + 1 this normally means you want to have a sequence without gap. It is very very complicated in nature. It doesn't matter what application you're trying, there is almost always room for error, ending with duplicate numbers.

    The trigger also works as the DB supports triggers on MS SQL.

    If you don't need a number of gap-less for the attribute, you can use the groovy solution and just get a number of a sequence is is guaranteed unique and greater value, like the last number that you asked of the sequence. In this way, you can have the sorted records

    ID RowDetNumber OtherFields FkId

    1  3    1            ...

    2  3    7            ...

    3  3    9            ...

    4  3    10            ...

    5  4    3            ...        |

    6  4    5            ...        | -VO selects these records (where FkId = 4 for example)

    7  4    12            ...        |

    8  5    4            ...

    9  5    6            ...

    Timo

  • [ADF, JDev12.1.3] How to change the font size for all of the components of output within an af:panelBox?

    Hallo,

    I need to change the font size for all the inputTexts, LOVs of outputText, labels, etc. which are in different panelFormLayouts inside a panelBox.

    I tried to define a CSS class and to assign to the panelBox but it has not worked.

    You kindly suggest me an easy way to do this?

    Thank you

    Federico

    Hello

    You can try something like this:

    AF | panelBox::content label, af | panelBox::content, af | panelBox::content entry, af | panelBox::content select {}

    your style

    }

    At least the style of the components you named should be changed. If you need more you can add others.

    Kind regards

    Ruben.

  • [ADF, JDev12.1.3] How to implement the serialization of a bean extended session? It is necessary here?

    Hallo,

    I have an extended session bean that contains some features and some simple attributes (integer and string).

    I have written/public class implements Serializable MySessionBean without the implementation of serialization (de).

    Now I would like to add a new attribute to a custom class to the bean, I defined: class contains attributes of simple type and some attributes in the hash table.

    HashMap implements serialization (de)... so this means that my class is serializable and while I do not worry (de) serialization?

    Thank you

    Federico

    Yes, some respond that in your other thread. The bean is serializable if each attribute, or if this is not it must be marked as transient. More info on http://www.javabeat.net/what-is-transient-keyword-in-java/

    Timo

  • [ADF, JDev12.1.3] How to change the image displayed in a page based on a parameter in the URL?

    Hallo,

    the index of my application page is called by the URL that ends with .../MyApplication/faces/index

    I want to add a parameter in the URL so that the picture in the page change based on this setting.

    The param doesn't have to be the name of the image file to display, but only a code.

    For example

    ? param = 1-> pathX/imageA.jpg

    ? param = 2-> pathY/imageB.jpg

    ? param = 3-> pathZ/imageC.jpg

    ...

    You could you kindly help me in this?

    Thank you

    Federico

    So if you have something like: .../MyApplication/faces/index?someParam=1

    You can use:

    Or you can link to custom as servlet: and then decode parameter and the return of this servlet image.

    Dario

  • How to hide the Save button in the Panel of af: query to ADF

    Hello
    I've used ADF af:query component and to hide the Save button.
    Can someone help me please in the present.

    User, please tell us your jdev version!

    Af: query a saveQueryMode aproperty value that you defined in hidden.

    saveQueryMode="hidden"
    

    Timo

  • How to hide the component date. MinValue (like the secret of entering text attribute)

    Hi Experts ADF,

    Can someone help me to hide the entry date.
    I need to display "DD/MM/YYYY' as a dummy value if the user does not have permission to view the date.

    As the date. MinValue is not a secret as inputText attribute, if anyone can help on how to display the fictitious value based on a condition.

    Thanks in advance.

    Mohan

    Hello

    Why not add the two below in the column?


    With the EL to determine rendering, either one of the two will show

    Frank

  • How to hide the names of the recipients when I send an email to many people?

    I'll send a message to a lot of people I know, and I think that some of them would rather not showing e-mail addresses. How to hide the?

    You use the BCC (blind carbon copy) field instead of the CC field to prevent one of the most complete list.

    Probably there is a button on the edit page to reveal this field.

  • How to hide the images used in imovie 10.1.2?

    I am a new user of iMovie and use the latest version. How to hide the photos that I already added to the film? Moreover, that mean the purple and orange lines on the photos? Thank you!

    You can not hide, but the orange lines at the bottom of the clips in the media pane show what parts of clips have been used in the scenario, if you can easily avoid reuse them if that's what you want to do.  The purple lines at the top of some parts of some clips show moved excessive (which cannot be stabilized).

    Geoff.

  • How to hide the menu item 'bookmarks '?

    Firefox 5.0.1
    At the menu bar: 'File', 'Edit', 'View', 'History', "Bookmarks", etc.
    How to hide the element of "bookmarks"?
    I have the add-on PLAINOLDFAVORITES installed and
    I forgot how with v3.6.18.

    Thank you very much

    Click the Firefox button and click on Add-ons -> Add-ons Manager, tab opens-> go to Control Panel Extensions-> select your add-on "Favorite PlainOld" , click Options

    Check and tell if its working.

  • How to hide the sidebar with other files of Notes?

    OS X El Capitan (10.11.3)

    I am trying to read a PDF Acrobat Pro and take notes with Notes in my mac, side by side.

    I would like to know how to hide the sidebar on the left of Notes, where are the names of the other file.

    I don't want the files, I already went to 'View' and you click "hide files".

    I can just see the writing of the Notes area while sharing the screen with the document I read in Acrobat Pro.

    Looks like a basic feature which Apple or Adobe Acrobat Pro should have, but I can't seem to find it.

    Looked for other solutions to the App Store, but what I've found is a bit expensive.

    I appreciate any assistance.

    I asked that your thread moved to the El Capitan forum.

Maybe you are looking for