Exporting Result from resultset iview through EPCF eventing

Hi
I am trying to Export the data from Result Set Iview to Excel using a Java Web dynpro application.
I am passing an MDM search parameter but when I am trying to get the value ,its coming as null...
This is what I am doing:
public void wdDoInit()
//@@begin wdDoInit()
wdThis.readSystemDtls();
namespace = "urn:com.sap.tc.webdynpro.exporttocsv";
eventname= "Export";
WDPortalEventing.subscribe(namespace,eventname,wdThis.wdGetExportAction());
//@@end
public void onActionExport(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String value )
//@@begin onActionExport(ServerEvent)
wdComponentAPI.getMessageManager().reportSuccess("data"+value);
int marked=value.indexOf("=");
String srcValue=value.substring(marked+1);\wdContext.currentContextElement().setCatchedValue(srcValue);
String targetValue=wdContext.currentContextElement().getCatchedValue();
Search search = Search.deserialize(targetValue);
Please help...

Hi,
Refer the below link which explains the step by step procedure for the requirement you are looking for
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/504814b6-da5f-2b10-0dbd-e5ee597c74a5
Regards,
Jitesh Talreja

Similar Messages

  • Export data from an iView to Excel, get a login screen displayed in Excel

    Hi
    I'm trying to export data from a tableview to excel, I followed the instruction posted by Detlev Beutner, created a class extends AbstractPortalComponent, and overwrote the doOnNodeReady:
    HttpServletResponse response = request.getServletResponse(true);
    response.setContentType("application/vnd.ms-excel");
    response.setHeader("Content-Disposition", "filename=\"text.xls\"");
    I did write some test output in doContent:
             aResponse.write("Filed11,Filed12,Field13");
             aResponse.write("Field21,Field22,Field23");
    I was hoping to see the excel to display the content "Field11 Field12...", but I got a portal login screen displayed in Excel.
    Does anyone have the same experience and and idea on this?
    Thanks
    Yutong

    Sure, here is the sample code for method doOnNodeReady
    protected void doOnNodeReady(IPortalComponentRequest request,
          IEvent event)
      //set http content type to excel format
      HttpServletResponse response = request.getServletResponse(true);
      response.setContentType("application/vnd.ms-excel");
      response.setHeader("Content-Disposition", "attachement;filename=\"abc.xls\"");
      java.io.PrintWriter out = response.getWriter();
      // print out the header
      out.print(headerSubject + "\t");
      out.print(headerDueDate + "\t");
      // then print out your data
      out.close();

  • Blank / partially blank export result from Motion via Compressor

    Hi all!
    Final Cut Studio 3 / Mac OS 10.6.8
    I have a set up of two semi-old iMacs. One is a white 2006 iMac, the other is a 2007 iMac. I work with the 2006 iMac because the screen is better, but as it is slower I would like to send processing jobs to the 2007 iMac as it already acts as a server for many things. So I set up the 2007 as a node. What I am making are UI animation demos in Motion. For example I have a 768x1024 (vertical iPad resolution) px / 60 fps / color (without alpha) / solid background / 8 bit depth project that has two layers made out of Photoshop Exported .png's and a move animation (nothing mind blowing) and I am trying to export it to an Uncompressed Apple Animation with the source settings and millions of colors +. Now when I allow it to segment the jobs (as an example) the result turns out so that the segments that were sent to render on the node (the 2007 iMac) are blank, but the ones that were rendered locally are perfectly fine. When I disable the segmented jobs, it sends it to render entirely on the node (which is ok with me, since I'm just trying to take the load off the 2006 iMac) it comes out as a completely blank checker board. What am I doing wrong? I understand I can just open the files on the 2007 and export them there, but I would really like to not have to walk to it every time, since I export many versions in a matter of minutes.
    If I missed any important part of the process, please correct me.

    Ok, tried it with the regular Millions of Colors, but without change - the segments of the timeline that were distributed to render on the node (2007 iMac) came out blank.

  • How to export photos from iPhoto to external hard drive keeping Events structure (files and titles)

    Hello!
    I’ve been looking for a Automator application that does this for quite a while now.
    Basically I want to have an Automator application that saves a copy of my iPhoto pictures in a folder, inside Finder. Like a backup. Later on, I can save those “folders and files” on my external hard drive.
    What I want it to do is this:
    1) Export photos from a selected Album or Event on iPhoto. Using as title: “Event name” – “number” (I mean the number of the file: 1, 2, 3 …)
    2) Save them in a folder in Finder that I want.
    3) Organize the photos in different folders, the same way they are in iPhoto.
    The idea I had, was that it would do this automatically every time I launch iPhoto, as if it was synchronizing the photos into that folder.
    And then, every time I connect my hard drive, it copies these “real” folders into my hard drive.
    Is that possible? If yes, could you help me creating it, or tell me how I can do so myself, or where to download something like it?
    Thank you a lot! Kind regards,
    xanacarfran2008

    Is this waht you want to do?
    It's built into the File Export function of iPhoto 9 (11).  Select what every photos you want and use that option to put each photo in a folder with the Event title it came from as in this test of six randomly picked photos:
    OT

  • 1.5.3 - Export results to XLS ORA-00936

    SQL Developer 1.5.3, JDK 1.6.0_11, and Oracle 10.2.0.3.0.
    Try to export SQL results to XLS. Get an oracle error.
    An error was encountered performing the requested operation:
    ORA-00936: missing expression
    00936. 00000 - "missing expression"
    *Cause:
    *Action:
    Vendor code 936
    I am unable to export any SQL results.
    I am able to export results from SQL Developer 1.5.0 JDK 1.6.0_11, and Oracle 10.2.0.3.0.
    Thanks
    Dennis

    I have the same error running the latest jdk 1.6 and sqldeveloper 1.5.3...I'm trying to export data from a 10.2.0.4 db...below is the stack trace:
    java.lang.NullPointerException
         at oracle.dbtools.raptor.dialogs.export.ColumnPanel.addColumnsToTree(ColumnPanel.java:86)
         at oracle.dbtools.raptor.dialogs.export.ColumnPanel.showPanel(ColumnPanel.java:62)
         at oracle.dbtools.raptor.dialogs.export.ColumnPanel.<init>(ColumnPanel.java:51)
         at oracle.dbtools.raptor.dialogs.actions.TableExportAction.showPanels(TableExportAction.java:288)
         at oracle.dbtools.raptor.dialogs.actions.TableExportAction.launch(TableExportAction.java:158)
         at oracle.dbtools.raptor.format.ui.ExportContextMenuListener$1.actionPerformed(ExportContextMenuListener.java:136)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
         at java.awt.Component.processMouseEvent(Component.java:5488)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Edited by: user2893625 on Dec 23, 2008 7:06 AM

  • Unauthorised users accessing iviews through a direct URL

    Hi,
    How do you prevent unauthorised users from accessing iviews through a direct URL? e.g. From the BeX Web Template on testing a query a URL is known, this URL can then be used by user who have no rights to view/ execute this report (after portal logon).
    Can security zones be defined for the BeX iviews? If yes, how? Does setting the parameter Dcom.sap.nw.sz=true solve the problem? 
    Appreciate your input.
    Many thanks,
    Dharmi

    Hi Bharath,
    Thank you for the input.
    Can you please be more specific as to which BW component ?
    I navigated to
    Go to permission editor: 'System Administration' -> 'Permissions' -> 'Portal Permissions'.
    folder: 'Security Zones' -> 'sap.com' -> 'NetWeaver.Portal' -> 'high_safety'
    There the rights are ok.
    Best regards,
    Dharmi

  • Push MDM search results from webdynpro to portal's standard ResultSet iView

    Hi,
    I have gone thru a lot of SDN information, blogs and PDFs
    regarding the usage of EPCF, EPCM for communication between
    Webdynpro and Portal utlizing portal eventing phenomenon.
         My requirement a.k.a. predicament and grief::
    I get back mdm search results in webdynpro app, using a
    specialized search strategy to MDM repository. I need to
    ship these resuls off to the standard out-of-box
    portal's MDM ResultSet iView (which is a part of portal's
    MDM business package).
    I haven't had much success getting crisp resolution to
    satisfy my requirements. In my WD code, I know,  I need
    to put some sort of ?event-generating-2-liner-code? that
    sends my results to portal's standard iView.  
    Surely, I can send just recordIDs or I can send the actual
    results. I get 5 fields per record of Material's table.
    Once the ResultSet-iView displays the search results,
    my responsibility is over. Now onwards, portal's standard
    business package will take over from there for further user
    interacitons, like accessing item details etc..etc..
    Any and all help is highly appreciated.
    -Shashank Date

    No replies............yet.....It's been 2 days now.....
    Can someone provide some clues?
    thx.
    -Shashank Date

  • MDM Log / EPCF Eventing in Result and Item Details Iview

    Hi,
    I have EP7 with SP15 and MDM 6.0, recently upgraded. Before upgrade we have an application which uses the MDM iviews and maps the fields of one table to other and displays in some other iview.
    The application was working fine before upgrade of MDM. But after upgrade, the mapping seems not working.
    My scenario is as : Using MDM Search iview, I search records from MDM repository, Main Table. This result is displayed in MDM Result iview. From this result iview, I select a record. From this selected record, a field is mapped to the other table. The mapped record, then, is displayed in MDM Details Iview.
    After MDM upgrade, whenever we select a record from the result of table 1,the mapped iview throws erros :
    Error occurred: Error performing search. com.sap.mdm.internal.protocol.manual.ServerException: Illegal value for parameter, com.sap.mdm.internal.protocol.manual.ServerException: Illegal value for parameter (see log for details)
    when serached log : Key is not found in table:<Table1>-KeyMappings it may have been deleted or renamed, please use editor to fix the problem##
    We have used EPCF eventing for MDM iviews.
    I have written some code to check the values passed from Result Iview and seen that the values are being passed correctly...Now think, i should also have a check in MDM how the values are recieved and mapped...
    Any idea how I can use MDM log service to do this? Or any idea how I can enable MDM log to monitor what comes in and what goes out?
    has anyone out there faced same issue ?
    Please let me know your views.
    Regards,
    Abhijeet

    Solved at my own. The MDM SP6 needs the subtable key field to be TEXT type.

  • ResultSet IView - eventing - hand over serveral records

    Hi experts,
    we use a standard resultset iview for connecting the repository with the EP - this works fine.
    In case of "eventing": is there a possiblity to hand over more than one record via EPCF-eventing to another IView on the same page?
    The target is an Visual Composer IView.
    I would be glad, if there is an quick and easy possibility.
    Thank you in advance for your answers.
    Karin

    Hi
    I am trying to Export the data from Result Set Iview to Excel using a Java Web dynpro application.
    I am passing an MDM search parameter but when I am trying to get the value ,its coming as null...
    This is what I am doing
    public void wdDoInit()
        //@@begin wdDoInit()
         wdThis.readSystemDtls();
         namespace = "urn:com.sap.tc.webdynpro.exporttocsv";
         eventname= "Export";
         WDPortalEventing.subscribe(namespace,eventname,wdThis.wdGetExportAction());
        //@@end
    public void onActionExport(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String value )
        //@@begin onActionExport(ServerEvent)
        wdComponentAPI.getMessageManager().reportSuccess("data"+value);
         int marked=value.indexOf("=");
         String srcValue=value.substring(marked+1);\wdContext.currentContextElement().setCatchedValue(srcValue);
         String targetValue=wdContext.currentContextElement().getCatchedValue();
         Search search = Search.deserialize(targetValue);
    Can you please help...

  • UpdateSearch EPCF in Resultset iView

    Hi,
    I am raising the following standard EPCF event from my custom Java WebDynpro, passing a specific "Item Identifier (Product ID)" to my PRODUCTS table. It's working fine and the perticular row is retreived in my Standard Resultset iView, but I want to send multiple values of ProductId field to Resultset iView instead of one value (ProductID=104367719). How do i send multiple values from my custom webdynpro using the following event?
         WDPortalEventing.fire(
                   "urn:com.sap.pct.mdm.appl.masteriviews",
                   "updateSearch",
                   "ProductID=104367719&refreshSearch=False"
    Thanks
    Vijay Budati
    Edited by: Lakshmi Vijaya Kumar Budati on Jan 14, 2010 11:04 AM

    Idan,
    Thanks for your reply.
    You mean to tell that updateSearch EPCF event can't take multiple values?
    Can't we use OR & AND operator for Keyword field to send multiple values to updateSearch event from Custom WebDynpro?? as Keyword search is doing? If so, could you please let me know how to use the fields and how to pass the values?
    When i look at my Products table, i didn't find any Field called KEYWORD.
    Thank you,
    Vijay
    Edited by: Lakshmi Vijaya Kumar Budati on Jan 17, 2010 11:21 AM

  • Data transfer from EPCF events

    I have a regular(non-web dynpro) iView which is firing event & sending data using client data bag. It uses EPCF to send the event.
    EPCM.raiseEvent(bla bla bla);
    EPCM.storeClientData( XYX);
    I have 2 more listener iViews on the same page. One of the iViews is a regular iView which uses JavaScript & subscribe to the event. Then gets the data using 
    EPCM.loadClientData("XYZ","ABC");
    Everything is working fine on this iView. I get the event as well as parameters from sender iView.
    I have another iView which a web dynpro iView. This web dynpro iView also subscribes to the same event & tries to read the data. Inside my web dynpro iView, I am able to get the event but the IWDCustomEvent event object does not contain the data/parameters transferred by the Sender iView. How can I read the data stored in the client data bag inside my web dynpro iView? If it's not possible then is there a workaround which DOES NOT REQUIRE CHANGING THE SENDER iView?

    When u raise event from the sender Use the following syntax:
    EPCM.raiseEvent(namespace,eventname,dataObject);
    Here this dataObject is the parameter u want to pass to the webdynpro.
    From webdynpro side u can access the parameter in the eventhandler which u create while subscribing the event.
    This dataObject will be automatically passed to the eventhandler... so u can access that.
    Try it out and please let me know the status.
    Thanks & Regards,
    Sirisha.R.S.

  • How can I compare a (partial) export folder from iPhoto to an event in iPhoto to find images not exported?

    How can I compare a (partial) export folder from iPhoto to an event in iPhoto to find images not exported?  Or better yet, how can I export selected events to a new iPhoto library or an existing iPhoto library with events, titles and keywords intact?

    Ask here:
    https://discussions.apple.com/community/ilife/iphoto

  • How to export the result from executing sql statement to excel file ?

    HI all,
    Great with Oracle SQL Developer, but I have have a trouble as follwing :
    I want to export the result from executing sql statement to excel file . I do easily like that in TOAD ,
    anyone can help me to do that ? Thanks so much
    Sigmasvn

    Hello Sue,
    I just tried to export to excel with the esdev extension and got java.lang.NumberFormatException. I found the workaround at Re: Windows Multi-language env, - how do I set English for application lang?
    open the file sqldeveloper\jdev\bin\sqldeveloper.conf and add the following two lines:
    AddVMOption -Duser.language=en
    AddVMOption -Duser.country=USyet now my date formats in excel are 'american-style' instead of german. For example 01-DEC-01 so excel does not recognize it as date and therefore I can not simply change the format.
    When export to excel will be native to 1.1 perhaps someone can have a look at this 'feature'
    Regards
    Marcus

  • How to export result set from mysql query browser to .sql in oracle

    Hi folks:
    I was trying to export result set from MySql query browser to Oracle. I could able to do
    File->Export Result Set-> Excel format...
    What I am trying to get is .sql file so that I can run it as a script in my oracle db. Is there any way we can get .sql file with inserts and delimeters ....?
    Did you guys get my question.?
    Please throw some light on this....
    Could be very appreciable ....
    Thanks
    Sudhir Naidu

    Hi
    Create a sql statement which generates the insert statements.
    Something like this:
    select 'insert into table1 (column1, column2, column3) values (' ||
    column1 || ', ' || column2 || ', ' || column3 || ');' from table 1;
    The || sign is the string concatenation sign in Oracle, replace it the appropriate sign in MySql. Export the result set of this query into a file, and you can run it in a SqlPlus.
    Ott Karesz
    http://www.trendo-kft.hu

  • Stoping "Plesae Select" List/Menu Results from coming through

    Hi there, we have several list/menu's on our website form and
    want to know if theres a way of stopping all the "please select"
    results from coming through?
    "please select" comes through because the user hasent
    selected a result in the list menu.
    Cheers
    Malhyp

    MalRom wrote:
    > Hi there, we have several list/menu's on our website
    form and want to know if
    > theres a way of stopping all the "please select" results
    from coming through?
    >
    > "please select" comes through because the user hasent
    selected a result in the
    > list menu.
    As well as what Gary has suggested, you should always
    validate the input
    being submitted via a form. This can be done client-side with
    Javascript, or server-side with whatever language is
    available. It
    sounds like you can't edit the CGI which processes the form
    data and
    sends it, so do as Gary suggested, or use some client-side
    form
    validation. There are loads of examples online if you google
    for
    "javascript form validation"
    Dooza
    Posting Guidelines
    http://www.adobe.com/support/forums/guidelines.html
    How To Ask Smart Questions
    http://www.catb.org/esr/faqs/smart-questions.html

Maybe you are looking for

  • I cant register my "No Problem Guarantee" - Satellite C50-a-179

    I have a Satellite C50-a-179 and i have free No Problem Guarantee for my region (Czech Republic). When I want to register my laptop on www.noproblemguarantee.com this page redirected me on www.nomatterwhatguarantee.com - which is not Guarantee for my

  • IPhoto library gone

    I tried to post this under iPhoto topic, but the web site kept giving an error message so I am posting it here. I recently purchased a Canon dig camera and loaded the software to download pics. In the Image browser (of the software) there is a topic

  • Step to  Configuration  the Physcial Inventory & Cycle counting

    Guru PL help Me the detailed steps to configure  for Physical Inventory & cycle counting required Thanks sudhir

  • Login Form using struts

    i'm new to struts... can anyone help me out...with Sample code that helps to build a login in form using struts ,that has interaction with data base... kindly drop mail @ [email protected]

  • StartSavin adverts keep popping up for no reason

    It's exactly what the headline states; it only started happening a few days ago, and I've checked the addons etc and there is nothing there to remove aside from AdBlock. When it says to 'uninstall the programme', the programme itself isn't even on my