How to make a calculated field in the view object

I use Jdeveloper 11 R2 (11.1.2.3)

In some cases I need to calculate a field based on information from another object of usage view

I came up with the idea of a transitional attribute for the first object view and try to initialize in the Get accessor method in RowImpl

But I don't know how I can access another display object in the class RowImpl

Any solution or suggestion?

Appreciate your comments

Concerning
Mohsen

Create an accessor from view in the t you want to access another VO.
get the other VO by using the Get accessor of the accessor to view in a rowset obj.
setnamedwhereclauseparams if necessary.
ExecuteQuery and then iterate over the rs to get any desired attribute - note the attribute must be the attribute in the called t.

Edited by: bigchill 06/03/2013 17:37

Tags: Java

Similar Questions

  • How to make readable text fields after the filling of data

    Hello

    Once we get the data in the message text entry fields, we have a few only readable areas.
    I tried to make these fields as readable as follows:

    In the property inspector Table RN, I changed the functional property of 'Read' only True value
    But in the custom OAF page, text box is missing for this field.
    Could someone help me how to do this?

    Thanks in advance
    Nanoo

    Hi Nanoo

    Here's the modified code, you can use

    public void setReadonly()
    {
    XXIDVOImpl vo=getXXVO1();
    Row poRow = vo.first();
    for(int i=0;i
    

    I hope that helps!

    Thank you
    AJ

  • How to make a visible field if the value in the three text boxes do not match?

    Hello Experts.

    I have a form with three text boxes.  I would like a warning box to display when recording warning the user that "these amounts do not match!  I would also like a textbox become visible when you save the document and remains visible in the layout until the amounts match.  I don't want to prevent the user to save the document, I just let them know that there are potential errors.

    I would use something like the following:

    If textbox1! textbox2 =! textbox3 =

    {textbox4.presence = "visible" ;}

    Also, have a pop-up message box during registration as follows:

    xfa.host.messageBox ("these amounts do not match!", "Title", 2);

    My question is how to write this, and what events should I use for this?

    Any help is greatly appreciated.

    Thank you

    Jerald

    Place the code in the event of a preSave any control below...

    The language is Java Script

    If (textbox1.rawValue! = textbox2.rawValue! = textbox3.rawValue) {}

    xfa.host.messageBox ("these amounts do not match!", "Title", 2);

    TextBox4.PRESENCE = "visible";

    }

    else {}

    TextBox4.PRESENCE = "invisible";

    }

    Also place the same code in the output of al lthe thre events (textbox1, textbox2, and textbox3) text fields...

    Thank you

    Srini

  • How to make a visible line in the background object?

    Hello

    I have a new for Adobe products, lately I've been experience the same problem with the visibility of the object.

    On the left, I used the line tool to draw an additional line to add features, I think it should be a better way to make objects of the visible background. On the right is how the subject looked before. What other ways to make the lines visible without drawing?

    Enjoy

    Screen Shot 2015-12-05 at 7.21.52 PM.png

    The top image is made with objects that have a fill and stroke. Filling blocks the features below. The bottom image is done with suddenly, then grouped objects (Cmd (Ctrl) g). The appearance panel shows the new filling added to group objects and settles below the content.

  • How to make uneditable Date field in ADF

    Hello

    I use Jdev 11.1.1.7.1.

    In the fragment, I added the DATE of the ENTRY component. How to make uneditable date field. He should just take the input value of the grille.

    Kindly advice me.

    Thank you

    Swathi

    Your date. MinValue must be like this:

    
                
                
                  
              
    
  • How to make a text field repeat several times?

    I have created a form with the name of a client in it - and the name is repeated at the top of each page.  How to make a text field repeat several times? Thank you!

    Make sure that all fields have the same name (LastName FirstName, MiddleName,), then set the binding in the overall binding tab.

    Paul

  • How to make a required field in OAFramework

    How to make a required field in OAFramework when running? Please explain in detail if possible.

    Thank you
    Kumar

    Get the handle to the bean by using the following Code

    Bean = webBean.findIndexedChildRecursive ("");
    If (bean! = null & )
    {
    bean.setRequired (true);
    }

  • Simple question - how to make a readonly field

    Simple question - how to make a readonly field

    Hi DougBlincoe!

    I think you're looking for this:

    1. create the element. See "creating a Page level item.

    2. navigate to the appropriate page definition:

    Go to the Home Page of the database.

    Click the icon of the Application Builder.

    Select an application.

    Select a page.

    The definition of Page appears.

    3. under items, select the name of the element.

    The attributes for the element page.

    4. to display an item under certain conditions:

    Scroll up to Conditions.

    Make a selection in the list Type of Condition.

    Enter an expression in the fields provided.

    * 5. To make an element read-only: *.

    Scroll to display playback settings.

    Make a selection in the playlist only Type of Condition.

    Enter an expression in the fields provided.

    Click on apply changes.

    Here, you will get more information about this:

    # Create the item. See ["Creating a level of Page element" | http://download.oracle.com/docs/cd/B25329_01/doc/appdev.102/b25309/bldapp.htm#BCEFHBHG].
    # Navigate to the appropriate page definition:
    # Go to the Home Page of the database.
    # Click the icon of the Application Builder.
    # Select an application.
    # Select a page. ------------------Definition of Page appears.
    # Under items, select the name of the element. ------------------Page attributes for the element.
    # To display an item under certain conditions:
    # Conditions scroll.
    # Make a selection in the list Type of Condition.
    # Enter an expression in the fields provided.
    # To make a read-only element:
    # Scroll the display reading settings.
    # Make a selection in the playlist only Type of Condition.
    # Enter an expression in the fields provided.
    # Click on apply changes.

    Here, you can read more information about this:

    http://download.Oracle.com/docs/CD/B25329_01/doc/AppDev.102/b25309/bldapp.htm#sthref805

    I hope this helps!

  • How to make transparent cluster keeping only the elements inside the visible cluster?

    Hello

    Can anyone suggest me how to make transparent cluster keeping only the elements inside the cluster visible in the front panel.

    Thanks in advance,

    Vinciane

    As I said, use the space bar for what is paint. This works. Trust me.

    PS You cannot link to pictures stored on your hard drive. We don't see them. You must add them as attachments and then submit the post they get uploaded to the servers of NOR.

  • I get my email on two computers. How to make a computer out of the loop?

    I get my email on two computers. How to make a computer out of the loop without jeopardizing my Comcast email account?

    Using Outlook Express? Go to: tools | Accounts and delete the account. If you think you can it in the future, go to the properties of the account, and under the general tab, simply uncheck: include this account when receiving or synchronization.

    If you are interested, you can receive messages at a time without losing them on one.

    On both machines:

    Tools | Accounts | Mail | Properties | Advanced - Check: leave a copy of messages on the server.

    On a single computer only, make sure to delete messages after X days to satisfy your allocated space that you get from your server.

  • How to make 'Save to Desktop' save the default value instead of 'This PC'?

    How to make 'Save to Desktop' save the default value instead of 'This PC'?

    Windows 10, I guess?

  • In CC Dramweaver Adobe how to make my Web page fill the entire window?

    In Adobe Dreamweaver CC how to make my Web page fill the entire window?

    A width of 100% CSS.


    Body {width: 100 %}}

    Nancy O.

  • How to make a web page to the size of browsers?

    How to make a web page to the size of browsers?

    Try to download the pdf file and the example in this tutorial files, which explain how to do this.

    http://www.Adobe.com/devnet/Dreamweaver/articles/bk_dwcs4_mastering_css.html

    PZ

  • How to check the values of the view object?

    Hi all

    I created a new object view by right-clicking my module of the application. Now when I try to retrieve values

    the attributes of the view object, I get null pointer exception. How can I check if the view has

    some values inside or not manually by using the select statement? I'm trying to find the view in my database to the database browser

    but he was not there. Kindly help me out in the present.

    Thank you
    Flavian.

    Published by: 887737 on October 19, 2011 12:53 AM

    Hello
    Make a right click on the application module (yourAM in the model project) and press Run, then you can check if your ViewObject works or not.
    Note:
    Typically create viewObject using based EO or query based how did you create viewObject
    See:

    http://download.Oracle.com/otn_hosted_doc/JDeveloper/1012/BC4J/intro/bc_avo.html
    http://www.adftips.com/2010/09/ADF-Model-creating-view-object-vo.html

  • REST API - the internal names of the fields in the custom object

    Hello

    We have an old system that uses the SOAP API and I'm rewritten with the REST API. Before, with SOAP, you identify the fields object personalized with their internal names. Therefore, our system and stored that names in its database. Now, I'm facing a problem. as the REST API does not provide the internal names for the fields in the custom object, as their full names and IDs. Am I wrong? Is it possible to get the internal names through REST? I found, you can get this internal names through the API as a WHOLE, but is there really no way to get them using REST? It seems strange to me and I don't want to use in BULK as there limits for requests per day.

    Hi Marc,

    In bulk API endpoints are the best way to retrieve the details field you are looking for.  Calls to retrieve this detail do not count against the daily API limits for the bulk API.

Maybe you are looking for