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

Similar Messages

  • 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,

  • 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.

  • 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

  • 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

  • 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

  • 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.

  • 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

  • Exceptions in Export to Excel functionality

    Hi,
    I am using jdeveloper 11.1.1.4 and in a jspx there is a panel tabbed and in one showDetailItem there is a table in a panel collections and under menus i added a <af:commandMenuItem> with <af:exportCollectionActionListener> to export the table to excel sheet.
    When i do export to excel in the showDetailItem and move to another tab i am seeing this Message
    "ADF_FACES-60003:Component with ID: searchAgileDocDetails_cb not registered "
    When i looked at the forums it says this issue is resolved in latest versions thats how i am using jdev 11.1.1.4 but i could see the same issue.
    Can some one tell me how to solve this ?
    code:
    <af:panelCollection binding="#{backingBeanScope.backing_LUM_ADMIN_EMPLOYEE_DOCUMENTS.pc1}"
    id="pc1" inlineStyle="width:800.0px;border-width:thin;">
    <f:facet name="menus">
    <af:menu text="File"
    binding="#{backingBeanScope.backing_LUM_ADMIN_EMPLOYEE_DOCUMENTS.m2}"
    id="m2">
    <af:commandMenuItem text="Export to Excel"
    binding="#{backingBeanScope.backing_LUM_ADMIN_EMPLOYEE_DOCUMENTS.cmi1}"
    id="cmi1">
    <af:exportCollectionActionListener type="excelHTML"
    exportedId="trainingDocs_t"
    filename="TrainingDocuments.xls"
    title="TrainingDocuments"/>
    </af:commandMenuItem>
    </af:menu>
    </f:facet>
    <f:facet name="toolbar"/>
    <f:facet name="statusbar"/>
    <af:table value="#{bindings.lum_TrainingDocumentsView1.collectionModel}"
    var="row"
    rows="#{bindings.lum_TrainingDocumentsView1.rangeSize}"
    emptyText="#{bindings.lum_TrainingDocumentsView1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.lum_TrainingDocumentsView1.rangeSize}"
    rowBandingInterval="0"
    filterModel="#{bindings.lum_TrainingDocumentsView1Query.queryDescriptor}"
    queryListener="#{bindings.lum_TrainingDocumentsView1Query.processQuery}"
    filterVisible="true" varStatus="vs"
    binding="#{backingBeanScope.backing_LUM_ADMIN_EMPLOYEE_DOCUMENTS.trainingDocs_t}"
    id="trainingDocs_t"
    width="800px" inlineStyle="outline-width:thin;"
    partialTriggers=":::departmentNames_soc">
    <af:column sortProperty="DocumentName" filterable="true"
    sortable="true" headerText="DOCUMENT NAME"
    id="c9"
    width="530px">
    <af:inputText value="#{row.bindings.DocumentName.inputValue}"
    label="#{bindings.lum_TrainingDocumentsView1.hints.DocumentName.label}"
    required="#{bindings.lum_TrainingDocumentsView1.hints.DocumentName.mandatory}"
    columns="#{bindings.lum_TrainingDocumentsView1.hints.DocumentName.displayWidth}"
    maximumLength="#{bindings.lum_TrainingDocumentsView1.hints.DocumentName.precision}"
    shortDesc="#{bindings.lum_TrainingDocumentsView1.hints.DocumentName.tooltip}"
    id="it5" readOnly="true">
    <f:validator binding="#{row.bindings.DocumentName.validator}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="Department" filterable="true"
    sortable="true" headerText="DEPARTMENT"
    id="c7" width="160px">
    <af:inputText value="#{row.bindings.Department.inputValue}"
    label="#{bindings.lum_TrainingDocumentsView1.hints.Department.label}"
    required="#{bindings.lum_TrainingDocumentsView1.hints.Department.mandatory}"
    columns="#{bindings.lum_TrainingDocumentsView1.hints.Department.displayWidth}"
    maximumLength="#{bindings.lum_TrainingDocumentsView1.hints.Department.precision}"
    shortDesc="#{bindings.lum_TrainingDocumentsView1.hints.Department.tooltip}"
    id="it4" readOnly="true"
    >
    <f:validator binding="#{row.bindings.Department.validator}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="DocumentType" filterable="true"
    sortable="true" headerText="DOCUMENT TYPE"
    id="c5" rendered="false">
    <af:inputText value="#{row.bindings.DocumentType.inputValue}"
    label="#{bindings.lum_TrainingDocumentsView1.hints.DocumentType.label}"
    required="#{bindings.lum_TrainingDocumentsView1.hints.DocumentType.mandatory}"
    columns="#{bindings.lum_TrainingDocumentsView1.hints.DocumentType.displayWidth}"
    maximumLength="#{bindings.lum_TrainingDocumentsView1.hints.DocumentType.precision}"
    shortDesc="#{bindings.lum_TrainingDocumentsView1.hints.DocumentType.tooltip}"
    id="it3" rendered="false">
    <f:validator binding="#{row.bindings.DocumentType.validator}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="CreatedBy" filterable="true"
    sortable="true" headerText="CREATED BY"
    id="c8" rendered="false">
    <af:inputText value="#{row.bindings.CreatedBy.inputValue}"
    label="#{bindings.lum_TrainingDocumentsView1.hints.CreatedBy.label}"
    required="#{bindings.lum_TrainingDocumentsView1.hints.CreatedBy.mandatory}"
    columns="#{bindings.lum_TrainingDocumentsView1.hints.CreatedBy.displayWidth}"
    maximumLength="#{bindings.lum_TrainingDocumentsView1.hints.CreatedBy.precision}"
    shortDesc="#{bindings.lum_TrainingDocumentsView1.hints.CreatedBy.tooltip}"
    id="it1" rendered="false">
    <f:validator binding="#{row.bindings.CreatedBy.validator}"/>
    </af:inputText>
    </af:column>
    </af:table>
    </af:panelCollection>
    Thanks.

    sorry i am using jdeveloper 11.1.1.3 not jdeveloper 11.1.1.4

  • Long Text In ALV - Exporting to Excel sheet

    Hi,
    Currently my ALV report reads the text using READ_TEXT fm and it displays only the first line of the text in the report.
    To the see the remaining lines of the text, user needs to double click on the text in the report and it creates another ALV report with one column showing all the lines of that particular text.
    Now the problem is when user exports the report in excel sheet, obviously only the first line of the text is downloaded in the excel file. User wants all the lines to be downloaded but at the same time, it should be line by line in a single cell not in a single line.
    LIKE
    Col-1                          Col2
    XXXXX                       XXXXXXXXXXXXX
                                      XXXXXXXXXXXX
                                      XXXXXXXXX
    YYYYY                     YYYYYYYYYYYY
                                     YYYYYYYYYYY
                                     YYYYYYYY
    So How can i create a report like this? and also the number of lines of the text will vary.
    Thanks,
    Ezhil

    Hi,
    Here's my suggestion: Install OpenOffice.org and ask SAP to deliver good integration with OpenOffice.org.
    Alternative suggestion: re-install SAP Gui on the PC where the integration is not working. If that does not help, re-install Microsoft Office as well.
    Here's my comment: I think you should ask this question in a different forum, e.g. in the Duet forum. That may not be the correct forum either, but as it is a Microsoft/SAP integration technology forum, someone there may know the solution.
    Regards,
    Raj.

  • 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 in SPM

    Hi
    When we are trying to export any report in excel in SPM it is currently giving the report in CSV format. We want the report to be downloaded in excel format. Is there a fix available?
    Regards
    Neel

    Hi Neel,
    The current functionality is the application exports reports in CSV format only.  But development is working on providing true export to MS Excel functionality.  The application will export .xlsx format which means you will need MS Excel 2007 or higher to open up the files.
    Regards,
    Rohit

  • Export to excel functionality in OAF

    Hi,
    I want to know whether it is possible to provide the functionality "Export to Excel" in OAF
    i.e. if user want to export the records from a results table to excel (something similar to the functionality available in oracle apps)
    Rgds,
    -Kamal

    Kamal
    If you want to export all the view attributes values of the VO attached to table region. In that case under table actions you can create a export button type button. While if you want to export only some of the attributes you can go through below link.
    Programmatically implementing Export Button
    Thanks
    AJ

  • Cant use Export to Excel functionality for ALV if I add a custom button

    Hi,
      I have added a custom button the the ALV toolbar by creating a GUI status and using the USER_COMMAND event. However. Now I dont the get the standard ALV toolbar with all the options for sorting, exporting to excel etc.
      Can someone show me how I can do both, add my own button to the toolbar as well as use ALV Grid toolbar. Currently the ALV grid standard toolbar has disappeared
    Thanks for reading

    Hello,
    I am not sure how you are creating your ALV report.  If you are using FM REUSE_ALV_GRID_DISPLAY there is a parameter callled I_CALLBACK_PF_STATUS .  Read the documentation for this field from the doc for the FM.  It tells you to copy a standard PF status from fucn group SLVC_FULLSCREEN and then add your new button to that staus.
    If you are using class CL_SALV_MODEL_BASE there is a method called set_screen_status that lets you do a similar thing - copy an existing PF status and add your button.
    Hope that helps
    Regards
    Greg Kern

  • 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

Maybe you are looking for