How to Export to Excel a Dynamic Node?

Hi all,
I would to know how it's possible to export in Excel a dynamic Node, created in the wdDoModify() method.
I'd seen the tutorial TutWD_ExcelExport in wich the public method for exportation into Excel 2003 accepts in input a IWDNode attribute, but I can't pass him a dynamic node that I'd created and manipulated in the wdDoModify() method.
How can I do???
Thanks to all.
Gianluca Barile

I've implemented the following code (but it doesn't work)
in wdDoModify() method:
IWDNodeInfo nodeinfo = wdContext.getNodeInfo();
IWDNodeInfo grigliaComparativaNode = nodeinfo.addChild("GrigliaComparativa",null,true,true,true,false,false,true,null,null,null);
IWDAttributeInfo nominativo = grigliaComparativaNode.addAttribute("Nominativo","com.sap.dictionary.string");
IWDAttributeInfo periodoDa = grigliaComparativaNode.addAttribute("Da","com.sap.dictionary.string");
IWDAttributeInfo periodoA = grigliaComparativaNode.addAttribute("A","com.sap.dictionary.string");
IWDAttributeInfo[] v = new IWDAttributeInfo[50];
for (int i = 0; i < wdContext.nodeT_Body_Elements().size(); i++)
v<i> = grigliaComparativaNode.addAttribute("V"+i,"com.sap.dictionary.string");
IWDNode dynTabNode = (IWDNode)wdContext.getChildNode("GrigliaComparativa",0);
Map columnInfosMap = new HashMap(); 
dynTabNode.moveFirst();
do{
IWDNodeElement dynTabElem = (IWDNodeElement)dynTabNode.getCurrentElement();
               columnInfosMap.put(dynTabElem.getClass().getName(),dynTabElem.getClass().getName().toString());
          }while(dynTabNode.moveNext()!=null);
          wdThis.wdGetExcelExportCompInterface().exportToExcel2003(dynTabNode , columnInfosMap);
Message was edited by: Gianluca Barile
Message was edited by: Gianluca Barile

