Stateful WDJ application

Hello Experts,
I would appreciate any help or suggestions for the following scenario:
I am developing two WDJ application using NWDS 7.0 SP7.  Both of these applications will be consumed by the Portal and accessed by two different Workset-->Pages. 
The first application will allow the user to populate a "Shopping Cart" with products.  The Second application will allow the user to create a Customer Account.
I would like the Portal user to be able to:
- Populate a shopping cart
- Access the "Customer Application" via the Portal CustomerWorkset-->Page
- Return back to the "Shopping Application" through the ShoppingWorkset-->Page
- See original Shopping Cart items.
Can anyone please help me achieve this?  By default, it appears that when I return to the "Shopping Application", the app is reset.  If possible, I would like to avoid a creating Dictionary or EBJ components.
Thank you for your time.
Kind Regards,
Matt

hi dev ,
you need not enable anything , you have to append sap-wd-showinfo at the end of your application url , i.e after the question mark.
and in the status bar you will get
Browser :7 (Parsing 3,HTML:4, JSBefore :0, JSAfter 0)J2EE :5 Back-end:0 Estimated Response size:6kb
can u paste the URL that ur using and , another one what you can do is instead of calling rfc as the page loads , try to put a button and onclick of that button call the rfc , and see the status bar.
Regards
Govardan Raj S

