Data connection between Java Webdynpro - Flex Flash Island

Hi,
I'm developing a Java Webdynpro with connection to a Flex Flash Island. I'm using Flex 3.2.
I've already set up the connection from WDJ to Flex, by using Events and the FlashIsland.fireEvent method, this all works fine. Now I'm trying to update a value in WDJ, to be updated in Flex. This gives the following error:
Error: Error #1023: Stack overflow occurred.
     at Function/http://adobe.com/AS3/2006/builtin::apply()
     at mx.binding::Watcher/wrapUpdate()
     at mx.binding::PropertyWatcher/eventHandler()
     at flash.events::EventDispatcher/dispatchEventFunction()
     at flash.events::EventDispatcher/dispatchEvent()
     at mx.core::UIComponent/dispatchEvent()
     at UWLApplication/set opentask_updated()
     at MethodInfo-4234()
     at Function/http://adobe.com/AS3/2006/builtin::call()
     at sap.core.wd.context::WDContextListener/execute()
     at sap.core.wd.context::WDContext/notifyListeners()
     at sap.core.wd.context::WDContext/_set()
     at sap.core.wd.context::WDContext/set()
     at sap.wd.island::WDIsland/storeProperty()
     at sap.wd.island::WDIsland/onUpdateProperty()
     at mx.binding.utils::ChangeWatcher/wrapHandler()
     at flash.events::EventDispatcher/dispatchEventFunction()
     at flash.events::EventDispatcher/dispatchEvent()
     at mx.core::UIComponent/dispatchEvent()
     at UWLApplication/set opentask_updated()
     at MethodInfo-4234()
