How to get the result of a method on a page

I use JDeveloper 11g
I want the result of a method (String) in the ApplicationModule on a page (jspx)
What I have done is:
1. make a method (getValue) in the ApplicationModule Algemeen (also in Client interface)
2. make a pagedef-file with executables and bindings, see
<executables>
<invokeAction id="doGetValue" Binds="getValue"
Refresh="renderModel"/>
<variableIterator id="variables" Refresh="renderModel">
<variable Type="java.lang.String" Name="getValueReturn"
IsQueriable="false" IsUpdateable="0"
DefaultValue="${bindings.getValue.result}"/>
</variableIterator>
</executables>
<bindings>
<methodAction id="getValue" RequiresUpdateModel="true"
Action="invokeMethod" MethodName="getValue"
IsViewObjectMethod="false" DataControl="AlgemeenDataControl"
InstanceName="AlgemeenDataControl.dataProvider"
ReturnName="AlgemeenDataControl.methodResults.getValue_AlgemeenDataControl_dataProvider_getValue_result"/>
<attributeValues IterBinding="variables" id="ValueReturn">
<AttrNames>
<Item Value="getValueReturn"/>
</AttrNames>
</attributeValues>
</bindings>
3. on the page (jspx) I have an outputText-component:
<h:outputText value="#{bindings.ValueReturn.inputValue}"/>
But, it does not work, I don't get the result of the method on the screen.
Who can help me with this?

