Display component in ADF conditionally

Hello

I need to hide/show certain fields in an ADF application under certain conditions.

Please let me know how to achieve this. Is it possible to get the value of a java code or the DB to make the decision.

Help, please.

details should be tiny #{customReq.details eq true}

Tags: Java

Similar Questions

  • Graphic display based on this condition

    Hello
    I have 2 select fields (with Submit) in a page...
    A select field is the name of the employee and another select field is the goal.
    Now, there are 2 tables A and B which are displayed once these values are selected.

    I want the graphic to be displayed in the following conditions:

    Employee - all AND purpose - ALL
    Employee - all AND use - (specific)
    Employee - specific AND subject - ALL

    I want the chart DO NOT display under the following condition:
    Employee - specific AND object - specific

    How can I get this done?
    Help, please!

    Hi Suzi,

    I don't know if I understand your problem of law, it may seem too simple. You can make your conditional graphic region using a PL/SQL Condition:

    BEGIN
      IF (:PX_EMPLOYEE != 'All' and :PX_PURPOSE != 'All') THEN
        return false;
      ELSE
        return true;
      END IF;
    END;
    

    If I misunderstood your problem, please give me a hint.

    -Udo

    Published by: Udo on 15.10.2010 16:20
    For some reason, the code block shows no "<' '="">", so I had to change the condition of! =.

  • How to conditionally bind the declarative component custom ADF ADF Faces

    Hi gurus,

    I created the custom declarative component called "Historical Record", following the article of Frank Nimphus Oracle ADF Code corner: How to bind custom declarative ADF Faces components and it works perfectly find.

    But I want to strengthen further to make more generic, as in Oracle EBS we can go to all the blocks and choose Tools-> history of the record and it shows WHO columns to the currently selected record.

    The intention is conditionally bind the attributes of the component with columns of WHO bodies VO.

    The scenario is:

    * all tables have Created_Date, Modified_Date for columns of the WHO.

    * the page containing the 2 instances of VO with different source (for example:-> emp dept)

    * whenever I have navigate dept records it should display columns WHO selected dept and the same thing then to move through the records of the emp.

    Kind regards

    Ferrere

    Well as I said, you shouldn't try to rebuild the Oracle Forms technology-specific behavior in some other technologies such as ADF (because it is not usually possible).

    It is probably best to have a separate button for each shape (square to a coherent position on all pages - as some form, toolbar header...)

    If you want to rebuild the behavior of forms, then you can use the combination of af: clientListener / af:serverListener to set a flag (as the name iterator) see scope that can be used by your 'global' button to retrieve the correct data. Therefore, add af:clientListener to each component entry...

    Dario

  • The tree component and ADF area Refresh

    Hello

    I am a newbie to the world of the ADF. I want to talk about 'Request for debit ADF task of Summit' and try to build similar ask and I am stuck at the initial stage.

    (1) I have an index.jsf that has a component in the tree (country-> client) and index page has a region pointing to the stubborn workflow called "clients-task-flow '.

    (2) the limited workflow has a page called customers.jsff fragment, my requirement is when I navigate through different customers in the tree of my data in customers.jsff must display that customer data (should freshen up).

    As far as I know, it must use the partial release on customers.jsff, but Summit application has no trigger of partial. I also created a link between the client and the entities of the country.

    Can you please help with this.

    Thank you
    Rajesh

    I finally found how to solve this problem using accessor and object tree EL Expression to update the CustomerIterator.  The bulk of the ADF helped me thereby: ADF Insider Essentials

  • Date formatting of the af:query component in ADF

    Hello

    I use < af:query > ADF Component.It is linked to a VO through which attributes are displayed in the search.

    "I have a date component in the vo and want the date format you should see 6 August 2013. How can I achieve this?

    You can set a date in full flight format the VO, go to 'Attributes' and double-click the attribute. In the window go to 'tips control. Choose "Simple Date" in the "Format Type" field. Then enter the size you want to be applied in the field 'Format' (e.g. dd-MMM-yyyy).

    Kind regards

    Linda

  • TreeMap component popup ADF

    Hello world

    I have a requirement where I have to use TreeMap component.

    I created my VO and AM.

    I have an attribute called Module with Versions, as

    Module1 v1 v2

    Module2 v1

    Module3 v1 v2 v3 v4

    I have to display the Modules TreeMap and when click on the Modules, I should have a window that lists all versions as well as an option button.

    selection of the release, the version with the name of the Module must be entered in the database.

    I surfed on the net but did not have the appropriate reference.

    Please help me with some references.

    Thank you for your help.

    Jean-Felix

    Find detailed instructions here https://tompeez.wordpress.com/2015/06/13/dvttreemap-showing-node-detail-in-popup/

    Timo

  • With the help of af: calendar component in adf

    Hello

    I want to build a schedule component in the adf.

    I have no idea what entry to give it.

    Can someone please share a link which tells in detail how to build and use it.

    Also if someone like the java code to build the model of timetable, please share it.

    Thank you
    Hari

    Here are some tips
    http://www.Oracle.com/technetwork/developer-tools/jdev/calendar-091799.html
    http://www.gebs.ro/blog/Oracle/Oracle-ADF-calendar-step-by-step-implementation/
    and http://jdevadf.oracle.com/adf-richclient-demo

    Timo

  • Display of the ADF BC VO and VO Sub using af: iterator

    Hello world

    I use af:iterator to display all rows in adf vo and VO sub. Basically, each line of the first VO showed up at a few ranks second in VO view link. So I nested 2 af:iterator for each VO and bind via the connection of the layers. But I discovered that af: iterator don't change not the current line of the VO, to keep the current line of the first VO remains at 0 and it points to the same sub VO for all ranks.

    Is it possible to correct this problem, or what is the best way to display the data in such a situation? Thanks in advance.

    Kind regards

    K.Hein

    You must create the class * RowImpl.java for your VO. Also in the EL you must change the first letter lowercase attributes.

    Note these lines in the above code snippet:



    Both the nodeDefinition should be under a single link of the tree.

    You may not use links to the internal iterator. Instead, you must use the accessor.

    Published by: Prabhu STOECKLE on October 6, 2011 22:03

  • Question about the mix of Trinidad component with ADF Faces

    Dear all,

    I have a requirement for complex layout that I can't do with just ADF Faces component.
    I found this blog nice wfrom Jobinesh http://jobinesh.blogspot.com/2010/11/layout-tips-organizing-page-content.html
    and I quickly realize that this will solve my problem.

    Please note that components of Trinidad has not all client components peer as we have for the ADF Faces. You may need to be measured while choosing this guy

    I'm just concerned about this line. I can't really understand what it means and how it will impact my programming of the ADF.

    Thank you

    Neliel,

    Which, in my view, that Jobinesh says it's that you will not be able to use the HTML elements of the Trinity as targets for partial triggers. As far as I know, using HTML of Trinidad (trh :) components with ADF is OK, but using 'clean' Trinidad (tr :), you can have problems.

    John

  • Display number to ADF

    In my oracle, the number is saved under the 4-digit number. However, these numbers cannot be showed by the ADF correctly. For example, the number stored in DB is 0.1234. ADF shows like 0.123.
    If the number stored in DB is 0.1235, ADF shows like 0,124

    How to show the number exactly the same as the number saved in DB?

    For example, if the number of DB is 0.1235, component ADF will show as 0.1235

    Thank you

    I think it is a bug.
    We also have problems with numbers entered and number converter which, by default, do not apply the database pcision and scale.
    In the fields, the problem is that maximumLength = "#{bindings." Salary.hints.Precision}' is automatically set and it also has separator character and sign of Fraction.
    You must remove maximumLength or set it on "#{bindings." Salary.hints.Precision + 2}"

    The number converter also has problems for fragment figures more than 3
    One solution is to define minFractionDigits = maxFractionDigits '4' = '4 '.

    Details:
    [http://adfbugs.blogspot.com/2009/10/number-precision-and-scale-bug.html]

  • Formatting in the Table read-only ADF conditional

    Hi all!

    I would like to ask if it is possible to add conditional formatting to a table of the ADF, (I want to change the background of the cell) according to a rule of one field on this table...

    I tried to put plain JSTL (< c: choose >) after a < af:column > but did not...

    Anyone with some advice?

    Thank you in advance,
    Take care

    Published by: user11313533 on 30 Ιουλ 2009 10:29 πμ

    Hello

    Yes, it is possible via CSS. in the case of JDev 10.1.3 you can get inspired by this blog post: http://www.freewebalbum.com/blogs/faces/bjanko/blogs.jsp?blog=bjanko20071010184401

    Kind regards

    Branislav

  • Setting a different value to a text entry in the table of the adf conditionally

    Hi guys

    I work in Colombia - British ADF and ADF Faces.I have a table of adf upadable in which a text input is there in every page row.when is loading the input text is filled with-1 (i.e., the value of one of my columns in a table in the database). My goal is to make this entry blank when text the value retrieved is - 1 for this line. Entering text except-1 data will remain as it is.

    We set the value of this text of entry through inputtext2.setValue("") conditionally to the support of this page bean. But even if a given line is - 1, it contains the definition of the data of all the empty lines.

    Can anyone suggest me how to do this please?

    Put a transient attribute in your view object and use that one instead of the actual column.

    In the accessor get for the transient, did return null if the value of the real column is - 1

    In the setter, just delegate to the true Set accessor.

    John

  • Special characters are not displayed in the ADF jsp page

    Hi all
    Using the controller view ADF, I get the data from the database table, but when I view the data in the jsp page after a special character < what ever the data is there, it is not moved. Provide suggestions.


    Thanks in advance
    Mani

    Hello

    Have you tried to use a simple outputText (instead of outputFormatted?)? If this does not work even with af:outputText, try to escape from the false outputText property definition (attention: http://docs.oracle.com/cd/E15051_01/apirefs.1111/e12419/tagdoc/af_outputText.html).

    Arun-

  • display value based on condition

    Hi all

    Do not know if my subject is the most descriptive, but don't know how to explain in a sentence.

    I have wells that may have several statutes (one record for each State). I need to create a column to display a Y or N from or not a given wells has only certain articles types. If all the records of a given good Susp or Abd, so I want to display a Y. If good records include Susp or Abd, but also the other articles (or do not even have a status of susp or abd) so I want to display a N.

    So:
    Well           Status       ident
    12345         SUSP          Y
    12345         SUSP          Y
    12345         ABD           Y
    98765         SUSP          N
    98765         PROD         N
    98765         ABD           N 
    45678         SUSP          Y
    45678         SUSP          Y
    ASDFG         ABD           Y
    ASDEG         ABD           Y
    TTTTT         PROD       N
    TTTTT         TEMP       N
    Any thoughts?

    Published by: dgouin on December 13, 2012 06:59

    Hello

    Here's one way:

    SELECT     well, status
    ,     CASE
             WHEN  EXISTS (
                              SELECT  1
                        FROM    table_x
                        WHERE   well     = m.well
                        AND     NVL ( status
                                        , '?'
                              )     NOT IN ('SUSP', 'ABD')
                          )
             THEN  'N'
             ELSE  'Y'
         END     AS ident
    FROM     table_x  m
    ;
    

    Another way uses analytical functions:

    SELECT     well, status
    ,     MIN ( CASE
                   WHEN  status IN 'SUSP', 'ABD')
                THEN  'Y'
                ELSE  'N'
               END
             ) OVER (PARTITION BY well)     AS ident
    FROM     table_x
    ;
    

    This 2nd request is based on the fact that "n" comes before "Y" is sort of chain order. If you use other symbols, such as 'J' and ' n ", then you may need to use MAX instead of MIN above."

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.
    Explain, using specific examples, how you get these results from these data.
    Always say what version of Oracle you are using (for example, 11.2.0.2.0).
    See the FAQ forum {message identifier: = 9360002}

  • ADF: conditionally disable a field in a table - but not the entire file

    Hello people!

    I want to implent the following:

    Suppose I have a table showing all employees. There is a flag that indicates whether or not the employee is a Manager.
    If the flag is Yes, "Salary" field (and only in this area) should run in read-only (or disabled). In other words, this scenario is that, if an employee is a Manager, no one can change his salary (too bad...).

    I tried the isAttributeUpdatable, but this will make the whole of the noneditable file.
    I tried EL in turn it off and the read-only column attribute (something like #{bindings.managerFlag.inputValue == '1'?) "true": "false"}), but it did not work at all. "

    Do you have any suggestions?

    Thank you very much in advance!

    >
    (something like #{bindings.managerFlag.inputValue == '1'?) "true": "false"} "
    >

    Try #{bindings.managerFlag.inputValue == '1'}

Maybe you are looking for