OBIEE11g - GO URL Hyperlink is exported to Excel

Hi,
I've had to use a GO URL as a drill through on one of our dashboards. Normall we use Action Link (BI Navigation).
When the Anlaysis with the GO Url is exported to excel the hyperlink is exported in a clickable form.
Anyone know if it's possible to stop the exporting of the hyper link in its clickable form?
Regards

Excel often gives me problems with hyperlinks. I made a test of a link to an mp3 in a Number table. One cell was the hyperlink, another used the HYPERLINK function. Both worked flawlessly in Numbers. Both opened as text from Excel, just as you saw.
I created an Excel document (using Excel) and pasted in the same link. It, too, opened it as a text file.
I used "Insert Hyperlink" in Excel to create the hyperlink. Same thing.
Looks to be an Excel problem, not one related to Numbers or exporting to Excel.

Similar Messages

  • OBIEE11g GO URL Hyperlink exported in clickable form to Excel

    Hi,
    I've had to use a GO URL as a drill through on one of our dashboards. Normall we use Action Link (BI Navigation).
    When the Anlaysis with the GO Url is exported to excel the hyperlink is exported in a clickable form.
    Anyone know if it's possible to stop the exporting of the hyper link in its clickable form?
    Regards

    Hi,
    I've had to use a GO URL as a drill through on one of our dashboards. Normall we use Action Link (BI Navigation).
    When the Anlaysis with the GO Url is exported to excel the hyperlink is exported in a clickable form.
    Anyone know if it's possible to stop the exporting of the hyper link in its clickable form?
    Regards

  • Export to Excel is not working for List View Web Part after filtering using Query String parameters in SharePoint 2010

    Hi, 
    I am filtering SharePoint list view web part based on Query string parameter and I am doing Export to Excel by using following code.
    <a href="#" onclick="javascript:window.location='../_vti_bin/owssvr.dll?CS=109&Using=_layouts/query.iqy&List=0DC67399-BE11-48F3-ADFC-E911FB8B5845&View=54671412-3EFE-4281-835A-9EF747AE774E&CacheControl=1'"><img
    alt="Excel" src="/_layouts/images/icxlsx.gif" border="0"/>&nbsp;Export to Excel</a>
    Issue: Able to do Export to Excel when there are no filters applied on list view web part but if applied filters on web part and do export to excel , only header fields are displaying in the excel sheet.
    I don't know why owssvr.dll is behaving like that .
    Please share your ideas.
    Thanks in Advance.

    Hi,
    According to your post, my understanding is that you wanted to create hyperlink to export to excel.
    The URL to execute the export is as follows:
    {Site URL}/_vti_bin/owssvr.dll?CS=109&Using=_layouts/query.iqy&List={List GUID}&View={View GUID}&CacheControl=1
    After getting the GUID, you  need to “decode” the list GUID.
    Replace %7B with {
    Replace %2D with –
    Replace %7D with }
    More information:
    Create Link to Export Library Contents to Excel
    SharePoint - Create a link to export to Excel
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Hyperlink in Numbers acts strange when exported to Excel

    Hello All,
    I'm having a problem with hyperlinks. In Numbers, I'm linking to an mp3 audio file on the internet. This works perfectly, you click on the song title hyperlink, Safari opens and the song plays/streams right in the browser window.
    When I export the Numbers file as an Excel document, the hyperlink still works but the mp3 is displayed as a text file within Safari (miles of random text). I would like it to play in the browser like it does in Numbers.
    Also, when exporting to other formats, like .pdf, the file plays in the browser just like in Numbers.
    So, what is Excel doing to the link that makes Safari react to the file differently? Should I be typing in the link differently in Excel? I already tried html (href="www.blah.com").
    Any thoughts on the matter would be greatly appreciated!
    Warren

    Excel often gives me problems with hyperlinks. I made a test of a link to an mp3 in a Number table. One cell was the hyperlink, another used the HYPERLINK function. Both worked flawlessly in Numbers. Both opened as text from Excel, just as you saw.
    I created an Excel document (using Excel) and pasted in the same link. It, too, opened it as a text file.
    I used "Insert Hyperlink" in Excel to create the hyperlink. Same thing.
    Looks to be an Excel problem, not one related to Numbers or exporting to Excel.

  • Export to Excel using URL in Discoverer Plus

    Using Discoverer 4i Plus.
    Using URL arguments I want to export to Excel automatically. I see that if I was using Discoverer Viewer it would be something like fm=xls. Is there similar code for doing this with Plus?
    Thanks!

    Maybe it's possible, but I doubt it.
    Reason is that you're asking the URL to run the report and then once done export out the values and I just don't think the 'i' - or now 'g' versions support this.
    This was why the command line interface with the Desktop version was so popular as this is exactly the kind of thing you can do, plus much more.
    I checked the documentation for Plus and can find nothing about doing this in the URL. Maybe someone will say otherwise, but with Plus I don't think it's possible.
    Russ

  • Export To Excel In Visual Composer 7.0

    Hi ,
    i need Exprot Excel Functionality in Visual  Composer7.0  EP7.0 & SP17 . we are getting the data from BI 7 Version Queries in Portal .
    As We Know there is No Direct Open of Export to Excel Functionality
    After Folliowing the Great Link
    Using Web Design API .with Hyperlink  .
    When im trying click on Export To Excel Button It throws Error .
    Im Using Compiler Flash Flex2 Compiler.
    When i am using Flash Compiler it Throws An Error in VC .
    please give me valuehble inputs
    500 Internal Server Error
      BEx Web Application
    Failed to process request; contact your system administrator
    Information for Administrator
    To avoid this exception see the steps below. To help SAP better investigate this issue, you will need to provide the diagnostic information from these steps.
    1. Most likely, the issue you are experiencing has already been corrected. Please make sure that the most recent patch level is deployed on your system according to notes 1033246 and 1011241. Starting with Support Package Stack 16 patch level 30, BI Java is delivered according to the synchronized delivery process described in the note 1033246.
    2. Please ensure that NetWeaver Business Intelligence Diagnostics & Support Desktop Tool  does not report any issues on your server according to note 937697. You can start it by clicking here (administrator permissions are required).
    3. When opening any customer message on this issue, please attach:
    Support Desktop Tool support info ZIP  file according to note 937697,
    Required information for reproduction  according to note 948490.
    Error Summary
    Exception occured while processing the current request; this exception cannot be handled by the application or framework
    If the information on this page does not help you locate and correct the cause of the problem, contact your system administrator
    To facilitate analysis of the problem, keep a copy of this error page Hint: Most Web browsers allow you to select all content, and copy and paste it into an empty document (such as in an email or simple text file)
    Root Cause
    The initial exception that caused the request to fail was:
    Parameter object with the name "BI_COMMAND_TYPE" and the index "0" still does not exist in the parameter list:
    <parameterList>
      <param name=" BI_COMMAND_TYPE" value="EXPORT"/>
      <param name=" NULL" value=""/>
      <param name=" SHOW_EXPORT_DIALOG" value="X"/>
    </parameterList>
    com.sap.ip.bi.base.exception.BIBaseRuntimeException: Parameter object with the name "BI_COMMAND_TYPE" and the index "0" still does not exist in the parameter list:
    <parameterList>
      <param name=" BI_COMMAND_TYPE" value="EXPORT"/>
      <param name=" NULL" value=""/>
      <param name=" SHOW_EXPORT_DIALOG" value="X"/>
    </parameterList>
    Log ID 001517B2186400780000039E00003F0400047C7C752D75EE
    Details: Full Exception Chain
    System Environment
    Server
    BI Java Release: 7 - Patch level: 0000000016 - Description: BI Web Applications Java - Additional info:  - Production mode: true
    BI ABAP Release: 700 - Patch level: 0019 - Description: SAP NetWeaver BI 7.0 (PB1CLNT451) - Additional info:  - Production mode: true
    Java Virtual Machine Java HotSpot(TM) 64-Bit Server VM - Sun Microsystems Inc. - 1.4.2_21-b03
    Operating System SunOS - sparcv9 - 5.10
    Context
    ACCESSIBLE false
    CACHE true
    CONTENT_PADDING true
    COUNTRY US
    DEBUG false
    DEBUG_LEVEL 0
    DEBUG_MESSAGES false
    DEBUG_TEXTS false
    DEFAULT_FONT 
    DISPLAY_STACK_TRACE_IN_ERROR_PAGES true
    LANGUAGE EN
    Master System Alias PB1CLNT451
    NAVIGATION_NODE_ACTIVE_IVIEW pcd:portal_content/com.sap.pct/platform_add_ons/com.sap.ip.bi/iViews/com.sap.ip.bi.bex
    PROFILING false
    Query String (Initial Browser Request) BI_COMMAND_1-BI_COMMAND_TYPE=EXPORT&BI_COMMAND_1-NULL=&BI_COMMAND_1-SHOW_EXPORT_DIALOG=X&BI_COMMAND_1-EXPORT_FORMAT=PDF&QUERY=
    RTL false
    Request URL http://d03pp1.saildsp.co.in:50300
    SAP_BW_IVIEW_ID pcd:portal_content/com.sap.pct/platform_add_ons/com.sap.ip.bi/iViews/com.sap.ip.bi.bex
    SERVER_URL_PREFIX http://d03PP1.saildsp.co.in:50300
    THEME_NAME sap_tradeshow
    TRACE false
    TRAY_TYPE PLAIN
    Time Wed Jan 06 16:01:30 IST 2010
    USE_HTTPS_FOR_ADS false
    USE_SAP_EXPORT_LIB false
    User CEP_SIVA (USER.R3_DATASOURCE.CEP_SIVA)
    VALIDATION_DATA false
    Deployed SCAs
    SCA Version SP Patch Compiled Deployed
    ADSSAP 7.00 17 0 2008-09-17 22:26:43 IST 2009-08-29 10:51:50 IST
    BASETABLES 7.00 17 0 2008-09-17 22:41:38 IST 2009-08-29 10:37:16 IST
    BI-BASE-S 7.00 17 20 2008-12-04 07:47:32 IST 2009-08-29 11:55:31 IST
    BI-IBC 7.00 17 0 2008-09-18 06:07:59 IST 2009-08-29 11:45:17 IST
    BI-REPPLAN 7.00 17 0 2008-09-18 07:38:15 IST 2009-08-29 11:56:13 IST
    BI-WDALV 7.00 17 0 2008-09-18 07:38:21 IST 2009-08-29 11:56:24 IST
    BIWEBAPP 7.00 17 20 2008-12-04 07:48:29 IST 2009-08-29 11:47:27 IST
    BI_MMR 7.00 17 0 2008-09-17 22:42:29 IST 2009-08-29 10:52:19 IST
    BI_UDI 7.00 17 0 2008-09-17 22:42:49 IST 2009-08-29 10:53:28 IST
    CAF 7.00 17 0 2008-09-18 08:09:40 IST 2009-08-29 11:30:07 IST
    CAF-KM 7.00 17 0 2008-09-18 07:42:37 IST 2009-08-29 12:06:47 IST
    CAF-UM 7.00 17 0 2008-09-18 08:09:46 IST 2009-08-29 10:47:54 IST
    CORE-TOOLS 7.00 17 0 2008-09-17 22:45:03 IST 2009-08-29 10:37:32 IST
    EP-PSERV 7.00 17 0 2008-09-18 06:14:35 IST 2009-08-29 11:57:13 IST
    EP-WDC 7.00 17 0 2008-09-18 01:31:00 IST 2009-08-29 11:59:04 IST
    EPBC 7.00 17 0 2008-09-18 06:13:01 IST 2009-08-29 11:09:46 IST
    EPBC2 7.00 17 0 2008-09-18 06:13:12 IST 2009-08-29 11:49:55 IST
    JLOGVIEW 7.00 17 0 2008-09-17 21:40:00 IST 2009-08-29 10:37:52 IST
    JSPM 7.00 17 1 2008-12-10 12:16:00 IST 2009-08-28 22:07:33 IST
    KM-KW_JIKS 7.00 17 0 2008-09-17 22:47:53 IST 2009-08-29 11:10:10 IST
    KMC-BC 7.00 17 0 2008-09-18 06:15:00 IST 2009-08-29 11:59:39 IST
    KMC-CM 7.00 17 0 2008-09-18 06:15:52 IST 2009-08-29 12:00:05 IST
    KMC-COLL 7.00 17 0 2008-09-18 06:16:17 IST 2009-08-29 11:51:27 IST
    LM-PORTAL 7.00 17 0 2008-09-18 07:45:59 IST 2009-08-29 11:45:18 IST
    LM-TOOLS 7.00 17 0 2008-10-08 12:18:34 IST 2009-08-29 11:37:41 IST
    NET-PDK 7.00 17 0 2008-09-18 06:16:25 IST 2009-08-29 11:51:29 IST
    RTC 7.00 17 0 2008-09-18 06:16:39 IST 2009-08-29 11:51:31 IST
    RTC-STREAM 7.00 17 0 2008-09-18 06:16:39 IST 2009-08-29 11:45:19 IST
    SAP-EU 7.00 17 0 2008-09-18 07:47:22 IST 2009-08-29 12:05:04 IST
    SAP-JEE 7.00 17 0 2008-09-17 22:52:28 IST 2009-08-29 10:38:17 IST
    SAP-JEECOR 7.00 17 0 2008-09-17 22:53:35 IST 2009-08-29 10:38:52 IST
    SAP_JTECHF 7.00 17 0 2008-09-17 22:54:39 IST 2009-08-29 10:39:08 IST
    SAP_JTECHS 7.00 17 0 2008-09-17 22:57:28 IST 2009-08-29 11:24:36 IST
    UMEADMIN 7.00 17 0 2008-09-18 08:19:28 IST 2009-08-29 11:38:09 IST
    UWLJWF 7.00 17 0 2008-09-18 06:17:26 IST 2009-08-29 12:07:22 IST
    VCBASE 7.00 17 0 2008-09-18 06:17:33 IST 2009-08-29 12:08:19 IST
    VCFLEX 7.00 17 0 2008-09-18 06:18:04 IST 2009-08-29 11:52:19 IST
    VCFRAMEWORK 7.00 17 0 2008-09-18 06:18:13 IST 2009-08-29 11:52:24 IST
    VCKITBI 7.00 17 0 2008-09-18 06:11:41 IST 2009-08-29 11:45:20 IST
    VCKITGP 7.00 17 0 2008-09-18 06:18:13 IST 2009-08-29 11:45:21 IST
    VCKITXX 7.00 17 0 2008-09-18 06:18:13 IST 2009-08-29 11:45:22 IST
    WDEXTENSIONS 7.00 17 0 2008-09-18 07:49:02 IST 2009-08-29 12:08:46 IST
    Full Exception Chain
    Log ID 001517B2186400780000039E00003F0400047C7C752D75EE
    com.sap.ip.bi.base.exception.BIBaseRuntimeException: Parameter object with the name "BI_COMMAND_TYPE" and the index "0" still does not exist in the parameter list: <parameterList>  <param name=" BI_COMMAND_TYPE" value="EXPORT"/>  <param name=" NULL" value=""/>  <param name=" SHOW_EXPORT_DIALOG" value="X"/></parameterList>     at com.sap.ip.bi.base.parameter.impl.ParameterList.getParameterWithUpperCaseName(ParameterList.java:682)     at com.sap.ip.bi.base.parameter.impl.ParameterList.getValueWithUpperCaseName(ParameterList.java:748)     at com.sap.ip.bi.base.parameter.impl.ParameterList.getValue(ParameterList.java:742)     at com.sap.ip.bi.base.parameter.impl.ParameterList.getValue(ParameterList.java:732)     at com.sap.ip.bi.webapplications.runtime.impl.Page.resolvePageCommandDialogs(Page.java:4471)     at com.sap.ip.bi.webapplications.runtime.impl.Page.normalizeCommands(Page.java:4422)     at com.sap.ip.bi.webapplications.runtime.impl.Page.doProcessRequest(Page.java:3974)     at com.sap.ip.bi.webapplications.runtime.impl.Page._processRequest(Page.java:3021)     at com.sap.ip.bi.webapplications.runtime.impl.Page.processRequest(Page.java:2864)     at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.doProcessRequest(Controller.java:994)     at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller._processRequest(Controller.java:883)     at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.processRequest(Controller.java:860)     at com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService._handleRequest(BIRuntimeService.java:362)     at com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService.handleRequest(BIRuntimeService.java:279)     at com.sap.ip.bi.webapplications.runtime.jsp.portal.components.LauncherComponent.doContent(LauncherComponent.java:24)     at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)     at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)     at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)     at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)     at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)     at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)     at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)     at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)     at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)     at java.security.AccessController.doPrivileged(Native Method)     at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)     at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)     at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)     at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)     at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)     at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)     at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)     at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)     at java.security.AccessController.doPrivileged(Native Method)     at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Regards ,
    venkat p

    Hi Apurva ,
    Now I got Variable Id  and Varibale Value i have give From Data Fields of VC  .
    When i click on Button Export To  Excel it gives
    SET_VARIABLES_STATE is Correctly placed For
    VARIABLE_VALUES VARIABLE_VALUE
    if give 
    VARIABLE_VALUES VARIABLE_VALUE instead of SET_VARIABLES_STATE it is giving  No MetaData  is available for VARIABLE_VALUES VARIABLE_VALUE
    it throws like .
    please help in this regard.
    I Have given The Formuls AS Below
    "pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=zmp_prodn_mtef_ccp_1&BI_COMMAND_1-BI_COMMAND_TYPE=VARIABLE_VALUES VARIABLE_VALUE&BI_COMMAND_1-VARIABLE_VALUES VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING="&2009&"&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=0P_FYEAR&BI_COMMAND_3-BI_COMMAND_TYPE=EXPORT&BI_COMMAND_3-EXPORT_FORMAT=XLS&BI_COMMAND_3-null="
    Regards ,
    venkat p

  • SSRS 2012 export to Excel 2010 Via IE8 has many compatibility issues

    Hi There,
    We have many reports in SSRS 2012 which had originally developed in SSRS 2005. When ever we render these report into Excel we face two major issues;
    First: After reports render in to Excel (xlsx) format, we have cell, column, row shifting problem and every element of the report is not in the same place as appose to 2005 render to xls format. Second.
    for any drill through (link) report all the url will be blocked by Excel. 
    We use SSRS 2012, Office 2010 and IE 8. Also we don't want to add Export to Excel 2003 feature. In other word we want out put in xlsx. 
    Any solution, suggestion, hotfix is appreciated 

    Hi Mercede,
    According to your description, after you updated SSRS 2005 reports to SSRS 2012, reports render appose to 2005 when export them to Excel, and drill through link is blocked.
    Question1:
    A report definition file includes a reference to the RDL namespace that specifies the version of the report definition schema that is used to validate the .rdl file. After a report is upgraded locally or on the report server, you might notice additional errors,
    warnings, and messages. This is the result of changes to the internal report object model and processing components, which cause messages to appear when underlying problems in the report are detected.
    When you open an .rdl file in Report Designer in SQL Server Data Tools (SSDT), if the report was created for a previous namespace, Report Designer automatically creates a backup file and upgrades the report to the current namespace. This is the only way
    you can upgrade a report definition file.
    In order to improve the efficiency of troubleshooting, I need to ask several questions:
    “we have cell, column, row shifting problem and every element of the report is not in the same place as appose to 2005 render to xls format” Could you please provide detailed information about the problem? I would be appreciated it if you could provide
    a screenshot.
    Did you update the reports by opening the .rdl files in SSDT?
    Could you export report to Excel 2003 to see if it displays correctly?
    This may be a lot of information to ask for at one time. However, by collecting this information now, it will help us move more quickly toward a solution.
    Question2:
    I tested the issue in my local machine, when we add drillthrough action to the report, if we select Go to report or Go to URL, the link works fine after we export report to excel. It failed to work when we use javascript:void window.open to open a URL in new
    windows, the “window.open” can’t work in Excel because of the JavaScript protocol can work only with an exact page.
    For more information about Upgrade Reports, please refer to the following document:
    https://msdn.microsoft.com/en-us/library/ms143674(v=sql.110).aspx
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.
    Wendy Fu
    TechNet Community Support
    Hi Wendy,
    Thank you much for your fast respond. And as for your questions:
    1- Yes I did upgrade them by using SSDT tools in VS2012 and then deploy them again into our SSRS2012 report server.
    2- For URLs and Hyperlinks, because the action is go to sub report, I used "Go To Report" and by look at content that been blocked by Excel, I have noticed that (Go To Report) action passes IP address of our SSRS Server . I don't know how can I change
    it to use the actual path instead.
    3- Shifting the Cells and Rows means when I export report (from SSRS 2005) to excel in xls format (Excel 2003 for example), has very same look as it shows in screen, but when I export it from ssrs 2012 to render it in to xlsx format (Excel 2010 in our case)
    I face with merging cells and when I compare this xlsx out put with xls out put of very same report I have see the row that used to be on A23 for example now is in A20 or the column that used to be in A7 now is in B9 for example. And required a lot of manual
    work on design to work with spaced between text boxes and location of each data region, and overlaps to get the same result. I want to know is there more efficient way to achieve the same out put as  xls.
    4- I can't export report to render in Excel 2003 (xls) format directly from SSRS server for we don't have that option in our export list, but I did "save it as" xls and faced the same Row, column, cell shifting as with xlsx.
    Thank you so much 
    I am realistic, I expect miracles.

  • Hyper Link Exported to Excel - Unable to open in New window

    Hello Every1,
    My Greetings for the day!!!
    I have created a SSRS Report in SQL Server 2012.
    There are many columns in the report. But the last column is a hyperlink.
    I have applied the following in code in Action properties -
    ="javascript:void(window.open('" & Fields!DataURL.Value & "','_blank'))"
    The above code is working fine, when I deploy the report in Sharepoint and click on the link. The link gets open in new window.
    However, When I export the same report to EXCEL and then click the link. It is not getting redirected.
    Please provide some solution.
    Regards,
    Hiren Parikh
    Hiren Parikh

    Hi,
    I have got the solution.
    Please see the below code :-
    =IIf(Globals!RenderFormat.IsInteractive,"javascript:void(window.open('" & Fields!URL.Value & "','_blank'))",Fields!URL.Value)
    It really worked. Now, When I export to excel and click on the link. It opens in a new window.
    Regards,
    Hiren
    Hiren Parikh

  • After Export to Excel File error while opening using xmlwriter in silverlight

    Can one help me in fixing following issue after to export to excel had done iam getting following error message 
    "The file you are trying to open, 'test.xls', is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do uou want to open the file now ?"
    If i click Yes file opens correctly but it shows above message . Can any one suggest me how to avoid this programatically with the following code.
    I tried by changing the file saving as  .xls to .xlsx  but it doesnt works.
    Public Sub Export()
    Dim ss As String = "urn:schemas-microsoft-com:office:spreadsheet"
    Dim DataType As String
    Dim DataValue As Object
    'Dim DataView As C1.Silverlight.Data.DataView = m_DataGrid.ItemsSource
    'Dim ItemsSource As C1.Silverlight.Data.DataTable = DataView.Table
    Dim XmlSettings As XmlWriterSettings
    Dim ColumnBinding As Binding
    Dim FieldName As String
    Dim DataGridColumn As C1.Silverlight.DataGrid.DataGridColumn
    Dim ColumnIndex As Integer
    Dim J As Integer
    Dim DataGridRow As C1.Silverlight.DataGrid.DataGridRow
    Dim CommonUtil As New GoldCRM.Core.Common.Util
    Dim PropertyInfo As System.Reflection.PropertyInfo
    Dim CellFormat As String
    Try
    If m_DataGrid.Rows.Count = 0 Then Exit Try
    XmlSettings = New XmlWriterSettings
    XmlSettings.Indent = True
    XmlSettings.NewLineOnAttributes = False
    Using myXML As XmlWriter = XmlWriter.Create(m_Stream, XmlSettings)
    With myXML
    .WriteStartDocument()
    .WriteProcessingInstruction("mso-application", "progid=" & ControlChars.Quote & "Excel.Sheet" & ControlChars.Quote)
    .WriteStartElement("Workbook", ss)
    .WriteStartElement("DocumentProperties", "urn:schemas-microsoft-com:office:office")
    .WriteElementString("Author", m_DocumentProperties.Author)
    .WriteElementString("LastAuthor", String.Format("{0} {1}", Application.Current.Resources("EmpFirstName"), Application.Current.Resources("EmpLastName")))
    .WriteElementString("Created", m_DocumentProperties.Created)
    .WriteElementString("LastSaved", m_DocumentProperties.LastSaved)
    .WriteElementString("Company", Application.Current.Resources("REPORTINGSITENAME"))
    .WriteElementString("Version", m_DocumentProperties.Version)
    .WriteEndElement() 'Document Properties
    .WriteStartElement("ExcelWorkbook", "urn:schemas-microsoft-com:office:excel")
    .WriteElementString("WindowHeight", m_WorkbookProperties.WindowHeight)
    .WriteElementString("WindowWidth", m_WorkbookProperties.WindowWidth)
    .WriteElementString("WindowTopX", m_WorkbookProperties.WindowTopX)
    .WriteElementString("WindowTopY", m_WorkbookProperties.WindowTopY)
    .WriteElementString("ProtectStructure", m_WorkbookProperties.ProtectStructure)
    .WriteElementString("ProtectWindows", m_WorkbookProperties.ProtectWindows)
    .WriteEndElement() 'Excel Workbook
    .WriteStartElement("Styles")
    For I As Integer = 0 To m_Styles.Count - 1
    .WriteStartElement("Style")
    .WriteAttributeString("ss", "ID", ss, m_Styles(I).ID)
    If m_Styles(I).Name <> "" Then
    .WriteAttributeString("ss", "Name", ss, m_Styles(I).Name)
    End If
    'ALIGNMENT LOGIC:
    .WriteStartElement("Alignment")
    If Not m_Styles(I).Alignment Is Nothing Then
    If m_Styles(I).Alignment.Horizontal <> 0 Then
    .WriteAttributeString("ss", "Horizontal", ss, m_Styles(I).Alignment.Horizontal.ToString)
    End If
    If m_Styles(I).Alignment.Vertical <> 0 Then
    .WriteAttributeString("ss", "Vertical", ss, m_Styles(I).Alignment.Vertical.ToString)
    End If
    If m_Styles(I).Alignment.WrapText = True Then
    .WriteAttributeString("ss", "WrapText", ss, "1")
    End If
    End If
    .WriteEndElement()
    'BORDER LOGIC:
    .WriteStartElement("Borders")
    .WriteStartElement("Border")
    .WriteAttributeString("ss", "Position", ss, "Bottom")
    .WriteAttributeString("ss", "LineStyle", ss, "Continuous")
    .WriteAttributeString("ss", "Weight", ss, "1")
    .WriteEndElement() 'Border
    .WriteStartElement("Border")
    .WriteAttributeString("ss", "Position", ss, "Left")
    .WriteAttributeString("ss", "LineStyle", ss, "Continuous")
    .WriteAttributeString("ss", "Weight", ss, "1")
    .WriteEndElement() 'Border
    .WriteStartElement("Border")
    .WriteAttributeString("ss", "Position", ss, "Right")
    .WriteAttributeString("ss", "LineStyle", ss, "Continuous")
    .WriteAttributeString("ss", "Weight", ss, "1")
    .WriteEndElement() 'Border
    .WriteStartElement("Border")
    .WriteAttributeString("ss", "Position", ss, "Top")
    .WriteAttributeString("ss", "LineStyle", ss, "Continuous")
    .WriteAttributeString("ss", "Weight", ss, "1")
    .WriteEndElement() 'Border
    .WriteEndElement() 'Borders
    'FONT LOGIC:
    .WriteStartElement("Font")
    Dim myFont As Excel.Styles.Font = m_Styles(I).Font
    .WriteAttributeString("ss", "FontName", ss, myFont.FontName.ToString)
    .WriteAttributeString("ss", "Size", ss, myFont.Size)
    .WriteAttributeString("ss", "Color", ss, myFont.Color.ToString.Remove(1, 2))
    If myFont.Bold = True Then .WriteAttributeString("ss", "Bold", ss, "1")
    If myFont.Italic = True Then .WriteAttributeString("ss", "Italic", ss, "1")
    If myFont.Underline <> 0 Then .WriteAttributeString("ss", "Underline", ss, myFont.Underline.ToString)
    .WriteEndElement()
    Dim myInterior As Excel.Styles.Interior = m_Styles(I).Interior
    .WriteStartElement("Interior")
    .WriteAttributeString("ss", "Color", ss, myInterior.Color.ToString.Remove(1, 2))
    .WriteAttributeString("ss", "Pattern", ss, "Solid")
    .WriteEndElement()
    .WriteStartElement("NumberFormat")
    .WriteEndElement()
    .WriteStartElement("Protection")
    .WriteEndElement()
    .WriteEndElement() 'Style
    Next I
    .WriteStartElement("Style")
    .WriteAttributeString("ss", "ID", ss, "DateStyle")
    .WriteStartElement("NumberFormat")
    .WriteAttributeString("ss", "Format", ss, "General Date")
    .WriteEndElement() 'NumberFormat
    .WriteEndElement() 'Style
    .WriteStartElement("Style")
    .WriteAttributeString("ss", "ID", ss, "HeaderStyle")
    .WriteStartElement("Font")
    .WriteAttributeString("x", "Family", ss, "Swiss")
    .WriteAttributeString("ss", "Bold", ss, "1")
    .WriteEndElement() 'Font
    .WriteEndElement() 'Style
    .WriteEndElement() 'Styles
    'WORKSHEETS:
    .WriteStartElement("Worksheet")
    .WriteAttributeString("ss", "Name", ss, "WORKSHEET")
    .WriteStartElement("Table")
    .WriteAttributeString("ss", "ExpandedColumnCount", ss, m_DataGrid.Columns.Count)
    .WriteAttributeString("ss", "ExpandedRowCount", ss, m_DataGrid.Rows.Count + 100) 'Temporary fix: sometimes 1 row is not added.
    .WriteAttributeString("ss", "FullColumns", ss, m_DataGrid.Columns.Count)
    .WriteAttributeString("ss", "FullRows", ss, m_DataGrid.Rows.Count + 100) 'Temporary fix: sometimes 1 row is not added.
    .WriteAttributeString("ss", "DefaultRowHeight", ss, 15)
    For Each DataGridColumn In m_DataGrid.Columns
    If DataGridColumn.Visibility = Visibility.Visible Then
    .WriteStartElement("Column")
    If TypeOf DataGridColumn Is C1.Silverlight.DataGrid.DataGridNumericColumn Then
    .WriteAttributeString("ss", "AutoFitWidth", ss, 1)
    ElseIf TypeOf DataGridColumn Is C1.Silverlight.DataGrid.DataGridDateTimeColumn Then
    .WriteAttributeString("ss", "AutoFitWidth", ss, 1)
    Else
    .WriteAttributeString("ss", "AutoFitWidth", ss, 0)
    End If
    If DataGridColumn.Width.Value <= 100 Then
    .WriteAttributeString("ss", "Width", ss, 100)
    Else
    .WriteAttributeString("ss", "Width", ss, DataGridColumn.Width.Value)
    End If
    .WriteEndElement()
    End If
    Next
    J = 0
    For Each DataGridRow In m_DataGrid.Rows
    J += 1
    If TypeOf DataGridRow Is GoldCRM.Controls.Filter.clsFilterRow Then
    .WriteStartElement("Row")
    .WriteAttributeString("ss", "Index", ss, J)
    .WriteAttributeString("ss", "AutoFitHeight", ss, 0)
    .WriteAttributeString("ss", "Height", ss, 15)
    ColumnIndex = 0
    For Each DataGridColumn In m_DataGrid.Columns
    If DataGridColumn.Visibility = Visibility.Visible Then
    FieldName = String.Empty
    If TypeOf DataGridColumn Is DataGridBoundColumn Then
    ColumnBinding = TryCast(DataGridColumn, DataGridBoundColumn).Binding
    If ColumnBinding.Path IsNot Nothing Then
    FieldName = ColumnBinding.Path.Path
    End If
    ElseIf TypeOf DataGridColumn Is DataGridTemplateColumn Then
    If DataGridColumn.FilterMemberPath IsNot Nothing Then
    FieldName = DataGridColumn.FilterMemberPath.Trim
    End If
    End If
    If Not FieldName.Equals(String.Empty) Then
    ColumnIndex += 1
    .WriteStartElement("Cell")
    .WriteAttributeString("ss", "Index", ss, ColumnIndex)
    .WriteAttributeString("ss", "MergeAcross", ss, 0)
    .WriteAttributeString("ss", "StyleID", ss, "HeaderStyle")
    .WriteStartElement("Data")
    .WriteAttributeString("ss", "Type", ss, "String")
    If DataGridColumn.Header IsNot Nothing Then
    .WriteValue(DataGridColumn.Header.ToString)
    Else
    .WriteValue("")
    End If
    .WriteEndElement() 'Data
    .WriteEndElement() 'Cell
    End If
    End If
    Next
    .WriteEndElement() 'Row
    End If
    If Not (TypeOf DataGridRow Is GoldCRM.Controls.Filter.clsFilterRow) Then
    .WriteStartElement("Row")
    .WriteAttributeString("ss", "Index", ss, J + 1)
    .WriteAttributeString("ss", "AutoFitHeight", ss, 0)
    .WriteAttributeString("ss", "Height", ss, 15)
    ColumnIndex = 0
    For Each DataGridColumn In m_DataGrid.Columns
    If DataGridColumn.Visibility = Visibility.Visible Then
    FieldName = String.Empty
    If TypeOf DataGridColumn Is DataGridBoundColumn Then
    ColumnBinding = TryCast(DataGridColumn, DataGridBoundColumn).Binding
    If ColumnBinding.Path IsNot Nothing Then
    FieldName = ColumnBinding.Path.Path
    End If
    ElseIf TypeOf DataGridColumn Is DataGridTemplateColumn Then
    If DataGridColumn.FilterMemberPath IsNot Nothing Then
    FieldName = DataGridColumn.FilterMemberPath.Trim
    End If
    End If
    If Not FieldName.Equals(String.Empty) Then
    ColumnIndex += 1
    Dim DataCellValue As Object = Nothing
    If Not (TypeOf DataGridRow Is GoldCRM.Controls.Filter.clsFilterRow) Then
    PropertyInfo = CommonUtil.GetProperty(DataGridRow.DataItem, FieldName)
    If PropertyInfo IsNot Nothing Then
    DataCellValue = PropertyInfo.GetValue(DataGridRow.DataItem, Nothing)
    End If
    End If
    CellFormat = String.Empty
    If DataCellValue IsNot Nothing Then
    Select Case DataCellValue.GetType.Name.ToUpper
    Case "BitmapImage".ToUpper
    DataValue = "Image"
    DataType = "String"
    Case "Hyperlink".ToUpper
    DataType = "String"
    DataValue = "Hyperlink"
    Case "Decimal".ToUpper
    DataType = "Number"
    DataValue = DataCellValue
    Case "DateTime".ToUpper
    If CType(DataCellValue, Date).Year > 1900 Then
    DataType = "DateTime"
    DataValue = DataCellValue
    CellFormat = "DateStyle"
    Else
    DataType = "String"
    DataValue = DataCellValue
    End If
    Case Else
    DataType = "String"
    DataValue = DataCellValue
    End Select
    Else
    DataType = "String"
    DataValue = String.Empty
    End If
    .WriteStartElement("Cell")
    .WriteAttributeString("ss", "Index", ss, ColumnIndex)
    .WriteAttributeString("ss", "MergeAcross", ss, 0)
    If Not CellFormat.Equals(String.Empty) Then
    .WriteAttributeString("ss", "StyleID", ss, CellFormat)
    End If
    .WriteStartElement("Data")
    .WriteAttributeString("ss", "Type", ss, DataType)
    .WriteValue(DataValue)
    .WriteEndElement() 'Data
    .WriteEndElement() 'Cell
    End If
    End If
    Next
    .WriteEndElement() 'Row
    End If
    Next
    .WriteEndElement() 'Table
    .WriteEndElement() 'Worksheet
    .WriteEndElement() 'Workbook
    .WriteEndDocument()
    .Close()
    End With
    End Using
    Catch ex As Exception
    Throw New Exception(ex.Message, ex)
    Finally
    If m_Stream IsNot Nothing Then
    m_Stream.Close()
    m_Stream.Dispose()
    End If
    m_Stream = Nothing
    m_DataGrid.IsLoading = False
    DataValue = Nothing
    'DataView = Nothing
    'ItemsSource = Nothing
    XmlSettings = Nothing
    ColumnBinding = Nothing
    DataGridColumn = Nothing
    End Try
    End Sub
    Krishna

    Hi,
    i have the same issue now where i need to populate the xport file name as report name. can you send me your solution please.

  • Export to Excel from PL/SQL Procedure

    Hello,
    I am creating a report using PL/SQL and html code. Once the report is display, I click on "Export to Excel" button. it should open the new window with Excel. The window opens in Excel, but no data. I have following code
    as the first statement in the procedure.
    OWA_UTIL.MIME_HEADER ('application/vnd.ms-excel', FALSE);
    and this is the script
    <script language="JavaScript">
    var param_list
    l_param_list := l_param_list || '&p_app_main_id=' || p_app_main_id;
         l_param_list := l_param_list || '&p_from_date=' || p_from_date ;
         l_param_list := l_param_list || '&p_to_date=' || p_to_date ;
    htp.prn('
    param_list = ''');
    htp.prn( l_param_list);
    htp.prn('''
    function NewWindow(mypage,myname,w,h,scroll){
    var win = null;
    LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
    TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
    settings = ''height=''+h+'',width=''+w+'',top=''+TopPosition+'',left=''+LeftPosition+'',scrollbars=''+scroll+'',resizable''
    win = window.open(mypage,myname,settings)
    win.focus();
    function ExportToExcel() {
    var wndname = ''ExpCodeMoveRep'';
    var wndw = screen.width-10;
    var wndh = screen.height-10;
    var wattr = ''scrollbars=yes,toolbar=yes,resizable=yes,menubar=yes'';
    var wndurl = ''pm_codemove_report?p_output=E'';
    wndurl = wndurl + param_list;
         NewWindow(wndurl,wndname,wndw,wndh,wattr);
    </script>
    My submit is
    htp.prn('
    <p align="center">
    <input type="button" class="printbutton" value="Close" class="button" OnClick="window.close();"> 
    <input type="button" class="printbutton" value="Export To Excel" class="button" OnClick="ExportToExcel();">');
    Can anyone tell me what is wrong.
    I have the same code in another schema and it is working fine. Both schema are on the same server. Do they have any set up on appserver in DAD file to be able to see the data in Excel?
    Thanks
    Yagna

    Thank you for your answer dccase!
    I decided to go with on demand process. I have trouble with calling procedure from (button URL - javascript:popupURL('#OWNER#.exportXML')) pop window which cause "Forbidden, The requested operation is not allowed" error. I read that this is because I'm using XE edition and there is no HTMLDB_PUBLIC_USER role in XE.
    Now, I use on demand process and button URL link:
    javascript:popupURL('f?p=&APP_ID.:0:&APP_SESSION.:APPLICATION_PROCESS=PLSQL_Export_XML:NO::')
    It is working. Now I have to find solution to automatically close popup window :-)
    Thanks!
    Marko

  • Project Server 2010 export to Excel 2007 fails

    I keep getting the following error when I try to export Resource Availability to Excel.  I am using Project Server 2010, Excel 2007, IE8, Windows 7.  I have PS set as a intranet site with low security set.  Coworkers with the same setup are
    not having this issue.  I have tried exporting to Excel with Excel open, Excel closed, on a hardwire network connection, on wireless network connection, on my corporate VPN and not on my corporate VPN. 
    Microsoft Office Excel cannot access the file "URL here" for the possible reasons:
    -The file name or path does not exist.
    -The file is being used by another program
    -The workbook you are trying to save has the same name as a currently open worklbook.
    Please provide suggestions on what to try differently to make the export work.  I have tried downloaded other version of IE and have the same issue.

    Hi Julia,
    since nobody jumped in, I'll give a try!
    Have you tried to reinstall Excel or at least repair it?
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • Export to excel issue

    Hi All,
    Kindly help me in solving this issue.
    Portals report layouts can be customized. When the user chooses to export
    the customized reports to Excel, only the standard layout (hard coded
    layout for each report) is exported to Excel and all the customized columns
    are not exported.
    C&RM is planning to use the portals aging report for performance metrics,
    collection and identifying the over 90 items for collection rep. The
    standard layout for the portals aging report is missing the BP# and
    Collection rep name.
    Choosing right click, select all and copying to Excel, the format of the
    report is lost.
    Herewith I am attaching the code which needs modification.
    // This file has been generated partially by the Web Dynpro Code Generator.
    // MODIFY CODE ONLY IN SECTIONS ENCLOSED BY @@begin AND @@end.
    // ALL OTHER CHANGES WILL BE LOST IF THE FILE IS REGENERATED.
    package com.zurich.fscd;
    // IMPORTANT NOTE:
    // ALL IMPORT STATEMENTS MUST BE PLACED IN THE FOLLOWING SECTION ENCLOSED // BY @@begin imports AND @@end. FURTHERMORE, THIS SECTION MUST ALWAYS CONTAIN // AT LEAST ONE IMPORT STATEMENT (E.G. THAT FOR IPrivateExportexView).
    // OTHERWISE, USING THE ECLIPSE FUNCTION "Organize Imports" FOLLOWED BY // A WEB DYNPRO CODE GENERATION (E.G. PROJECT BUILD) WILL RESULT IN THE LOSS // OF IMPORT STATEMENTS.
    //@@begin imports
    import java.util.HashMap;
    import java.util.Iterator;
    import java.util.LinkedHashMap;
    import java.util.Map;
    import java.util.StringTokenizer;
    import com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException;
    import com.sap.tc.webdynpro.progmodel.api.IWDAttributeInfo;
    import com.sap.tc.webdynpro.progmodel.api.IWDMessageManager;
    import com.sap.tc.webdynpro.progmodel.api.IWDNode;
    import com.sap.tc.webdynpro.progmodel.api.IWDNodeElement;
    import com.sap.tc.webdynpro.services.sal.adapter.api.WDWebContextAdapter;
    import com.sap.tc.webdynpro.services.sal.url.api.IWDCachedWebResource;
    import com.sap.tc.webdynpro.services.sal.url.api.WDURLException;
    import com.sap.tc.webdynpro.services.sal.url.api.WDWebResource;
    import com.sap.tc.webdynpro.services.sal.url.api.WDWebResourceType;
    import com.zurich.fscd.wdp.IPrivateExportexView;
    //@@end
    //@@begin documentation
    //@@end
    public class ExportexView
    Logging location.
      private static final com.sap.tc.logging.Location logger =
        com.sap.tc.logging.Location.getLocation(ExportexView.class);
      static
        //@@begin id
        String id = "$Id$";
        //@@end
        com.sap.tc.logging.Location.getLocation("ID.com.sap.tc.webdynpro").infoT(id);
    Private access to the generated Web Dynpro counterpart
    for this controller class.  </p>
    Use <code>wdThis</code> to gain typed access to the context,
    to trigger navigation via outbound plugs, to get and enable/disable
    actions, fire declared events, and access used controllers and/or
    component usages.
    @see com.zurich.fscd.wdp.IPrivateExportexView for more details
      private final IPrivateExportexView wdThis;
    Root node of this controller's context. </p>
    Provides typed access not only to the elements of the root node
    but also to all nodes in the context (methods node<i>XYZ</i>())
    and their currently selected element (methods current<i>XYZ</i>Element()).
    It also facilitates the creation of new elements for all nodes
    (methods create<i>XYZ</i>Element()). </p>
    @see com.zurich.fscd.wdp.IPrivateExportexView.IContextNode for more details.
      private final IPrivateExportexView.IContextNode wdContext;
    A shortcut for <code>wdThis.wdGetAPI()</code>. </p>
    Represents the generic API of the generic Web Dynpro counterpart
    for this controller. </p>
      private final com.sap.tc.webdynpro.progmodel.api.IWDViewController wdControllerAPI;
    A shortcut for <code>wdThis.wdGetAPI().getComponent()</code>. </p>
    Represents the generic API of the Web Dynpro component this controller
    belongs to. Can be used to access the message manager, the window manager,
    to add/remove event handlers and so on. </p>
      private final com.sap.tc.webdynpro.progmodel.api.IWDComponent wdComponentAPI;
      public ExportexView(IPrivateExportexView wdThis)
        this.wdThis = wdThis;
        this.wdContext = wdThis.wdGetContext();
        this.wdControllerAPI = wdThis.wdGetAPI();
        this.wdComponentAPI = wdThis.wdGetAPI().getComponent();
      //@@begin javadoc:wdDoInit()
      /** Hook method called to initialize controller. */
      //@@end
      public void wdDoInit()
        //@@begin wdDoInit()
         IWDCachedWebResource cachedExcelResource = null;
         String fileName = "Items.xls";
         byte[] bytes ;
         IWDAttributeInfo attInfo = wdContext.getNodeInfo().getAttribute("ExcelDownload");   
         IWDMessageManager manager = wdComponentAPI.getMessageManager();
         try{
              String reporttype = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("reporttype" ) ;
              if (reporttype == null) {
                   reporttype = GC_REPORTTYPE_BPACCTSTAT_CARM;
              Object level = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("level" ) ;
              if (level == null){
                   level = "";
              Object paramname = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("app.paramname" ) ;
              Object paramvalue = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("app.paramvalue" ) ;
              if (paramname == null){
                   paramname = "";
              if (paramvalue == null){
                   paramvalue = "";
              if (reporttype.equals(GC_REPORTTYPE_OPENITEMS_SUMM)) {
                   wdContext.currentZ_Rm_Get_Open_Items_ResultsElement().setI_Reporttype("S");
                   wdContext.currentZ_Rm_Get_Open_Items_ResultsElement().modelObject().execute();
                   wdContext.nodeOutputOI().invalidate();
                   bytes = toExcel(wdContext.nodeEt_Mas(),getColumnInfosAOISUMM()).getBytes();
                   cachedExcelResource = this.getCachedWebResource(bytes, fileName, WDWebResourceType.XLS);
              } else if (reporttype.equals(GC_REPORTTYPE_OPENITEMS_DET)) {
                   wdContext.currentZ_Rm_Get_Open_Items_ResultsElement().setI_Reporttype("A");
                   wdContext.currentZ_Rm_Get_Open_Items_ResultsElement().modelObject().execute();
                   wdContext.nodeOutputOI().invalidate();               
                   bytes = toExcel(wdContext.nodeEt_Detail(),getColumnInfosAOIDet()).getBytes();
                   cachedExcelResource = this.getCachedWebResource(bytes, fileName, WDWebResourceType.XLS);
              } else if (reporttype.equals(GC_REPORTTYPE_BPACCTSTAT_BU)) {
                   wdContext.currentZ_Rm_Bpacctstat_Bu_Get_ResultsElement().setI_Level(level.toString());
                   wdContext.currentZ_Rm_Bpacctstat_Bu_Get_ResultsElement().setI_Paramname(paramname.toString());
                   wdContext.currentZ_Rm_Bpacctstat_Bu_Get_ResultsElement().setI_Paramvalue(paramvalue.toString());
                   wdContext.currentZ_Rm_Bpacctstat_Bu_Get_ResultsElement().modelObject().execute();
                   wdContext.nodeOutput().invalidate();
                   bytes = toExcel(wdContext.nodeEt_Bu1(),getColumnInfosBU()).getBytes();
                   cachedExcelResource = this.getCachedWebResource(bytes, fileName, WDWebResourceType.XLS);
              } else if (reporttype.equals(GC_REPORTTYPE_BPACCTSTAT_CARM)) {
                   wdContext.currentZ_Rm_Bpaccstat_Ca_Get_ResultsElement().setI_Level(level.toString());
                   wdContext.currentZ_Rm_Bpaccstat_Ca_Get_ResultsElement().setI_Paramname(paramname.toString());
                   wdContext.currentZ_Rm_Bpaccstat_Ca_Get_ResultsElement().setI_Paramvalue(paramvalue.toString());
                   wdContext.currentZ_Rm_Bpaccstat_Ca_Get_ResultsElement().modelObject().execute();
                   wdContext.nodeOutputCRM().invalidate();
                   bytes = toExcel(wdContext.nodeEt_Carm1(),getColumnInfosCARM()).getBytes();
                   cachedExcelResource = this.getCachedWebResource(bytes, fileName, WDWebResourceType.XLS);
              } else if (reporttype.equalsIgnoreCase(GC_REPORTTYPE_RMETRICS_EFDBID)) {
                   //wdContext.currentZ_Rm_Rmetrics_Get_ResultsElement().setI_Reportlevel("1");
                   wdContext.currentZ_Rm_Rmetrics_Get_ResultsElement().setI_Reporttype("1");
                   wdContext.currentZ_Rm_Rmetrics_Get_ResultsElement().modelObject().execute();
                   wdContext.nodeOutputRmetr().invalidate();
                   bytes = toExcel(wdContext.nodeEt_Efdbid(),getColumnInfosRMETRICS1()).getBytes();
                   cachedExcelResource = this.getCachedWebResource(bytes, fileName, WDWebResourceType.XLS);
              } else if (reporttype.equalsIgnoreCase(GC_REPORTTYPE_RMETRICS_EFDBOD)) {
                   //wdContext.currentZ_Rm_Rmetrics_Get_ResultsElement().setI_Reportlevel("1");
                   wdContext.currentZ_Rm_Rmetrics_Get_ResultsElement().setI_Reporttype("2");
                   wdContext.currentZ_Rm_Rmetrics_Get_ResultsElement().modelObject().execute();
                   wdContext.nodeOutputRmetr().invalidate();
                   bytes = toExcel(wdContext.nodeEt_Efdbod(),getColumnInfosRMETRICS2()).getBytes();
                   cachedExcelResource = this.getCachedWebResource(bytes, fileName, WDWebResourceType.XLS);
              } else if (reporttype.equalsIgnoreCase(GC_REPORTTYPE_RMETRICS_PADDUD)) {
                   //wdContext.currentZ_Rm_Rmetrics_Get_ResultsElement().setI_Reportlevel("1");
                   wdContext.currentZ_Rm_Rmetrics_Get_ResultsElement().setI_Reporttype("3");
                   wdContext.currentZ_Rm_Rmetrics_Get_ResultsElement().modelObject().execute();
                   wdContext.nodeOutputRmetr().invalidate();
                   bytes = toExcel(wdContext.nodeEt_Paddud(),getColumnInfosRMETRICS3()).getBytes();
                   cachedExcelResource = this.getCachedWebResource(bytes, fileName, WDWebResourceType.XLS);
              } else if (reporttype.equalsIgnoreCase(GC_REPORTTYPE_RMETRICS_BIDBOD)) {
                   //wdContext.currentZ_Rm_Rmetrics_Get_ResultsElement().setI_Reportlevel("1");
                   wdContext.currentZ_Rm_Rmetrics_Get_ResultsElement().setI_Reporttype("4");
                   wdContext.currentZ_Rm_Rmetrics_Get_ResultsElement().modelObject().execute();
                   wdContext.nodeOutputRmetr().invalidate();
                   bytes = toExcel(wdContext.nodeEt_Bidbod(),getColumnInfosRMETRICS4()).getBytes();
                   cachedExcelResource = this.getCachedWebResource(bytes, fileName, WDWebResourceType.XLS);
              } else if (reporttype.equalsIgnoreCase(GC_REPORTTYPE_RMETRICS_DETAIL)) {
                   //wdContext.currentZ_Rm_Rmetrics_Get_ResultsElement().setI_Reportlevel("2");
                   //wdContext.currentZ_Rm_Rmetrics_Get_ResultsElement().setI_Reporttype("1");
                   wdContext.currentZ_Rm_Rmetrics_Get_ResultsElement().modelObject().execute();
                   wdContext.nodeOutputRmetr().invalidate();
                   bytes = toExcel(wdContext.nodeEt_Metdet(),getColumnInfosRMETRICSD()).getBytes();
                   cachedExcelResource = this.getCachedWebResource(bytes, fileName, WDWebResourceType.XLS);
              } else if (reporttype.equalsIgnoreCase(GC_REPORTTYPE_WRITEOFF)) {
                   wdContext.currentZ_Rm_Writeoff_Get_ResultsElement().setI_Reportlevel("1");
                   wdContext.currentZ_Rm_Writeoff_Get_ResultsElement().setI_Reporttype("4");
                   wdContext.currentZ_Rm_Writeoff_Get_ResultsElement().modelObject().execute();
                   wdContext.nodeOutputWoff().invalidate();
                   bytes = toExcel(wdContext.nodeEt_Writeoff1(),getColumnInfosWRITEOFF()).getBytes();
                   cachedExcelResource = this.getCachedWebResource(bytes, fileName, WDWebResourceType.XLS);
              if (cachedExcelResource != null) {
                wdContext.currentContextElement().setExcelDownload(cachedExcelResource.getURL());
         } catch(WDDynamicRFCExecuteException ce) {
              manager.reportException(ce.getMessage(), false);
         } catch (WDURLException ce) {
              manager.reportException(ce.getMessage(), false);
         } catch (Exception ce) {
              manager.reportException(ce.getMessage(), false);
        //@@end
      //@@begin javadoc:wdDoExit()
      /** Hook method called to clean up controller. */
      //@@end
      public void wdDoExit()
        //@@begin wdDoExit()
        //@@end
      //@@begin javadoc:wdDoModifyView
    Hook method called to modify a view just before rendering.
    This method conceptually belongs to the view itself, not to the
    controller (cf. MVC pattern).
    It is made static to discourage a way of programming that
    routinely stores references to UI elements in instance fields
    for access by the view controller's event handlers, and so on.
    The Web Dynpro programming model recommends that UI elements can
    only be accessed by code executed within the call to this hook method.
    @param wdThis Generated private interface of the view's controller, as
           provided by Web Dynpro. Provides access to the view controller's
           outgoing controller usages, etc.
    @param wdContext Generated interface of the view's context, as provided
           by Web Dynpro. Provides access to the view's data.
    @param view The view's generic API, as provided by Web Dynpro.
           Provides access to UI elements.
    @param firstTime Indicates whether the hook is called for the first time
           during the lifetime of the view.
      //@@end
      public static void wdDoModifyView(IPrivateExportexView wdThis, IPrivateExportexView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
        //@@begin wdDoModifyView
        //@@end
    The following code section can be used for any Java code that is
    not to be visible to other controllers/views or that contains constructs
    currently not supported directly by Web Dynpro (such as inner classes or
    member variables etc.). </p>
    Note: The content of this section is in no way managed/controlled
    by the Web Dynpro Designtime or the Web Dynpro Runtime.
      //@@begin others
      private String trimHeaderText(String headerText) {
         StringBuffer newHeaderText = new StringBuffer();
         String token;
         StringTokenizer tokenizer = new StringTokenizer(headerText.trim());
         while (tokenizer.hasMoreTokens()) {
           token = tokenizer.nextToken();
           newHeaderText.append(token.substring(0, 1).toUpperCase());
           newHeaderText.append(token.substring(1).toLowerCase());
         return newHeaderText.toString();
      private void trimHeaderTexts(Map columnInfos) {
         String attributeName, trimmedHeaderText;
         for (Iterator iter = columnInfos.keySet().iterator(); iter.hasNext();) {
           attributeName = (String) iter.next();
           String attributeValue = (String) columnInfos.get(attributeName);
           attributeValue.replace('&','-');
           attributeValue.replace('/','-');
           trimmedHeaderText = trimHeaderText(attributeValue);
           columnInfos.put(attributeName, trimmedHeaderText);
      private String toExcel(IWDNode dataNode, Map columnInfos) {
         StringBuffer x = new StringBuffer();
         String attributeName, headerName;
         String entriesName = "I"; //dataNode.getNodeInfo().getName();
         String entryName = entriesName + "";
         // trim given header texts, so that XML element names adhere to the rule 'no spaces contained'.    
         trimHeaderTexts(columnInfos);
         x.append("<?xml version='1.0' encoding='UTF-8' standalone='no'?>\n");
         x.append("<").append(entriesName).append(">\n");
         for (int i = 0; i < dataNode.size(); ++i) {
           IWDNodeElement dataNodeElement = dataNode.getElementAt(i);
           x.append("<").append(entryName).append(">\n");
           for (Iterator iter = columnInfos.keySet().iterator(); iter.hasNext();) {
              attributeName = (String) iter.next();
              headerName = (String) columnInfos.get(attributeName);
              String colVal = (String)dataNodeElement.getAttributeAsText(attributeName);
              //colVal = colVal.replace(' ','');
              colVal = colVal.replace('&','-');
              colVal = colVal.replace('<','L');
              colVal = colVal.replace('>','G');
              colVal = colVal.replace('/','-');
              x
                .append("<")
                .append(headerName)
                .append(">")
                .append(""+colVal)
                .append("</")
                .append(headerName)
                .append(">\n");
           x.append("</").append(entryName).append(">\n");
         x.append("</").append(entriesName).append(">\n");
         return x.toString();
      private String replaceSpecialChars(String inputString){
         String outputString = inputString;
         outputString.replace('A','B');
         inputString.replace('A','B');
         return outputString;
      private Map getColumnInfosAOISUMM() {
         LinkedHashMap columnInfosMap = new LinkedHashMap(); 
         columnInfosMap.put(IPrivateExportexView.IEt_MasElement.ZZBUS__UNIT__D, "BusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_MasElement.ZZPRODCATEG__D, "ProfitCenter");
         columnInfosMap.put(IPrivateExportexView.IEt_MasElement.ZZ1_TO30__FKKOPRU, "One Month OverDue");
         columnInfosMap.put(IPrivateExportexView.IEt_MasElement.ZZ31_TO60__FKKOPRU, "Two Months OverDue");
         columnInfosMap.put(IPrivateExportexView.IEt_MasElement.ZZ61_TO90__FKKOPRU, "Three Months OverDue");
         columnInfosMap.put(IPrivateExportexView.IEt_MasElement.ZZ91_TO18__FKKOPRU, "Three to Six Months OverDue");
         columnInfosMap.put(IPrivateExportexView.IEt_MasElement.ZZGT180__FKKOPRU, "Greater Than Six Months");
         columnInfosMap.put(IPrivateExportexView.IEt_MasElement.ZZCURREN__FKKOPRU,"Current");
         columnInfosMap.put(IPrivateExportexView.IEt_MasElement.ZZFUTURE__FKKOPRU, "Future");
         columnInfosMap.put(IPrivateExportexView.IEt_MasElement.TOTAL, "Total");
         return columnInfosMap;
      private Map getColumnInfosBU() {
         LinkedHashMap columnInfosMap = new LinkedHashMap(); 
         columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.ZZBUSUNIT__D, "BusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.ZZSUBBUSUNIT__D, "SubBusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.ZZPRCTR__D, "ProfitCenter");
         columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.ZZREGION__D, "Region");
         columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.ZZUWRITER__D, "Underwriter");
         columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.ZZBROKER__D, "Broker");
         columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.GPART__D, "Insured");
         columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.VTREF, "Policy");
         columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.AMNT__ADJ, "Adjustment");
         columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.AMNT__COMM, "Commission");
         columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.AMNT__DUE, "Due");
         columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.AMNT__GROSS, "Gross");
         columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.AMNT__PAID, "Paid");
         columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.AMNT__NET, "Net");
         columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.FAEDN, "DueDate");
         //columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.HVORG__D, "Main");
         //columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.TVORG__D, "Sub");
         return columnInfosMap;
      private Map getColumnInfosCARM() {
         LinkedHashMap columnInfosMap = new LinkedHashMap(); 
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.ZZBUSUNIT__D, "BusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.ZZSUBBUSUNIT__D, "SubBusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.ZZPRCTR__D, "ProfitCenter");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.ZZREGION__D, "Region");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.ZZMANAGER__D, "TeamManager");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.ZZACCREP__D, "AccountRepresentative");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.ZZBROKER__D, "Broker");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.GPART__D, "Insured");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.VKONT, "Contract");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.VTREF, "Policy");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.AMNT__ADJ, "Adjustment");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.AMNT__COMM, "Commission");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.AMNT__DUE, "Due");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.AMNT__GROSS, "Gross");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.AMNT__PAID, "Paid");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.AMNT__NET, "Net");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.FAEDN, "DueDate");
         //columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.HVORG__D, "Main");
         //columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.TVORG__D, "Sub");
         return columnInfosMap;
      private Map getColumnInfosAOIDet() {
         LinkedHashMap columnInfosMap = new LinkedHashMap(); 
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.ZZBUS__UNIT__D, "BusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.ZZPRODCATEG__D , "ProfitCenter");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.ZZNAME1__FKKOPRU, "BusinessPartner");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.ZZNAME__B__FKKOPRU, "Broker");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.BUKRS, "Company Code");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.VTREF, "Policy");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.ZZHVORGT, "Main");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.ZZTVORGT, "Sub");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.ZZ1_TO30__FKKOPRU, "One Month OverDue");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.ZZ31_TO60__FKKOPRU, "Two Months OverDue");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.ZZ61_TO90__FKKOPRU, "Three Months OverDue");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.ZZ91_TO18__FKKOPRU, "Three to Six Months OverDue");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.ZZGT180__FKKOPRU, "Greater Than Six Months");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.TOTAL, "Total");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.ZZCURREN__FKKOPRU,"Current");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.OPBEL, "Document No");
         //columnInfosMap.put(IPrivateExportexView.IEt_Detail1Element.VKONT, "Contract Account");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.BUDAT, "Posting Date");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.FAEDN, "Due Date");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.WAERS, "Currency");
         return columnInfosMap;
      private Map getColumnInfosRMETRICS1() {
         LinkedHashMap columnInfosMap = new LinkedHashMap(); 
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.ZZBUSUNIT__D, "BusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.ZZSUBBUSUNIT__D, "SubBusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.ZZPRODCATEG__D, "Profit Center");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.ZZREGION__D, "Region");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.ZZOFFICE__D, "Office");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.NAME__AR, "Collection Rep");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.NAME__BR, "Broker");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.NAME__IN, "Insured");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.Z0_TO3__AMT, "ZeroToThreeDaysBilledAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.Z0_TO3__POL, "ZeroToThreeDaysNoOfPol");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.Z4_TO5__AMT, "FourToFiveDaysBilledAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.Z4_TO5__POL, "FourToFiveDaysNoOfPol");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.Z6_TO10__AMT, "SixToTenDaysBilledAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.Z6_TO10__POL, "SixToTenDaysNoOfPol");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.Z11_TO15__AMT, "ElevenToFifteenDaysBilledAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.Z11_TO15__POL, "ElevenToFifteenDaysNoOfPol");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.Z16_TO30__AMT, "SixteenToThirtyDaysBilledAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.Z16_TO30__POL, "SixteenToThirtyDaysNoOfPol");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.ZOVER30__AMT, "OverThirtyDaysBilledAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.ZOVER30__AMT, "OverThirtyNoOfPol");
         return columnInfosMap;
      private Map getColumnInfosRMETRICS2() {
         LinkedHashMap columnInfosMap = new LinkedHashMap(); 
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.ZZBUSUNIT__D, "BusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.ZZSUBBUSUNIT__D, "SubBusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.ZZPRODCATEG__D, "Profit Center");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.ZZREGION__D, "Region");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.ZZOFFICE__D, "Office");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.NAME__AR, "Collection Rep");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.NAME__BR, "Broker");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.NAME__IN, "Insured");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.Z0_TO30__AMT, "ZeroToThirtyDaysBookedAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.Z0_TO30__POL, "ZeroToThirtyDaysNoOfPol");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.Z31_TO90__AMT, "ThirtytoNinetyDaysBookedAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.Z31_TO90__POL, "ThirtytoNinetyDaysNoOfPol");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.Z91_TO120__AMT, "NinetytoOneTwentyDaysBookedAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.Z91_TO120__POL, "NinetytoOneTwentyDaysNoOfPol");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.ZOVER120__AMT, "OVEROneTwentyDaysBookedAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.ZOVER120__POL, "OVEROneTwentyDaysNoOfPol");
         return columnInfosMap;
      private Map getColumnInfosWRITEOFF() {
         LinkedHashMap columnInfosMap = new LinkedHashMap(); 
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.ZZBUSUNIT__D, "BusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.ZZPRCTR__D, "ProfitCenter");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.ZZOFFICE__D, "Office");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.INSU__NAME, "Insured");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.INSOBJECT, "InsuranceObject");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.TVORG__TXT, "SubTransaction");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.HVORG__TXT, "MainTransaction");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.ABGRD__D, "WriteOffReason");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.ZZCOLLREP__D, "CollectionRepresentative");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.AUTH__NAME, "AuthName");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.AUTH__DATE, "AuthDate");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.WRITE__AMT, "WriteOffAmount");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.COMM, "Commission");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.GROSS, "Gross");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.NET, "Net");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.REVERSED, "Reversed");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.ABDAT, "WriteOffDate");
         return columnInfosMap;
      private Map getColumnInfosRMETRICS3() {
         LinkedHashMap columnInfosMap = new LinkedHashMap(); 
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.ZZBUSUNIT__D, "BusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.ZZSUBBUSUNIT__D, "SubBusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.ZZPRODCATEG__D, "Profit Center");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.ZZREGION__D, "Region");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.ZZOFFICE__D, "Office");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.NAME__AR, "CollectionRep");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.NAME__BR, "Broker");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.NAME__IN, "Insured");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.NAME__BR, "Broker");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.Z0_TO30__AMT__I, "ZeroToThirtyDaysBookedAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.Z0_TO30__AMT__P, "ZeroToThirtyDaysNoOfPol");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.Z31_TO90__AMT__I, "ThirtytoNinetyDaysBookedAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.Z31_TO90__AMT__P, "ThirtytoNinetyDaysNoOfPol");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.Z91_TO120__AMT__I, "NinetytoOneTwentyDaysBookedAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.Z91_TO120__AMT__P, "NinetytoOneTwentyDaysNoOfPol");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.ZOVER120__AMT__I, "OVEROneTwentyDaysBookedAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.ZOVER120__AMT__P, "OVEROneTwentyDaysNoOfPol");
         return columnInfosMap;
      private Map getColumnInfosRMETRICS4() {
         LinkedHashMap columnInfosMap = new LinkedHashMap(); 
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.ZZBUSUNIT__D, "BusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.ZZSUBBUSUNIT__D, "SubBusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.ZZPRODCATEG__D, "Profit Center");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.ZZREGION__D, "Region");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.ZZOFFICE__D, "Office");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.NAME__AR, "CollectionRep");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.NAME__BR, "Broker");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.NAME__IN, "Insured");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.NAME__BR, "Broker");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.Z0_TO30__AMT__I, "ZeroToThirtyDaysBookedAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.Z0_TO30__AMT__P, "ZeroToThirtyDaysNoOfPol");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.Z31_TO90__AMT__I, "ThirtytoNinetyDaysBookedAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.Z31_TO90__AMT__P, "ThirtytoNinetyDaysNoOfPol");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.Z91_TO120__AMT__I, "NinetytoOneTwentyDaysBookedAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.Z91_TO120__AMT__P, "NinetytoOneTwentyDaysNoOfPol");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.ZOVER120__AMT__I, "OVEROneTwentyDaysBookedAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.ZOVER120__AMT__P, "OVEROneTwentyDaysNoOfPol");
         return columnInfosMap;
      private Map getColumnInfosRMETRICSD() {
         LinkedHashMap columnInfosMap = new LinkedHashMap(); 
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.ZZBUSUNIT__D, "BusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.ZZSUBBUSUNIT__D, "SubBusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.ZZPRODCATEG__D, "Profit Center");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.ZZREGION__D, "Region");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.ZZOFFICE__D, "Office");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.NAME__AR, "CollectionRep");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.NAME__BR, "Broker");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.NAME__IN, "Insured");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.NAME__BR, "Broker");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.BILL__DT, "BillDate");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.BOOK__DT, "BookDate");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.CREATE__DT, "CreateDate");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.FANR, "InvoiceNumber");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.HVORG__D, "Main");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.TVORG__D, "Sub");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.GROSS, "GrossInvoiced");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.NET, "NetInvoiced");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.COMM, "CommissionInvoiced");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.TAX, "TaxInvoiced");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.GROSS__PAID, "GrossPaid");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.TAX__PAID, "TaxPaid");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.NET__PAID, "NetPaid");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.COMM__PAID, "CommissionPaid");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.AUGDT, "ClearingDate");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.AUGBT, "ClearingAmount");
         return columnInfosMap;
      private IWDCachedWebResource getCachedWebResource(byte[] file, String name, WDWebResourceType type) {
         IWDCachedWebResource cachedWebResource = null;
         if (file != null) {
           cachedWebResource = WDWebResource.getWebResource(file, type);
           cachedWebResource.setResourceName(name);
         return cachedWebResource;
      private static String GC_REPORTTYPE_OPENITEMS_SUMM = "AOISUMM";
      private static String GC_REPORTTYPE_OPENITEMS_DET = "AOIDET";
      private static String GC_REPORTTYPE_BPACCTSTAT_BU = "BPBU";
      private static String GC_REPORTTYPE_BPACCTSTAT_CARM = "BPCARM";
      private static String GC_REPORTTYPE_RMETRICS_EFDBID = "RMETRICS1";
      private static String GC_REPORTTYPE_RMETRICS_EFDBOD = "RMETRICS2";
      private static String GC_REPORTTYPE_RMETRICS_PADDUD = "RMETRICS3";
      private static String GC_REPORTTYPE_RMETRICS_BIDBOD = "RMETRICS4";
      private static String GC_REPORTTYPE_RMETRICS_DETAIL = "RMETRICSDETAIL";
      private static String GC_REPORTTYPE_WRITEOFF = "WRITEOFF";
      //@@end
    Marks will be rewarded for sure.
    Regards,
    Pranathi.

    Hi, I finally found the issue which was causing the numbers stored in text format issue. While exporting data to Excel programatically if any of the cells precede with a special character like -. = etc.. the data which is exported after that starts behaving in a peculiar way. So removal of any such special characters resolves the issue.
    Hope this helps..
    Regards,
    Macho

  • In Flex Application Session out while export to excel while using navigateToURL _Self ?

    Hi,
    I am using Flex 3.0 and facing one problem session out while export to excel in Live server not on localhost .
    I have Used navigateToURL (url, "_self"); export to excel. While url is sevrlet call.
    In localhost(tomcat) everything is working fine while another server or live in weblogic server, my session Is Getting Lost and User is re-directed to login screen again.
    what to do to resolve this issue.
    while I tried to use _blank instead of _self then session Is getting preserved but its opening blank new window which user will not accept necessary page.
    please Suggest what to do to preserve The session while using _self ..
    waiting for quick reply.
    Regards,
    prabhat

    I'm not using Flex, but the following preserves session in Flash:
    var url = "http://" + WebServerIPAddress + "/" + ApplicationName + "?data=" + datavalue;
    var cmd:String = "window.open('" + url + "','win','height=768,width=1024,toolbar=no,scrollbars=yes');";
    var request:URLRequest = new URLRequest("javascript:" + cmd + " void(0);");
    navigateToURL(request, "_self");

  • Help needed in Export to Excel

    Hi All,
    I needed some clarifications/suggestions on using the export to excel.
    1) When I click on export to excel, a <div> tag also gets exported. I came to know that this is becuse of selecting the "Enable Partail Page Refresh" to Yes. Now, I have pagination in my reports and I also need to export to CSV/Excel. Is there no way where in I can use PPR as well as export the report without the DIV tag?
    2) I have a number column to which I have given APEX inbuilt hyperlinks. When I do an export the columns where I have given these links do not get Exported. Any way to overcome this? I cant give links in SQL query as then all number formatting would be lost.
    3) In my report display I have colspan = "2" for some alternate rows. In my excel output I obtain these correctly but without colspan. Is it possible to merge the cells in excel output wherever there is colspan="2"? Or am I asking too much?
    Any suggestions would be welcome. Please let me know what can be done to solve this.

    Hi
    One solution which I've used before is to have a separate page for the export. Have a report on that page that uses the same query as the actual report (including any filters based on page items) and set the report to use the Export: CSV template. The Export link on the original page needs to be removed and replaced with a link to the new page. When you click the new link, the page opens as a download file automatically.
    This way, you don't need to worry about pagination and you can use different fields on your export.
    Andy

  • I am not seeing export to Excel option in SharePoint 2013 survey (even in the overview view mode)

    Hi
    If anyone could point me in the right direction as to what steps to take to enable the export to excel option in a sharePoint survey list.
    all other surveys are showing up that export to excel option.
    I am not seeing the view dropdown as well which shows up on right (the only way to create new view is through the URL as of now)
    Constraints
    Survey already has several responses now so making a new survey is not an option
    (I know that when is any custom view is changed to default view and if Overview is made as the default view again this option goes away, but how to get this export to excel option back?)
    Steps taken till now
    Checked in SP designer as to which field is set to default and it shows overview as the default.
    Checked whether any web part was closed and it seems there was none else closed web part category would've shown up
    Saved the existing survey as template both with the content included and without the content (without the content template has the export to excel option showing up)
    Many thanks ,
    Ab

    Aby,
    Do following, it will work
    Create a simple list and hit export to excel to create owssvr.iqy file
    Open that file in notepad
    Collect Survey list' GUID and View GUID from SPD. You need to change the pointer to test list to survey
    Change list GUID and view Guid 
    File will contain these code
    WEB
    1
    https://mycomp.sharepoint.com/sites/RND/_vti_bin/owssvr.dll?XMLDATA=1&List={577F5EF1-DA61-4BAD-B912-E16CEFD72AE2}&View={05CF5C6B-92F0-4681-BC4A-F60E2646A41D}&RowLimit=0&RootFolder=%2fsites%2fRND%2fReports%20List
    Selection={9CC32EE5-7C16-49EE-9BA1-136C1ADBEBEF}-{2D172036-F4BF-459D-BBAB-4FEE3310511D}
    EditWebPage=
    Formatting=None
    PreFormattedTextToColumns=True
    ConsecutiveDelimitersAsOne=True
    SingleBlockTextImport=False
    DisableDateRecognition=False
    DisableRedirections=False
    SharePointApplication=https://mycomp.sharepoint.com/sites/RND/_vti_bin
    SharePointListView={05CF5C6B-92F0-4681-BC4A-F60E2646A41D}
    SharePointListName={577F5EF1-DA61-4BAD-B912-E16CEFD72AE2}
    RootFolder=/sites/RND/Reports List
    It will work :)
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

Maybe you are looking for