Weird problem in reading workitem id into java WD application from UWL

Hi All,
We are trying to read the workitem id of the current workitem into the java web dynpro application when executing from UWL. For this we are using the following statement
<b>String workItemID = WDWebContextAdapter. getWebContextAdapter(). getRequestParameter("wi_id");</b>
We are trying to read the workitem and pass this workitem to an RFC which will read various container elements in the workitem and display it in the JWD screen.
Now when i click on the workitem for the first time it is opening the JWD application with all blank values (If i put external debugging i can see in the RFC i can see that the worktiem id remains 00000000).
Now i go back to the UWL and once again click on the same workitem for the second time. This time it opens the form with right container data in all the fields(If i put external debugging i can see that the correct workitem id is getting passed to the RFC)
Now i go back to the UWL and click on the same workitem once again it opens the same blank form  now (Once again in external debugging i can see workitem as 00000000).
This happens alternatively on every click. i,e first time everything is empty (workitem id not passed to RFC) and second time all data retrieved properly (workitem id passed to RFC) and third time again everything is empty and fourth time everything populated properly and so on......
I am not sure why this happens on every alternate click. Has anyone faced such a problem? Please help me out in solving this issue.
We are in NW2004 SP12.
Thanks,
Prasath N

Hi Raja,
Thanks for your reply.
I have tried this code already once in our test systems (NW2004S). It is working fine there. But our client system is on NW2004 and this code does not get recoginized here.
And the latest thing i have found is this works fine if i open this using my Mozilla Firefox browser (version 2.0.0.5). i.e. it opens the form with data on every click. But in older versions of firefox and internet explorer it works only on alternate click. I am wondering if this can happen based on the browser versions!!!
If nothing materializes i am also planning to try to make this Application as an iview and try launching it from UWL (may be there i can pass the workitem id as a dynamic parameter).
Thanks,
Prasath N