Similar Messages

  • How to export into excel in oracle ebs forms

    Hi all,
    I am trying to export form data into excel through Internet explorer , When I select all records and try to export it into excel after some time it open other windows for login ,
    Please tell me how to export it into excel.
    Thanks

    start/control pannel/java(java icon) you see.
    I can see on my desktop...
    see following note.
    File Export From Form Opens "Session Expired" Window And Requests New Sign-On [ID 1061882.1]
    Edited by: user10994730 on Apr 18, 2012 7:04 AM

  • How to export from excel

    I hav few records in an excel sheet
    I want to export this excel data into a normal .txt file where
    all field values are separated by commas.
    So that i can use utl_file and import the data into oracle
    My question is how do i export the data from excle into a
    normal text file
    Thanx

    Hi,
    As you said a few records, i can suggest you another
    method..., write the required sql statement in the excel and
    copy that for all rows, save those statements to a file and run
    the file from SQL*PLUS.
    regards,
    G. Rajakumar.

  • How to export to excel only items filtered on my view

    In my specific list, I filtered to a account we are going to pay.  Then when I click on "Export to Excel" button all the items of the list gets exported. How would I export data that I want?
    Example: Because we cannot filter on the JPP number, we first filter on area = Northeast then filter on Muni = Granville T & V then filter on JPP # 801000024716  then I go to list and click on xport to xcel.... it takes about a minute then we get
    a list of many, many jpps.... not just the one.  
    Our hope was to export to excel the info on the view and just give it to the billing clerk so she can pay the bill using the view info.

    While not as nice as a one click export, the following will work fairly quickly...
    Display the list.
    Click the LIST tab and click Quick Edit.
    Filter the list.
    Select the range and press Ctrl-C.
    Open Excel and paste.
    Over your hoped for steps, this adds on the ribbon click and then a copy and paste. And if you don't need Excel for other reasons, this pastes very nicely into an email.
    You could also create a Quick Edit view and save the ribbon clicks.
    Mike Smith TechTrainingNotes.blogspot.com
    Books:
    SharePoint 2007 2010 Customization for the Site Owner,
    SharePoint 2010 Security for the Site Owner

  • How to Export to Excel and Pdf

    Hi,
    I displayed the data into table using JSP page.
    I am creating two buttons as one is Export to Excel and 2nd one is Export to Pdf. If i click Export to Excel button then the table data has to Export to Excel sheet. and same to to Pdf also.
    Can you please send me the corresponding code
    It's very urgent

    Can you please send me the corresponding codereally ???
    It's very urgentindeed...
    See:
    - iText (pdf) => www.lowagie.com/iText/
    - POI HSSF (excel) => http://poi.apache.org/hssf/index.html
    hope that helps

  • How to export to excel and format and send email?

    Hi all,
    I have an sql query that i need to run daily. My question is: how can i create a procedure to export the query result to an excel file with font Arial size 9 with all columns streched for best fit and also sent-it via email with subject and email text to an email address?
    Thanks in advance for your help.
    PS: if possible please provide examples :)

    I didnt use the .bat file.
    file1.sql
    SET ECHO OFF
    SET TERMOUT OFF
    SET FEEDBACK OFF
    SET TIMING OFF
    SET PAUSE OFF
    SET PAGESIZE 0
    SET LINESIZE 255
    SET HEAD OFF
    SET TRIMSPOOL ON
    spool c:\file1.xls
    set feed off markup html on spool on
    your Sql Goes here or @@file2.sql
    set markup html off spool off
    quit;
    you'll get file.xls
    Here's how it executed.
    SQL> SET ECHO OFF
    SQL> SET TERMOUT OFF
    SQL> SET FEEDBACK OFF
    SQL> SET TIMING OFF
    SQL> SET PAUSE OFF
    SQL> SET PAGESIZE 0
    SQL> SET LINESIZE 255
    SQL> SET HEAD OFF
    SQL> SET TRIMSPOOL ON
    SQL> spool c:\file2.xls
    SQL> set feed off markup html on spool on
    SQL&gt; select table_name,last_analyzed from user_tables;
    <br>
    <p>
    <table border="1" width="90%">
    <tr>
    <td>
    CDR2_TEMP
    </td>
    <td>
    </td>
    </tr>
    <tr>
    <td>
    CDR2_TEMP2
    </td>
    <td>
    </td>
    </tr>
    <tr>
    <td>
    DBA_LOCKS_TEMP
    </td>
    <td>
    </td>
    </tr>
    <tr>
    <td>
    LOCK_HOLDERS
    </td>
    <td>
    </td>
    </tr>
    <tr>
    <td>
    OLTP_STATS
    </td>
    <td>
    </td>
    </tr>
    <tr>
    <td>
    SESSION_KILL_INFO
    </td>
    <td>
    </td>
    </tr>
    <tr>
    <td>
    EMP_CLONE
    </td>
    <td>
    </td>
    </tr>
    <tr>
    <td>
    QUERY_CLONE
    </td>
    <td>
    </td>
    </tr>
    <tr>
    <td>
    ASSET_ID
    </td>
    <td>
    </td>
    </tr>
    <tr>
    <td>
    ADDR_CLONE
    </td>
    <td>
    </td>
    </tr>
    <tr>
    <td>
    CLONE
    </td>
    <td>
    </td>
    </tr>
    <tr>
    <td>
    REQUEST_CLONE
    </td>
    <td>
    27-MAY-08
    </td>
    </tr>
    <tr>
    <td>
    T1
    </td>
    <td>
    </td>
    </tr>
    <tr>
    <td>
    TEMP_ACC_POL
    </td>
    <td>
    </td>
    </tr>
    </table>
    <p>
    SQL&gt;

  • How to Export to Excel

    I have a scenario as follows :
    I am developing an application in which I am using a dictionary table.I will fetch this data using the model binding and display it on my view.
    But I have made a button on this view whcih converts this table data into Excel format.
    Can anyone tell me how to do this conversion for this button.
    Thanx in advance

    Hi,
    one PDF is availabe in the SDN by the name Exporting Context Data into Excel Using the Web Dynpro Binary Cache.
    Exporting table data to MS-Excel Sheet(enhanced Web Dynpro Binary Cache)
    Hope this may help you.
    Regards,
    Deepak

  • How to export to excel sheet from Oracle APEX 4.0?

    Hello,
         I'm relatively new to Oracle APEX. I'm in need of a solution to address the above question. I want to export a report's contents to an excel sheet from Oracle APEX(Priority).
    The export should be customizable to add entries into the excel sheet as I need(Secondary). Can anybody help?

    Checkout this link:
    http://technology.amis.nl/2011/02/19/create-an-excel-file-with-plsql/
    Thank you,
    Tony Miller
    Ruckersville, VA

  • Reading XML file into Dynamic Node and Display its output as Table.

    Hi All,
    Following is the output of XML file:
       <Company>
         <Employee>
              <Name>John</Name>
              <Age>23</Age>
              <***>Male</***>
              <Location>Frankfurt</Location>
         </Employee>
         <Employee>
              <Name>Tina</Name>
              <Age>21</Age>
              <***>Female</***>
              <Location>Boston</Location>
         </Employee>
         <Department>
              <Name>Sales</Name>
              <HQ>Chicago</HQ>
              <Emplyoees>2300</Employees>
         </Department>     
    I'm able to read the output through DOM parser. But How do I convert this into dynamic node and display this in Web dynpro as Table?
    Any pointers in this regard will be great help?
    Thanks
    Srikant

    Hi Maksim,
    I've used your example and its now helping as there is kind of agreement on that I'll be knowing the structure of Xml and I can fill the nodes.
    But suppose if you have Xml has following structure :
    <?xml version="1.0" encoding="utf-8"?><DATA>
    <item><MAILERID TYPE="C" SIZE="000030">21</MAILERID><ORG_CODE TYPE="C" SIZE="000004">1232</ORG_CODE><EVENTID TYPE="C" SIZE="000015">CONTRACT</EVENTID><SUBSCR_VALUE TYPE="C" SIZE="000001">0</SUBSCR_VALUE></item>
    <item><MAILERID TYPE="C" SIZE="000030">21</MAILERID><ORG_CODE TYPE="C" SIZE="000004">1232</ORG_CODE><EVENTID TYPE="C" SIZE="000015">CREDIT</EVENTID><SUBSCR_VALUE TYPE="C" SIZE="000001">0</SUBSCR_VALUE></item>
    <item><MAILERID TYPE="C" SIZE="000030">21</MAILERID><ORG_CODE TYPE="C" SIZE="000004">1232</ORG_CODE><EVENTID TYPE="C" SIZE="000015">EMPRESS</EVENTID><SUBSCR_VALUE TYPE="C" SIZE="000001">0</SUBSCR_VALUE></item>
    <item><MAILERID TYPE="C" SIZE="000030">21</MAILERID><ORG_CODE TYPE="C" SIZE="000004">1232</ORG_CODE><EVENTID TYPE="C" SIZE="000015">PAYMENT</EVENTID><SUBSCR_VALUE TYPE="C" SIZE="000001">0</SUBSCR_VALUE></item>
    <item><MAILERID TYPE="C" SIZE="000030">21</MAILERID><ORG_CODE TYPE="C" SIZE="000004">1232</ORG_CODE><EVENTID TYPE="C" SIZE="000015">PRICE</EVENTID><SUBSCR_VALUE TYPE="C" SIZE="000001">0</SUBSCR_VALUE></item>
    </DATA>
    How we will do in this case?
    Can we have something similar using DOM? Also what is the best method for displaying data being sent in form of XML. And generalize it for cases like this.
    Thanks
    Srikant

  • Export to excel and csv

    I have table in a jsp and an export button. When user clicks on the export button the data in the table should be exported to either text, csv or excel depending on the option user chhoses. Can anyone help me with this? How to export to excel and csv format.

    Hi arthur_branham,
    I really liked the way you have replied. Can you pleae share the code with me at [email protected] below is my problem...
    I had data in XML.I have displayed the data in jsp. Now i need to provide a link "Export to Excel" in jsp which will invokea servlet prepare the excel report and open up directly through a servlet....
    I got some help from...http://www.javaworld.com/javaworld/jw-10-2006/jw-1019-xmlexcel.html?page=1...
    This is my code in servlet...
    HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet spreadSheet = wb.createSheet("Users");
    spreadSheet.setColumnWidth((short) 0, (short) (256 * 25));
    spreadSheet.setColumnWidth((short) 1, (short) (256 * 25));
    // Creating Rows
    HSSFRow row = spreadSheet.createRow(0);
    HSSFCell cell = row.createCell((short) 1);
    cell.setCellValue("Year 2005");
    cell = row.createCell((short) 2);
    cell.setCellValue("Year 2004");
    HSSFRow row1 = spreadSheet.createRow(1);
    HSSFCellStyle cellStyle = wb.createCellStyle();
    cellStyle.setBorderRight(HSSFCellStyle.BORDER_MEDIUM);
    cellStyle.setBorderTop(HSSFCellStyle.BORDER_MEDIUM);
    cellStyle.setBorderLeft(HSSFCellStyle.BORDER_MEDIUM);
    cellStyle.setBorderBottom(HSSFCellStyle.BORDER_MEDIUM);
    cell = row1.createCell((short) 0);
    cell.setCellValue("Revenue ($)");
    cell = row1.createCell((short) 1);
    cell.setCellValue("25656");
    cell = row1.createCell((short) 2);
    cell.setCellValue("15457");
    FileOutputStream output = new FileOutputStream(new File("/tmp/Users.xls"));
    response.setContentType("application/vnd.ms-excel");
    response.setHeader("Content-Disposition", "attachment;filename=Users.xls");
    ServletOutputStream out = response.getOutputStream();
    wb.write(output);
    output.flush();
    output.close();
    forward = null;
    In firefox i get the download dialog box but not able to open in from there,i need to save it and then open. In IE i dont get the dialog box instead the excell open inside the browser......Please help me to open a excel sheet onclick on a link "Export to excel" in jsp......
    1)If possible help me with the above code.
    2)Or else plz sahre you code with me...
    Its urgent....
    Thanks in advance...

  • How to export a dynamically generated datatable into excel sheet 2013?

    I have one data table and in that data table i am fetching data from sharepoint 2013 lists.
    When I export that data table into excel sheet, what ever data is static will be shown but the data which I fetch from lists are not coming.
    How should I get that data in my excel sheet from that data table?
    This is the code for Export to Excel:
    public void ExportToExcel(DataTable dt)
    if (dt.Rows.Count > 0)
    string filename = "WebTrafficReport.xls";
    System.IO.StringWriter tw = new System.IO.StringWriter();
    System.Web.UI.HtmlTextWriter hw = new System.Web.UI.HtmlTextWriter(tw);
    DataGrid dgGrid = new DataGrid();
    dgGrid.DataSource = dt;
    dgGrid.DataBind();
    //Get the HTML for the control.
    dgGrid.RenderControl(hw);
    //Write the HTML back to the browser.
    //Response.ContentType = application/vnd.ms-excel;
    Response.ContentType = "application/vnd.ms-excel";
    Response.AppendHeader("Content-Disposition", "attachment; filename=" + filename + "");
    this.EnableViewState = false;
    Response.Write(tw.ToString());
    Response.End();
    Thanks in Advance.

    ublic void ExportToExcel(DataTable dt)
    if (dt.Rows.Count > 0)
    string filename = "WebTrafficReport.xls";
    System.IO.StringWriter tw = new System.IO.StringWriter();
    System.Web.UI.HtmlTextWriter hw = new System.Web.UI.HtmlTextWriter(tw);
    DataGrid dgGrid = new DataGrid();
    dgGrid.DataSource = dt;
    dgGrid.DataBind();
    //Get the HTML for the control.
    dgGrid.RenderControl(hw);
    //Write the HTML back to the browser.
    //Response.ContentType = application/vnd.ms-excel;
    Response.ContentType = "application/vnd.ms-excel";
    Response.AppendHeader("Content-Disposition", "attachment; filename=" + filename + "");
    this.EnableViewState = false;
    HttpContext.Current.Response.Write(sw.ToString());
                        HttpContext.Current.Response.Flush();
                        HttpContext.Current.Response.End();
    }}try this should help

  • How to deal with the dynamic nodes ...in webdynpro abap

    Hi Guys,
    How to insert the dynamic nodes in the context controller...
    Thanks
    Chandra

    You can use node_info to create a dynamic node or use CL_WD_DYNAMIC_TOOL to create dynamic nodes under a node
    For Eg Struc_Node
    fields A type char20,
    fields B type char 20
    For Eg : To Create Node under Context Node( Root Node).
    data lv_node_info type ref to if_wd_context_node_info.
    lv_node_info = wd_context->get_node_info( ).
    CALL METHOD lv_node_info->add_new_child_node
    EXPORTING
    static_element_type = 'Struc_node
    name = lv_node_name
    is_static = abap_false
    is_multiple_selection = abap_true
    RECEIVING
    child_node_info = lv_child_node_info.
    or
    CL_WD_DYNAMIC_TOOL=>CREATE_NODEINFO_FROM_STRUCT

  • In SSMS after creating the query Report, how to export excel the same report from SSMS

    for Beginners in SSMS after the report is created , how to export the same report to excel, I did try the option to task and export and follow the procedure, this procedure does not export the same report, the one was created, unless I am missing some steps,
    is there a way to do just like we do in SSRS go to solution explorer, and properties and add the Target Server URL or not
    in SSMS, 
    after I save the report it saves in project , can some one please guide me how to do it, and what steps I am doing wrong,
    any help will be great.  I am not technical person, just starting to learn from internet.
    thanks in advance.

    As you have said you are not a technical person try using Import Export wizard.
    Refer this link
    http://www.mssqltips.com/sqlservertutorial/203/simple-way-to-import-data-into-sql-server/
    And another simplest one is to copy the result set from the query window. Right click the result and select "Copy with Headers".
    Regards, RSingh

  • How to export data from webdynpro to Excel and start a Excel macro

    Hello All
    I want to export data displayed in the Web dynpro ALV into Excel. I have tried the ALV export function but my problem with it is when it does export to excel the data loses formatting and I have long text in columns which display with wrapping in ALV but when exported to excel it loses formatting.
    So I want to define a custom button and when user presses on this button the excel export is called with a macro. Can you kindly share ideas how I can do this from a webdynpro.
    Thanks
    Karen

    Hi friends!
    I have followed the following:
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417300)ID1487994050DB10407586481486749551End?blog=/pub/wlg/5522
    ...in order to create standard ALV with Export to Excel.
    However what is exported into excel is awful. It does not contain my data in nice columns... Instead it shows a lot of meta-data.
    Please let me know what to do to kick the standard Export button in the correct direction.. that is...to have my nice table in same way in Excel, because that is my intention with "Export to excel"
    Best reg
    Henrik

  • How to export data from MS Project 2010 to MS Excel 2010 with formatting

    I have created a Project 2010 export map to Excel 2010.  It works fine.  I have two questions that I cannot determine an answer.  I'm not sure if its a project or excel setting.  I have spend hours trying to make it
    work with little success.
    1.  When the task name field is exported to excel it losses summary/task indent.  Is there a way to set it up so it works via the export map?
    2.  The Start & Finish fields in project is setup as 5/26/11 when they exports to excel it shows up as 5/26/11 8:00 AM.  Is there a way to set it up either in project export map or excel so its formated as a date field. 
    Excel's Format Cell function does not seem to work converting them back to just 5/26/11.
    How can I keep the outlines and formatting in my data while exporting it to Excel.
    I would appreciate any guidance.
    Yogesh

    Rameshchandra --
    Two things I would recommend:
    Do not add your question at the end of a post that is marked as Answered.  In the future, please post your question as a new question so that everyone will notice it and be able to answer it.
    Because this is a programming question, please repost your question as a new post in the Project Customization and Programming user forum at:
    http://social.technet.microsoft.com/Forums/projectserver/en-US/home?forum=project2010custprog&filter=alltypes&sort=lastpostdesc
    Hope this helps.
    Dale A. Howard [MVP]

Maybe you are looking for

  • Crystal Report ActiveX viewer 11 not installing on windows 7 64 bit

    Hi We have a web application which calls Crystal reports. If the Active doesnot exits on the user machine it tries to download it and intall. This works find on Windows XP, Windows 7 32 bit. But on Windows 7 64 bit the activex is not getting installe

  • Keyboard & Mouse Not Working on Resume From Sleep

    About 1/10 of the time when I resume from sleep my keyboard and mouse do not work. They wake the computer (a 27" iMac) but do not work any longer past that, requiring me to hard reboot my computer (holding the power button to turn off then rebooting)

  • Validation based on view attributes

    JDeveloper 11.1.1.x What is the best practice to create validations based on a view attribute from a view object that is of a level higher in the hierarchy? For example:      * Use the departments and employees tables from the hr schema.      * Creat

  • JDBC settings in XI

    Hi Experts, We have both sender and receiver scenarios and are running in production system related to JDBC Adapter, now there is a plan of changing the Oracle configuration at DB side like host name connection settings not in XI. Once if the changes

  • Error: The password could not be set.

    When I create a user as an OD administrator, the new user cannot reset passwords for typical users. If the new administrator attempts to do so, they receive the following message: "The password could not be set. An unexpected error of type -14120 occ