UIX : Data action doesnt call a method

hi,
1)I have created two uix pages u1 and u2
2)I have created a data action(a1) based on method(findinvoices)
3)I have created farward from u1 to data action(a1)
4)I have created another farward from data action(a1) to u2
5)I method to accept the params which i defined in u1 and execute the method which i draged and dropped on action(a1)
Note i have defined the param values for each param of data action(a1).
Why data action(a1) is not calling the method instead it directly goest to u2 and execute the query on it.
Thanks.

Hi Shay,
I have one problem because how can I create a JSP Page to display Method Results in JDeveloper10.1.3???
I already created another page and tried to Drag and Drop my Method from Data Control Palette, but I only have the choice to create a button and I would like to see the result.
Adding a c:out tag to the JSP page.
Can you help me with this problem??
Thanks,
Micaela

Similar Messages

  • Add a Data Action to Execute a Method - Problem

    Hi,
    I'm working with JDeveloper 10.1.3 - JSP,Struts and ADF BC.
    I have a method that retruns 2 values (audit(Number,Number)) and exposed the Service Metod, but now I need to add a Data Action to Execute that method.
    I already add an Data Action icon to my Page Flow Diagram but what do I need to do next?
    Can anyone help me? Any ideias?
    Thanks,
    Micaela

    Hi Shay,
    I have one problem because how can I create a JSP Page to display Method Results in JDeveloper10.1.3???
    I already created another page and tried to Drag and Drop my Method from Data Control Palette, but I only have the choice to create a button and I would like to see the result.
    Adding a c:out tag to the JSP page.
    Can you help me with this problem??
    Thanks,
    Micaela

  • Use Action to call JSP method instead for forwarding to another url

    I have a servlet button to save data I have entered on a form. The only way I understand to save the data when the button is pressed is to use ACTION and call up a .jsp to do the work like this:
    <FORM ACTION="http://localhost:8080/examples/jsp/learningJSP/UpdateStudentInfo.jsp" METHOD="POST">
    and here's the .jsp that sets my current properties from the form and saves them.
    <HTML>
    <BODY>
    <jsp:useBean id="studentDataBean"
         class="learningservlets.StudentDataBean"
         scope ="application"/>
    <jsp:setProperty name="studentDataBean" property ="*" />
    <!--call saveData() to send the data you just set - to the database%=stuInfo.saveData()%>-->
    <%studentDataBean.saveData();%>
    <jsp:forward page="PresentStudentData.jsp" />
    <H1>
    UpdateStudentInfo Bean
    </H1>
    </BODY>
    </HTML>
    The problem I have with using this approach is my user is sent to another page. Is there anyway to complete the above task transparently (i.e. without making the user go to the page that does all of the work)?
    Thanks for any assistance you may offer.

    Use this,
    UpdateStudentInfo.jsp
    <%@ page import="learningservlets.StudentDataBean" %>
    <jsp:useBean id="studentDataBean"
    class="learningservlets.StudentDataBean"
    scope ="application">
    <jsp:setProperty name="studentDataBean" property ="*" />
    </jsp:useBean>
    <!--call saveData() to send the data you just set - to the
    database%=stuInfo.saveData()%>-->
    <%
    studentDataBean.saveData();
    response.sendRedirect("PresentStudentData.jsp");
    return;
    %>
    Hope this helps.
    Sudha

  • Managing exception in data action

    Hello,
    I am working on a web j2ee project based on struts/adf technology scope.
    I need to do some complex elaboration when the user press a button, so:
    1. I develop a data action
    2. from the data action I call a method of the application module
    3. I get the result from the method and forward to the proper page,
    4. etc.
    My method in the application module raises exceptions (when no data are found on the database, when parameters are null, when the database is down...).
    If I let my method to throw exceptions (i write "throws Exception" in the declaration), the wizard doesn’t let me to export the method to the client!!
    Otherwise I should catch the exceptions in my method in the application module, return an integer to the data action and write some code to decode the return value and eventually raise the exception again: I can't believe I have to do it this way!!!
    Anyone can help me?
    Thank you,
    Marco.

    Thnaks for reply.
    I will try it from another system. as i am the administrator of my desktop also I am trying to uplode a Image from Desktop so don't think that there is the problem b'coz of permisions.
    May be problem is with GUI only.
    Regards,
    Darshan...

  • Reg Vendor master upload using BDC Call Transaction Method

    Hi All,
    Thanks in advance.
    I am uploading vendor master data using bdc call transaction method for XK01. In that  i am getting an error message that the fields " smtp_addr" ( for email) and "time_zone" (for time zone) doesnot exist on the screen '0110' ( this is the second screen) . the field timezone will be displayed on the screen only when we go for communications button and select the URL field .
    Do anybody have the solution for this problem. if possible can you give me the code for that screen.

    Create a recording via SM35 (menu go to=>recording), this will generate automatically the code for filling your bdcdata-table...

  • Call AM method on ActionComponent  events

    Hi ,
    i need to perform some action like calling AM method ,isUserValid() tio check if user is valid or not on
    clicking action components like commandbutton and commandlink.
    i can archive this by adding PagePhaseLsitener ,and in beforePahseListener.
    i can handle action event update model process Phase.
    but the issue is i need to execute the AM method only actioncomponet event processing phase
    how to we know the event was generated by Action Component?
    please suggest
    Thanks,
    Karnakar

    Hi all
    requirement is to call AM method on clicking action compoents.
    and every page in application will call the above methods.
    i am overriding action component behiavour ,on clicking of actioncomoent it will execute AM method
    Thanks
    Karnakr

  • No batch input data for screen  occured in Call Transaction method for PA40

    Hi,
    I creatred an interface to update an employee action data ( Change of position )  PA40 by using  Call transaction method.
    while executing the  interface, I got the below error.
    No batch input data for screen MP049100 200 
    this interface updated the first employee from file,  then after it is giving the below error frequently.
    No batch input data for screen MP049100 200
    regards,
    Ashok Reddy Revoori

    The infogroup of action Change Position may be having infotype 0491. The infotypes screen sequence is decided based on employee's country grouping and user group. For the employee where you are receiving error, infotype 0491 screen is appearing for which you do not have BDC data.

  • Urgent: unable to call a plsql stored procedure with a struts data action

    Hello ALL,
    I'm trying to call a plsql stored procedure within a struts DataAction,
    The scenario is:
    When a user a click on a button, then it should call a specific stored procedure,,
    I create struts data action a class to handle the event which is to call the procedure
    Here is my code:
    public class RequestAction extends DataForwardAction
    public void onCall(DataActionContext ctx)
    String amDef = "model.AppModule";
    String config = "AppModuleLocal";
    ApplicationModule am =
    Configuration.createRootApplicationModule(amDef, config);
    try{
    AppModuleImpl myAm = (AppModuleImpl)am;
    DBTransaction tr = (DBTransaction) myAm.getTransaction();
    CallableStatement stmt = tr.createCallableStatement
    ("begin pkg_test.test; end;", DBTransaction.DEFAULT);
    stmt.execute();
    stmt.close();
    tr.commit();
    catch(Exception e){System.out.println(e.getMessage());}
    Configuration.releaseRootApplicationModule(am,true);
    but when I ran the application and click on the button, I got the following Exception:
    04/07/08 00:45:50 ORA-06550: line 1, column 7:
    PLS-00201: identifier 'PKG_TEST.TEST' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    It seems that the DBTransaction object unable to see the stored procedure,
    Am I do something wrong or miss something???
    I've checked the examples on the OTN HOW TO, and searched in the JDeveloper Forum but unable to find an answer,
    Please anyone can help???
    Thanks a lot
    With Regards,
    Hayat

    Here's an example application that illustrates how to do this. I haven't had a chance to writeup a little paper to go with it yet, but will as soon as I have a chance.
    http://otn.oracle.com/products/jdev/tips/muench/storedproc/CallStoredProc.zip
    See the "callStoredProcedure" method in the application module in the Model project.
    See the "callStoredProcedure" method binding in the binding container of the "CallStoredProcedure" data page.
    Notice the name "event_callStoredProcedure" of the (Call Stored Procedure) button on the CallStoredProcedure.jsp page which triggers the declaratively invocation of the method.
    You could also call the method from code in a custom data action.
    The code example illustrates how to create your own JDBC prepared statement for invoking the stored procedure, and doing it in a way that is efficient by keeping the prepared statement around across invocations.

  • Using ADF View object create method in Data Action

    I need to know how to create a new row in an application module method and get the attributes from the ADF input form.
    If i Drag drop the create method in the data action form it is working fine. But how to do this programmatically, I have a need where i need to execute a query on another view object and set the create method.
    Thanks.

    Steven:
    (My application does not need to show all records and provide Edit/ Remove buttons at row level, navgational buttons and Create button for inserting new record. Instead, I would just open a blank record for entry, and commit)
    As per your post, I followed the following steps (action class) to insert blank record:
    DCBindingContainer bindings = actionContext.getBindingContainer();
    DCControlBinding binding = bindings.findCtrlBinding("Id");
    Row row = binding.getRowIterator().createRow();
    row.setNewRowState(row.STATUS_INITIALIZED);
    RowSetIterator rs =(RowSetIterator)
    binding.getRowIterator();
    rs.insertRow(row);
    End Results: It works fine and a new blank record is created. The only problem is <html:errors/> in JSP throws error for the first time. I do not want to elliminate error object from JSP.
    Please help!
    Thanks in advance

  • Error while updating data using session and call transaction method

    Hi all,
        i have to update data using MM01 transaction from flat file to database.i have used both session method and call transaction method to do that.in both the methods data has been transferred from internal tables to screens but while updating the data that is by clicking the ok-code at the end of the transaction iam getting a dialogue box stating
       SAP EXPRESS DOCUMENT "UPDATE WAS TERMINATED" RECEIVED FROM AUTHOR "SAP".
      please tell whether the problem lies and solution for that.
                                       thanks and regards.

    hi,
    check your recording.check whether u saved your material no in recording or not.
    once again record the transacton mm01.
           MATNR LIKE RMMG1-MATNR,
           MBRSH LIKE RMMG1-MBRSH,
           MTART LIKE RMMG1-MTART,
           MAKTX LIKE MAKT-MAKTX,
           MEINS LIKE MARA-MEINS,
           MATKL LIKE MARA-MATKL,
           BISMT LIKE MARA-BISMT,
           EXTWG LIKE MARA-EXTWG,
    these are the fields which u have to take in internal table.
    this is the record which i took in my flatfile.use filetype as asc and hasfieldseperator as 'X'.
    SUDHU-6     R     ROH     MATSUDHU     "     001     7890     AA
    i did the same.but i didn't get any error.

  • Call a method with complex data type from a DLL file

    Hi,
    I have a win32 API with a dll file, and I am trying to call some methods from it in the labview. To do this, I used the import library wizard, and everything is working as expected. The only problem which I have is with a method with complex data type as return type (a vector). According to this link, import library wizard can not import methods with complex data type.
    The name of this method is this:   const std::vector< BlackfinInterfaces::Count > Counts ()
    where Count is a structure defined as below:
    struct Count
       Count() : countTime(0) {}
       std::vector<unsigned long> countLines;
       time_t countTime;
    It seems that I should manually use the Call Library Function Node. How can I configure parameters for the above method?

    You cannot configure Call Library Function Node to call this function.  LabVIEW has no way to pass a C++ class such as vector to a DLL.

  • How to call a method of an Action class from JSP on load?

    Hi guys
    Due to bad design pattern, i am forced to do something which i have not tried before.
    I need to call a method of a struts action class which invalidated the user session FROM the JSP itself on load. Which means it would not require user input.
    We have a subclass of a DispatchAction that handles all the incoming .dos.
    So http://blarblarblar:7001/blar/blar/doSomething.do?method=logout will dispatch to an Action class called DoSomething, into a method called logout().
    So when the webapp throws an exception, the ActionMapping actually displays an error.jsp and i have to invalidate the user at this stage.
    I can't change the most top level code in the base action class so i got to do it this way.
    Any help is much appreciated.
    Thanks.

    hi :-) DispatchAction is quite cool ;-)
    dont get much of your question but hope
    the suggestion below could help.
    A. use redirect?
    or
    B. autosubmit the form
    1. create your form in a jsp
       <html:form action="/doSomething" />
         <html:hidden name="method" value="logout" />
       </html:form>2. auto submit the form with method = logout
    put the function autosubmit in the "onLoad" event of the body
       <script>
         function autosubmit(){
         var form = document.yourformname;
         form.submit();
       <script>regards,

  • How to call particular method in action class from Portlets StrutsContent

    I am developing a web application which uses weblogic portlets and struts. This is what I have for now in the .portlet file.
    +<netuix:strutsContent action="getStudentList" module = "people/students"+
    refreshAction = "getStudentList" reqestAttrpersistence="none"/>
    I want it to change something like this:
    +<netuix:strutsContent action="getStudentList.do?method=allGrads" module = "people/students"+
    refreshAction = "getStudentLis.do?method=allGrads" reqestAttrpersistence="none"/>
    But this is not working. So how can I achieve something like that?
    Thanks
    Edited by: user13634949 on Jun 23, 2011 1:22 PM
    Edited by: user13634949 on Jun 23, 2011 1:22 PM

    No, i dont know how to call other than main methods from other classes
    And one more doubt i have i.e. Like in C can we see the execution of the program like how the code is being compiled step by step and how the value of the variable changes from step to step like(Add Watch).........

  • Can one Action from Jpf call another method/Action in other jpf   ?

    hi ,
    "can one Action from Jpf call another method/Action in different jpf "
    we can call other jpf's begin from one jpf , but can we call method of other Jpf from different jpf .
    i m getting error when i m trying to do this .
    No module configuration registered for /pageFl
    dule path /pageFlowControllers/Controller)

    hi,
    write
    carmodel(null) in populateCar() action.
    means
    public void onActionpopulateCar(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionpopulateCar(ServerEvent)
         onActioncarmodel(null);
        //@@end
    Regards
    Trilochan

  • Call Java Method on Commanlink action without page refresh

    Hi,
    I have a radio button in my application which on click calls a new JSP page inside DIV tag of the same JSP. Now before calling that JSP Page i want to perform some functionality . So i placed a commandlink on radio like this -
    <h:commandLink action="#{controller.deleteData}">
         <h:selectOneRadio id="licenseType" layout="lineDirection" value="#{controller.licenseType}" onclick="javascript:getServerInfo();">
                 <f:selectItem itemValue="#{dataTableItem}"/>
         </h:selectOneRadio>
    </h:commandLink> What I am looking for is that when a user clicks on Radio, first a Java method named deleteData() is called and then onclick() event of Radio is processed which loads a new JSP Page inside DIV tag beneath the radio button.
    But what happens is that as i click on Radio, command link takes precedence and refreshes the page.
    Is it possible for commanlink to just call the method and don't refresh or reload the page ????
    Plz assist with some code example

    Thanks Milind..... :-)
    I've not tried it as yet but i guess it would wok for radio.
    Is there any such event available for command link or command button too.... in which i just call the method on click and the page may not refresh ?
    Would "actionListener" event like this -
    <h:commandLink actionListener="#{controller.getsaveData}">call a java method and refresh the page or just call the method and leave the page as it is.
    If thats possible can u assist with some code examples ???
    USAGE :_ Actually I have a commandLink on which I have put a graphic Image "Submit" and on clicking of this image I just want the java method to be called but the page should not refresh or reload. Here is the code -
    <h:commandLink actionListener=" action="#{controller.getsaveData}">
                      <h:graphicImage url="/IMAGES/save_changes.JPG" height="27"
                                      width="136"/></h:commandLink>{code}
    Can u assist me with this Plz.{code}{code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for