How to add the transient attribute for LOV (object of the view read-only)

I have a view called CustomerView and attribute DepartmentId is present in it.

Also exists DepartmentView and CustomerView.DepartmentId has an LOV from this point of view.

I need to add a transient attribute to CustomerView which express the DepartmentName attribute in the LOV.

Because of the view are read-only there is no entity object don't match them.

How can I write the groovy for the transitional object expression.

The name of the view accessor Lov's DepartmentView1

Looking for your help. Thank you.

Hi gcoban

I do not understand your question correctly,

you are not able to write to the expression property in viewObject?

or you want to know how to write groovy for that?

for writing groovy you need viewAccessor and you who have, you can try as Alejandro Tovar Lanz suggested

or you can write code in RowImpl to fill in the name of the Ministry of the accessor

See -https://blogs.oracle.com/adf/entry/combo_lov_how_to_display

Thank you

Tags: Java

Similar Questions

  • How to add a transient attribute of a table values in the new attribute group wise transient that is to say wise customer?

    Mr President.

    How to add a transient attribute of a table values in the new attribute group wise transient that is to say wise customer?

    as below

    custwisevalue.png

    Concerning

    Hello world

    for an overview in the following form

    This is the sql query that reach this format

    SELECT c.name customer_name,
            p.name product_name,
            sl.sal_qty,
            sl.unit_sal_price,
            sl.sal_qty*sl.unit_sal_price AS salesvalue,
            CASE
              WHEN ROW_NUMBER () OVER (partition by c.cust_id order by p.prod_id desc,sl.sal_id desc) = 1 THEN
                  SUM (sl.sal_qty*sl.unit_sal_price) OVER (PARTITION BY c.cust_id)
            END totals
    FROM customer c INNER JOIN sales s ON s.cust_id = c.cust_id
    INNER JOIN salesline sl ON sl.sal_id = s.sal_id
    INNER JOIN product p ON p.prod_id = sl.prod_id
    ORDER BY c.cust_id,p.prod_id,sl.sal_id
    

    Cheers and enjoy

    Respect of

  • How to receive: the screen read-only recipes

    I did ' Reception > recipes ' train 'Read only' for certain responsibilities using forms of customization, available in Oracle Forms.
    I removed the access of Delete/Update/Insert on BLOCK = RCV_TRANSACTION as header for these responsibilities.

    However, now when I go to this feature of these specific responsibilities, after executing a default search of the 'find should Receipts", I get the repeated warnings.

    I get "FRM-41050: you can't update this record ' warnings as each column in every row of result is filled in the background in the form of 'Recipes' ('RCV_RCVRCERC')

    Any suggestions would be really useful, because I am really struggling with this quite some time.

    Kind regards
    Prateek

    Hi David,
    Please check the below notes of MOS

    How to make the column of receipt by receipt Header split form view only? [1315940.1 ID]
    * Show only expected revenue form displays error for each line: FRM-41050 [ID 308265.1] *.

    Thank you
    -Arif.

  • Expand the view read-only object where Clause

    Hello

    Is there a way I can add another where, condition of the clause to a viewobject unalterable in my bean limit support more query? The view object has a where clause itself clause which I want to thank. However, it is not editable or based on an entity object.

    Hello

    You can use ViewCriteriaRow to add where clause dynamically.

    http://download.Oracle.com/docs/CD/E15051_01/apirefs.1111/e10653/Oracle/JBO/ViewCriteriaRow.html

    In addition, you can also use a variable binding in the where clause and use setWhereClauseParams method before calling executeQuery.

    http://download.Oracle.com/docs/CD/E15051_01/apirefs.1111/e10653/Oracle/JBO/ViewObject.html#setWhereClause (java.lang.String)

    HTH.

    Arun-

  • Add or remove lines of a treeTable with a view read-only object

    Hello-

    I get an error of Houston-25016 when I go to remove a line in a treeTable. I want to create the hierarchy of a stored procedure, have the user add and remove nodes without remind to the database. I'll walk the tree and see what has changed and made the necessary updates to the database manually.

    What is the correct method to add or remove lines form the user interface component?

    Thank you!
    Tom

    Try the definition property for each attribute in VO on still changeable.

    Amit

  • How to add the chapter name and page not for reference

    Hello

    How to add the chapter name and page not for reference in indesign CS6.

    Thank you

    Please try variable notion of text

  • How to add the symbol for the brand to use?

    I saw how to add copyright and brand symbols, but anyone know how to add the symbol of the brand to use (SM)?

    Thank you.

    Mac OS > FInder > edit > special characters > type of service in the lower-right search

    Problem is many fonts do not have this, then you might want to set an exhibitor SM.

  • How to add the option in the SelectItem during execution

    Hello
    Can anyone help me please with this use case?

    I have a list set to the managed bean as below. I want to add new LOV in list (DROP DOWN 2) "ZZZ" based on the value selected in the DROP DOWN 1 on the same page. So that particular one value selected in the DROP DOWN 1, I want to have this new LOV displayed in the DROP DOWN 2. I'm doing it through ValuchangeListener, but I'm not able to find how to add the LOV. Help, please.



    USER INTERFACE
    <!-- DROP DOWN 1 -->
    <af:selectOneChoice label="Order Type" id="soc2" required="true"
                                            validator="#{lovManagedBean.orderTypeValidator}"
                                            binding="#{userAuthentication.orderType}"
                                            autoSubmit="true"
                                            valueChangeListener="#{lovManagedBean.orderTypeValueChangeListener}">                    
                          <f:selectItems id="si2" value="#{lovManagedBean.orderTypeItems}"/>
    </af:selectOneChoice>
    <!-- DROP DOWN 2 -->
    <af:selectOneChoice label="Request Type" id="soc1" required="true"
                                            validator="#{lovManagedBean.requestTypeValidator}"
                                            binding="#{userAuthentication.requestType}">
                                          
                                           
                          <f:selectItems id="si1" value="#{lovManagedBean.requestTypeItems}" />
    </af:selectOneChoice>
    Managed Bean code
      public List<SelectItem> getRequestTypeItems() {
        List<SelectItem> list = new ArrayList<SelectItem>();
    
        list.add(new SelectItem("XXX","XXX"));
        list.add(new SelectItem("YYY","YYY"));
       
       
        this.requestTypeItems = list;
         return list;
      }
    
      public void orderTypeValueChangeListener(ValueChangeEvent event ) {
          System.out.println("+++ Calling LOVManagedBean.orderTypeValueChangeListener()");
          System.out.println("Old Value for order type:" + event.getOldValue() );
          System.out.println("New Value for order type:" + event.getNewValue());
          if(event.getNewValue().equals("Time and Expense")){
            //Code to add LOV in drop down
          }
              
        
      }

    You could make it according to the following example:

    Sample.JSPX:



    xmlns:f = "http://java.sun.com/jsf/core".
    xmlns:h = "http://java.sun.com/jsf/html".
    xmlns:af = "http://xmlns.oracle.com/adf/faces/rich" >




    *
    autoSubmit = 'true' immediate = "true".
    * valueChangeListener = "#{pageFlowScope.SampleBean.onValueChangeListener}" > *.
    **
    **
    **
    *
    * partialTriggers = "soc1."
    * Binding = "#{pageFlowScope.SampleBean.selectOneChoice2}" > *.
    *
    * id = "si3" / > *.
    **



    * SampleBean.Java: *.

    import java.util.ArrayList;
    import java.util.List;

    Import javax.faces.event.ValueChangeEvent;
    Import javax.faces.model.SelectItem;

    Import oracle.adf.view.rich.component.rich.input.RichSelectOneChoice;

    public class SampleBean {}
    Private RichSelectOneChoice selectOneChoice2;

    public SampleBean() {}
    DataSource.Add (new SelectItem ("XXX", "XXX"));
    DataSource.Add (new SelectItem ("YYY", "YYY"));
    System.out.println ("to the constructor");
    }

    Private list datasource = new ArrayList ();
    private SelectItem newSelectItem = new SelectItem ("ZZZ", "ZZZ");

    * public Sub onValueChangeListener (ValueChangeEvent valueChangeEvent) {*}
    * if (valueChangeEvent.getNewValue () .equals ("Add") == true) {*}
    * System.out.println("::: Adding new select item choice"); *
    * datasource.add (newSelectItem); *
    *} else {*}
    * if (valueChangeEvent.getNewValue () .equals ("JustSelect") == true) {*}
    * System.out.println("::: Removing the added select item choice"); *
    * datasource.remove (newSelectItem); *
    * System.out.println (datasource.size ()); *
    *}*
    *}*
    * this.selectOneChoice2.setValue (datasource); *
    *}*

    public void setDatasource (the list data source ) {}
    This.DataSource = data source;
    }

    public getDatasource() {list
    Returns the data source;
    }

    public void setSelectOneChoice2 (RichSelectOneChoice selectOneChoice2) {}
    this.selectOneChoice2 = selectOneChoice2;
    }

    public RichSelectOneChoice getSelectOneChoice2() {}
    Return selectOneChoice2;
    }
    }

    * Ensure that the bean is saved in pageFlowScope.*

    Thank you
    Nini

  • How to add custom XML attributes

    How to add the custom attribute recusrivly. With the order of the sequences.

    Before xml: -.

    var myxml:XML =

    < root >
    < leval0 >
    < leval1 >
    < leval2 > < / leval2 >
    < leval2 > < / leval2 >
    < / leval1 >
    < leval1 >
    < leval2 > < / leval2 >
    < leval2 > < / leval2 >
    < / leval1 >
    < / leval0 >
    < / root >

    After xml:

    var myxml:XML =

    < root >

    < leval0 levalid = '0' >

    < leval1 levalid = "0_0" >

    < leval2 = "0_0_0" levalid > < / leval2 >

    < leval2 = "0_0_1" levalid > < / leval2 >

    < / leval1 >

    < leval1 levalid = '0_1' >

    < leval2 = "0_1_0" levalid > < / leval2 >

    < leval2 = "0_1_1" levalid > < / leval2 >

    < / leval1 >

    < / leval0 >

    < / root >

    Call this method

    trace (AddAttribute (myXML));

    method

    private void addAttribute(node:XML,_depth:String_=_""):XML

    {

    If (node.hasComplexContent ())

    {

    var int count = 0;

    var: String prefix = 0< depth.length="" depth="" +="" "_"="" :="">

    var currentAtt:String;

    for each (var nodeItem:XML of in node.children ())

    {

    currentAtt = prefix + count;

    nodeItem.@levalid = currentAtt;

    addAttribute (nodeItem, currentAtt);

    Count ++;

    }

    }

    return the node;

    }

  • How to add the name of the title of graph in Excel

    Dear friends

    I'm using LabVIEW 8.0.I need how to add the name of the title of graph in Excel.

    You have the report generation tool? If so, the VI of graph Easy Excel has an entry for this.

    If you don't have the Toolbox, then you need to use ActiveX. Please do a search on the use of the ActiveX (there are examples provided with LabVIEW) to control Excel. Also, there are many examples in the thread Excel. NOTE: DON'T POST QUESTIONS IN THIS THREAD.

    In the end, you will need to search for information contained in MSDN.

  • How to add and remove app for desktop icons in windows 8?

    How to add and remove app for desktop icons in windows 8?

    Try right clikc on the desktop will create new and the shortcut then copy and paste the path

    Otherwise just right-click on the icon you use to get the programs and send to the office or by copying and blocks the icon on your desktop

    I'm sorry if I still get the wrong end of the stick and maybe someone else you know what

    hope this helps

    I.T. tech admin

  • How to add the profile of lenses?

    How to add the profile of lenses?

    At the bottom of the link, you will find a link for the lens profile downloader. With this tool, you can download the profiles shared by other users.

    Work with lenses profiles in Adobe Photoshop, Lightroom and Camera Raw

  • How to add the new column in existing table to our desired location?

    How to add the new column in existing table to our desired location?

    For example, I have to add the new column 'course' before the salary column in the emp table.

    I think the best way is to add the column at the end of the table and create a new view with the order of the columns...

    Another option...

    places the data into a temporary table and recreate the table with the correct order of the columns, and then insert data to the table from the temporary table

    Refer

    Add column (from table) in the desired position

    Example:

    CREATE TABLE temp_my_user LIKE)

    SELECT * FROM password);

    DROP TABLE password;

    (Password) CREATE TABLE

    userID NUMBER

    , first name VARCAHR2 (25)

    , middleInitial VARCHAR2 (1)

    (, name VARCHAR2 (25));

    INSERT INTO password (userID, firstName, lastName)

    (SELECT username

    first name

    lastName

    OF temp_my_user);

    DROP TABLE temp_user;

  • How to add the bar at the bottom of the page [Dreamweaver]

    Hello!

    How to add the bar at the bottom of the page that helps me to make changes in my creation page?

    Not sure I understand.  Looking for the properties panel?  Press Ctrl + F3 or go to window > properties.

    Nancy O.

  • How to add adobe CD plugin for Google Chrome?

    How to add adobe CD plugin for Google Chrome?

    The player plug-in has failed in Chrome for some time.

Maybe you are looking for