Similar Messages

  • Pass parameters from JSP Dyn Page to WDJ Application

    Hi,
    I am trying to pass parameters from my JSPDyn Page to WDJ Application.
    I am using NWDS 7.1 EHP1
    My code is :
    function to_WEBDYNHK()
          EPCM.relaxDocumentDomain();
          EPCM.doNavigate
        ('ROLES://pcd:portal_content/Himanshu.Himanshu/TestDynUIApp?DynamicParameter="hkparam%3Dqwertyuio"');
    This method is being called on click of a button.
    hkparam is the parameter in question.
    The JSPDyn page is an iView and the WDJ application is a page and both have been assigned to a role.
    In the properties of the WDJ Page, I have removed DymanicParameter from "Do not Forward These Parameters To Web Dynpro" property.
    However I am getting null as the value of hkparam in my WDJ application.
    The code used is :
    IWDRequest request = WDProtocolAdapter.getProtocolAdapter().getRequestObject();
           String param1= request.getParameter("hkparam");
    What seems to be missing here.
    Please help.
    I went through the documentation on SDN but it does not seem to help.
    TIA,
    Himanshu

    Hi Himanshu,
    Try this code.
    EPCM.doNavigate("ROLES:portal_content/Himanshu.Himanshu/TestDynUIApp?hkparam=Dmypass1123")
    if the parameter is hkparam and the value to be passed is Dmypass1123. You need not change any design time property of the WD page, and WDProtocolAdapter should retrive the parameter.
    Regards,
    Vishweshwara P.K.M.

  • WDJ application deployed but not listed

    Hi experts,
    we've upgraded our AS Java running the Portal and a custom WDJ application from NW7.02 to NW7.40
    I expected some problems with the custom application but not the kind we've ran into. We did not do any recompilation of any kind just to see what would happen. The application actually deploys fine according to the logs (both from telnet as well as from NWDS) but it's nowhere to be found. I've deployed both the .ear as well as the generated .SDA file. In both cases the deployement log show "Success".
    I can see the application in the telnet LIST_APP command (status: started) but it doesn't show in the list of the WDJ applications in the WD Content Administration, nor in the Portal Content section for WDJ applications.
    Any ideas what could have happened?
    Much obliged
    Marcel Rabe

    i think you are wasting time.
    if the app is not migrated how you can expect it to be working....

  • BC4J ApplicationModule - best practice in Stateful web application?

    When writing a stateful web application that uses BC4J framework as the model, what is considered best practice in using the Application Module. Is it okay to store an AM instance in a HttpSession, or should we opt for the features explained in the BC4J Pooling samples, which uses the SessionCookie interface?
    Tips/Tricks/Pitfalls information welcome
    Thx,

    When writing a stateful web application that uses BC4J framework as the model, what is considered best practice in
    using the Application Module. Is it okay to store an AM instance in a HttpSession, or should we opt for the features
    explained in the BC4J Pooling samples, which uses the SessionCookie interface? Best practice is to store the SessionCookie (an ApplicationModule handle) as demonstrated in the pooling sample.
    This will allow many advantages including scalable state management support, timeout support, and
    failover / clustering support.
    Caching the ApplicationModule directly can be dangerous because:
    1. The AM is not serializable which could result in serialization exceptions if the servlet container were distributable.
    2. The AM does not responsd to timeout which could result in memory leaks if the AM is not explicitly returned to the
    pool at the end of each request.
    3. For stateful applications the memory consumed by each AM could be significant. Even if the AM were correctly
    released to the pool upon session timeout it would still have consumed that memory up to that point. Using the
    SessionCookie along with state managed release allows for scalable state management.
    Tips/Tricks/Pitfalls information welcome
    Thx,

  • XI web service WDJ Application

    Hello everyone,
    I am trying out the tutorial -
    How To Develop a Simple Web Service Application Using SAP
    NetWeaver Developer Studio & SAP XI 3.0
    I have done all the steps as mentioned to consume the XI Web service using WDJ. However I am unable to find a way of providing the XI server authentication (username/ pw) to execute the Web service.
    If I try to execute the WebService using tools like Altova XML spy it asks for XI server authentication. I know I must try to provide the same using my WDJ application. Can you please tell me the way of doing this.
    Thanks and Regards,
    Ashwin Bhat

    I found a possible solution:
    Following is mentioned in Riyaz Sayyads Blog.
    /people/riyaz.sayyad/blog/2006/05/08/consuming-xi-web-services-using-web-dynpro-150-part-ii
    XI does not accept unauthenticated requests. Hence, you have to pass the logon credentials along with the request. For this add following lines of code in the executeRequest_CDWS_MI_CDWS_MI( ) method implementation of the Component Controller:
    <!code>  wdContext.currentRequest_CDWS_MI_CDWS_MIElement().modelObject()._setUser(“username");
    <!code>  wdContext.currentRequest_CDWS_MI_CDWS_MIElement().modelObject()._setPassword(“password");
    I will try this out tomorrow at work (at home now). Will keep everyone updated of the results. Thanks.

  • SRM's WDJ application is not taking custom theme

    Hi All,
    I'm working on the Portal branding. We have SRM BP deployed in our portal. I've created custom theme and desktop for the user.
    I'm able to see the portal's different section as per custom theme. WDA/WDJ application's UI which is opening in the content area of portal is also showing as per theme.
    When I'm trying to access the SRM BP portal content which is the collection WDA/WDJ application, inside portal content area showing as per theme. But one WDJ Iview related to MDM catlog data is opening in new window, in that WDJ UI is not taking custom theme color. UI is showing default theme "tradeshow".
    I tried few SAP note(Note 1446099 - Web Dynpro application not displayed in customer theme) to synch the patch of portal and WDJ stylsheet but no luck.
    Pl share your input to solve the issue.
    Thanks!!!
    Deepak

    Hi Shishil,
    Thanks for reply. Yes MDM component is in the same server.
    I've tried below option to fix the issue but no luck:-
    >Note 1446099 - Web Dynpro application not displayed in customer theme
    >Note 1012065 - Technical Web Dynpro configuration in SAP NetWeaver 7.1
    >Note 1000889 - CSS Style Sheet Integration of Web Dynpro and the Portal
    >http://help.sap.com/saphelp_nw70/helpdata/en/1e/535d420447e054e10000000a155106/frameset.htm
    When i tried to set the default Web Dynpro theme by modifying the sap.theme.default property, which is also located in the Propertysheet default folder with the below URL, no success:-
    http://<host>:<port>//irj/portalapps/com.sap.portal.themes.lafservice /themes/portal/sap_chrome.
    Deepak!!!

  • WDJ application perfomance

    Hi,
    I have a problem with custom WDJ application loading.
    Issue is, while user click on a button1 in 'DC1', 'DC2' will be called with RFC data.
    DC2 tooks more than 1 min to load the application where as If I directly execute DC2, it took 5 to 6 sec to load the application.
    After made changes in JCo connection parameters, in DEV application is loading with in 5 seconds but the same changes in Q portal not working.
    The only difference I found here is, DEV WAS portal having single server node where as 'Q' having two server nodes. No changes are identical other than this.
    No log file updated to check.
    Much appreciate your quick reply.
    Thanks,
    dev

    hi dev ,
    you need not enable anything , you have to append sap-wd-showinfo at the end of your application url , i.e after the question mark.
    and in the status bar you will get
    Browser :7 (Parsing 3,HTML:4, JSBefore :0, JSAfter 0)J2EE :5 Back-end:0 Estimated Response size:6kb
    can u paste the URL that ur using and , another one what you can do is instead of calling rfc as the page loads , try to put a button and onclick of that button call the rfc , and see the status bar.
    Regards
    Govardan Raj S

  • Failing to initialize an RFC in WDJ application

    Dear All,
    I have created an RFC enabled function module in $TMP.
    I am trying to invoke this RFC passing a paramter value in my WDJ application.
    The RFC is not even getting initialized and the entire thing ends with a null pointer exception.
    Please help me out.
    Regards,
    Prosenjit.

    Hi,
    Can you print the following messages in catch block and let us know what is the exact exception it is throwing after model execution.
    try
    Zcno_Rfc_Test_Input setNode = new Zcno_Rfc_Test_Input();
    wdContext.nodeZcno_Rfc_Test_Input().bind(setNode);
    wdContext.currentRequestZcno_Rfc_Test_InputElement().modelObject().execute();
    catch(Exception e)
    wdComponentAPI.getMessageManager().reportException("Error Message "+e.getMessage,true);
    wdComponentAPI.getMessageManager().reportException("Error Cause "+e.getCause,true);
    Regards,
    Saleem

  • Implementation Business Objects in CAF and developing WDJ application

    Hi Experts,
    I've read some articles about SAP CE CAF from SDN and I'm making some exercises according those guidence. Right now I have a problem and want to get suggestion from you. 
    As you know, from CE 7.1.1, the CAF support importing the Business Object through EJB model. So when develop a WDJ application using caf, we can using these procedures:
    (Implementing business objects in CAF and developing WebDynpro application)
    1) Create business objects or application service.
    2) Generate EJB Implementation class for business objects or app service.
    3) Create a WebDynpro application
    4) Importing the EJB model using the template.
    5) Create the UI for the app.
    My problem is: In the business object or application serivice, if the operation parameter type is integer, after we generate the EJB class, the type will changed to String. After the WDJ UI is created, the application test failed. The integer field could not passed to the BO successfully.
    If all the parameters type are string in the operation, there's no problem.  But when I use Integer or Date, the EJB class will change the type and the WDJ app will failed.
    I've also test the scenario in CE enviroment including 7.3 also failed. So I'm a little confused which step was wrong. I don't know whether you've seen such problem before, if you could give any suggestion, it'll be very appreciated!

    Hi, Winters.
       I got the same program, try to parse into the type which you want in AS operation.
    BR.
    Louis Huang.

  • Issue with : Stateful BSP Applications: New State Management Option

    Reference:weblog by Thomas Jung -  /people/thomas.jung3/blog/2004/11/09/updated-stateful-bsp-applications-new-state-management-option
    I see a comment by one user to send the complete code... I am not sure what else can be sent   - try it out rather than getting spoon-fed. - getting offline - sorry...
    I had two issues with this ITSM way of session handling.
    First - if you are using an SP42 environment, check CL_BSP_RUNTIME=>ON_SESSION_CMD() to see if CANCEL is defined as an option. If not make sure that you use &sap-sessioncmd=CLOSE" instead of the &sap-sessioncmd=CANCEL" . If CANCEL is not defined , it will give you shortdumps...
    Second - when I closed the window, the session was not terminated. I used onbeforeUnLoad="exitBSPApplication(); instead of onUnLoad="exitBSPApplication(); and it worked fine. Not sure if it has any other issues.
    But now I am facing a new issue... all but one application is not ending... I have no clue on why this is happening.. I am still checking..
    Thanks Thomas, you are the best, as always...

    Thanks for checking the code in your system.
    After some investigation, I found the behavior as explained below.
    If the actual url has any fields passed as parameters, e.g.. /default.htm?var1=a&var2=2 ...
    - if I use CANCEL as the option, a shortdump is created and the session is not closed. if I use CLOSE, Session is terminated and no shortdump happens.
    If the actual url does not have any parameters, e.g.. /default.htm ...
    - CANCEL does the work, but CLOSE does not exit the session.
    In my applications I used request->get_form_fields to see if there are any parameters, and if there are, then I use CLOSE as the option and else, I use CANCEL. So now, the session
    management works beautifully...
    There is a good chance that I am doing something wrong here too.

  • Can any bady send the WDJ application on event handler & plug  parameters?

    Hi,
    Experts,
    I have no idea no WDJ Event handler and plug parameters usage if any bady can send me few WDJ application or scenarios which is based on event handler parameters and plug parameters and method parameters. 
    Thans in advance,
    Shaber Ahmed.

    Hi
    Use this pdf(Example) for event handler
    http://www.sappro.com/downloads/WebDynproJava.pdf
    for plug parameters usage
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/91b6ad90-0201-0010-efa3-9626d2685b6e?overridelayout=true
    Thanks

  • Stateful Web Applications (SOP)

    Hi,
    I have a very simple question, but the answer may not be so simple. 1-a) I was just wondering, how do I build stateful Web Applications using OAS/Oracle 10g? 1-b) Specifically, I want to know what method Oracle provides for re-establishing User/Application context over a stateless HTTP protocol? 1-c) More specifically how do I do this at a pragma level, i.e. using variables, cursors, and procedures? *) What is Oracle's standard operating procedure/best method and practice for accomplishing this?
    Any help is appreciated.

    that will depend on what language you're using to build your application.
    java, pl/sql and all the others have different ways and APIs to work with statefull sessions.

  • Theme for standalone WDJ application

    Dear Experts,
    We are on SAP Portal 7.4, and we have developed a WDJ application using NWDS 7.31.
    I have a requirement where I will like to use the Portal theme SAP_CORBU to the standalone webdynpro application.
    I have tried using the application parameter sap-cssurl=http://<MyHost>:50000/irj/portalapps/com.sap.portal.themes.lafservice/themes/portal/sap_corbu
    But this does not work.
    I have also tried whether this method works for other themes like sap_chrome or not.
    It does not work.
    Request you to please suggest.
    Warm Regards,
    Upendra Agrawal

    SAP_CORBU is supported only if you use Unified Rendering Lightspeed. Set iView parameter Stylesheet to ls and check Supply Portal Stylesheet. See below for how the pre EHP5 Who's Who Web Dynpro Java application looks like with SAP_CORBU. As always you should use SAP_CORBU only with applications that support it. In case of custom application, you will have to adhere to known restrictions with SAP_CORBU. See SAP notes 1681286 and 1852400 for details.

  • Editing Tree UI for MDM Hierarchy tables ina WDJ application

    Hi ,
    We have a requirement where MDM hierarchy tables are displayed using a tree UI in WDJ application.
    However, tree UI is used only for the display purpose. Is there anyway or any other UI available
    using which we can achive edit option in the tree as well?
    Not only this, we are supposed to provide functionality to support moves across the nodes of hierarchy.
    Like PC move or SBU move from one hierarchy to another.
    First of all, can we achive this in WDJ or MDM WebDynpro COnfigurator? If we can, then how? Any links or pointers for this?
    Thank You,
    Apoorva Dave

    You could use a Tree UI element together with a detail view for editing the selected tree node. Or you could use a "TreeTable" which is a Web Dynpro Table with a TreeByNestingTableColumn.

  • Integrating WPC pages in WDJ application

    Friends,
    I have created a WPC page. I need to integrate this page into a WDJ application.
    Please let me know how to do that. I am new to WPC and WDJ.
    Thanks and Regards.

    Hi,
    how exactly do you want to integrate WPC pages in WDJ? They can be integrated by many ways (url, iview etc.).
    best,
    --epexpert

Maybe you are looking for

  • How can i call a tree from a subvi?

    I have a subvi which build a tree and give as an output a reference to it. how can i display that tree on the front panel of a main vi. for instance press a button on the main front panel esecutes the subvi and display the tree on the main front pane

  • Correct way of loading jquery-ui

    Hi there, I am trying to load jquery-ui using yepnope method however it does not seem to work. I have read yepnope is deprecated now. What's the correct way of loading it on the whole stage. I want to play with .draggable/.droppable things. I'm using

  • Can i delete a page from my pdf document?

    can i delete a page from my pdf document?

  • Using iFS as a repository for file upload attachments

    We are creating an auction website where auction owners are allowed to post any number of attachments (*.doc, *.pdf, etc...) to describe the product being auctioned. What is the best way to go about managing these file attachments? The difficulty lie

  • List of Purchase Req

    I have requiremen to list all pending purhcase requisitions based on certain criteria (like Buyer group etc). Can you advise if there is existing FM, could not find one so far. I have tried with BPP* etc. Thanks, Ravi