MVC: Controller called twice in application

I have a situation that I am hoping is not that strange to some of you. The app that I am working on is fairly simple. A table is created using user-input from an input field and a function module in the controller class. This table is then sent to the view and used to populate a tableview. Once a user has chosen a row and clicked submit, the controller is called again. What is supposed to happen, of course, is that I use the row that was selected against the previously created internal table. My problem is that the data in the internal table is lost by the time the user clicks the submit button.
After a little debugging, I've learned that even on the original painting of the view, the controller is called a second time. When the controller is called a second time (without any user interaction yet) all data is 'refreshed.' The view reverts to intitial and my internal tables are cleared.
There is only one controller and one view in this application. Main.do and Main.htm.
Does anyone have an idea as to why the dispatch_input in Main.do would be called a second time, even after the view has been painted on screen and the user has yet to submit anything?
I appreciate any guidance you can give!

Hello Theresa Dancy,
Welcome to SDN Forums...
I suggest you to use the <b>Application Class</b> for storing values.
The main function of Application Class is a BSP Application is to store values in it.
There can be only one application class for one bsp application.
You can find the application class field in the properties of the BSP Application.
Refer this link for more information on Application Class...
http://help.sap.com/saphelp_nw04/helpdata/en/21/8cec3ada87e076e10000000a11405a/content.htm
Reward points for useful answer by clicking the star on the left side of the screen.
Regards,
Maheswaran.B
Message was edited by: Maheswaran B