This is especially strange, cause before I had a refresh button in which I updated my entire item collection. Now, I have added this field and suddenly I get this error !
Does anybody has any idea what this could mean? Any help would be much appreciated ...
My field in Flex:
\[Bindable\]
public var opentask_updated:Number;
<mx:Text id="opentask_updated_text" text="{opentask_updated.toString()}" />
My adaptions in WDJ:
public void getInbox( )  {
       wdContext.currentInboxElement().setOpentask_updated(0);
public void wdDoInit()  {
       getInbox();

Solved!
It appeared to be a "long" parameter and I was trying to put it in a "Number" parameter in Flex (because there is no long in Flex)
When I changed both to String, it worked!

Similar Messages

  • Build the connection between Arduino and Flex 4.0 via JSON

    Hi,
    I try to make a connection between arduino and Flex 4.0, I included the JSON lib and also as3corelib.swc to Flex. When I run the Flex file the connection between PC to arduino is working (I can see it in SERPROXY window) and also I don't have any problems in Flex window, I added the SWF file of Flex to the list at //http://www.macromedia.com/support/documentation/tr/flashplayer/help/settings_manager04.htm l, Bu the reading result is not shows in the SWF,    I couldn't understand why !, thanks for help
    here the code
    package
    import com.adobe.serialization.json.JSON;
    import flash.display.Sprite;
    import flash.errors.*;
    import flash.events.*;
    import flash.net.Socket;
    import flash.text.TextField;
    public class deneme extends Sprite
    {private var magnetic:Socket=new Socket("localhost",5331);
      private var magneticValue:Number=0;
      private var distance:Number;
      private var newText:TextField=new TextField();
      private var listText:TextField=new TextField();
      private var MNx:Number;
      private var MNy:Number;
      private var MNz:Number;
      private var d:Object={"x":null, "y":null, "z":null};
      public function deneme()
       socketDataHandler();
      private function socketDataHandler():void
       newText.text=magnetic.readUTFBytes(magnetic.bytesAvailable);
       d= JSON.decode(newText.text);
       MNx=d["x"];
       MNy=d["y"];
       MNz=d["z"];
       listText.x=10;
       listText.y=10;
       listText.width=600;
       listText.height=100;
       listText.text=newText.text;
       addChild(newText);

    package
    {    import com.adobe.serialization.json.JSON;
    import flash.display.Sprite;
    import flash.errors.*;
    import flash.events.*;
    import flash.net.Socket;
    import flash.text.TextField;
    import mx.rpc.events.ResultEvent;
        public class deneme2 extends Sprite
            private var newText:TextField=new TextField();
            private var listText:TextField=new TextField()
            private var magnetic:Socket=new Socket("localhost",5331);
            private var MNx:Number;
            private var MNy:Number;
            private var MNz:Number;
            private var d:Object={"x":null, "y":null, "z":null};
            public function deneme2()
                 magnetic.addEventListener(ProgressEvent.SOCKET_DATA,getDATA);
             private function getDATA(event:ProgressEvent):void
                newText.text=magnetic.readUTFBytes(magnetic.bytesAvailable);
                d= JSON.decode(newText.text);
                MNx=d["x"];
                MNy=d["y"];
                MNz=d["z"];
                listText.x=10;
                listText.y=10;
                listText.width=600;
                listText.height=100;
                listText.text="X="+String(MNx)+" Y="+String(MNy)+" Z="+String(MNz);
                addChild(listText);

  • Error while creating connection between Java and ABAP

    Experts
    I am getting the following error message when I am trying to test the connection between JAVA and ABAP systems.
    1. The system ID is valid
    2. The system was retrieved.
    3. The system object represents an SAP system
    4. The following parameters are valid: Web AS Protocol (http) Web AS Host Name (s09f71v06.svr.bankone.net:8100)
    5. The host name s09f71v06.svr.bankone.net was resolved successfully.
    6. The server s09f71v06.svr.bankone.net *could not be pinged* successfully.
    I have JAVA and ABAP on the same system. I am trying to establish a connection. I have checked all the settings and they looks fine. I have also pinged from other system to this server and the Ping works fine.
    Please do let m eknow where do I need to check for the errros or logs for the above error message.
    Appreciate your quick help.
    Mahesh

    Check the relevant services are test are active on the Backend system through SICF trransaction.
    Also make sure that default icm services are running.See note 517484.
    More important the connector test in the portal system should work properly,recheck the WAS path etc are correct.
    Regards
    Ajay

  • Socket connection between Java and C

    I want to establish socket connection between Java client and C server (on Unix). Can anybody tell how to do it? Will the socket created in client be available in server. I tried out but there was no response from the server.

    We too can't connect the daemon server written by "c". The phenomena is below.
    << Execution of this Question1.class >> ---------------------------------------
    [kazuyuki@CryptOne tmp]$ java Question1 E 1.2.3.4 MFrame.java 195.211.1.1 15021
    << Output message >> ----------------------------------------------------------
    Quetion1 : flg_ = E
    Quetion1 : key_ = 1.2.3.4
    Quetion1 : fn_ = MFrame.java
    Quetion1 : adr_ = CryptOne.localhost/195.211.1.1
    Quetion1 : port_ = 15021
    java.net.ConnectException: Connection refused
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
         at java.net.Socket.<init>(Socket.java:268)
         at java.net.Socket.<init>(Socket.java:122)
         at Question1.UPLOAD(Question1.java:65)
         at Question1.main(Question1.java:155)
    << Question >> ----------------------------------------------------------------
    Why the event "java.net.ConnectException: Connection refused" has occured ?
    The server to connect from Question1 can accept the connection request from
    the client program coded by "c" program. We have written down the daemon server
    program by "c" code tcp/ip socket functions (socket, bind, listen, accept).
    Security manager admits the access from this Question1.class, we have checked.
    Would you like please answer this Connction refuse occurrence ?
                                                                     2002.05.18 11:50:00.0(JST)
                                                                     K.Masuda
    << Java client code>> -------------------------------------------------
         (c)Copyright     All rights reserved.
              K.Masuda     2002.05.18
                   << Question1.java >>
    import     java.lang.String;
    import     java.io.InputStream;
    import     java.io.OutputStream;
    import     java.io.DataInputStream;
    import     java.io.DataOutputStream;
    import     java.io.FileInputStream;
    import     java.io.FileOutputStream;
    import     java.io.IOException;
    import     java.io.FileNotFoundException;
    import     java.net.Socket;
    import     java.net.InetAddress;
    import     java.net.UnknownHostException;
    import     java.net.ConnectException;
    import     java.net.NoRouteToHostException;
    class Question1 {
         char               flg_;
         String               key_;
         String               fn_;
         InetAddress          adr_;
         int                    port_;
         Socket               sock_;
         Question1(
              char          flg,
              String          key,
              String          fn,
              String          adr,
              int               port
              flg_     = flg;     
              key_     = key;
              fn_          = fn;
              try{
                   adr_     = InetAddress.getByName( adr );
              catch( UnknownHostException e ){
                   e.printStackTrace();
              port_     = port;
    System.out.println( "Quetion1 : flg_ = " + flg_ );
    System.out.println( "Quetion1 : key_ = " + key_ );
    System.out.println( "Quetion1 : fn_ = " + fn_ );
    System.out.println( "Quetion1 : adr_ = " + adr_ );
    System.out.println( "Quetion1 : port_ = " + port_ );
         public void UPLOAD(
              try{
                   sock_     = new Socket( adr_, port_ );
                   UpLoad();
                   DnLoad();
                   sock_.close();
              catch( UnknownHostException e ){
                   e.printStackTrace();
              catch( ConnectException e ){
                   e.printStackTrace();
              catch( NoRouteToHostException e ){
                   e.printStackTrace();
              catch( IOException e ){
                   e.printStackTrace();
         public void UpLoad(
              byte[]                         buf          = new byte[ 512 ];
              int                              rlen;
              int                              wlen;
              try {
                   OutputStream          sos          = sock_.getOutputStream();
                   FileInputStream          fis          = new FileInputStream( fn_ );
                   DataInputStream          dis          = new DataInputStream( fis );
                   DataOutputStream     dos          = new DataOutputStream( sos );
                   while( ( rlen =     dis.read( buf, 0, buf.length ) ) >= 0 ){
                        dos.write( buf, 0, rlen );
                   dis.close();
                   dos.close();
                   fis.close();
                   sos.close();
              catch( IOException e ){
                   e.printStackTrace();
         public void DnLoad(
              byte[]                         buf          = new byte[ 512 ];
              int                              rlen;
              int                              wlen;
              try {
                   InputStream               sis          = sock_.getInputStream();
                   FileOutputStream     fos          = new FileOutputStream( fn_ + ".cry" );
                   DataInputStream          dis          = new DataInputStream( sis );
                   DataOutputStream     dos          = new DataOutputStream( fos );
                   while( ( rlen =     dis.read( buf, 0, buf.length ) ) >= 0 ){
                        dos.write( buf, 0, rlen );
                   dis.close();
                   dos.close();
                   fos.close();
                   sis.close();
              catch( IOException e ){
                   e.printStackTrace();
         public static void main(
              String[] args
              char[]     chrs     = ( new String( args[ 0 ] ) ).toCharArray();
              Question1     clnt     = new Question1(
                                                                     // E or D
                                            chrs[ 0 ],
                                            args[ 1 ],               // key string
                                            args[ 2 ],               // file to be processed
                                            args[ 3 ],               // IP address
                                                                     // port
                                            Integer.parseInt( args[ 4 ] )
              clnt.UPLOAD();
    }

  • Server/Data Push Form Java to Flex.

    Hi All ,
       In my application ( Flex3 + Java Struts) i am using RPC (HttpService) calls only . Recently i read the article about
      DATA PUSH FROM JAVA TO FLEX WITHOUT PAGE REFRESHING USING SERVER PUSH.
    Can anybody tell me more about this , how to use this in my application.
    Thanks in Advance....

    Did not worked that much with those but I know there are some embedded example
    that comes along with the blazeDS download.
    The DB is embedded but you can have a rough idea. alsoe there are some
    turtorials and odcs for both of them, Google is your friend. Also google for
    James Ward's blog and Christophe Coenraets, they have posts about this.
    C

  • Fire plugs or code in webdynpro from flash island

    Hello, I have a simple question, is there a way to fire plugs, events or code inside the webdynpro if I have a button in a flash island ?
    Edited by: Isaac Mena on Aug 20, 2009 6:34 PM

    Hi,
    with the help of these things you can fire a plug or event.
    Adobe Flex Builder 2 or 3
    Adobe Flash Player 9 Update 3
    Flash Island Flex library
    A Web Dynpro component with a FlashIsland UI element
    and the procedure as follows
    1.open the view and, select the RootElement in the Outline view and choose FlashIsland from the context menu entry Replace With
    2.Select the RootElement and enter the name of your  component to the property swfFile, for example: myFlash.swf. This file has to be stored in the mime repository. The relevant path is: <Web Dynpro DC name> -->Resources -->src --> mimes --> Components --> component name>.
    3.Select the RootElement and choose Insert Event from the context menu. Specify the name according to the Flash/Flex componentu2019s event name. Specify an action for the onAction event as described in Creating Actions
    Regards
    Manohar

  • Crystal Reports data connection using Java beans

    Hi
    My name is Bach Ong, i'm currently perform re-configuring Crystal reports 2008 to connect via
    Java bean to Jboss server, this uses look up service on JBoss server. The connection is using Connect
    look up using the properties:
    java.naming.provider.url=jnp://emgsydapp121:10499
    java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
    java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
    for file CRConfig.xml i put as follows:
    <JDBCURL></JDBCURL>
    <JDBCClassName></JDBCClassName>
    <JDBCUserName></JDBCUserName>
    <JNDIURL>jnp://emgsydapp121:10499</JNDIURL>
    <JNDIConnectionFactory>org.jnp.interfaces.NamingContextFactor
    y</JNDIConnectionFactory>
    <JNDIInitContext>/</JNDIInitContext>
    <JNDIUserName></JNDIUserName>
    Can you advise us if this step is correct, and is there any
    documentation that can guide us to right direction.
    for Java testing in Eclipse using remote call class it is working suing the following code:
            Properties p = new Properties();
            p.put(Context.INITIAL_CONTEXT_FACTORY,
            "org.jnp.interfaces.NamingContextFactory");
            p.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces");
            p.put(Context.PROVIDER_URL, "jnp://emgsydapp121:10499");
             InitialContext ctx = new InitialContext(p);
      Date asAtDate = CrystalUtils.convertToDate("2014-01-01", CrystalUtils.relativeToToday(0), false);
         String asxCode = "BHP";
         ClosingPricesReportRequest criteria = new ClosingPricesReportRequest(asAtDate, asxCode);
         InitialContext context = new InitialContext(p);
         ClosingPricesReportService ejb = (ClosingPricesReportService) context.lookup(ClosingPricesReportService.REMOTE_JNDI);
         ClosingPricesReport report = ejb.createMTMClosingPriceReport(criteria);
         System.out.println(report.getClosingPrices()[0].getClosingPrice());
         testval = report.getClosingPrices()[0].getClosingPrice().toString();
         System.out.println(testval);
    when i run the tes code the results as follow:
    10:49:45,244 DEBUG [SecurityAssociation ] Using ThreadLocal: false
    10:49:45,338 DEBUG [MicroSocketClientInvoker ] SocketClientInvoker[709446e4, socket://emgsydapp121:10473] constructed
    10:49:45,338 DEBUG [MicroRemoteClientInvoker ] SocketClientInvoker[709446e4, socket://emgsydapp121:10473] connecting
    10:49:45,338 DEBUG [MicroSocketClientInvoker ] Creating semaphore with size 50
    10:49:45,338 DEBUG [MicroRemoteClientInvoker ] SocketClientInvoker[709446e4, socket://emgsydapp121:10473] connected
    10:49:45,369 DEBUG [ClientSocketWrapper ] reset timeout: 0
    10:49:45,650 DEBUG [InvokerRegistry ] removed SocketClientInvoker[709446e4, socket://emgsydapp121:10473] from registry
    10:49:45,650 DEBUG [MicroSocketClientInvoker ] SocketClientInvoker[709446e4, socket://emgsydapp121:10473] disconnecting ...
    10:49:45,650 DEBUG [SocketWrapper ] ClientSocketWrapper[Socket[addr=/10.137.2.40,port=10473,localport=64150].2cba5bdb] closing
    37.99000000000000198951966012828052043914794921875
    37.99000000000000198951966012828052043914794921875
    Can anyone assist me in convert the above settings to get access by Crystal reports.
    My attemp current are below:
    public class CFDClosingPricesRpt extends CrystalReport {    
        //Constructor
        public CFDClosingPricesRpt(){
            super(ClosingPriceBean.INSTANCE);
         * Returns the ResultSet for this report to Crystal.
         * @param asxCode
         * @param asAtDateString
         * @return
    public ResultSet getNewReport(String asxCode, String asAtDateString) {                     
         try {
             Properties p = new Properties();
             p.put(Context.INITIAL_CONTEXT_FACTORY,
             "org.jnp.interfaces.NamingContextFactory");
             p.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces");
             p.put(Context.PROVIDER_URL, "jnp://emgsydapp121:10499");
             //InitialContext ctx = new InitialContext(p);
             clearCachedReportBeans();     
       Date asAtDate = CrystalUtils.convertToDate("2013-01-01", CrystalUtils.relativeToToday(0), false);
          asxCode = "BHP";
          ClosingPricesReportRequest criteria = new ClosingPricesReportRequest(asAtDate, asxCode);
          //ClosingPricesReportService ejb = (ClosingPricesReportService) ctx.lookup(ClosingPricesReportService.REMOTE_JNDI);
          ClosingPricesReportService ejb = (ClosingPricesReportService) ServiceLocator.getInstance().getService(ClosingPricesReportService.REMOTE_JNDI);           
          ClosingPricesReport report = ejb.createClosingPriceReport(criteria);
          // assemble Crystal-friendly DTO
          Collection closingPrices = Arrays.asList(report.getClosingPrices());
          for (Iterator iter = closingPrices.iterator(); iter.hasNext();) {
                    MBLXClosingPrice cp = (MBLXClosingPrice) iter.next();               
                    if (cp==null) continue;               
                    addReportBean(new ClosingPriceBean( report.getSuppliedDate(),
                                cp.getClosingPrice(),
                                cp.getAsxCode()));
      } catch (Throwable x) {     
          saveErrorMessage(x);
      return getAsResultSet();             
    Thanks
    Bach Ong

    Hi Don Thanks for the reply.
    I've was able to connect via Java beans and JNDI. But this one is going the JNDI of JBoss sever, which the JNDI already configure and working for Crystal reports v10.
    Bach

  • JCo connection between java and ABAP

    Hi,
    Any pointers for some good material on establishing JCo connection between ABAP and Java to execute ABAP FMs.
    Thanks and Regards
    Arpita Saxena

    Please find following link for your reference.
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/85a483cb-0d01-0010-2990-c5168f01ce8a?quicklink=index&overridelayout=true]

  • Passing context data back to Java Webdynpro

    Hi All,
    I have created Java Webdynpro's with Adobe Interactive Forms in them. I use ActiveX not Native. Yesterday passing data from the AIF to Webdynpro for Java was working like this (it didn't work in Native mode) today it doesn't. Neither does pressing any buttons. I'm not sure what has been installed on my system, it could be Adobe Read 9.0. Now creating the forms using the livecycle designer in de Netweaver developer studio is also very unstable (unworkable)
    My main question is: how can I pass the data from the interactive form to webdynpro for java (without using the submit button, as I want to have such buttons on my webdynpro and not in my forms.)
    Jeschael

    Jeschael,
    Try creating a new project and repeat the same steps. Do you get error there as well.
    Also try setting some context in WD, assign it to a Text Field of Adobe and see if you get the value.
    For eg: Let's assume you created a Context called "Name" then set it
    wdContext.currentContextElement.setName("Test");
    Now try to assign this to Text Field, see if you get the value in Adobe form by writing this code in the initialize event of Text Field in Adobe LiveCycle Designer in JavaSript.
    xfa.host.messageBox("Value is :"+TextField1.rawValue);
    Chintan

  • Date difference between Java and db2

    Hello,
    I am quite puzzled. I have the following environment:
    -iseries DB2
    -Jdk 1.5
    -Hibernate 3 (jpa)
    -Tomcat 5.5
    When I have "31st December 2006" in the database, the webapp displays "30th December 2006" and so on.
    I don't understand this one-day difference?????
    Does anyone has some clue of why I get this?
    Thanks in advance,
    Julien.
    PS: The fields are typed java.util.Date

    When I have "31st December 2006" in the database, the
    webapp displays "30th December 2006" and so on.
    I don't understand this one-day difference?????
    Does anyone has some clue of why I get this?Because there is a lot of code between 'database' and 'webapp displays'.
    That of course also assumes that you really do have the date that you think in the database. (Not knowing db2 I can only note that most other databases do not store dates. They store timestampes, which is different.)

  • Connection between 2 webdynpro inputfields

    i'm making a webdynpro with 2 inputfields of solution type and solutionsubtype.
    this is the thing i want: when i select QM at the inputfield of the solution type then it is only possible to select solution subtypes that are only are available with the value QM.
    and when i select at subtypes QM 01 that the type will be filled automaticly with QM.
    could anybody help me with it

    even with an OnEnter event it's possible and this is the coding:
      DATA lo_nd_input TYPE REF TO if_wd_context_node.
      DATA lo_el_input TYPE REF TO if_wd_context_element.
      DATA ls_input TYPE wd_this->element_input.
      lo_nd_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
      lo_el_input = lo_nd_input->get_element(  ).
      lo_el_input->get_static_attributes(
        IMPORTING
          static_attributes = ls_input ).
      ls_input-field2 = ls_input-field1.   "copy the values
    you can write your own logic to get the values for field2 based on the value in field1
      lo_el_input->set_static_attributes(
        EXPORTING
          static_attributes = ls_input ).
    so my question is answerd.
    thanks for all your replies

  • Rtmfp connection between content running on flash player and air for mobile

    HI, I've been developing an app for some time that makes use of a secondary application as a remote controller.
    Until AIR3.5 this worked smoothly through RTMFP: the original app (the "player") started listening at both local network ("rtmfp:") and with the aid of the Cirrus service ("rtmfp://p2p.rtmfp.net/mycirruskey"). The controller app (the "remote") first try to establish a connection on the local network and, if it does not succeed, try to locate the player using Cirrus (usually when it was run from a device connected on a 3G network).
    This approach was surprisingly effective (I guess rtmfp and the cirrus service are indeed very nice), but now I'm updating my apps using AIR3.7 and the problems began - and I didn't change a single line from the original code... First, I am unable to connect the mobile app to the flash player using local rtmfp, the netgroup just doesn't get any neighbor. Second, even with the aid of Cirrus, I can only establish the connection if the player and the remote are connected on different networks (like one on my wifi connection and the other on 3G). If I put both, the computer running the player and the mobile running the remote on the same wifi, the connection is never completed.
    To make the problem even stranger, if I save the player as an AIR application, for mobile or desktop, the cirrus connection does work perfeclty, so it seems that the problem is related to connections to the flash player itself.
    Is this an expected baheviour of AIR3.7 for some sort of security issue (limiting flash player/air apps connection)? If not, is there a way to solve it?
    Thank you!

    Added one yesterday:
    https://bugbase.adobe.com/index.cfm?event=bug&id=3560258
    Interestingly air 3.7 on IOS to Desktop air 3.7 will work.
    I am investigating if I can use 3.7 on Android to connect to 3.7 on iOS - so far I cannot get the apk to install on my Galaxy S3, compile using 3.4 and all is good. Air runtime has been updated via Play store - and build uses compiled runtime.
    I cannot get Flash player 11.4 to connect with air 3.7 on iOS either.
    NetGroup.Neighbour.Connect never fires.
    All SDKS above 3.4 upto 3.8 beta exhibit the same problem.
    3.4 works perfectly and can connect to flash player, and other Air/iOS devices just fine.
    Shuld not be a issue with firewalls etc, thay are all open.
    I can email you the fla, it is for a product so I can't post it here.
    Thanks,
    Steve.

  • Detecting the Adobe Connect Add In in Flex/Flash?

    Hello,
    I am working on a project, and one of the items that I need
    to add into this application is the ability to find out from the
    client connected whether or not they have the Adobe Connect Add In
    for flash player. I see the tool on Adobe's website for the connect
    connection test does this somehow, but I can't find any
    documentation on how to get that information. I can't find it
    anywhere in the actionscript reference. Please advise.
    -Mike

    Moving this discussion to the Connect General Discussion forum.

  • Connection between GP WebDynpro and the KM functionality

    Hi All,
    how can I get access to the KM API in a GP Web Dynpro form.
    NWDS doesnt show an Error in delepment mode.
    But when Im trying to Build the Application I got the following Error message:
    [javac] Compiling 22 source files to C:Documents and Settingstfelp4.dtcLocalDevelopmenttA205D007106BD3F4B0582807B7EAB411classes
         [javac] C:Documents and Settingstfelp4.dtcLocalDevelopmenttA205D007106BD3F4B0582807B7EAB411gen_wdppackagescomcaselisagpWDCEWRFormView.java:24: package com.sapportals.wcm.util.uri does not exist
         [javac] import com.sapportals.wcm.util.uri.RID;
         [javac]                                    ^
         [javac] C:Documents and Settingstfelp4.dtcLocalDevelopmenttA205D007106BD3F4B0582807B7EAB411gen_wdppackagescomcaselisagpWDCEWRFormView.java:173: cannot resolve symbol
         [javac] symbol  : class RID
         [javac] location: class com.cas.elisa.gp.WDCEWRFormView
         [javac]                RID aRid = null;//RID.getRID("/documents/CCElectronics Content/NewAge/EWR");
    Classpath is set...
    The same coding works in a normal Web Dynpro form without GP interface.
    Hope someone can help me...
    Thanks in advance
    Steve

    Solved!
    It appeared to be a "long" parameter and I was trying to put it in a "Number" parameter in Flex (because there is no long in Flex)
    When I changed both to String, it worked!

  • Xcelsius integration in WebDynpro Java Flash Islands

    Hi,
    We developed a visual composer application with CE 7.20 SPS 03 and we try to integrate a xcelsius gauge in to VC 7.20. It works fine with passing single or multiple parameters to xcelsius with webdynpro java flash islands, but how do we get the value from xcelsius back to webdynpro java.
    How do we have to name the event in webdynpro flash island? Which event is triggered when change a slider or a gauge? Is there any document?
    I need your help.
    Best regards,
    Murat Y.

    Creating Flash Island Events
    To implement the Visual Composer application if data has changed on the Flash island side, we need to define a Flash Island event. In this example, the Web Dynpro application needs to be updated once the user has changed one of the two slider values. The Web Dynpro application will trigger an event that will be handled in Visual Composer. Once you have created a Flash island event entry, you can assign a Web Dynpro action method to be called if the Flash island event is raised.
    1.     Right-click RootElement again and create a SliderCostsEvent and a SliderRevenuesEvent:
    2.     Assign the following attribute values to the Flash island event entries:
    SliderCostsEvent:
    SliderRevenuesEvent:
    Note:
    The Flash island event name must be the same as the name in the corresponding Data Connection Range and Property. For example, in the Xcelsius Data Connection, we defined a Range u201CSliderRevenuesu201D. Once the referring value is changed, the Flash island event SliderRevenues is called (which is bound to a Web Dynpro action method) and also the data is written to the SliderRevenues Flash island property (which is bound to a Web Dynpro context attribute). Once an Action method is called from the Flash island event, the data is transferred to the Web Dynpro context.
    The onAction property points to a method Update(), which you need to create in the FlashIslandView (see implementation following).
    3.     Now we will create the event that will refresh the data in the Visual Composer application. Go to the Events tab of the Component Controller and click New. Enter RefreshData as the event name and click Finish.
    4.     Create the Component Controller method that will be called by the viewu2019s Update method. Go to the Component Controlleru2019s Methods tab and create a new method by clicking New. In the dialog box, select Method and click Next. Enter the name of the method, i.e. updateData and click Finish. Save the application.
    5.     Right-click on this method and select Navigate To  Implementation. This will open the implementation code of this method.
    The method should look like this:
    public void updateData( )  {
        //@@begin updateData()
           wdThis.wdFireEventRefreshData();
        //@@end
    The Update method of the FlashIslandView calls the Update method of the Component Controller; see implementation below:
    public void onActionUpdate(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
         //@@begin onActionUpdate(ServerEvent)
           wdThis.wdGetCostRevenueCompController().updateData();
        //@@end
    The Update method of the Component Controller will trigger the event that will refresh the Visual Composer UI with the new data. The reason for the multiple calls is that actions that are defined in the view cannot fire events but they can call a method, so we need to call a Component Controller method that will fire the event.
    6.     Next, you should expose this event in the Interface Controller. Right-click the event and select Copy. Go to the Interface Controller, select the Events tab and paste the event.

Maybe you are looking for

  • ITunes shared from OSX 10.6 to Windows 7 on Bootcamp?

    Today I used bootcamp to setup Windows 7 Ultimate on my MBP 13 in' from May 2010.  It worked perfectly, installed all the drivers (even installed the patch for bootcamp for 3.1 to fix the headphones problem).  I only have one question; how do I share

  • Switching off changes tracking

    Hi gurus, I need to temporarily switch off the tracking when creating sales document with BAPI_ADMGMTSO_CREATEFROMDATA. At the present time, whenever I create a new document, it is always tracked the creation of the document (see "display changes" fo

  • Unknown error (-69) HELP!!!!

    when I try to update my iPod this error appears: ""attempting to copy to the disk "MY IPOD" failed. an unknown error occurred (-69)."" So i cleared all the songs of my iPod and tried moving them manualy but the error message still popped up. So i tri

  • I can't  find my opponents In my words free app on my ipad

    I can't find my opponents in my words free app on my ipad2

  • T61 sound not working after re-installation

    Hi, I am re-installing Windows XP Pro SP2 on several laptops. I have an issue with some T61. The installation of the driver (found on Lenovo website) is successful. Windows displays the sound icon, I can open it and change the volume but I can't hear