Hi,
Simple example below:
Suppose you have this method in AppmoduleImpl:
public void testHello( ) {
return "Hello";
1.After you expose this to clientInterface,drop this method on the jspx page as ADF Parameter
form
2.Drop the return String as outputText
3.Run the page,click on the commandButton & the outputText returns 'Hello'
Regards,
Shantala

Similar Messages

  • How to get the results for given Bind Variable

    Hi
    Can any one help me how to get the result rows from the View Object after executing the view object query by setting bind variable?
    snippet as follows
    viewObject.setNamedWherClauseParams("name","hei");
    viewObject.executeQuery();
    How to get the results from viewObject is my question..?
    Thanks in advance

    Should be something like
    while (vo.hasNext()){
    Row r = vo.next();
    r.getAttribute....
    You might want to read the "most commonly used methods" appendix in the ADF Developer Guide.

  • Call function in background task... How to get the result?

    I want to use Call function in background task parameter.
    But I cannot find the result of this function. (No export parameter, no table result, no exception)
    How to get the result of this function module? Correct or not?

    Hi Heinz,
    You can check the result in SM58 transaction.
    For more information pls. refer this thread :
    No IMPORTING parameters allowed in CALL FUNCTION IN BACKGROUND TASK
    Best regards,
    Prashant

  • Af:query - How to get the result rowsets

    Hi,
    I have a requirement where i need to search the db rows on and append the results the adf rich table on each search.
    For this i am using af:query component. And trying to get the result rows for the named criteria.
    String mexpr = "#{bindings.DestinDescVOCriteriaQuery.processQuery}";
    processMethodExpression(mexpr, queryEvent, QueryEvent.class);
    ViewCriteriaManager vcm = getDestinDescViewObj().getViewCriteriaManager();
    ViewCriteria vc = vcm.getViewCriteria("DestinDescVOCriteria");
    getDestinDescViewObj().applyViewCriteria(vc);
    AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
    adfFacesContext.addPartialTarget(tblDestinDesc);
    However on each click of search the rows searched in the previous attempt are not retained.
    Can anyone let me know how to get the result from named criteria and append it the table?
    Thanks
    Ajay

    Can anyone help?

  • How can i do with labview program,when i have 20 different values,and 1 want to add it with constant value.and how to get the results?

    how can i do with labview program,when i have   20 different values,and 1 want to add it with constant value.and how to get the results?

    Why do the 20 values have to be different? The same code should work even if some are equal.
    What do you mean by "get the result"? The result is available at the output terminal and all you need is a wire to get it where you need it. That could be an indicator, another operation, or even a hardware device.
    What is the data type of the 20 values? An array? A cluster? A bunch of scalars? A waveform? Dynamic data?
    LabVIEW Champion . Do more with less code and in less time .

  • How to get the results in one line

    Hi
    if i use the script below i get the name of path and then : and in next line i get the results.is there a way to get the results from every path after the : and not in the next line?
    another question - is there a way that the script will not show the server name on every path?
    (Get-Counter -ListSet LogicalDisk).PathsWithInstances | Get-Counter
    THC

    If you take you script and pipe it to get member, it will give you a list of various script properties.
    (Get-Counter -ListSet LogicalDisk).PathsWithInstances | Get-Counter | get-member
    You will see that the object type returned by "Get-Counter" is Microsoft.PowerShell.Commands.GetCounter.PerformanceCounterSampleSet.
    TypeName:
    Microsoft.PowerShell.Commands.GetCounter.PerformanceCounterSampleSet
    Name MemberType Definition
    Equals Method bool Equals(System.Object obj)
    GetHashCode Method int GetHashCode()
    GetType Method type GetType()
    ToString Method string ToString()
    CounterSamples Property Microsoft.PowerShell.Commands.GetCounter.Perfo...
    Timestamp Property datetime Timestamp {get;set;}
    Readings ScriptProperty System.Object Readings {get=$strPaths = ""...
    You can try grabbing different properties, and they will print out differently, displaying the data on the same line in some cases. For example, pipe your output to a "foreach-object" block, and then for each object print out the CounterSamples property.
    (Get-Counter -ListSet LogicalDisk).PathsWithInstances | Get-Counter | foreach-object { ($_).CounterSamples }
    This should all print on one line now. However, you also asked if there was a way to not have the server print out on every line. The way to control the format of these outputs is to use the "format-table" cmdlet. So you would pipe your output to format-table
    and then give it various options. This is how you would pipe it (without any options).
    (Get-Counter -ListSet LogicalDisk).PathsWithInstances |
    Get-Counter | object { ($_).CounterSamples | format-table }#OR USE YOUR ORIGINAL CODE(Get-Counter -ListSet LogicalDisk).PathsWithInstances |
    Get-Counter | format-table }
    Now, it's up to you to give format-table the options you want. With no options, output will look unchanged. To see what options are available to you, use get-help.
    get-help format-table
    I hope this helps!
    Thank for all the info...

  • How to get the result set in batches

    I have a query which results into large data. This data i want to display in a group of 20. After every 20 records i want to add header and footer to it.
    Is it possible to get the result set data into batch of 20 ? means can i specify start and end index of query ?
    regards
    Manisha

    What I am saying is that a big query with lots of
    joins will probably be slow, and as such would be a
    ripe candidate for batching the responses, if it were
    not possible to speed/optimize it. Batching is nice
    to look at for the user, but is not a solution for
    performance problems. In essence it is irrelevant
    that it adds a little performance deficit, as it
    appears to be running a lot quicker, and gives more
    feedback to the user.Then let me say it again....
    - "Join" is a term that applies to a method of doing queries in the database....
    - Query 1 which uses a join and returns 15 rows
    - Query 2 which does not use a join and returns 1500 rows.
    Given the above then Query 1 will provide better overall performance for the system than Query 2 in a properly configured database.
    If it doesn't then the database is not set up correctly.
    And again this will be irrespective of whether the query is scrollable or not.

  • How to get the name of a method?

    How can I get the name of a method, before measure its time of execution?

    [url
    http://java.sun.com/developer/JDCTechTips/2003/tt0318.
    html#2]DISCOVERING THE CALLING METHOD NAMEThis article uses Throwable.getStackTrace() which has been around longer than the one I mentioned (Thread.getStackTrace()):
    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Throwable.html#getStackTrace()
    I actually meant to show Throwable.getStackTrace() in my original post but when I did a search on it Thread's was the first one I came across.

  • DbGetQuery = How to get the results to display?

    I am using the following
    sqldata <- dbGetQuery(con," select sysdate from dual")
    How do I get the result to display?
    summary(sqldata) displays the values
    if I do dbSendQuery then fetch show the results
    help(dbSendQuery) and help(dbGetQuery) go to the same page! dbSendQuery
    The documentation says dbGetQuery will connect, get the records and clear; maybe the clear happens before the display?!

    Hello Amin,
    Here is the way to display the result from the query you provided:
    Assign the result of the query to object 'sqldata':
    R> sqldata <- dbGetQuery(con," select sysdate from dual")
    Type the object name at the R prompt:
    R> sqldata
                  SYSDATE
    1 2014-04-28 14:45:14
    Sherry

  • How to get the resulting XML as string

    Hello,
    I think my question is very simple but i'm new in this area.
    What i'm try to do is to parse a XML document with the DOM parser. Then i manipulate the DOM tree. After finishing the process i want to get the resulting XML document as an InputStream to give to another application for storing back into the database.
    Until know i print the resulting XML to System.out or I write it to a file.
    Do you know where i can find more information about this? Sample code??
    Thanks!

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jinyu Wang ([email protected]):
    You can try following code. It is not the simplest way, but it works for me:
    // Print to temp buffer
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    DataOutputStream output = new DataOutputStream(baos);
    Xml_doc.print(output);
    String outtemp=baos.toString();
    System.out.println(outtemp);
    include following line for the lib:
    import java.io.*;<HR></BLOCKQUOTE>
    Many thanks for the reply. It works!

  • How to get the Dynamic UI component value from JSFF page to any managedbean

    HI ,
    We have list of bean objects in jSF page we are iterating the list of bean using the forEach loop and displaying the value into Input type text (UI component) value filed .
    If we try to get the UI component value in Managed bean we are not getting the dynamic values .
    The below piece of code used to retrieve the dynamic values from the JSF page doesn't have any form :
    UIComponent component = null;
    FacesContext facesContext = FacesContext.getCurrentInstance();
    if (facesContext != null) {
    UIComponent root = facesContext.getViewRoot();
    component = findComponent(root, componentId);
    then component type casting to the based on UI component which we trying to access and getting the value as " NULL " ..Please let me know how to get the dynamic values form the JSF ?
    Please let me know if any other approach or any changes required on above ?
    Thanks

    Hi,
    the root problem is this
    <h:inputText id="it3" value="#{familyList.ctn}" />
    <tr:commandButton text="Save" id="cb3"Note how each row writes to the same managed bean property, thus showing the same data. Instead your managed bean should expose a HashMap property that you then apply values to using a key/value pair. The key could be the ID of the field, which then you also should dynamically define e.g. cb<rowIndx>. The command button could then have a f:attribute assigned that has the row HahMap key as a value. This way you truly create value instances for the object
    Frank

  • [JCOP Shell] how to get the result of a script into a variable ?

    Hello all,
    I have a jcsh script that swaps the Two nibbles of an hexadecimal number.
    #swap.jcsh
    X= 0xAB
    R= $(/expr $(/expr ${X} << 4 ) + $(/expr ${X} >> 4 )  )
    /echo 0x${R;h2} the value echoed is 0xBA, right.
    now, I want to replace the X varibale by an argument variable ( ${1} ) and , instead of echoing the result, storing it into another varibale; example :
    Y= swap 0x23this is not working. ;-(
    Does anyone knows how to do it ? is there a "return" equivalent to put at the end of my "swap" script ?
    mkdata are you there ? :)
    Kartagos

    Thank you very much mkdata
    I solve it temporarely by using a global Variable TEMP that will be used by scripts to store the result, then the caller script will simply read the value of this variable (old old school global variable method :) )
    now I'm considering re-writing my libraries
    I knew that there something "DEFUN" but i didn't find any help (when typing "help /error" it talks about something called "defun")
    I think I should write to the JCOP Team to update their docs.
    Regards
    Khaled

  • How to get the class name  static method which exists in the parent class

    Hi,
    How to know the name of the class or reference to instance of the class with in the main/static method
    in the below example
    class AbstA
    public static void main(String[] args)
    System.out.println(getXXClass().getName());
    public class A extends AbstA
    public class B extends AbstA
    on compile all the class and run of
    java A
    should print A as the name
    java B
    should print B as the name
    Are there any suggestions to know the class name in the static method, which is in the parent class.
    Regards,
    Raja Nagendra Kumar

    Well, there's a hack you can use, but if you think you need it,Could you let me the hack solution for this..
    you probably have a design flaw and/or a misunderstanding about how to use Java.)May be, but my needs seems to be very genuine..of not repeat the main method contents in every inherited class..
    The need we have is this
    I have the test cases inheriting from common base class.
    When the main method of the test class is run, it is supposed to find all other test cases, which belong to same package and subpackages and create a entire suite and run the entire suite.
    In the above need of the logic we wrote in the main method could handle any class provided it knows what is the child class from which this main is called.
    I applicate your inputs on a better way to design without replicating the code..
    In my view getClass() should have been static as the instance it returns is one for all its instances of that class.
    I know there are complications the way compiler handles static vars and methods.. May be there is a need for OO principals to advance..
    Regards,
    Raja Nagendra Kumar
    Edited by: rajanag on Jul 26, 2009 6:03 PM

  • How to get the result from graph  based on table prompt?

    I have one report in which I am having one table and three Graphs. I have added table prompt for one column i.e department. In that I have given three values. The values of my table changes as per the table prompt. But my requirement is my graphs should show me the result as per the selection of departments in table prompt. Please give me the solution for the same.

    Hi,
    Create a event channel the table view and refer the same channel name in the graph properties.
    Edit Graph --> Edit properties --> Enable Master-Details Events --> Give the channel name.
    It will work for the selection of table .
    Mark if helps.
    Raja Mohamed

  • Copying data out of WFA: how to get the results of a job

    I'm currently using WFA 2.2.0.2.6 in a product environment to create storage volumes and whilst the scripting aspects of it make provisioning the storage. there is one aspect that is difficult: getting the name of the volume path. Why is that difficult? When I execute the a workflow with WFA, the various steps in the "Execution Plan" all light up green and the volumes/qtrees created are put into the "Return parameters" tab. When I go to that "Return parameters" tab, I cannot select the data presented there for copying out. I am forced to manually transcribe what's presented in the "Returns parameters" tab. Is there a workaround for this?Some other way to get the volume path, share names, etc, that a workflow creates so that it can be easily copy and pasted for use elsewhere? Kind Regards,Darren 

    Hi, Yes we can't copy the return parameters  from the "Return parameters" tab.  If return parameter is used as input parameter for command in the workflow, those return parameter values can be copied from "execution plan" tab. Regards,Veerendranadh CH  

Maybe you are looking for

  • Excise register balance update

    Sir,      Our client uses FI JV for excise duty utilization instead of standard transaction J2IUN. As a result the balance in Ex registers RG23A/C part 2 is showing excess amount than actual. Part 1 register is updated through J1I5. How to correct ba

  • Best way to save iMovie Projects

    I am using iMovieHD and have about 50 hours of video to import and then to save. I recently bought a LaCie 250G hard drive. I do not know the best way to save these movies which I have imported and edited but since they are in effect out family treas

  • Adobe Flash Palyer for Nokia E50

    Good Day, Does anyone know how to get the Adobe Mobile flash player on a E50 cellphone.

  • Better Quality Still Images

    When I place a still image into Final Cut Pro the image quality goes down dramatically. To the point where some of the faces on the pictures are unrecognizable. Does anyone know how to solve this issue so that the image quality stays the same? Just t

  • The sound get low by it self ??iphone 6

    hello i have a problem with my iphone 6 when im listening to music or watch youtube sometimes the sound gets low by it self as if i was recived a message but i dont recive messages i restored the fone and this issue still ....any solution !!?? thanks