How to capture value retrun AM method in CO

Hi all

I have an at the AM method that returns an int value, and I want to enter this value in the CO

My method has the parameters

public int myMethod(int param1, String Param2){
int intValue = -1;
/*
code
*/
return intValue
}

I would like to take this return value in my controller and put it in an input text

I used this code in my controller

    int param1 = 1;
    String param2 = "111A";
      Serializable parameters[] = {param1, param2};  
         Class paramTypes[] = {int.class, String.class};
      int intValue = (int)am.invokeMethod("myMethod",parameters, paramTypes);
      OAMessageTextInputBean myItem = (OAMessageTextInputBean)webBean.findChildRecursive("item2");  
             myItem.setValue(pageContext,intValue);

When I test, I get this error 2:

  • incompatible types; found: int, required: interface java.io.Serializable
  • cannot mount interface java.io.Serializable to int

Can someone please tell me what is the right thing to do?

Thank you

Kind regards

Afaf

Hello

Please try to types of objects instead of primitive data types. Use integer instead of int.

Kind regards

AnilA

Tags: Oracle Applications

Similar Questions

  • How to capture value of table column-level changes using oracle 11g steamed

    How to capture the value of the column of table changes using oracle 11g steamed. (similar to the audit).
    Oracle made the steam would be the best way to do the same.
    Please notify. Please give me a code example.

    user4485803 wrote:
    How to capture the value of the column of table changes using oracle 11g steamed. (similar to the audit).
    Oracle made the steam would be the best way to do the same.
    Please notify. Please give me a code example.

    Look at the change data Capture

  • How to use the backing bean method to show the outputtext value?

    things not clear is how init outputtext value if the bound property is not initialized.
    (the page opens but the values is null, need to call the getter before sort method)
    page view code:
    < af:outputText value = "user name: #{backingBeanScope.backing_page1.loginuser}" id = "ot11" / > "

    the corresponding code to support bean:
    private String loginuser.
    ...
    public String getLoginuser() {}
    return loginuser.
    }

    You need not call it yourself. Just put it on the page. When the page is rendered, it calls the method automatically.

    Timo

  • How to capture the values

    Hi friends,

    I came across one of the scenarios, i.e.

    In my application, I have a report page and a form page, the report and the form are based on the unique table...

    If a record is inserted medium, means it will be inserted in the report...

    in the region of report I have an button called then if I clicked the next button means a form page must open to capture all values which is inserted in the report of each field of the form...

    How to capture the values of the ratio to form shortly after clicking on the button NEXT in the region of report...

    Help me solve this question friends,

    Thank you
    Saro...

    Hello

    For the Next button , which is located in the region of report,

    change the Action: to redirect to the page and give the respective page number: (i.e.) the target...

    And specify the value of these items: what are all the elements of the target.

    with these values: describe the elements of the source where you will take the values of the corresponding points...

    Izz all wells
    GTA...

  • How to capture the value of profile in AM

    Hello

    How to capture the value of profile in AM.

    Krishna

    Here is the code that you can use

      String profileValue=  getOADBTransaction().getProfile("profile Name");
    

    Thank you
    -Anil

  • How to capture the value of type column report

    It would be a great help that you might suggest the following

    (i) Java script that I wrote on the standard status column (in a tabular report) fails.
    This happens because of the standard status column, if I use the text field then called Javascript function and showing correct results.

    Now, here, I want to know how to capture the value of the column standard report, since javascript fails due to
    the column values of standard report unrecognized.

    Example:

    Columns of the report as a table:
    ```````````````````
    Standard report column: salary
    TextField report column: new treatment
    Report column standards: difference

    I've written the javascript on column New_salary function which returns the value of the salary column to calculate the difference.

    For this column of report types, the javascript function does not work, that is to say, it does not show the difference., since it is not read
    the value of the column Salary (which is the Standard type of report column)
    Once I have change the Salary column to text (display as saved state) javascript field works fine.

    All entries on how to capture the standard value of the column, so that I can access the value of the javascript function.

    Thanks in advance
    Vijay

    Hi Vijay - I had problems with the forum as well (and my workspace OTN so)!

    You have two questions, I think.

    First of all, that the old wage is not an input element, you can not get to it by referring to an ENTRY tag. you will need to change that to something like:

    var s1 = d[k-1].firstChild.nodeValue;
    

    This means that there is nothing else in the cell apart from the text - as in < td > < table > 123. If there is something else there that stops you getting the value using the above, you can go through these nested tags referring to objects further firstChild-

    var s1 = d[k-1].firstChild.firstChild.nodeValue;
    

    As I don't see your page, you need to check yourself to see firstChild how much you need. This example assumes that you had something like: < td > < b > 123 < /b > < table >

    Second, the values of s and s1 are strings. You must convert these numbers to be able to perform calculations. You have two javascript functions to do this: ('string') parseFloat and parseInt ('string'). One contains decimals, the other is not - but know that one is not very accurate (it can change "123.456' in ' 123.455999999995' or something similar - not very good! '").

    So, your calculation should be:

    var diff = parseInt(s) - parseInt(s1);
    

    Andy

  • How to store values of TextField in table

    Hello

    I am trying to write a code to store values of TextField in a table. I know how to convert entire TextField. But after that, we have different integer variables. I can't understand how to store values of these whole different variables in a table by using a loop.

    public class ArrAvg {}

    Public Shared Sub main (String [] args) {}

    int arr [10] = new int [10];

    inputNumbers (arr);

    }

    void int inputNumbers (int arr [10]) {}

    int i;

    TextField field1 = new JTextField();

    TextField Field2 = new JTextField();

    Field3 TextField = new JTextField();

    String value1 = field1.getText ();

    String value2 = field2.getText ();

    String value3 = field3.getText ();

    val1 = Integer.parseInt (value1);

    val2 = Integer.parseInt (value2);

    val3 = Integer.parseInt (value3);

    for (i = 0; i < 10; ++ I) {}

    arr [i] = val1 (this should be replaced by val2 and after that by val3? I don't know how to do this)

    }

    }

    Some body please guide me.

    Zulfi.

    I have stored text field in ArrayList so i should traverse the ArrayList. But when i am converting the contents of Arraylist into integer, i am getting type mismatch despite the fact that my ArrayList is of String type.
    
    
    

    Yes - the ArrayList to string but you create an iterator for object

    Iterator itr = al.iterator (); getting iterator of arraylist to iterate through the items

    This method of "al.iterator" () returns the iterator; for your use case E-online String. See the API

    https://docs.Oracle.com/javase/8/docs/API/Java/util/ArrayList.html

    You set it to 'Iterator' which is NOT a generic, so only objects are returned.

    So get back to string.

    Create your instance of the iterator Iterator.

    Is it possible to avoid "iterator"?

    Why avoid it? Just use the appropriate iterator.

    The class has a 'size' and a method 'get (int index) '. So you can use a loop from zero to the 'size', but simply use the iterator.

  • How to transfer values to the popup while the bean in application scope?

    Hi all

    I use JDeveloper 11.1.1.4

    My scenario is that I have a < af:popup > with a component of < af:outputText >.

    I need pass values of output text dynamically according to the scenarios.

    My grain of support is application scope . So I'm not able to pass values using get and methods.

    My Design as,

    < af:popup id = "p1" contentDelivery = "lazyUncached" >

    < af:outputText value = "#{managedBean.getDynamicText}" id = "ot1" / > "

    < / af:popup >

    Now I run the application I'm not get all values in text during debugging output, I am able to set the value, but it didn't reflect on the page.

    How to transfer values to the popup while the bean in application scope?

    Thank you...

    At the bean, why don't you set the value to a variable pageflowscope and point the outputtext popup to the pageflowscope variable?

    () .getpageflowscope, set AdfFacesContext.getCurrentInstance ("nomvar", value);


    Thank you

    Alisson

  • How to capture the event of selection of a table on the side line client (JavaScript)

    The example is:
    < af:table >
    < af:column >
    < af:outputText... >
    < af:clientListener... / >
    < /... >
    < /... >

    However, the text does not fill to the top of the cell. So, if I click on the on the empty area, the event handler is not called.
    I hope, even if I click on the empty area of the line, the event handler will be called.
    In fact, if I click on a row of a table at any location, including the empty area, the line becomes blue. How to capture this select event row on the client side?

    You can try file the client listener as a child under tag instead of the ?

    
    ...
    
    
    
    

    The above code should call a function in your js file called "handleTableDoubleClick", which, in turn, queued a ClientEvent that can be attached to a Backing Bean method. Something like:

    ...
        public void handleTableDoubleClick(ClientEvent ce) {
           //do something when the table is double clicked.
        }
    ...
    

    hope that helps

  • How to capture the users of information fromRPD

    Hi Experts,

    I have x, user Y z in RPD. They're back writing. How to capture their username in the responses. \


    Thnaks
    V

    You can assign the variable user to session system in a column where the writeback is used
    put VALUEOF (NQ_SESSION. The USER) in fx of the column. so when X the user connects, the column is filled with the value 'X' and this value can be rewritten to db.

  • How to capture still images of PP2 for Photoshop

    Hello

    Please can someone tell me how to capture still images from the video sequence in PP2 in a format that can be used in Photoshop? They must be especially high resolution. I use them as a basis for the DVD images when I didn't get pictures.

    I use other methods for it and hit a problem with that. I could be wrong, but seem to remember to do in the past with PP1.5 via the capture window! Like I said it could be my memory playing tricks with this one.

    Thank you for reading this and I would appreciate any help

    Graham

    Structure of file - export. Don't not whose format choose you they can all be modified in Photoshop.

  • Anyone know how to enter values containing / by the numbers?

    Anyone know how to enter values containing / numbers?  I am trying to enter values of blood pressure requiring this symbol.  Thank you

    You can force numbers does not interpret the value as a number by typing the single quote... like this:

    120/72

    the column text format or

    or enter systolic diastolic and columns in then next:

    Systolic

    Diastolic

    120

    72

    124

    80

  • How to capture a screenshot on my HP Pavilion dv4 laptop so I can paste to word? Thank you!

    How to capture a screenshot on my HP Pavilion dv4 laptop, so I can paste to word? Thank you!

    Hello:

    You have a print screen button?  Probably abbreviated. Prnt Scrn

    You may need to use the Fn + the print screen key if it is combined with another article on the same key.

    Paul

  • How to capture screenshots with my AT100 Tablet?

    Hello

    I would like to know if anyone knows how to capture screenshots with my AT100 Tablet? Y at - it no buit - in tool supplied with the machine or what I need to find an app? I tried ER screenshot and screen Grabber, but I succumbed.

    Thank you for your help.
    Franck.

    Hello
    the problem with the apps in the store, you can use this software with a Tablet rooted.
    I heard that with the ICS new update will be screenshot function argued, without software

  • How to capture a screenshot of the program rather than the entire screen?

    You may need to download a photo in a post to help illustrate the question or provide more information, but do not know how to capture a region or a specific program to do this.

    The following steps were taken here, but modified to capture a program open instead of the entire screen.

    1. When you view the site or program that you're having trouble with, press Alt + Ctrl + PrtScrn (Print Screen) , usually located at the top right of your keyboard.
    2. Open Microsoft Paint by using the start menu, then programs, accessories and finally choose paint.  For Windows 8, search for painting of the splash screen.
    3. Once you have opened the paint, select 'Edit' from the main menu and click "Paste."  CTRL + V work as well.
    4. Now that your screenshot appears in the paint program, choose 'File' in the main menu and click on "Save as".
    5. In the drop down at the top of the menu "save under", choose to save the file to your desktop or your favorite place.
    6. Name your file "adsense.jpg" or something you prefer, choose "JPEG" format in the drop-down list "Save as type", then click Save.

    It should result in a screenshot of the specific program when selected.  It must be the active window or the last window that was clicked on.

    Once you have the picture, simply click on the photo icon in your replay to browse and download.

    This should help with areas that are smaller than the whole screen, making this important area more visible and easier to view via the forums.

    I hope this information helps.

Maybe you are looking for