Similar Messages

  • How to access custom JAVA webdynpro application from an iPad?

    Hi,
    We are trying to access custom JAVA webdynpro application from an iPad, but nothing is opening up from the iPad browser.
    What can be the possible reasons for this? Any kind of SICF enablement or opening up of ports in the network?
    Any inputs are welcome!!
    TIA,
    Regards
    Deepthi

    Hi,
    it is possible to show Java Web Dynpro applications on a mobile device in general, but the controls and the ui should be optimized for the mobile device.
    Safari devices are not officially supported so far for Mobile Web Dynpro.
    Supported are Windows Mobile devices and Blackberry devices. I also got some good results with Symbian devices.
    You can find more inforamtion on Mobile Always Connected at:
    ht[http://help.sap.com/saphelp_nwce711core/helpdata/en/7d/28fa3e7cb1d861e10000000a114084/content.htm|http://help.sap.com/saphelp_nwce711core/helpdata/en/7d/28fa3e7cb1d861e10000000a114084/content.htm]
    Best Regards,
    Stefan

  • Calling JAVA webdynpro applications from SAP Business workflow

    Experts,
    Is it possible to call JAVA webdynpro application as a task from SAP Business workflow? If yes, please pass on any links to relevant documents.
    Thanks,
    Deepak

    Hello,
    You would probably want to use UWL in the portal. From UWL you can launch tasks from portal, and with proper configuration (for example with the help of transaction SWFVISU) you can easily start web dynpro applications from UWL.
    I suggest you go trough the SAP documentation about UWL. Start for example here:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/39/a1bb5c4c0d4ab4a417e87ef35f1efa/frameset.htm
    Regards,
    Karri

  • How to invoke A CORBA-Java Client Application, from Oracle???

    Hi,
    I have a CORBA-Java Client Application, which takes the input parameters from a Oracle table and calls the CORBA Server, passes these parameters to the C++ Server Application and gets the results back thorugh CORBA.
    My problem is, this java application needs to be invoked, when ever there is a new record in the Oracle table.
    I am not sure if i can use Java Stored Procedures in Oracle in this case, because my app is in Sun JVM and i am using BEA WebLogic Enterprise 5.1 for the CORBA.
    Is there any other way by which i can invoke this app, when a new record is updated in the Oracle table?
    Currently, i have just put a TIMER in my java App, to check the oracle table in every few seconds, to see if there is a new reocrd. If it finds a new record it invokes the corresponding class(corba class), or else just keep sending a messsage that no new record is available.
    The problems i am facing in this method are as follows;
    1. Unnecessarily, the application has to keep on running if there is no request coming frequently.
    2. When there is a new record found, the Corba Class is called and the whole process (till it gets the result back from the server) takes about 20 - 30 secs. But within this period, if there is another record coming into Oracle table, my timer class doesnt invoke another corba class....(though i am using multithreading by using the RemidTask method in the timer.schedule.
    (timer.schedule(new RemindTask(),10,5*1000);)
    3. Also, if during the first call, there is some error, then the whole process exits, instead of another process running parallely (when a second new record is found).
    So how does this timer class act like a multithreading process?
    Well, i hope i am not confusing....Please let me know if anyone wants bit more elaboration on this.
    It would be really helpful if someone can suggest some answer to my problem.
    Thanks in advance.

    Thank you very much Keith.
    Though i am really getting a hope of solving this problem, from you answer, i am actually not 100% sure if i understood your reply properly.
    First of all, about
    1. "use the update stored procedure to place the updated record (or unique index) onto an Oracle Application Queue."
    -- Why do i need to put the record in the AQ. (Frankly speaking, at this moment i dont have much idea about AQ, probably i can learn more about it from oracle technet site? Or would u suggest anything else?)
    Then,
    2."Your app then waits on this queue and for each new message, consumes it, gets the data required from the AQ load (e.g the index and or record), and fires off the CORBA class"
    -- How does my application stay in the queue? and gets the data from the queue?
    Of course, as far as i understand, i am going through the same principle...keeping on running a timer class, which keeps on checking the table for a new record, and when it finds, it calls the CORBA class.
    Of course, i feel there should be a difference in running the timer continuosly and staying in queue. However i am totally unaware, how can i make my java app to wait in the queue and waits for a new record?
    Can you please elaborate your answer a bit more, because i dont know about the AQ, that you have mentioned.
    Thank you very much in advance for your time. But please know that it will be of great help to me and hence will be higly appreciated.
    Regards,
    Subhasree.

  • How to get workitem ID parameter in BSP application in UWL?

    Hello All,
    okay, it's been a long day and i stuck with this seemingly simple problem - how to get a workitem id in my BSP application when calling from UWL.
    Points are guaranteed to all who post an answer.
    i got MVC BSP iview is configured to be called for my task in SWFVISU, all re-registered and seem fine. Correct BSP is being called when i execute the workitem from UWL, but wi_id is not passed there.
    What am i missing?
    Thanks!

    Hi Serge
    How you solved it .I have same issue  please let me know.
    Thanks

  • How to start/stop/restart a java desktop application from remote machine

    Hi,
    I want to know is there a way in java where i can start/stop/restart a java desktop application running on a remote machine through another java desktop application?
    For e.g i have an Admin console which monitors its clients based on socket communication, all of them are java desktop applications. I want to also give start/stop remote clients through my Admin console.
    I am thinking in terms of windows system service which can start/restart/stop my clients on request of Admin console, but how can i call this system service remotely?
    How can i do it?

    I got it. its about connection...

  • HT1420 hey guys i have a problem with my pc i buy an iphone application from some shop around my area and when i was trayin to install to my iphone using laptop it seys autherized this computer i autherized my computer a lot of time but i cant stell insta

    i have a littel problem i buy some iphone application from some shop around my area and i try to install in my iphone with laptop but i cant its seys autherize this computer and i autherized my computer a lot of time but i cant steel install any aplication into my iphone so guys please help me.thank u

    Well, it seems waiting is not my strong suit..! I renamed a javascript file called recovery to sessionstore. This file was in the folder sessionstore-backups I had copied from mozilla 3 days ago, when my tabs were still in place. I replaced the sessionstore in mozilla's default folder with the renamed file and then started mozilla. And the tabs reappeared as they were 3 days ago!
    So there goes the tab problem. But again when I started mozilla the window saying "a script has stopped responding" appeared, this time the script being: chrome//browser/contenttabbrowser.xml2542
    If someone knows how to fix this and make firefox launch normally, please reply! Thank you

  • How to start a Java ADF application from Forms 10g

    Hi,
    I have a Java ADF application deployed to the OAS.
    How can I start the application from Forms 10g?

    By using the web.show_document forms built-in procedure... passing the web address of your ADF app as parameter.....
    Greetings...
    Sim

  • Embed Adobe Reader with OLE into Java client

    Hi all,
    I am trying to integrate Adobe Reader 9.3 using OLE into an Eclipse base Java client using SWT.
    However the basic initialization of the OLE Control fails with this error:
    Unable to open type library for AcroPDF.PDF.1
    org.eclipse.swt.SWTException: Failed to create Ole Client. result = -2147221164
        at org.eclipse.swt.ole.win32.OLE.error(OLE.java:302)
        at org.eclipse.swt.ole.win32.OleControlSite.<init>(OleControlSite.java:142)
    Here is the code I used:
    String progID = "AcroPDF.PDF.1";
    Shell shell = new Shell();
    OleFrame frame = new OleFrame(shell, SWT.NONE);
    OleControlSite site = null;
    OleAutomation auto = null;
    try {
        site = new OleControlSite(frame, SWT.NONE, progID);
        auto = new OleAutomation(site);
    } catch (SWTException e) {
            System.err.println("Unable to open type library for " + progID);
        e.printStackTrace();
        return;
    I can see the key "AcroPDF.PDF.1" in my registry...
    Does anybody know what I am missing here?
    Thanks!
    Paul

    I'd suggest posting to the Acrobat SDK forum. You may need a license to do what you want.

  • Problem while reading special characters in java

    Hi i am faving the follwing xml.
    <ns1:dc_application_bullets>
    <w:p wsp:rsidR="004E4084" wsp:rsidRPr="007024E6" wsp:rsidRDefault="000D5B97" wsp:rsidP="007024E6">
    <w:r>
    <w:rPr>
    <w:rFonts w:ascii="Arial Unicode MS" w:fareast="Arial Unicode MS" w:h-ansi="Arial Unicode MS" w:cs="Arial Unicode MS" w:hint="fareast" />
    <wx:font wx:val="Arial Unicode MS" />
    <w:lang />
    </w:rPr>
    <w:t>������</w:t>
    </w:r>
    </w:p>
    </ns1:dc_application_bullets>
    no i ma trying to parse this XML using java program and jdom parser. when i try to read the special chacters and print then i ma getting ?? on the console.
    how can i print on to the console as the one what they look.
    any help is appreciated.

    please any bosy throw some light on this.You first. Do you think we're mindreaders? Reading and printing code please.

  • Entry points for integrating Openoffice writer into Java swing application

    I googled the web and also took a look in below 2 web sites, just seems it is very difficult to get an entry point for me to try my frist application with open office writer integrated with my swing application.
    http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide
    http://api.openoffice.org/
    What my question is:
    1. Where can I get the completed jar files for using the open office writer api for my java application?
    2. Is there any step by step practical example for using the api? It seems that the above links are quite messy and difficult to find an entry point to get a start, but just contain many segments separated through out the web site.
    Thanks much for any suggestion.

    Information regarding OOo is not on Sun websites, or in these forums. There may be 3rd-party sites that have some info regarding OOo use.

  • How to call Java Webdynpro from UWL

    Hi All,
    How to Call the Java Webdynpro Application from UWL by task?
    I Know about the TX - SWFVISU, briefly explained about the parameters to be maintanied for approval task from workflow.
    What all the necessary parameters (settings) to be maintained while Developing Java WD Application?
    Thanks in advacne
    Ganesh

    Hi Ganesh,
    See if the following threads help:
    /thread/623279 [original link is broken]
    Webdynpro to UWL
    Bye
    Ankur
    xxxxxx (please read forum rules)
    Edited by: Armin Reichert on Jan 17, 2008 10:19 AM

  • How to read some records from a text file into java(not all records)

    hello,
    how to read text files into java. i need only few records from the text file not all records at a time.
    If any one knows plz reply me
    my id is [email protected]

    this snipet reads a text file line by line from line 1 to 3
    try {
                  FileReader fr = new FileReader(directory);
                  BufferedReader br = new BufferedReader(fr);
                  int counter = 0;
                  while ((dbconn = br.readLine()) != null) {
                      switch(counter){
                          case 0:
                            status = dbconn;
                          break;
                          case 1:
                            userName = dbconn;
                          break;
                          case 2:
                            apword = dbconn;
                          break;
                      counter++;
                  br.close();
        }catch(IOException e){
        }

  • Problem in Reading Mail Attachement

    I'm facing a problem while reading mail attachments. Java-mail returns null disposition for the below message,but this message has attachment javamail is not considering the mail attachment .I'm using java-mail 1.3.Can anybody help me to solve this problem ?
    Return-Path: prvs=00548bd8bd=[email protected]
    Received: from PRODTM1.TRUST.UASC.AO ([172.28.2.143])
         by trust.uasc.net
         ; Mon, 14 Mar 2011 11:07:04 +0000
    X-TM-IMSS-Message-ID:<[email protected]>
    Received: from gw.northport.com.my ([202.188.31.130]) by trust.uasc.net ([172.28.2.144])
    with ESMTP (TREND IMSS SMTP Service 7.1) id 45727fb90003495a ; Mon, 14 Mar 2011 11:06:52 +0000
    Received: from [192.1.10.13] (port=59768 helo=nmbsmtp-01.northport.com.my)
         by gw.northport.com.my with esmtp (Exim 4.69)
         (envelope-from <[email protected]>)
         id 1Pz5bs-0003EO-0A; Mon, 14 Mar 2011 19:06:48 +0800
    X-CTCH-RefID: str=0001.0A090205.4D7DF6C8.0116,ss=1,fgs=0
    Date: Mon, 14 Mar 2011 19:05:50 +0800 (SST)
    From: AMTedi-Container Svcs <[email protected]>
    Message-ID: <[email protected]>
    Mime-Version: 1.0
    To: [email protected], [email protected],
    [email protected], [email protected]
    Subject: CODCT1UAS
    Content-Type: multipart/mixed; boundary="-"
    X-TM-AS-Product-Ver: IMSS-7.1.0.1394-6.5.0.1024-18010.003
    X-TM-AS-Result: No--4.942-5.0-31-1
    X-imss-scan-details: No--4.942-5.0-31-1

    If you were assuming that every message would have a valid body part
    and that they would tell you definitively which parts you should consider to
    be "attachments", ya, that won't work. The disposition is a hint at best.
    It can be wrong. It might not even be there.

  • Importing XML into Java.  Help needed Please!!!

    Hi,
    I have downloaded j2sdk1.4.1_05 and want to configure it to import XML files into a DOM in Java. I am having trouble doing this and need help. I read that version 1.4 support JAXP 1.1 but I am having trouble finding the JAXP-api.jar file. It says to put all the other Jar files into a folder and leave the JAXP-api.jar.
    Could you please tell me how to set up Java so that I can import an XML file. I also downloaded JAXP 1.2. But there seems to be no installer.
    Thanx John

    You can learn about reading xml in java by reading the J2EE tutorial at
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/
    Here is sample program to read XML file into a DOM taken from this tutorial
    (http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXPXSLT4.html)
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.FactoryConfigurationError;
    import javax.xml.parsers.ParserConfigurationException;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import org.w3c.dom.Document;
    import org.w3c.dom.DOMException;
    import java.io.*;
    public class TransformationApp
      static Document document;
      public static void main(String argv[])
        if (argv.length != 1) {
          System.err.println (
            "Usage: java TransformationApp filename");
          System.exit (1);
        DocumentBuilderFactory factory =
          DocumentBuilderFactory.newInstance();
        //factory.setNamespaceAware(true);
        //factory.setValidating(true);
        try {
          File f = new File(argv[0]);
          DocumentBuilder builder =
            factory.newDocumentBuilder();
          document = builder.parse(f);
        } catch (SAXParseException spe) {
          // Error generated by the parser
          System.out.println("\n** Parsing error"
            + ", line " + spe.getLineNumber()
            + ", uri " + spe.getSystemId());
          System.out.println("  " + spe.getMessage() );
          // Use the contained exception, if any
          Exception x = spe;
          if (spe.getException() != null)
            x = spe.getException();
          x.printStackTrace();
        } catch (SAXException sxe) {
          // Error generated by this application
          // (or a parser-initialization error)
          Exception x = sxe;
          if (sxe.getException() != null)
            x = sxe.getException();
          x.printStackTrace();
        } catch (ParserConfigurationException pce) {
          // Parser with specified options can't be built
          pce.printStackTrace();
        } catch (IOException ioe) {
          // I/O error
          ioe.printStackTrace();
      } // main
    } If you have java 1.4 sdk installed everything should compile and run. Separate
    JAXP package is nor required - JAXP is included in rt.jar in java-home-directory/jre/lib.

Maybe you are looking for

  • Touch Screen No Longer Works After Windows 8 Install on X220 Tablet

    I was previously running Windows 8 Preview and did not have any problems with the touch screen.  I have tried two separate clean installs of Windows 8 Pro, and the only thing that will not work is the touch screen with my finger.  The pen still works

  • Popup printing message when switching users

    I'm giving my old Air to my brother, so I set up a new account for him.  When I log in to the new account, I get the following message: Failed to listen for incoming Popup Jobs. You will not be able to use Popup printing for the duration of this sess

  • A problem for Finder

    I don't know what is wrong with it. I click the Applications on the left side. The Finder closed by itself.  Before it was open again. Now it doesn't. I need help to fix it. Thank you guys.

  • Abap Data flow error in BODS

    Hi All, I have started to run a simple abap data flow in BODS so the data flow has been designed and it is executed then the below error is thrown. It seems to be some abap drivers issues , not the design flow. so anyone please suggest the actual iss

  • Mapviewer not rendering color regions properly after obiee upgrade

    Hello! After upgrade my OBIEE installation from 11.1.1.5 to 11.1.1.6.2 all dashboads with GEO maps stop rendering properly. The color layer fails when you move the mouse over states or country. The same dashboads map works fine on 11.1.1.5 version. W