Similar Messages

  • Calling an MVC controller from a BSP

    Hello,
    I'm trying to call an MVC controller from a BSP (Page with flow logic) using bsp:call / bsp:goto and am also passing a parameter. There are two problems:
    - parameter is not available to the do_init method of the controller class but is available to the do_request method
    - do_init is being called at every event (button click, dropdown etc.)
    I've checked that my BSP application, controller and bsp page are all set to stateful (with lifetime = session where applicable).
    Please suggest what I can do in this case?
    Thanks and regards.
    Rajendra Tewani

    for the precise solution the exceprts :
    in the DO_REQUEST method of the controller class just use
    <variablename> = request->get_form_field( '<url param name>' ).
    suppose the url is init.do?node=ABC to read the value within the controller
    data: nodevar type string .
    nodevar = request->get_form_field( 'node' ).
    with due thanks to raja for this

  • Calling a BSP application with MVC and send one start value

    Hi,
    I developed a BSP application with BSP. The application has a start page with one input field. The user gives a number and click the send button. The controller creates the modeler and gives the userinput as start parameter for the data search. After the data are read/found, the controller calls a view to show the data.
    This is very easy and does work.
    I have to call this simply application from another one: the caller application sends the start value.
    I don't know, if is better to send the start value in the URL or not. I tried it, but the controller cannot read it.
    How can I call the controller with a start value?
    Thank you!
    Bye
    Patrizia

    Hi ,
    what you need to do is
    1) for the "Send" button attach a java script.
    <htmlb:button id="myButton" text="Submit ...." onClick="sendRequestWrapper()"/>
    this javascript should take the inputfrom the field,
    then in the javascript create the URL.
    function sendReqeustWrapper(){
    sendRequest(InputField);
    function sendRequest(InputField)
    var URL;
    URL  = window.location.protocol + "//" ;
    URL += window.location.host ;
    <b>Note: its only Example link,</b>
    URL += "/sap/bc/bsp/sap/<BSPApplication>/controller.do";
    URL +="?InputFieldName=";
    URL +=InputFieldValue;
    <b>then use</b>
    Your URL will look like:
    http://ld0507.wdf.sap.corp:50007/sap/bc/bsp/sap/<bsp appl>/controller.do?InputFieldName=XXXXX
    window.open(URL,"_self","");
    so once this URL is triggered  you need to goto the respective controller and handle the input. You can see the reply from Mr. Akshaya Rao .
    regards,
    Vijaya Kumar M.
    Message was edited by: Vijaya Kumar

  • Controller Is Being Called Twice - Why???

    I think this is going to be a complicated question to answer but I'll try to explain what's going on as best I can. The basic problem I'm having is that the controller class gets called twice for some reason (instead of once) and I have no idea why. I type in a URL in my browser that goes to a JSP page called �myJsp.jsp�. Basically all that page contains is this...
    <tiles:insert definition =�my.tile� flush=�true�/>In my tiles-defs.xml file I have the following listing...<definition
    name="my.tile"
    path="SomeOtherJsp.jsp"
    controllerClass="x.y.z.MyController">
    </definition>
    x.y.z.MyController.java makes some calls to a DAO to retrieve data. MyController.java then puts that data into the requestScope for the JSP below to access...
    SomeOtherJsp.jsp has nothing special in it although it DOES contain a link to myJsp.jsp (and, somehow, it's like this link is being clicked even though I'm not clicking it).
    <a href="myJsp.jsp?someParam=<c:out value="${requestScope.someValue}"/>">Click Here To Do Something</a>If anyone can help I'd greatly appreciate it. By the way, I spoke to someone else who mentioned that I should turn this kind of thing into a struts action instead of doing a deletion within a controller class. I am going to refactor my code to do this. However, I'm still curious to know the answer to my question. Maybe it will help me get a better understanding of exactly what's going on in the world of servlets. :)

    Hi Shiv, <br><br>
    Yes I have placed System.out.println...and a debug point ...<br>
    super.processRequest(pageContext, webBean);<br>
    OAApplicationModule am = pageContext.getApplicationModule(webBean); <br>
    // String personId="13477";<br>
    // Serializable[] parameters = { personId };<br>
    if (!pageContext.isFormSubmission()) {     <br>
    am.invokeMethod("createEmployeeRow", null);<br>
    }<br>
    //am.invokeMethod("initDetails",parameters);<br>
    System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!!IN Process Request"); <br>
    debug point is at String personID="13477"....<br><br>
    Thanks<br>Soujanya

  • DoGet called twice on Tomcat Startup

    Hi,
    I have a problem with my Servlet doGet/doPost method being called twice (sometimes three times) on Tomcat 5 startup with J2SE 1.4 and Java SE 6. This problem happens on both, Firefox and Internet Explorer.
    I only have one Servlet (called ServletFrontController) in my descriptor, since I decided to use the Front Controller Pattern. This Servlet extends from a "base Servlet" which has all the init configurations. My deployment descriptor looks like this (I also have mappings which I haven't included here):
        <servlet>
            <servlet-name>MainServlet</servlet-name>
            <servlet-class>com.myprogram.ServletFrontController</servlet-class>
            <init-param>
                <param-name>config</param-name>
                <param-value>application.properties</param-value>
            </init-param>
        </servlet>My doGet / doPost / doHead methods from the base Servlet just delegate to the ServletFrontController "main" method, like this:
    public final void doGet(HttpServletRequest request, HttpServletResponse response) {
            try {
                process(request, response);
            } catch (Exception e) {
                handleException(e, request, response);
    }Does anyone had this problem and know why this could happen?
    Martin

    All,
    See post: [http://forum.java.sun.com/thread.jspa?threadID=720175|http://forum.java.sun.com/thread.jspa?threadID=720175]
    Might help.
    - JFK

  • Jsf and MVC Controller

    Is it possible to forward a http request to a jsf page from a Controller servlet ( MVC)
    Inside the post method I will have something like
    getServletContext().getRequestDispatcher("/somejsf_file.jsp).forward( request, response)

    this is my case
    A user enters the application using a JAAS login ( Frank Nimphuis's) with a JSF JSP login page. Once in there is another servlet authentication piece ( MVC controller) which forwards the user to appropriate JSF JSP page.
    When the application tries to call the jsf login page I get the following error
    javax.servlet.jsp.JspException: Cannot find FacesContext     at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:405)
    This is my web.xml
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
    <filter>
    <filter-name>adfFaces</filter-name>
    <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <url-pattern>*.jspx</url-pattern>
    </filter-mapping>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>SecondaryAuthentication</servlet-name>
    <servlet-class>pm3.controller.SecondaryAuthentication</servlet-class>
    <init-param>
    <param-name>valid</param-name>
    <param-value>faces/authorized.jsp</param-value>
    </init-param>
    <init-param>
    <param-name>invalid</param-name>
    <param-value>faces/unauthorized.jsp</param-value>
    </init-param>
    <init-param>
    <param-name>pamDataSource</param-name>
    <param-value>jdbc/pam_DS1</param-value>
    </init-param>
    <load-on-startup>0</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>resources</servlet-name>
    <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/adf/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>SecondaryAuthentication</servlet-name>
    <url-pattern>/sa</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>35</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <jsp-config/>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>primary_auth</web-resource-name>
    <url-pattern>/faces/*</url-pattern>
    <url-pattern>/sa</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>CONNECT</role-name>
    </auth-constraint>
    </security-constraint>
    <login-config>
    <auth-method>FORM</auth-method>
    <form-login-config>
    <form-login-page>loginjsf.jsp</form-login-page>
    <form-error-page>loginjsf.jsp</form-error-page>
    </form-login-config>
    </login-config>
    <security-role>
    <role-name>CONNECT</role-name>
    </security-role>
    </web-app>
    Thanks

  • Passing Value to a Angular Controller from MVC Controller Action

    Hi ,
    I have a Angular MVC Application my Angular controller code is like below.
    app.controller('SearchController', ['$scope','$http',function ($scope, $http) {
        $scope.sessionGuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
            var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
            return v.toString(16);
        $scope.searchValue = "";
        $scope.stockNumber = "";
        $scope.searchRequest = {
            Criteria: [],
            resultsTabIndex: 0,
            orderBy: "sortbypopularity",
            value:"mut" //Added
    I have a view Search.Html Which display the data on the basis of searchRequest object which is defined in Controller above.
    Now i have a requirement that i Need to show this view from MVC controller.
    Do you have any idea how can i pass value to controller which is required by the search request object  so that i can show the view with the data.
    Thanks

    Hi,
    Is it relate to SharePoint?
    Seems more like an Angular related issue, I would suggest you post this question to the corresponding forum, you will get more help and confirmed answers there.
    Best regards
    Patrick Liang
    TechNet Community Support

  • Method CreateChildren in ApplicationControllBar class called twice after setting dock=true

    Hi during creating of a custom ApplicationControllBar
    component in ActionScript I probably found a (nasty) bug?!
    package net.neijman.julia.jaContainers
    import mx.containers.ApplicationControlBar;
    public class JAApplicationControlBar2 extends
    ApplicationControlBar
    public function JAApplicationControlBar2(): void
    this.dock = true;
    super();
    override protected function createChildren(): void
    trace("CREATECHILDREN EXECUTED");
    When I am using my simple custom component in my application:
    <jaContainer:JAApplicationControlBar2 />
    The trace message trace("CREATECHILDREN EXECUTED"); is
    executed twice (meaning CreateChildren is called twice BUT ONLY
    AFTER SETTING dock = true (see constructor). When setting dock =
    false CreateChildren is executed once. I want to build a framework
    on the standard components (depending heavily on the
    CreateChildren-method).
    In other words, creating dynamic components in the docked
    ApplicationControlBar in the method CreateChildren results in a
    double placement in the DisplayList.
    Has anyone has a clue what's going wrong here? (my
    workarround for now is to start the createChildren method with
    removeAllChildren();)
    Thanks Tom Neijman

    Interesting. I would file it as a bug here:
    http://bugs.adobe.com/jira/secure/Dashboard.jspa
    And then see what happens. If it's not a bug, you'll probably
    get a decent reason why this occurs in the bug notes.
    matt horn
    flex docs

  • How to call custom BSP application (copied from standard)

    Hi,
    I came across 1 interesting link in SDN.
    [Enhancement procedure of BSP application HRRCF_RECRUITER in eRecruitment]
    My requirement is also similar.
    I need to copy the HRRCF_TRM_SRCH application.
    I know how to make the changes for the logic (like copying the standard controller & iterator class etc.)
    But I donu2019t know how to call the custom BSP application.
    One requirement is, I need to call a BSP application, in which there are only UI(user interface/screen) changes .
    That is, if there are only changes made to hitlist_cand.bsp page . And no changes made to hitlist_cand.do page.
    Eg: Removing one button from screen.
    Second requirement is, I need to call a BSP application in which there are logic changes also.
    (I know how to  change the standard controller class to custom class)
    Eg: Changing logic of button.
    We tried renaming the application name from standard to custom one (with Namespace=SAP itself, though it gave a warning) in the table T77RCF_LOG_APPL .
    Then we used this name to configure the start page link. But still the execution control is going to standard page & not to custom BSP application.
    How will I know which BSP application(Appl A), is calling the BSP application (Appl B) in which I want to make changes ?
    The starting application is HRRCF_START_INT.
    Would really appreciate solutions posted.
    Thanks,
    Nisha Vengal.

    Hi Nisha,
    I think you have an issue to call custom BSP.
    -     Ignore the warning message (in the table T77RCF_LOG_APPL) as it is just a warning message. I did not touch start page link at all.
    -     Additionally you need to make (I had to made) an entry in table u2018V77RCF_SMG_NAVIu2019.
    Let me know, if you need anything else.
    ...Naddy

  • Filters applied, called twice sometimes ...

    Hi,
    I have a small problem which give me headhache...
    I'm using a filter to make pre (authentification) and post processing (output the webpage using a XSL transformation).
    skeleton :
    ... doFilter ...
    //authentification
    chain.doFilter()
    //transformation and display
    When i'm aslink for a webpage (with a visitor account) there is no problem .., the webpage is displayed properly and the filter is called once ! perfect !
    but after my authentification (put a variable containing information onto the session with
    "sessionMgr.setSessionUser(session, user);") when I call the same webpage as before the webpage is displayed properly (that's a good point) but I saw in the tomcat console that after the end of the filter , the filter is called again with the same request or null sometimes .... GRRRRR
    I read John Hunter article about filters and in its clickstream exampl is using this tips :
    // Ensure that filter is only applied once per request.
    if (request.getAttribute(FILTER_APPLIED) == null) {
    request.setAttribute(FILTER_APPLIED, Boolean.TRUE);
    HttpSession session = ((HttpServletRequest)request).getSession();
    Clickstream stream = (Clickstream)session.getAttribute("clickstream");
    stream.addRequest(((HttpServletRequest)request));
    at the start of this filter ...
    can I have more explanation about this stuff ...
    I really don't understand why this happened ... it seems linked to the session management but I have no proof ...
    I find out hard to debug and hard to explain so
    THANKS A LOT FOR YOUR SUPPORT :)
    see ya
    Fran�ois (french guy so sorry for the english)

    hi there,
    well your problem is interesting........
    the solution that you have suggested in your problem regarding the use of FILTER_APPLIED, can be used but not as a long term solution.........
    well one thing i can tell you that as i was also facing the same problem of filter called twice, let me explain you the basic behaviour of the filter that a filter is called just before processing any request and again before giving response back to the particulare request........
    the next thing i can tell you is from your web.xml it is quite clear that you are mapping each request coming from dispatcher (your servlet) to your filter.......that means any request that points to dispatcher will go to the filter first and then to the actual servlet.
    one more thing you are loading the servlet on startup........
    just try to remove that code and then check..............
    because what happens in this case is when you start your application at that time your servlet will be loaded.........check whether the filter is called at that time or not......i think it must be called.......
    and when again a request will come the filter will be called..........this could be possible reasons your filter is called two times.........just try to delete the load on startup line from your web.xml for a while and then check..........
    regards
    Shishir

  • OnRequestStart is called twice?

    If I dont use an onRequest method in Application.cfc, I find
    that on every request, the onRequestStart and onRequestEnd methods
    are called twice. I used the following code in Application.cfc:
    Any clues on this unique behaviour?

    When I put the arguments and return types, the functions in
    the following Application.cfc did
    not run more than once.

  • How to extend the sap.ui.core.mvc.Controller ?

    We are in the process of building a web application that allows users to "plugin" their own views (pages). When they create there own views there are a number of activities that are common across all pages that occur in the onInit() and onExit() methods, additionally, we may provide additional utility functions that should be available to the controller.
    Currently when creating a controller the standard is to use sap.ui.controller("some.name", { controller specific functionality } );  I would like to create a sap.ui.MyController("some.name", { controller specific functionality }); that contains the utility functions and extra functionality in the LifeCycle methods so that these are automatically available to anyone defining this type of controller.
    I believe the documentation I need to reference is boilerplate code for typed Controller however I am unsure on how this can be used
    I assume that I define the controller abc/xyz/MYController.js
    jQuery.sap.declare({modName:"abc.xyz.MYController", type:"controller"}); // declaring a special type of module
    abc.xyz.MYController = function () { // the constructor
        sap.ui.core.mvc.Controller.apply(this, arguments);
    jQuery.sap.require("sap.ui.core.mvc.Controller"); // this is currently required, as the Controller is not loaded by default
    abc.xyz.MYController.prototype = jQuery.sap.newObject(sap.ui.core.mvc.Controller.prototype); // chain the prototypes
    /* end of boilerplate code for typed Controller */
    abc.xyz.MYController.prototype.onInit = function() {
        // modify control tree - this is the regular lifecycle hook
        console.log("Inside my new controller.");
    Then use it in app/pageController.controller.js ...
    jQuery.sap.require("abc.xyz.MYController");
    abc.xyz.MYController("app.pageController", { ..... });
    When I try this I get the Error
    Uncaught Error: failed to load 'app/pageController.controller.js' from /mywebapp/js/app/pageController.controller.js: Error: Controller type app.pageController is still undefined after trying to load it. sap-ui-core-all-dbg.js:20313requi
    Any help with this would be appreciated.
    Regards,
    Trevor

    Hi Trevor
    may this code snippet will help.
        jQuery.sap.declare("example.MyController");
        jQuery.sap.require("sap.ui.core.mvc.Controller");
        "use strict";
        sap.ui.core.mvc.Controller.extend("example.MyController", {
            onInit: function () {
    -D

  • LoginModule login method called twice on unsuccessful logins

    This is a cross post of a topic in the Application Server - General forum. The login and abort methods of our JAAS LoginModule are called twice when authentication is unsuccessful. It is called once on successful logins. This is problematic as it puts the user closer to locking the user's network account. We have confirmed that this is an issue, perhaps resolvable, with the container itself - version 10.1.2.0.2. I recreated the problem with a simple web application and using Frank Nimphius' simple JAAS login module. Here's a snippet from the redirected out:
    07/07/07 15:37:01 Enter login
    07/07/07 15:37:01 Performing user authentication for user
    07/07/07 15:37:01 User is not authenticated - Password must be "welcome"
    07/07/07 15:37:01 Enter abort
    07/07/07 15:37:01 Authentication Failed
    07/07/07 15:37:01 Authentication: FAILED.
    07/07/07 15:37:01 JAAS-OC4J: Authentication failure for user: user
    07/07/07 15:37:01 Enter login
    07/07/07 15:37:01 Performing user authentication for user
    07/07/07 15:37:01 User is not authenticated - Password must be "welcome"
    07/07/07 15:37:01 Enter abort
    07/07/07 15:37:01 Authentication Failed
    07/07/07 15:37:01 Authentication: FAILED.
    07/07/07 15:37:01 JAAS-OC4J: Authentication failure for user: user
    Has anyone else experienced this problem and found a workaround or setting to prevent this behavior?

    Follow-up: I ran the sample application and LoginModule using oc4j 10.1.3.2 and it appears that the problem is resolved. As moving to 10.1.3.2 might not be an option is there some patch to 10.1.2 to correct the issue?

  • PrepareForDML method called twice

    Have implemented a typical scenario (search - add - edit jspx pages).
    Within one application module, one view object with dynamically created where criterion is used for searching, and another view object fetching at most one row is used for inserting/updating. The second view object is based on a join of an updatable entity (that has as primary key trigger-generated sequence number) and several referenced readable entities that bring descriptions of the codes of the updatable entity. Have implemented descriptions as output fields in the jspx, settign partialTriggers to the id of the code-field of the updatable entity having autoSubmit=true. Have concentrated business validation logic within the prepareForDML() of the updatable entity implementation.
    Under normal conditions, it works fine.
    Under heavy system load in production, or testing with ADF State Management enabled at work environment, I observe the prepareForDML() called twice instead of once.
    Thus, the first time the insert is commited, the second time the validation rollback, and at last the whole transaction is rollbacked.
    When I commented-out all the fields that bring descriptions and set all autoSubmit=false, prepareForDML() was called once.
    However, my problem is that I have to bring the descriptions, that result from pop-up windows so that the end-user can see them after selecting sthg on his/er screen.
    Why is prepareForDML() called twice, and how can I avoid this?

    (2) Can't change the second trigger-assigned field from DBSequence to simply Number since the Entity Object Editor hides the tab Sequence to declare the sequence from which to get this field's value after insert.
    Please see section "6.6.3.8 Trigger-Assigned Primary Key Values from a Database Sequence" of the ADF Developer's Guide for Forms/4GL Developers on the ADF Learning Center at http://www.oracle.com/technology/products/adf/learnadf.html for more information on this. The "Sequence" tab doesn't have any runtime behavior influence. The sequence number is not assigned by ADFBC, it is assigned by your trigger. ADFBC only worries about:
    1) Providing a temporary unique negative key so that new detail rows can have a temporary foreign key value to point at until the transaction commits
    2) Refreshing the entity object's primary key value from the database-trigger assigned sequence number (however, we really don't know how the trigger populated the value) Theoretically, it may or may not have used a database sequence to assign the number. It would work just the same at the ADFBC level)
    3) Refreshing the temporary negative foreign key values in newly-created detail rows for new, composed details of the new composing master row with the definitive primary key value.
    So, you should safely be able to change this to a Number, with its Refresh after Insert property set.
    (3) Create() on entity implementation was always called once at page load, unexpectedly prepareForDML() always carried on two consequtive rows (either the new row to insert twice or the query's first row retrieved to update and afterwards the new row to insert) having State Management enabled.
    If create() is being called only once, then next you should check the value of the "operation" flag that is passed to prepareForDML() to understand if the method is being called for DML_INSERT or DML_UPDATE. Perhaps somehow an existing row is being inadvertently updated so one of the calls to prepareForDML() might be an update? I don't understand how prepareForDML() could fire twice for two new entity objects if the entity object's create() method is only called once. If you have a testcase that illustrates this, please report it to Worldwide Support via Metalink so they can triage and file a bug for you on it.
    (4) Swapping selectInputText components with SelectOneChoice, thus avoiding the partial page rendering, I managed prepareForDML() to function logically so that to have only one row to insert, but again since I have validation code in my entity implementation that throws JBO-exceptions, another problem occured. The first time the end-user receives an exception (e.g. invalid Tax Number), the second time he/she corrects it, the created row instance at prepareForDML() doesn't get updated with the new valid Tax Number, but continues to hold the old value at second run. To remind that if insert is successful the navigation moves on to the update page, otherwise it remains at the same (navigation outcome is null).
    Are you absolutely sure in this case that a second new row is not getting created?

  • POWL-Feeder-Class is called twice by class CL_POWL_MODEL

    Hi all,
    we are running sap erecruiting and there's an application called "dashboard" that uses the POWL-Technologie.
    Now we noticed, that our feeder class is called twice when one particular "query" is called via dashboard:
    once within method "handle_refresh_async" and twice within method "refresh_current" (methods of class "CL_POWL_MODEL").
    As we don't want to have double runtime, does anyone know why the feeder class is called twice and how to prevent it?
    Thanks in advance
    Regards
    CHRIS

    Hi Kris,
    thanks for your reply.
    I think the forum message you suggested does not apply to me. They talk about a refresh after an action.
    In my case once the dashboard-query is requested by the user the feeder-class is called twice before the result is displayed.
    Regards
    CHRIS

Maybe you are looking for