Template having export to excel functionality with filter values in WAD

Hi,
I need to create a template which has export to excel functionality with all the filter values that the user has selected in the selection screen.
export to excel can be done but how can be the output excel sheet contain only those values which we see in browser  when the report is executed with some filters.
Regards,
Apeksha

Hi Apeksha,
you can achieve this requirement (unless I do not know the detailled requirement) perhaps by using this way of implementation:
1. Create a new template which contains an info_field which does a data binding to the variable values or the characteristic you want to display. Set the visibility of the top container to "hidden". Add a empty data provider to this template. However be aware that the name for the (empty) data provider must match the name of the data provider within the original template you want to print.
2. Open your original template and include the template you created in step 1 (Advanced: Web Templates and technical name of the web template created in step 2). Choose the appropriate location (above/below the analysis item).
3. Check the settings of your export command: do not set a special web item to be printed.
If you export the template within web the second template should be printed correctly displaying the variable settings chosen in step 2 for the info_field.
Brgds,
Marcel

Similar Messages

  • Export to Excel functionality for Multiple tabs in WAD

    Hi,
    I have a requirement where in i need to export a report from WAD to excel. The WAD template has multiple tabs which i want individually in seperate excel sheet tabs. How can i achieve this ?
    Regards
    Snehith.

    Hi,
    have a global button (some where on the top) with command 'export to excel' and configure all your analysis item for that button. So when u execute the template and when u click on individual tab, the report out from individual tab will be exported to excel when u click on Export to excel button.In this way u can individually export the output to excel.
    Regards

  • Export to Excel functionality doesn't work when DataControlScope is shared.

    Hi All,
    I have a taskflow whose transaction setting is as Below:
    1.Always Begin New Transaction
    2.DataControlScope is isolated(Share data controls with calling task flow checkbox is unchecked).
    I have an Export to Excel functionality with exportCollectionActionListener.The jsff source snippet is given below.
    <af:commandMenuItem text="#{smviewcontrollerBundle.EXPORT_TO_EXCEL}"
    id="cmi1" icon="/images/excel_icon.jpg"
    binding="#{backingBeanScope.backing_fragments_RefSetSearch.cmi1}">
    <af:exportCollectionActionListener exportedId="resId1"
    type="excelHTML"
    filename="SmRefSetCodes"
    title="System Reference Inquiry Result"/>
    </af:commandMenuItem>
    The jsff is used in the above mentioned task-flow.Having this configuration in task-flow,export to excel doesn't export any table data in the excel sheet.But the moment,data-control-scope is changed to shared,export starts working.
    Is there any specific reason on this kind of behavior.
    In all other task-flows in my application,I have data-control-scope as isolated only,but there,export is working perfectly fine.
    Please help.
    Thanks,
    Gaurav

    Hi Frank,
    Thanks for your reply.
    Exactly,I have just one task-flow in which I have a page fragment for which export to excel is not working.The moment I change the data-control-scope to shared,export functionality starts working.
    I do have correct table id mentioned in exportCollectionListener.
    Is there anything I need to look into?
    Thanks,
    Gaurav.

  • Adding "Filter Criteria" to the XSLT List View Web Part impact on "Export to Excel" functionality within Document Library

    Hi there,
    XSLT List View displaying all the list items within the Document Library. In order to implement the Search functionality within Document library out of box "Text Filter" web part is configured as explained below. The solution is similar to
    the one suggested at
    http://www.wonderlaura.com/Lists/Posts/Post.aspx?ID=77
    "Text Filter" Web Part added to the page.
    Filter Criteria (i.e., XSLT List View columns) added to the XSLT List View where the filter parameters take the input from the "Text Filter" Web Part .
      3. Both Web Parts (XSLT List View and the Text Filter) are connected.
    When the search criteria is entered into the "Text Filter" Web Part, it is passed to the relevant Columns of the XSLT List View and the documents (List Items) that match the search criteria are shown within XSLT List View.
    Search functionality working as expected.
    Query: Selecting the "Export to Excel" icon from the ribbon generates the excel spread sheet with no data except Column Titles from the Document library. In the investigation it is
    found that adding the 'Filter Criteria' on XSLT List View is causing this bug. When the Filter Criteria is removed, then "Export to Excel" functionality is working as expected.
    But it is mandatory to add "Filter Criteria" to implement the search functionality with in the document library.
    Help: Help/input appreciated on the work around to get the "Export to Excel" functionality work when the "Filter Criteria"
    exist on the XSLT List View.
    Regards,

    Once again thanks very much for your help Scott. very much appreciated.
    In the investigation it is found that removing the 'Filter Criteria' on XSLT List View makes the "Export to Excel" functionality work. But the 'Filter Criteria' is mandatory to get the 'Document Search' functionality.
    I think that due to technical limitations it should be concluded that 'only custom development can make all work, no code solutions using the SharePoint Designer can meet all the requirements.
    If you can think of any alternative solution that could help in resolving the current issue or fix the issue without any custom implementation please inform. Otherwise this issue would be marked as resolved with your suggested response.
    Regards,

  • Ssrs report export to excel along with parameter filters

    HI,
    In ssrs reports export to excel along with parameter filters,is it possible or not?
    Could you please help me..
    indu

    Hi Sriindu,
    According to your description, you want to export the report into an excel file with the report parameter and filters. And you want to filter data in excel. Right?
    In Reporting Services, the components for exporting report into a file called Reporting Services Rendering Extension. There are three types of Reporting Services rendering extensions: Data Render Extension,
    Soft page-break renderer extensions, Hard page-break rendering extensions. All these three extension are only for rendering data. It can't keep the filters and parameter in the report. Also excel can't support Reporting Services filter in
    an excel file. So your requirement can't be achieved.
    Reference:
    Exporting Reports (Report Builder and SSRS)
    Interactive Functionality for Different Report Rendering Extensions (Report Builder and SSRS)
    If you have any feedback on our support, please click
    here.
    Best Regards,
    Simon Hou

  • VC Export to Excel Functionality not working

    Hi All,
    I have an issue an implementing the "Exporting the Table data to Excel."
    My VC version is 7.0
    Portal version NW 2004s.
    I have followed the instructions in the How To doc:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/47fe4fef-0d01-0010-6f87-ed8ecb479123 have implemented Export To Excell functionality in VC.
    yet we're getting the error:
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    iView not found: pcd:portal_content/com.sap.pct/platform_add_ons/com.sap.ip.bi/iViewsüom.sap.ip.bi.bex.
    Exception id: 05:39_17/04/07_0001_4060051
    See the details for the exception ID in the log file
    Any assistance/advice appreciated.
    cheers,
    Imran

    Very strange, as I know there is no ü allowed. There should be used only ASCII.
    And if there is a ü, this should translated, e.g. with base64 encoding or sth. like that.
    Best Regards,
    Marcel

  • Text Elements in Export to Excel functionality

    Hello Gurus,
         I have added Export to Excel functionality button on my web template and also added a Text Element Web Item to my web template. I am unable to get the Text Elements into the Excel Sheet when I click on Export to Excel button. Is there a way to show them in the Excel sheet when I click on Export to Excel or it is not possible to show them.
    Please let me know.
    Thanks a lot
    Raj

    Raj,
    Export to Excel will work only for the table item. Not 100% sure, but don't think that it can be setup for teh text items.
    Put the text elements into parts of teh query, for e.g. in the query title or column headings.
    The idea of export to excel is that the data gets exported. There is no transfer of context of the information.
    Aneesh

  • Close window in export to excel functionality

    Hello Everyone,
    I have created application of export to excel functionality as per following document.
    Exporting Data from Web Dynpro in Different Formats Using Open Source (POI, JExcel, iText) APIu2019s
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0cc41cb-9576-2b10-99a6-ab90ef28c73b
    i want to close my parent window.
    I have written the following code.
    This code for Showpopup which is called in export to excel method.
    public void showpopup( com.sap.tc.webdynpro.services.sal.url.api.WDWebResourceType resourceType, java.io.ByteArrayOutputStream OutputStream, java.lang.String title )
        //@@begin showpopup()
         IWDResource resource = null;
              resource = WDResourceFactory.createResource(OutputStream.toByteArray(),"SupplierExcel",resourceType);
              wdContext.currentContextElement().setResource(resource);
              window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(resource.getUrl(WDFileDownloadBehaviour.ALLOW_SAVE.ordinal()),title);
              window.setWindowSize(50,150);
              window.setWindowPosition(WDWindowPos.CENTER);
              window.show();
              wdContext.currentContextElement().setPopwindow(window);
         wdThis.wdGetTraiexcelAppInterfaceViewController().wdFirePlugClosewindow("javascript:void(window.close())");
        //@@end
    This is method of export to excel.
    public void export_to_excel( java.util.Map columninfo, com.sap.tc.webdynpro.progmodel.api.IWDNode datanode )
        //@@begin export_to_excel()
         ByteArrayOutputStream outputStream = null;
                        HSSFWorkbook wb = null;
                        HSSFSheet sheet = null;
              try
                    outputStream = new ByteArrayOutputStream();
                    wb = new HSSFWorkbook();
                    sheet = wb.createSheet("Table1");
                    int col = 0;
                    String attributeName, trimmedHeaderText;
                    HSSFRow row = sheet.createRow(0);
                    for (Iterator iter = columninfo.keySet().iterator(); iter.hasNext();)
                        attributeName = (String) iter.next();
                    trimmedHeaderText = (String)columninfo.get(attributeName);
                    columninfo.put(attributeName, trimmedHeaderText);
                    HSSFCell cell_hed = row.createCell((short)col++);
                    cell_hed.setCellType(HSSFCell.CELL_TYPE_STRING);
                    cell_hed.setCellValue(trimmedHeaderText);
                        for(int x=0; x<datanode.size(); x++)
                                            col=0;
                                            for (Iterator iter = columninfo.keySet().iterator(); iter.hasNext();)
                                                                attributeName = (String) iter.next();
                                            HSSFRow row_data_products = sheet.createRow(x+1);
                                            IWDNodeElement ele = datanode.getElementAt(x);
                                          HSSFCellStyle cellstle = wb.createCellStyle();
                                          cellstle.setWrapText(true);
                                          cellstle.setAlignment(HSSFCellStyle.ALIGN_CENTER);
                                          cellstle.setFillBackgroundColor(HSSFColor.BLUE_GREY.index);
                                          cellstle.setFillForegroundColor(HSSFColor.BLUE_GREY.index);
                                          HSSFFont font1 = wb.createFont();
                                          font1.setColor(HSSFColor.BLUE.index);
                                          font1.setBoldweight(HSSFFont.BOLDWEIGHT_NORMAL);
                                          cellstle.setFont(font1);
                                                    HSSFCell cell = row_data_products.createCell((short)col++);
                                                    cell.setCellValue(ele.getAttributeValue(attributeName).toString());
                                                    cell.setCellStyle(cellstle);
                        wb.write(outputStream);
                        showpopup(WDWebResourceType.XLS, outputStream, "XLS Out Put");
                        outputStream.close();
                        catch ( IOException ex )
                        //wdComponentAPI.getMessageManager().reportException(ex);
                        ex.printStackTrace();     
        //@@end
    Anyone can plz tell me how to close the window.
    Edited by: Abhilasha Dahare on Apr 6, 2009 3:04 PM

    Hi
    IWDWindow win = wdContext.currentContextElement().getPopwindow();
           win.destroyInstance();
    Here context element is same as u have used in opeing the popup.
    Best Regards
    Satish Kumar

  • Web Template - Variable & Export to Excel Web Items are not working

    Hi Experts,
    In a Web Report & Web Template Variable & Export to Excel Web Items are not working ; Any body have any idead ?
    Do i need to write any HTML code to funtion those web items.
    Thanks
    KAruna

    Dear Karuna,
    Review your default template. Probably is 0ANALYSIS_PATTERN.
    Reactive the version D and check again.
    Also, you are able to modify the webitems on Export to Excel on 'BUTTON_TOOLBAR_2' -> Button list number  4.
    And, you are able to check the 0ANALYSIS_PATTERN_EXPORT, in case of configuration.
    If you want to remove/add new items, I suggest you to save as another name. SAP does not allow to modify delivered objects
    ex:. 0Objects.
    Best Regards,
    Edward S. John

  • How to control filter values in WAD without effecting the layout of output

    Hi,
      Anyone help me in how to control the filter values in WAD. We have a navigational block and when user selects the filter for values the key and name of the characteristics and displaying in the navigational block and because of this the format of the output is looking awkward ie., getting horizontal and vertical scroll bars.
    So the requirement is i have select the characteristics from the filter and i also need text and name of the characteristics to be dispalyed but this shouldn't effect the layout of the output.
    So anyone please tell me the possible solution.
    Your help will be appreciated.

    MeeHow wrote:
    next example: 0 1 2 3 4 9 6 7 8 <- bad value is 9, and result of my filter should be (4+6)/2 = 5
    Shouldn't e.g. the value 4 be outside too, because the average of 3 and 9 (=5.5) is more that 25% different to 4?
    Here is a quick draft comparing three versions (LabVIEW 8.2):
    Your formula node version
    the same algorithm in G
    Something along the lines you are proposing here.
    As you can see, the new idea is not quite satisfactory. It needs more thought. Still, these drafts should give you some ideas how to do it. Modify as needed.
    Also your data is similar to a square wave and has these large step functions where the value changes dramatically. These should probably be ignored. Maybe you should look at the first derivative and replace parts where a large positive slope is immediately followed by a negative slope of similar size, for example.
    You should also look at absolute steps instead of percentages. If you use percentages and the value is zero, everything is outside, because even 5000% of zero is still zero, right?
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    filter testMOD.vi ‏41 KB

  • Export to Excel with Filter values

    I have implemented Prakash Darji's Exporting tips.
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/47fe4fef-0d01-0010-6f87-ed8ecb479123
    But it very important for us to only allow the user to only export the data which is available on the table currently, basically export to excel WITH filters and not everything which is in the infoprovider.
    does anyone have a way of achieveing this?
    i was thinking of maybe somehow passing filter values in the PCD url
    Something like this?  would this work.....
    pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex.QUERY=ZTESTQUERY&FILTER_IOBJNM=0CALDAY&FILTER_VALUE='01012009'&BI_COMMAND_1BI_COMMAND_TYPE=EXPORT&BI_COMMAND_1-EXPORT_FORMAT=XLS&BI_COMMAND_1-null=

    Hi Apeksha,
    you can achieve this requirement (unless I do not know the detailled requirement) perhaps by using this way of implementation:
    1. Create a new template which contains an info_field which does a data binding to the variable values or the characteristic you want to display. Set the visibility of the top container to "hidden". Add a empty data provider to this template. However be aware that the name for the (empty) data provider must match the name of the data provider within the original template you want to print.
    2. Open your original template and include the template you created in step 1 (Advanced: Web Templates and technical name of the web template created in step 2). Choose the appropriate location (above/below the analysis item).
    3. Check the settings of your export command: do not set a special web item to be printed.
    If you export the template within web the second template should be printed correctly displaying the variable settings chosen in step 2 for the info_field.
    Brgds,
    Marcel

  • Paticular columns in "Export to Excel" functionality of PanelCollection

    Hi,
    I am using JDeveloper 11.1.1.5.0.
    I am rendering (render Property to false) some of the columns in the table before it is doing “export to excel” of PanelCollection functionality.
    The table should display that columns in the front end but while exporting it to excel it should hide that columns.
    I have done below coding for the same:
    In jsff file:-
    <af:panelCollection id="pc2" inlineStyle="background-color: #F9E1E0;" styleClass="AFStretchWidth">
    <f:facet name="toolbar">
    <af:toolbar id="t1">
    <af:commandImageLink text="Export to Excel" inlineStyle="width:95px;" id="cil4" actionListener="#{pageFlowScope.TimesheetService.notToShow
    binding="#{xxyyzzBean.exportCollectionButton}">
    <af:exportCollectionActionListener exportedId="t2"
    type="excelHTML"
    filename="empDtlsExport.xls"/>
    </af:commandImageLink>
    </af:toolbar>
    </f:facet>
    The t2 is the table in which 5 columns are present and which is having Binding with dataTable.
    The code in the Bean class:
    public String notToShow(ActionEvent actionEvent) {
    List<UIComponent> uicomps= dataTable.getChildren();
    for(int i=0;i<uicomps.size();i++)
    UIComponent myComp= uicomps.get(i);
    if(myComp.getId().equals("c1")) //the column which should be part of export to excel.
    myComp.setRendered(false);
    if(myComp.getId().equals("c6"))//the column which should be part of export to excel.
    myComp.setRendered(false);
    ActionEvent ae = new ActionEvent(exportLink);
    ae.queue();
    return null;
    But it goes in infinite loop.
    Could anybody help me out for the same?

    Hi,
    in your code you use "exportCollectionButton" on the commandImageLink and "exportLink" in the code, so this sample doesn't make sense. Assuming its a typo in the code and in fact the notToShow() method calls
    ActionEvent ae = new ActionEvent(exportCollectionButton);
    ae.queue();
    then the cricular reference is not a surpise because you queue an action on the command link itself, which then again queues the same action etc.
    Frank

  • How to Customize "Export to Excel" functionality in applicationsTable

    Hi All,
    I have an applicationsTable with exportEnabled. In my table, I have a column with commandImageLink. when we click on it, the summary of that particular record will be shown in the pop up. Now when I use "Export to Excel" feature I want the pop up content too to be exported to the Excel. Currently the column is shown with blank data in the exported Excel. Is there a way I can achieve that?
    How do I override/customize the default functionality? Please suggest me.
    Thanks in advance.

    884221,
    Reading between the lines, are you a fusion apps developer? If so, you need to be asking on an internal forum somewhere, since we, the general public, don't yet have any access nor knowledge to the magic of fnd:applicationsTable
    John

  • Export to Excel Functionality

    Hi all,
    I followed the wiki (Web Dynpro Java - Exporting Table Data Using On-Demand Streams - SAP NW 7.0) and created with Link to URL UI element the excel functionality.
    It is working fine.
    Now what i am trying is i am implementing it using a button.
    I say the PDF with button in SDN but i am not able to understand it.
    What i need is in the Link to URL it is  using two elemets in the view context i.e.,
    Excel---->IconURL
                  ResourceURL
    These 2 elements in the context when i am using the button element.
    What are the changes i have to make if possible a code snipplet of what changes have to be made in the existing code which i have used for Link to URL UI element.
    Plz Help me in this regard,
    Lokesh

    Hi,
    The issue has been resolved.
    The thread is closed.

  • Missing user variable input values in export to excel functionality

    Hi,
    I have a problem in exporting data into excel, I could able to export the data with complete result rows but i am not able to see the user input variable values.
    To be in detail: The moment i execute the report in web, user gives the initial variable values as selections and run a report. The data will be displayes as per the user selections. Then the user clicks on export to excel (designed as per SAP how to), now the excel data shows the body of the results but the initial input variable values are missing.
    It would be really good if we also export variable values along with the report output.
    If any of you solved this requirement, could you please help me in solving this.
    Thanks in advance
    Regards
    Varada

    Hi,
    Here is a solution to make visible the Values of variables you selected in the Excel File.....
    1.Create a Web Template with an Analysis Item and Info Field Item
    2.Assign the Data Provider which contains varaibles to the Analysis Item
    3.Assign the same Data Provider to an Info Field Item
    4.In the Properties of Info Field Item,
    Set the Visibility as "Visible"
    Data Binding as "Variable Value" and mention the varaible
    Save the Web template->Execute and Export to Excel
    Now you will get it in Excel file
    For more info....
    Re: Display values of variables in exported excel file
    Rgds,
    Murali

Maybe you are looking for

  • Internal Mic not showing up at all

    cannot find the internal mic on my A215-s5837 any where in the sounds option or in the device manager.  I installed an webcam and mic.  The webcam works great but the mic is not working at all nor can the computer see it.  I am running Windows 7.

  • HTML code generation question

    Hi, I'm newby to JSF technology, I'd like to ask what kind of HTML it generates for UI components contained in JSF page. Is there any support for XHTML? Thanks for advice, M.

  • Including a test script for other scripts in OpenScript

    Hi all, I am a newbie in OpenScript. I had created a "myfunctions" test script which have all the common functions for my scripts. I found out that, for the script to be called, we need to add it to the script assets. This will not be feasible in my

  • Under applications, "mailto" has disappeared and I am unable to send links.

    I recently had to reformat my hard drive and reinstall (among other things) Firefox. Fine. Then I was asked if I wanted to upgrade, which I did. A day or two later, I wanted to e-mail a link to several friends and when I clicked on "send llink" under

  • My Laptop speakers are not plugged in, please help.

    I randomly stoped getting sound from my laptop at all.  It tells me in the screen where you can set your defult speakers that my speakers and headphones are not plugged in, so i used windows 7's find and fix audio playback problems, it did its check