Subscribe event and processing with data

Hi.
We made a portal component with DynPageWithJSP model and this program subscribe event from other iview.
Other iview trigger event and store Data using data bag.
When event trggered my portal component, load data and I wan to process with this data in PAI routine.
So, Here is JSP file.
<%@ taglib uri="tagLib" prefix="hbj" %>
<jsp:useBean id="SalesOrderBean" scope="application" class="com.sap.training.portal.SalesOrderBean" />
<script>
function eventFired () {
     var Cust_No = EPCM.loadClientData('urn:com.sap.training.portal','Cust_No');
     var Sales_Org = EPCM.loadClientData('urn:com.sap.training.portal','Sales_Org');
     alert(Cust_No + " " + Sales_Org);
     var funcName = htmlb_formid + "_getHtmlbElementId";
     func = window[funcName];
     var ipField1 = eval(func("Cust_No"));
     ipField1.setValue(Cust_No);
     var ipField2 = eval(func("Sales_Org"));
     ipField2.setValue(Sales_Org);
     var form = document.all(htmlb_formid);
     form.submit();
EPCM.subscribeEvent('urn:com.sap.training.portal',
                    'SalesOrder',
                    eventFired);
</script>
<hbj:content id="myContext" >
  <hbj:page title="PageTitle">
   <hbj:form id="myFormId">
          <hbj:inputField id="Cust_No" type="string" maxlength="20" value="" jsObjectNeeded="true" >
             <% Cust_No.setVisible(false);%>
          </hbj:inputField>
        <hbj:inputField id="Sales_Org" type="string" maxlength="20" value="" jsObjectNeeded="true" >
             <% Sales_Org.setVisible(false);%>
        </hbj:inputField>
        <hbj:textView id="welcome">
             <% welcome.setText("Hello, " + SalesOrderBean.getCust_No() + " from " + SalesOrderBean.getSales_Org()); %>
        </hbj:textView>              
   </hbj:form>
  </hbj:page>
</hbj:content>
Above code, I checked portal compoent load data when event trigger. (in statement : alert(Cust_No + " " + Sales_Org);)
After then, I try to access that data using following code.
    public void doProcessAfterInput() throws PageException {
          InputField myInputField1 = (InputField) getComponentByName("Cust_No");
          if (myInputField1 != null) {
               this.Cust_No = myInputField1.getValueAsDataType().toString();
          InputField myInputField2 = (InputField) getComponentByName("Sales_Org");
          if (myInputField2 != null) {
               this.Sales_Org = myInputField2.getValueAsDataType().toString();
          IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
          IPortalComponentContext myContext = request.getComponentContext();
          SalesOrderBean myNameContainer = (SalesOrderBean) myContext.getValue("SalesOrderBean");
          myNameContainer.setCust_No(Cust_No);
          myNameContainer.setSales_Org(Sales_Org);
I can't acess it.
Is there any problem ?
Welcome to any comment.
Regards, Arnold

hi arnold
try placing submit button...and use onClientClick="eventFired" in jsp file...try this out...
hope it works fine...
regards,
purush

Similar Messages

  • How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.

    How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.

    If the data is on a remote server (for example, PHP running on a web server, talking to a MySQL server) then you do this in an AIR application the same way you would do it with any Flex application (or ajax application, if you're building your AIR app in HTML/JS).
    That's a broad answer, but in fact there are lots of ways to communicate between Flex and PHP. The most common and best in most cases is to use AMFPHP (http://amfphp.org/) or the new ZEND AMF support in the Zend Framework.
    This page is a good starting point for learning about Flex and PHP communication:
    http://www.adobe.com/devnet/flex/flex_php.html
    Also, in Flash Builder 4 they've added a lot of remote-data-connection functionality, including a lot that's designed for PHP. Take a look at the Flash Builder 4 public beta for more on that: http://labs.adobe.com/technologies/flashbuilder4/

  • How to use the eventing and databag with a WAS 6.20 ?

    How to use the eventing and databag with a WAS 6.20 ?
    Is what there is a good guide for these services?
    Thank's

    In the raise event you can pass the value
    like below.
    <SCRIPT>
    function raiseEvt(value1){
    if(window.document.domain == window.location.hostname){
    if ( document.domain.indexOf(".") > 0 ) document.domain = document.domain.substr(document.domain.indexOf(".")+1);
       EPCMPROXY.raiseEvent( "urn:com.sap:BWEvents","BWiViewevent", value1, null );
      // alert('tree domain'+document.domain);
    </SCRIPT>
    and in the
    subscribe event you can get the values like below.
    <script language="javascript">
    if(window.document.domain == window.location.hostname){
    document.domain = document.domain.substring(document.domain.indexOf('.')+1);
        EPCMPROXY.subscribeEvent("urn:com.sap:BWEvents","BWiViewevent", window, "myreceiveEvent");
    function myreceiveEvent( eventObj ) {
          document.forms[0].gp_hidden.value = eventObj.dataObject;
    </script>
    Also look at the following link for a complete documentation.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/Enterprise%20Portal%20Client.pdf
    Regards
    Raja

  • Initialize Delta Process with Data Transfer - Split the job in two/three

    Hello,
    I am trying to load master data into BI (DEV) and there are 700,000 master data records in my source system. When I tried to load Initialize Delta Process with data transfer, at some point (after 300,000 records) my load failed in source system and job log I found that this issue "ABAP/4 processor: TSV_TNEW_OCCURS_NO_ROLL_MEMORY"
    When I informed this issue to BASIS consultant, they suggest me to split the job in 3 (Three). My question: how can I split the job in three? I can do one Initialize Delta Process load and followed by delta load.
    Regards,
    Md

    Hi Md.
    Even at Infopackage level you can reduce the number of records per package.
    Go to Infopackage Schedular Menu -> DataS. Default Data Transfer. you can reduce the Maximum size of a data packet in kByte.
    Regards,
    Pratap Sone

  • I have a FCP event and project with all accompanying media saved on a harddrive.  I am now attempting to open the files on another computer that also has FCP X.  I cannot figure out how to get it to open.

    I have a FCP event and project with all accompanying media saved on a harddrive.  I am now attempting to open the files on another computer that also has FCP X.  I cannot figure out how to get it to open.

    The events and projects folders have to be on the top level of the drive for FCP to recognize them.

  • Event and Process Types - Urgent

    Hi All,
    I am little confused between Events and Process Types in a PC. How an event can be used in a PC ?
    I know that SM62- To create event, SM64 – Execute Event. But how its used in PC.
    Thanks in adv for your reply.

    Events can be used to start the process chain based on the event raise. In order to use the events
    1. Create an event using SM62
    2. Go to your process chain start variant and select the start type as After event and give the event name which you created and then activate and schedule the process chain
    3.Now go back to sm64 and trigger the event that should actually start the Process chain. This can be monitored using the Process chain log.
    Regards,
    Jagadeesh.

  • Round and Trunc with dates

    Can i get the examples for Round and Trunc with dates?

    Hi Rahul,
    Check out this workout by Tom Kyte on TRUNC and ROUND -
    http://www.oracle.com/technetwork/issue-archive/2012/12-sep/o52sql-1735910.html
    Dont skip even a single line of it. Really useful.
    My little workout :
    Ranit>> select
      2  round(123.444) r1,
      3  round(123.999) r2,
      4  trunc(123.444) t1,
      5  trunc(123.999) t2
      6  from
      7  dual;
            R1         R2         T1         T2                                                                                                                                                                                
           123        124        123        123                                                                                                                                                                                
    Ranit>> select
      2  round(123.444,2) r1,
      3  round(123.999,2) r2,
      4  trunc(123.444,2) t1,
      5  trunc(123.999,2) t2
      6  from dual;
            R1         R2         T1         T2                                                                                                                                                                                
        123.44        124     123.44     123.99                                                                                                                                                                                
    Ranit>> select
      2  round(123.1234,2) r1, -- "Rounds upto 2 Decimal places"
      3  round(123.1266,2) r2, -- "Rounds upto 2 Decimal places"
      4  trunc(123.1234,2) t1, -- "Keeps only 2 decimal places and Truncates the rest"
      5  trunc(123.1266,2) t2  -- "Keeps only 2 decimal places and Truncates the rest"
      6  from
      7  dual;
            R1         R2         T1         T2                                                                                                                                                                                
        123.12     123.13     123.12     123.12                                                                                                                                                                                
    --"Note the difference in R2 andT2 values : In R2 there's a data round-off done but in T2 it is simple cut-off of extra decimal part"HTH
    Edited by: ranit B on Jan 26, 2013 7:24 PM

  • Reading offline form from mailbox and processing with scheduled job.

    Hi,
    i'm trying to prepare an application that runs scheduled on portal.
    This applcation will get attached .pdf form form mailbox and parse and process it.
    I can receive attached pdf form from mailbox. And i can develop a scheduled application for portal.
    My problem is to parse into fields the pdf form with java to use in scheduled portal app.
    Thanks.

    hi Chandra,
    I store the url in one of hidden field in form, then copy javascript below to click event, button control type: Regular.
    just replace all the "<>" in the code below.
    var message;
    var response;
    // The name of the data connection will be pulled from the WSDLConnection name in the ConnectionSet packet
    var sWSDLName = <DataConnection name>;
    // clone, modify and execute the connection.
    var vConnection = xfa.connectionSet[sWSDLName].clone(true);
    vConnection.soapAddress.value = <url>;
    // Execute the connection, without remerge data after the result.
      var ws_rc = vConnection.execute(true);
    for multiple data connection, you have to repeat these code with replace different data connection name and it's url address.
    you may use script object (something like subroutine).
    Regards,
    Kathy Lau

  • Where best to put Events and Projects with multiple drives...

    I just got a new iMac, and I need to know how to maximize its speed with FCPX in terms of hard drives. 
    My old iMac had two internal drives:  a 256 GB flash drive and a 2 TB standard drive.  On that iMac, I had the OS and FCPX on the main internal SSD, and my events and projects on the secondary internal drive (the magnetic internal drive).
    My new iMac is the latest 27" iMac with an i7 3.5 GHz, 32 GB RAM, and an NVIDIA GeForce GTX 780M 4GB GDDR5 video card.  It also has USB 3.0 and Thunderbolt, and only one internal drive: a 512 GB SSD drive.  I am connecting a 6 TB OWC external magnetic drive (with 128 MB cache) to my new iMac via a LaCie Thunderbolt to eSATA adapter (the drive and adapter are a combination that OWC sells, has tested, and recommends).  I plan to use Disk Utility to make this 6 TB external drive (which is 3 TB + 3 TB hard drives in one enclosure) raid 0 for fastest speeds.
    With this new setup, my initial thought is to put both my FCPX events and projects on this 6 TB external drive.  But is that the best option?  Would it be better to get another high speed external Thunderbolt drive and put the events on one drive and the projects on another?  I have a feeling that putting them on one drive is the way to go, and that there would not be much, if anything, to gain by putting the events and projects on separate drives.  But I'd really appreciate any advice.
    Thanks!

    Hi Russ--
    Only in the past year I have implemented a backup strategy.  I've never had an internal hard drive fail.  Until recently, I had never had any drive failure.  Then I bought some desktop external drives from Seagate and paid quite a bit more for Seagate's FW800 adapters for them (my last iMac only had FW800 and USB 2.0).  The drives kept getting corrupted, so I was copying terabytes of data back and forth to restore the affected data.  Turns out it was the FW800 adapters all along.  Seagate was aware of the problem, and had a firmware upgrade, but has done absolutely nothing to publicize the fact.  I'll never buy their stuff again.
    But I'm still using Carbon Copy Cloner (great software, great support), and now that I switched back to the original USB 3.0 interfaces, the Seagate drives are reliable.  So I will continue to use CCC and those drives as my back-up strategy.  I was playing with fire for decades by not doing any backups.  It's ironic that I only started having problems when I started to back things up!
    The speed of the 512 GB internal drive on this new iMac is insane (the external drive arrives tomorrow, so I don't know about it yet).  The internal SSD drive clocks in at 697 write and 723 read (compared to 179 and 207 on my old iMac's internal SSD drive).  I am anxious to see what the external drive clocks in at tomorrow.

  • Helping me the outline and process with my lab project

    I and a graduate student and I have a simple project with the LabView. I am a beginner with the LabView. I know what are the requirements of the project. If I write down my requirements here can someone give me hints or outline on how to do that project. 
    Thanks. 

    Om11 wrote:
    Thank you for the reply,
    My Requirement:  
    Right now I am doing the lab work just manually. Now I want to use LabView for the ease. I need to take data from three sensors. 1. SensorA,  2. SensorB and 3. SensorC.  Right now I am taking the data directly from the sensors and saving the data on the computer. I need to use the labview to work as the mediator so that I don't have to do some of the stuffs which right now I need to do manually like clicking and etc. 
    In the labview interface or front panel there should be SensorA - 'start' icon, Sensor B - 'start' icon and Sensor C - 'start' icon. After hitting start I need the data only after one minute. So there should be internal clock which will count one minute and after that one minute I should get a beep sound (alarm) and it should start taking and saving data. 
    Thanks and regards, 
    Om
    I don't know your experience level with programming test equipment, so I'll start from the basics.  First, you need to define exactly what you need to do - which you've done already.  Next on the list - make a flowchart of what it is you need to do.  Then grab the programmer's guide for your equipment and flesh out your flow chart with the commands you think you will be using to achieve each step in the flowchart.
    NOW you are ready to start programming in LabVIEW. 
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • HCM forms and process with single workflow

    Hi Experts,
    Can we use single workflow for multiple form scenarios?
    Actually we have some 10 scenarios with 20 forms. We planned to combine all the scenario's in a single workflow and use it in different form scenario.
    Is it possible or we need to create a separate workflow for each process?
    Thanks in advance,
    Helps will be appreciated.

    Thanks for the reply Rick.
    For normal workflows its fine. I would like to know for HCM forms and process will it allow or not?
    HCM forms and process framework has come limitation's. Please check the below link.
    http://help.sap.com/saphelp_erp60/helpdata/en/42/f2cd04249b3268e10000000a1553f6/frameset.htm
    So I doubt will it make any issues.
    Thanks.

  • Planned Orders and Process Orders Data Extractor

    Hi,
    I am working on extracting process order and Planned Orders data into BW. I could not find any standard DataSources available for my req, so I want to develop generic extractor. the main key figures are Actual Labor and Machine Hours, Target Labor and Machine hours.
    Could you please help me if there are any standard datasource available or ECC tables to pull the data or any standard function modules available?
    Thanks,
    Hanuma

    hi,
    hope the mfg datasources were useful.
    chk the LBWE -> application 4 -> chk the DS 2lis_04_P_arbpl,2LIS_04_Matnr etc...
    All R/3 Tables
    http://www.sap-img.com/sap-download/sap-tables.zip
    Generic Extraction
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
    http://help.sap.com/saphelp_nw04/helpdata/en/3f/548c9ec754ee4d90188a4f108e0121/content.htm
    LO Extraction:
    /people/sap.user72/blog/2004/12/16/logistic-cockpit-delta-mechanism--episode-one-v3-update-the-145serializer146
    /people/sap.user72/blog/2005/01/19/logistic-cockpit-delta-mechanism--episode-three-the-new-update-methods
    /people/sap.user72/blog/2005/02/14/logistic-cockpit--when-you-need-more--first-option-enhance-it
    /people/sap.user72/blog/2004/12/23/logistic-cockpit-delta-mechanism--episode-two-v3-update-when-some-problems-can-occur
    /people/sap.user72/blog/2005/04/19/logistic-cockpit-a-new-deal-overshadowed-by-the-old-fashioned-lis
    Ramesh

  • FTPS settings Difference between control and control with data

    Hi guys,
    Just a very quick question please. When doing FTPS there are two options
    1) control
    2) control with data
    Can anyone explain what's the difference between the two?
    regards

    Hi,
    FTPS (FTP Using SSL/TLS) for Control Connection
    The FTP control connection is protected using TLS/SSL (Transport Layer Security/Secure Sockets Layer). File transfer is unencrypted.
    FTPS (FTP Using SSL/TLS) for Control and Data Connection
      All communication with the FTP server is encrypted and uses TLS/SSL.
    Regards,
    Raj

  • Can Oracle run in real time OS(such as PSOS) and communicate with data server by OCI?

    Hi, all!
    i have a question to get your help! now my oracle client running in SUN solaris communicate with oracle data server by OCI(oracle call interface). In future, my client system will port to embeded system that will use real time OS, such as PSOS, so i'm afraid that is OCI communicating with data server ok in PSOS environment??? Is there a special driver or OCI lib for PSOS?
    thanks very much!!!
    null

    I have no idea which platforms the Oracle client has been ported to. If there exists an Oracle client for PSOS, then you should have no problem with OCI there. If there's no Oracle client for PSOS, then you won't be able to make OCI calls.
    Regardless, this probably is a question better addressed to Oracle sales rather than to an ODBC forum.
    Justin

  • Time machine backing up iCal events and Contacts with icloud

    Is Time Machine backing up my iCal events and contacts? The reason I ask is because I have it set so they are stored ONLY on iCloud, NOT locally. Is this getting backed up too by Time Machine? I hope so! Because, if something were to fail, or if I were ever to accidentally delete a contact, I might like to be able to travel to the past and recuperate that contact.
    Thanks for your insight,
    Greg

    Hope you will see this... I had the exact same question and need to be sure what I understand. It is easiest for me to have all contacts, calender contacts only as iCloud rather than machine based. But I want to be sure if there is a massive error on icloud (I have had them on mobile me, me.com) that I can restore from my external hard drive where I do regular time machine backups. How does that work? Does the time machine recognise what is on the calendar regardless of its origin (cloud, gmail, exchange) and then restore it to the machine. At which point I would need to manually edit them all to put them in the right cloud based storage??

Maybe you are looking for

  • *Dynamic* Table Name in From Clause with input from cursor

    Hello I have a cursor say... select table_name from dba_tables where <blah> The result is row1:: emp rwo2:: emp_1 ---> Both the tables have same structure and entirely different data... please dont ask why... that's the way it is and we cant change i

  • Custom form moved to 10g becomes slow

    Hi All, We have a custom form that works fine in the 11.5.10 instance. We have moved the form to an instance which is upgraded to 10g. The form is compiled with out any errors but when we query the form for certain conditions it becomes slow and is n

  • Down Payment in SD

    Dear All, I know that down payment request is generated via billing document type FAZ. I just wanted to know is it possible to create Down Payment Request at the time of Sales Order Creation. Means when I save the sales order system will create the d

  • Spry Menubar Transparency - Help Needed!

    Hi I've successfully inserted and customised a horizontal menubar into my webpage. What i'd like to do, and i can't figure out how, is to set the transparency of the submenu's to semi-transparent. I know how to make the submenu's either solid or full

  • Does Firefox respect user account control rules for windows xp sp3, anything to do specifically to enable that ?

    xp sp3 1.5g R / 2.46g P4 <u>edit information copied from System Info troubleshooting: </u> More Information *1)Does Firefox latest version obey/confirm to the rules for user account control for windows xp sp3 ? * 2)Need I do anything specific at the