Useful code for exporting to Excel xlsx

I wanted to "give back" by posting this little code sample for exporting a query into Excel xlsx
Kudos to Charlie Arehart for helping me increase the server memory and java heap size.
This code works for me using CF 9 on Windows Server 2008 R2. By the way, CFSpreadsheet seems to consume a lot of memory on larger exports. For this reason, we increased the server's physical memory, then used CF Administrator to increase the jvm heap size in the Administrator -> Java and JVM settings. My max java heap size is now 3072.
Need help? I recommend you contact Charlie Arehart on server issues: [email protected]
Code:
Example query is called "Myquery" Spreadsheet is called "Myspreadsheet" I export the spreadsheet to a subdirectory called "xlsx" I use cflocation to direct the browser to the spreadsheet. The browser prompts the user to open, save or cancel.
<cfset var_filenameis = "Myspreadsheet.xlsx">
<cfset SpreadsheetObj = spreadsheetNew("true")>
<cfset SpreadsheetObj = spreadsheetNew("#var_filenameis#","yes")>
<cfspreadsheet action="write" filename="./xlsx/#var_filenameis#" query="Myquery" overwrite="true">
<cflocation url = "./xlsx/#var_filenameis#">    

An inline DataTable is not the same thing as exporting data in a standardized XLSX format.  (I'll post the script I use in another comment.
Regarding inline tables, here are some other worth scripts:
Handsontable - minimalistic Excel-like data grid editor
http://handsontable.com/
TableSorter 2 (forked) - sorting, filtering, grouping, pagination, inline editing, sticky header
http://mottie.github.io/tablesorter/docs/
jQuery Grid Plugin
http://paramquery.com/
jQuery table to CSV
http://www.kunalbabre.com/projects/table2CSV.php
jQuery Pivot - presenting table data in pivot form
http://metalogic.dk/jquery.pivot/demo.htm

Similar Messages

  • Strange Issue with using ExportToHttpResponse for exporting to Excel

    Hi,
    We are working with BO XI R2 with .Net 2.0.
    We are using ExportToHttpResponse method to export the Crystal Report to pdf/excel and directly opening the export in a browser window.
    Code being used is as follows :
    For pdf :  rd.ExportToHttpResponse(ExportFormatType.PortableDocFormat, oResponse, false, Name);
    For Excel : rd.ExportToHttpResponse(ExportFormatType.Excel, oResponse, false, Name);
    where 'rd' is ReportDocument instance.
    The strange issue here is that for pdf output this works as desired and the exported report is directly opened in the browser window. However when it comes to Excel ; it does not open the exported file in the browser window and gives a prompt to open/save file. Even if the 'asAttachment' parameter of ExportToHttpResponse method is set to false it still is sending the exported file as an attachment to the browser and not opening it directly (as it is happening in the case of a pdf export )
    Do we need to set the Response.ContentType to excel ; if yes then why it is working in case of pdf.
    Can any one please advise about this strange issue .
    Thanks
    Vinayak Vidhate

    >
    Ludek Uher wrote:
    > Try the following:
    >
    >
    > System.IO.MemoryStream oStream = (System.IO.MemoryStream)crReport.ExportToStream(ExportFormatType.Excel);
    > Response.Clear();
    > Response.ClearHeaders();
    > Response.AddHeader("Content-Disposition", "inline;filename=exportedreport.xls");
    > Response.ContentType = "application/vnd.ms-excel";
    > Response.BinaryWrite(oStream.ToArray());
    > Response.Flush();
    > Response.Close();
    >
    > The code works on my machine.
    >
    > If that does not help, consider using a utility such as [Charles|http://www.charlesproxy.com] or [Fiddler|http://www.fiddlertool.com/fiddler] to see what's going on.
    >
    >
    > Ludek
    Thanks for the response Ludek .
    I was going through some othere threads and saw that ExportToHttpResponse is more preferred over ExportToStream . I even checked for setting up the Response.ContentType to Excel . I think I shoulfd give it a try to use ExportToStream.
    Let me know if any one else has any other suggestion(s).

  • Tips on designing reports for export to excel

    There is a document mentioned in help that I have a link to and the link and searching never get me to it. Can anyone help me locate this...I need tips on how to better design a report when you know it will be used for exporting to excel.
    the document is supposed to be called    scr_exportexcel.pdf
    Thank you!
    Kristin

    Hi,
    Try to search Product guides from http://help.sap.com/
    Regards,
    Shweta

  • Anyone using PDDocExportUserProperties for exporting PDF to XML

    Hi,
    Anyone using PDDocExportUserProperties for exporting PDF to XML. I am using Adobe PDFL 9.0 to do the same. However, do not find any sample programs or tutorials.
    Please anyone have any samples, do provide.
    -Abhi

    > PDDocExportUserProperties
    Where did you find this method? It's not listed in the PDFL API Reference for 8.1 or 9.

  • Standard code for Export to XLS / XLS 2000

    Hi there
    I was wondering if someone knows how the standard code works for exporting a web template to Excel?
    The reason I ask is that we have a button in our toolbar, which the user can click and certain items within the web template are then downloaded to Excel.
    If, however, I use the context-menu (right-click) and choose to export that way, then some additional fields are included in the download.
    There is one field in particular that I want, which is included in the right-click downloaded file, but I don't know which web item it is, so can't specify it in the button code.
    Is there a way to determine this?
    Cheers,
    Andrew

    There are a few third party tools that let you do that.
    Some such tools are Monarch, Rep2excel etc.
    Google for "convert oracle report to excel" and you will get a few more hits.
    The best way to get it in Excel is to change the output format to XML and write a quick XML publisher template.
    Hope this helps
    Sandeep Gandhi
    Independent Consultant

  • Customizing Excel File format for "Export to Excel" command

    HI All,
    we are developing a classic planning application using Hyperion 11.1.2.2
    There is a option in Hyperion web through which user can Export data to Excel from Data from; via following procedure:
    Open Data Form which you want to Export
    Once data form go to Tool -> Export to Excel; this will open up an excel with with that dataform loaded in it.
    I am wondering is there any way to customize that excel file ; like changing font color, font size etc in excel file

    Hi,
    The one which you are going to get from the export would be a static file and you cant get POV as a drop down even to select , for color you can validations which will give you color based on some condition etc.
    Thanks
    Amith

  • Using code to export SWF frame as image

    Hi - I currently deal with a customer who has a large number
    of dynamically generated SWF movies. For various purposes they
    would like to be able to generate images (for example of the first
    frame only) of a SWF on demand, and potentially there would be
    multiple concurrent requests to do so. Does anyone know if there is
    a component, Dot Net DLL or any other programmatic mechanism for
    exporting a single SWF frame to JPG or PNG format, but without
    displaying the flash control or other visual interface, and that
    supports multiple concurrent calls?

    officermcnulty wrote:
    > Hi - I currently deal with a customer who has a large
    number of dynamically
    > generated SWF movies. For various purposes they would
    like to be able to
    > generate images (for example of the first frame only) of
    a SWF on demand, and
    > potentially there would be multiple concurrent requests
    to do so. Does anyone
    > know if there is a component, Dot Net DLL or any other
    programmatic mechanism
    > for exporting a single SWF frame to JPG or PNG format,
    but without displaying
    > the flash control or other visual interface, and that
    supports multiple
    > concurrent calls?
    >
    Sounds like you need a SWF renderer. Based on the complexity
    of your
    SWFs, it's no an easy thing to do.
    I would look into the various Open Source Flash player
    implementations
    out-there to use their rendering code. I haven't digged into
    this myself
    much but it may require a fair bit of coding on your side,
    plus be aware
    that these open source flash player generally do not support
    all
    features of Flash.
    There is one SWF rendering library here:
    Flirt:
    http://flirt.sourceforge.net/
    And some open source Flash players here:
    * gameSWF:
    http://tulrich.com/geekstuff/gameswf.html
    * Gnash (based on gameSWF):
    http://www.gnu.org/software/gnash/
    * swfDEC:
    http://swfdec.sourceforge.net/
    Good luck.
    Tim.

  • Different GL Codes for export and domestic behind account key ERL

    Hi all,
    I have created separate pricing procedures for export and domestic sales. The issue is that condition type PR00 is used in both procedures and the acount key behind PR00 is ERL. Now the issue is that from finance side, if i have to segregate revenue from export sales and revenue from domestic sales then how can i do that as the gl code is same in both procedures.
    Please respond.
    Best Regards,
    AI.

    Hi
    In account determination procedure you could use two different access sequence such that for domestic revenues 1st access will come into picture while for export the other one.
    try and revert

  • Creating a macro for export to excel using a custom map

    Hi all
    I've created a custom map to export a custom table to excel, which works. Then tried to create a macro to do this export for me and it was stopped on the 'File; Save As' part of the export (almost the very beginning)
    Looking for suggestions for best practises or anything to watch out for when creating a macro to export (or any help in general in this area...books, etc)
    Using MSP 2010 (Pro)...we have server but I was attempting this as a stand-alone project
    Thanks in advance for your response
    Shelleyb MCTS

    Firstly make sure you have SP2 installed. Then try recording a macro of you manually saving to Excel with a pre-saved map. Compare the recorded code and your code.
    Rod Gill
    Author of the one and only Project VBA Book
    www.project-systems.co.nz

  • Merge multiple tables into one for export to excel

    I've got a few tables in Numbers, and I've spent ages making them all look the same, then when I exported to an excel file, they split up into seperate tables. How can i merge all these into one table so they can all be viewed in Excel, without losing the cell shading/borders etc?
    I tried just copying/pasting the tables into a new blank table, but this doesn't paste the borders etc...
    Cheers
    Adi

    Adi,
    Fill color will copy and paste, as will Text styles, but borders will not when pasting into another table. My suggestion for future work is to not use fancy borders, or don't apply them until you have combined the tables.
    If you would like Apple to consider changing the behavior of borders during Copy/Paste operations, you can leave Feedback for them under the Numbers Menu.
    Jerry
    Message was edited by: Jerrold Green1

  • Having trouble sizing multiple graphs using a For Loop in Excel.

    I am creating multiple graphs in Excel using LabVIEW but I can only set the size for the first graph.  The others are ignored.  I am using the Excel Insert Graph Vi.  I can change the position of al 4 graphs and i can change the size of the first graph created but not the others.  Simply create and save a blank Excel workbook and use it when it prompts for the file.  Here is my my code.  Will someone please let me know what is going on.  Thanks.
    Attachments:
    Excel Graph Test.vi ‏88 KB

    If anyone is still following this thread, I have discovered a solution to the problem of resizing multiple graphs in Excel with the Report Generation Toolkit.  The problem seems to occur because subsequent graphs that are added to the report are configured to "Lock Aspect Ratio", which means you cannot assign a width and height to the graph that would violate its initial width/height proportions.  I was able to get around this behavior by defining the object's position and dimensions after creating the object, as opposed to defining them at the same time the object was created.  This problem will be fixed in a future release of the Report Generation Toolkit.  For now, you can fix the problem yourself by modifying vi.lib\addons\_office\excel.llb\Excel Insert Graph.vi.  Here is a screenshot of the affected area of code as it is currently implemented:
    And here is a screenshot of what the code looks like after my modifications that fix the problem:
    By assigning the dimensions after turning off the "Lock Aspect Ratio" feature, we see that all the subsequent graphs are sized correctly.
    Please let me know if you have any questions on this fix.
    -D
    Message Edited by Darren on 07-06-2006 04:48 PM
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman
    Attachments:
    Add_Chart_AFTER.jpg ‏91 KB
    Add_Chart_BEFORE.jpg ‏53 KB

  • Error while deploying iview for export to excel

    Hi,
    I am trying to Export Data into Excel in VC.
    If I will Compile then its ok No errot.
    But while deploying its giving a error like
    Error in compiling Flex application: Error 1002: String literal was not properly terminated
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:514)
    Error 1033: ';' expected
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:515)
    Error 1025: Left side of assignment operator must be variable or property.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:516)
    Error 1025: Left side of assignment operator must be variable or property.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:517)
    Error 1033: ';' expected
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:518)
    Error 1205: The statement '' is incomplete.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:516)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:518)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:519)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:520)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:521)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:548)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:575)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:602)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:629)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:656)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:683)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:710)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:744)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:786)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:798)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:799)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:801)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:823)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:831)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:856)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:857)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:858)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:860)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:867)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:907)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:952)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:953)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:954)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:956)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:963)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1005)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1050)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1051)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1052)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1054)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1061)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1090)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1124)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1178)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1189)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1200)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1211)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1222)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1233)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1244)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1255)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1266)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1276)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1291)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1306)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1321)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1335)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1351)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1366)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1378)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1392)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1408)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1423)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1435)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1449)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1465)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1480)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1488)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1540)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1544)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1548)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1552)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1556)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1560)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1564)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1568)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1572)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1576)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:19)
    Error 1000: Syntax error.
          (E:\usr\sap\ND1\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\BI_Dashboard2_25807\FLEX_COMPILATION_FOLEDR\AAD6LK.mxml:1592)
    Failed to compile AAD6LK.mxml
    Please suggest me.
    Regards,
    Kiran

    Hi,
      I am also facing the same problem.Can you suggest the solution? as well as the formula you used.
    Regards,
    Karthik

  • Using entities for attributes in Excel

    How can I define attributes in an Excel sheet to match my entities?
    Say I have one entity namned the child.
    Creating the excel sheet I want some of the attributes to be on Global level and some other on the child entity - default is, using the Declarations-tab for defining the attributes but there I can´t add what entity they should reside in so all my attributes end up on Global....
    Seen an example where there is entites in the sheet (opening the .xgen file) but haven´t been able to figure out on how to accomplish it.
    Any tips?

    Hi Lena,
    Make sure that the attributes you are trying to declare for the child include the full string "the child" (i.e. exactly the same as the entity name) otherwise OPA will just assign them to the global entity (I still get caught out with this sometimes!).
    It's best to declare these in a property file rather than the Declarations Tab of the Excel document, so that should help too.
    It's worth noting that you won't be able to have a global conclusion if you are also using conditions with attributes which belong to "the child", but you will be able to have a child-level conclusion which uses global attributes in the conditions, since the child is contained by global. The reason you cannot have a global conclusion and use child conditions is that "global" will not know which child you are talking about, and you cannot use cross-entity reasoning like ForAllScope() and ExistsScope() in Excel.
    The OPM help includes some useful information, see the article "Define decision tables in Excel workbooks". You should never need to modify the .xgen file.
    I hope this helps, let me know if you need more information.
    Thanks,
    Ben

  • How to use lodercli for export import

    Hello,
    I want to migrate my content server data  , that is on SAPDB version 7.3 (32 bit)  to new server with MAX DB 7.6. (64 bit) .
    I wanted to know:
    1)  how to do export an d import using lodercli. i wanted to use loder of my new server i.e. MAXDB loder to do the export immport. Can any one tell me the steps and the command to do this ?
    2) I have refered SAP note 962019, but need some more help on the steps that is given in this note for hetrageneous copy.
    Note : i dont have any SAP system on the server i have only content server and hence i dont have user SAPR3 on database.
    Regards,
    Bhavesh

    > Please check the following (point 7) in note 962019:
    Ok...
    > 7. The procedure described in this note supports the following migrations:
    > and I am dealing with the same situation hence choose the export import rather than normal backup recovery.
    Well. it says: the procedure supports these migrations, which is true.
    It does not say: "please do use the export/import migration in these situations".
    Please do read the note point 1 where it says;
    "Homogeneous system copies (backup/recovery) can be executed only in
    systems that fulfill  the following conditions:
    a) The database versions in the source system and the target system
        do not differ.
    b) The processor uses the same byte sorting sequence (Little Endian
        -> Little Endian; Big Endian -> Big Endian).
    *If the specified operating system prerequisites are met in the
    source and target system, you MUST use the homogeneous system copy
    and not the heterogeneous system copy.*"
    So in your case export import is not even supported!
    > 2) I know the Cs 6.10 is out of support and it need to upgrade to new CS version that is 6.4 , but if i am already installing the new server for content server with CS 6.4 and MAXDB 7.6 why then why cant i use the export import from older server to new server??
    > Other wise i need to upgrade the MAXDB then upgrade CS and then take the backup and restore, isnt it more logivcal to do export import using loder as we have all prerequisites available??
    1. you don't meet the prerquesites (see above) - you can use backup/restore, so you have to !
    2. export/import is a terribly slow and clumsy procedure
    3. backup/restore is a easy, safe and fast method to perform the system copy
    If you still really, really want to stick with export/import, feel free to try it out.
    The note contain all required steps and the documentation for MaxDB even includes tutorials for the loader.
    regards,
    Lars

  • Exception : Export To Excel using POI in ADF

    Hi,
    When i am using POI jars for export to Excel functionality I ma getting the following Exception.
    Actually page contains simple button .When user clicks on the button i am getting the values from the iterator and then exporting those values to the Excel using POI.
    javax.faces.el.EvaluationException: oracle.classloader.util.AnnotatedNoClassDefFoundError:
    Missing class: org.apache.xmlbeans.XmlOptions Dependent class: org.apache.poi.POIXMLDocumentPart
    Loader: current-workspace-app.web.ExportToExcelPOC-ViewController-webapp:0.0.0
    Code-Source: /C:/Documents and Settings/dtamarap/Desktop/export/poi-bin-3.6-20091214/poi-3.6/poi-ooxml-3.6-20091214.jar
    Configuration: <classpath> in C:\Durga\Jdev\jdevstudio10133\jdev\mywork\ExportToExcelPOC\ViewController\public_htmlT
    he missing class is not available from any code-source or loader in the system. at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:190) at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143) at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:406) at javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1019) at javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1046) at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:761) at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:451) at oracle.adf.view.faces.webapp.UIXComponentTag.doStartTag(UIXComponentTag.java:85) at test.ExportToExcel_jspx._jspService(_ExportToExcel_jspx.java:57) [test/ExportToExcel.jspx] at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.3.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370) at
    .............................

    When you run your application, it is complaining that it cannot find a class. That class is part of Apache XMLBeans (http://xmlbeans.apache.org/). You need to ensure that you get the XMLBeans JAR file and include it in your project, just like you did for the Apache POI JAR file.
    John

Maybe you are looking for

  • Status for Purchase order or contract.

    Hi,     Where can I see the  Standard settings for Statuses of PO or PC in the SRM system ? Basically I want to know which are the statuses (Held, awating approval, ordered or released...so on) set by system for PO & PC & their sequence. I am working

  • What earliest version of FCP will handle XDCAM EX?

    A client is wanting to work with footage I've just shot ... the footage is XDCAM EX ... the client has FCP 6.06.  I have whatever the latest FCP is so I don't know if ver. 6.06 will handle the XDCAM-EX.  If it does I can just send him the .mov files

  • Why, when I launch Numbers, is the last-used spreadsheet automatically opened?

    When I open Number, either by using the dock, by clicking the application icon or clicking a Numbers document, teh last document I used is always opened. Why is this? How do I prevent it? Thanks

  • Unreadable Files Error when Importing

    Hi - I get an "unreadable files" error when trying to import from my iPhoto Library folder. I've read the other postings, and it sounds as though I should not have moved files directly into this folder. If that's the case, can someone please tell me

  • Bonus points for pre-ordering X-Men: Days of Future Past

    Hello, I ordered this blu-ray the same day as I did for Captain America: The Winter's Soldier.  I received my 100 bonus points for Captain America a few weeks ago.  However, when I checked my account this morning for the bonus points on X-Men, it onl