Excel to node in NWDS 7.0.14

Hi Friends
I am doing one application which takes data from Excel and send to node in WDJava(It was working on Local Project).It was not working on DC's.I searched SDN for this.I didnt catch the correct solution.Please give me step by step procedure.My NWDS version is 7.0.14.
Mentioning that i already refered this blogs
/people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro
/people/marion.schlotte/blog/2007/12/19/simplify-dc-structures-for-external-libraries
Please give some inputs
Thanks,
Tulasi
Edited by: Tulasi Palnati on Apr 6, 2009 10:28 AM

Hi experts
I got the solution by deploying SDA file to th j2ee engine.............
Thanks one and all who viewed the thread

Similar Messages

  • Excel file Upload in NWDS 2.0.9

    Hi ,
    I am working on NWDS 2.0.9. Can somebody tell me how to upload an Excel file, using      File Upload UI element and update my Context.
    -->IWDResource cannot be implemented in this version.
    -->Also FileUpload UI Element does not have a resource property, in this version.
    I have tried using POI , jxl but my code generates NoClassDefFoundError: or FileNotFoundError:
    Thanks in advance.
    Shibin
    PS: If some one can give me a simple code it will be very useful.
    Edited by: Shibin Kumblat on Mar 20, 2008 2:01 PM

    hi ,
    here is the code
    Workbook wb= Workbook.getWorkbook(new File("e:/file1.xls"));
    for (int shNo = 0; shNo < wb.getNumberOfSheets(); shNo++)
         Sheet sheet = wb.getSheet(shNo);
         for (int i = 1; i < sheet.getRows(); i++)
              for (int j = 0; j < sheet.getColumns(); j++)
                             wdComponentAPI.getMessageManager().reportSuccess(""+sheet.getCell(j,i).getContents());

  • Excel Template - Node in Tree

    Hello, I am creating an Excel Template and I am trying to figure out how to display data for the first node in the tree (the first node in my sample XML file).
    I looked at this website (http://bipconsulting.blogspot.com/2009/03/xslxpath-for-bi-publisher.html) and saw that I could use '/' to select the first node. I am unsure about how to structure the syntax on the XDO-METADATA worksheet on the Data Constraints line.
    Does anyone know how to do this?
    Also, I saw the Report Designer's Guide
    website (http://docs.oracle.com/cd/E12844_01/doc/bip.1013/e12187/T421739T481158.htm), however this is for RTF templates. Do these functions work within Excel templates?
    Thanks

    //from BinaryTree class:
    public void breadthOrderTraversal(BinaryTree binaryTree)
              Queue queue =null;
              queue.enqueue(binaryTree.root);
              while(queue.getSize() > 0)
                      Node n = queue.GetFirstNodeInQueue();
                      queue.enqueue(n.leftLink); //Enqueue if exists
                      queue.enqueue(n.rightLink); //Enqueue if exists
                      queue.dequeue(); //Visit
      } Exception in thread "main" java.lang.NullPointerException
         at BinaryTree.breadthOrderTraversal(BinaryTree.java:100)
         at BinaryTree.main(BinaryTree.java:168)

  • Excel properties and methods

    Hello all,
    I have been doing a lot of LabVIEW/Excel work. I would like to know if there is a document which explains the allowable inputs to all of the Excel property nodes and methods.
    For instance, with a property for Excel - Range - NumberFormat, I would like to know of all of the permissible inputs to the NumberFormat property node.
    Can anyone point me in the right direction?
    Thank you greatly,
    Cheers,
    Ytass

    If you are working with Lab View report generation tool kit, then refer its manual.
    Refer some queries on discussion forum.
    See some questions on discusion forum. Link:
    http://search.ni.com/nisearch/nisearchservlet?nistype=default&ddown=3&filter=%2Btaxonomy:top+-languagetype:nonenglish+%2B%28section:devzone+nicontentclass:technical+contentformat:softwarelib+nicontenttype:communitydiscussions%29+%2Blabview&q=exel
    Kaustubh
    VC (Pune)
    INDIA
    Attachments:
    LVRGUM.pdf ‏351 KB

  • Property node invalid error

    hi all,
    i am transfering my application(for HP 4284a) from my old computer(windows 98 and labview 6.1) to a new one (windows xp and labview 8.0). A repeated error occured.
    Property Node: invalid property.
    Someone told me i have to change the property from Range to Range2 for the Excel Worksheet Node in my program. But as can be seen from the diagram, the list only has Range and no Range2.
    Attached are print screens of the error.
    Any further information required can tell me. Please help. Thanks.
    wjsd
    Attachments:
    error.zip ‏205 KB

    Hi wjsd
    It's not the Range property that is wrong, but the Value property. Use the Value2 property to read/write values from/to Excel.
    Hope this helps
    Daniel

  • Excel add-in warning

    Hi
    I am using Excel- add in for unicode cubes. I am getting the warning
    Essbase Warning
    The application chosen is a Unicode application,however the addin is not fully unicode enabled.As such,some characters may not display correctly. Do you wish to proceed?
    I turned off warnings in the options dialog box. But i am still getting the above Essbase warning.
    Can you suggest me what to do to turn off these warnings while using Excel-Addin?

    where can I find the Thisworkbook module??^^^It's the workbook module in the currently open workbook. If you hit Alt-F11 in Excel, you'll get dumped into the VBA editor. If you do that, by default, over on the left you'll see a Project browser, under the Microsoft Excel Objects node, Sheet1 is the selected object. ThisWorkbook is the module name of the workbook object.
    For giggles, in the VBA editor, type Ctrl+G. You should see the Immediate window. Then type:
    ?thisworkbook.name
    You should see a response (in the case of a just-opened Excel with one workbook) like this:
    Book1
    You can go to the event ThisWorkbook.Workbook_Open and stick code in there.
    I personally would want to limit Application.DisplayAlerts and be sure to turn it back on when done. Changes to the Application object are global to life of the Excel instance.
    Regards,
    Cameron Lackpour

  • Not able to export context data to excel in NWDS 7.1

    Hi all,
    We have a requirement wherein I need to export data from a local context node to an excel file. I am using jxl.jar for this purpose.
    I am using a FileDownload UI element to generate the excel. I am working with NWDS 7.1 EhP1.
    I am using the following code :
    public void excel_download( )
         IWDCachedWebResource cachedExcelResource = null;
         String fileName = "TestExcel.xls";
         File f = new File(fileName);
         WritableWorkbook workbook = Workbook.createWorkbook(f);
         FileInputStream excelCSVFile = new FileInputStream(f);
         cachedExcelResource =getCachedWebResource(excelCSVFile,fileName,WDWebResourceType.getWebResourceType("xls","application/ms-excel"));
         wdContext.currentContextElement().setResource(cachedExcelResource);
         workbook.close();
         f.delete();
    private IWDCachedWebResource getCachedWebResource(InputStream file, String name, WDWebResourceType type)
         IWDCachedWebResource cachedWebResource = null;
         if (file != null)
              cachedWebResource = WDWebResource.getWebResource(file, type);     
              cachedWebResource.setResourceName(name);               
         return cachedWebResource;
    When I try to download the data to excel I am getting the following error:
    you must flush before accessing the resource content
    But when I deploy the application using NWDS2004s it works perfectly.
    Can anyone shed some light on why this may be happening? Am I missing something? Has it got anything to do with the NWDS version?
    Thanks and Regards,
    Saurabh

    Hi Saurabh,
          The above code is deprecated :-
    Replace that with this piece of code -->
    File f = new File(fileName);
    WritableWorkbook workbook = Workbook.createWorkbook(f);
    FileInputStream excelCSVFile = new FileInputStream(f);
    IWDResource cachedExcelResource = WDResourceFactory.createCachedResource(excelCSVFile, "FileName.xls", WDWebResourceType.XLS, false);
    wdContext.currentContextElement().setResource(cachedExcelResource);
    cachedExcelResource.getUrl(WDFileDownloadBehaviour.ALLOW_SAVE.ordinal());
    WDFileDownloadBehaviour --> Will determine how you would like to download your file.
    Hope this helps !!!
    Cheers,
    Brian.

  • Problem in exporting data to excel in nwds 7.3

    Hi All,
    I was using the following code for exporting data to excel in NWDS 7.3
    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;
    I was getting the error in the following line cachedWebResource = WDWebResource.getWebResource(file, type); when I clicked the quick help it ststed the getWebResource method is depricated.  Kindly provide some assistance on what is the new method in its place.
    Thank you
    Regards,
    Preet Kaur

    Hi Ganesh,
    Thanks that worked fine, but when we go further we are facing problem ie
    byte[] excelXMLFile;
    IWDCachedWebResource cachedExcelResource = null;
    String fileName = dataNode.getNodeInfo().getName() + ".xls";
    try {
    // create Excel 2003 XML data as a byte array for the given context node,
    // attributes and headers
    excelXMLFile = toExcel(dataNode, columnInfos).getBytes("UTF-8");
    // create a cached Web Dynpro XLS resource for the given byte array
    // and filename
    cachedExcelResource = getCachedWebResource(
    excelXMLFile, fileName, WDWebResourceType.XLS);
    // Store URL and file name of cached Excel resource in context.
    if (cachedExcelResource != null) {
    wdContext.currentContextElement().setExcelFileURL(
    cachedExcelResource.getURL());
    wdContext.currentContextElement().setExcelFileName(
    cachedExcelResource.getResourceName());
    // Open popup window with a link to the cached Excel file Web resource.
    openExcelLinkPopup();
    } else {
    wdComponentAPI.getMessageManager().reportException(
    "Failed to create Excel file from table!", true);
    } catch (UnsupportedEncodingException e) {
    wdComponentAPI.getMessageManager().reportException(
    e.getLocalizedMessage(), true);
    } catch (WDURLException e) {
    wdComponentAPI.getMessageManager().reportException(
    e.getLocalizedMessage(), true);
    The above bold lines also would need to be converted to inputstream, but not sure how to correct that
    We are following the below pdf for the implementation.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/edc2f3c2-0401-0010-8898-acd5b6a94353?QuickLink=index&overridelayout=true
    Thank you
    Regards,
    Jaspreet Kaur

  • Excel ActiveX invoke nodes are broken

    I am using LabVIEW 2007.  We are using a VI that runs on most of the PC's in our facility however on some the "invoke node" related to Excel functions don't operate. They are broken and the VIs won't run.  We get errors that the "Invoke Node: contains unwired ro bad terminals".  When going to select methods or properties not all of the properties are shown as seen on the functional PCs. Some of the properties are missing from the selection menus, thus making it incompatible.
    Has anyone seen this problem and a solution?
    Thanks
    Manliff,

    What about separating the compiled code from the source?  I recognize that this will only work in LV2010, but I expect that that will prevent the compiler from breaking activeX code that depends on a different version than the local one...
    Testing this idea is on my to-do-list, but I was wondering if anyone has tried it already.
    -Barrett
    CLD

  • Strange behaviour with ActiveX invoke node and Excel

    I want to send a table of numbers from LV50.1f to Excel97. After getting a
    reg to Excel8.Application I retrieve the Workbooks property, Invoke Item to
    select a certain Workbook reference, retrieve the Worksheets collection
    reference, Invoke Item and then get a reference to WORKBOOKS again.
    Strangely, there is an example code from the NI web site that does exactly
    the same, but in the last step a variant is returned in stead of a
    reference, which is converted using Variant to G to a Worksheet reference.
    when I copied that last invoke node to my VI I also had a variant returned,
    so on one diagram I had to invoke nodes connected to the same sources, one
    returning a ref, the other returning a variant!
    Disco
    nnecting the sources to my Invoke node and rewiring gave no change.
    Also type casting the ref to workbooks to a worksheets ref, didn't work - I
    get errors in the following property node that retrieves a Range - which
    exists in Worksheet, but not in Workbooks.
    Appearantly, LV gets the returned type mixed up sometimes, and there is no
    way to fix it other then copying a invoke node from another diagram?
    Finally I got it working though, but this behaviour puzzles me. Contrary to
    the example from NI, I now managed to send a table (2d array of strings) in
    one call to Excel (don;t need to loop over cells or columns).
    PS
    I used to do the same using DDE but ranges are different for each language
    version of Excel (i.e. R1C1 for English and R1K1 for Dutch), so my VI's need
    to know the language of Excel. Also with NT and Win98, getting a DDE
    connection often hangs LV. But a big progress has been made - now I need
    different VI's for each version of Excel!!!
    Ferry Toth
    Enraf BV, The Netherlan
    ds

    Hi Enric,
    Can you try your queries again using the new release of DB XML? It contains some improvements in this area.
    http://www.oracle.com/technology/software/products/berkeley-db/xml/index.html
    John

  • How to name a new Excel worksheet using an invoke node??

    I want output from my specific labview code to be written to a new and specific worksheet (meaning I want to provide the specific worksheet name) of an Excel spreadsheet my LabVIEW code will generate. My code will run in a loop where I want data that is generated in each pass of the loop to be written to a new worksheet each time through the loop. I know how to do this if I am ok with just having each worksheet be named 4, 5, 6, etc (on top of the 1, 2 and 3 that comes standard with a new Excel spreadsheet) but I want more meaningful names than just those numbers... So how do I add a new worksheet and give it a name of my choosing??? Also, when right click on an invoke node and then click on "Help for Item" which is right under the Methods selection that comes up, nothing happens, meaning I am not directed to any help file. I see that same behavior under LabVIEW 6.1 and also under LabVIEW 7.1. My guess is either I didn't buy some option required to have that help area be populated or I had it as some option but didn't know to install it when I originally installed LabVIEW??? Having that help available might help answer the question I pose above... I find working with ActiveX components to not be straightforward. Granted I haven't done it much and what I have done has been sort of follow examples and get it to work... But on this naming a new worksheet I have found no useful examples. My guess is it's easy but I'm clueless... Any help would be much appreciated... Note, in case it matters, I do not own the Report Generation tool/capability... thanks... bob...

    Hi, Paris1:
    Take a look at "Excel Workbook Properties", that is located in
    REPORT GENERATION
    -> EXCEL SPECIFIC
    -> EXCEL GENERAL
    -> EXCEL WORKBOOK PROPERTIES
    One of its outputs is "Current Worksheet Name".
    You can insert a ExcelWorkbookProperties VI in a blank VI and then double-click it.
    You will se a rose vi named Excel Get Properties
    And inside it (double-clicking it), the way Worksheet's name is got. If you "Change to Write" that property node, you can set it's name.
    This way is very complicated, it can be done faster, but this way you can see a process to do that, and checking it, you can build your own excel VIs to do specific tasks.
    Hope it helps,
    Aitortxo.

  • Why we need to conver Context  Node data into XML file----Export to Excel

    Hi All,
    Let me clarify my dought........today i have gone through the concept of  "Exporting Context Data Using the Webdynpro Binary cache" in SAP Online Help.
    From the SAP Online Help pdf document, i have found that, the context node data has been converted first in to XML file,after that file had been stored in the web dynpor binary cache...bla....bla.........
    Here my qtn is why they had converted context node data into XML file. With out doing that can not we export context node data to excel file..?
    Regards
    Seshu
    Edited by: Sesshanna D on Dec 19, 2007 7:25 AM

    Hi Sesshanna,
    it is not neccessary to do that but xml has the advantage, that it can be easily transformed into every output format that might occur in later project stages.
    If it's simply about blowing out some Excel, I suggest using an OSS library such as jexcelAPI or Jakarta POI and building the Excel how you need it.
    regards,
    Christian

  • Saving report to Excel to include and show lower nodes values

    We have a cost center spending report that's written in Report Painter.  Users execute the report using a cost center group.  In the report, they can navigate to the different variations of the report to see the data for Total cost center group or data for individual cost center within that group or subnodes within that group.   
    They would like to be able to save this report to Excel, but with all the subgroups and individual cost center data shows up in different tabs of the Excel file.    And they would like to do this with just one single command.   So, when they do 'Save > Local File > spreadsheet", they want to have all the data in that one single file. 
    If anybody knows how to do this, I would appreciate it.   Points will be awarded.   Thank you.

    Hi -
    Thank you for the response but it does not resolve our problem.   The above method does not bring the data of all the subsequent nodes.     The requirement is to have all the subnodes saved into Excel as separate tabs.    For example, they run the report for Cost center group A which has 2 subgroups under it (subgroup A1 and subgroup A2).   Under A1, there are cost centers 12000 and 22000.   Under A2, there are cost center 13000 and 23000. 
    When they run the report for cost center group A, and the "Navigation" is on, the grouping above will be shown and within that report, they can navigate to see the data for Group A, or data for Subgroup A1, or data for cost center 12000, etc.   They would like to download all these information into Excel as separate tabs.   So, data for Group A should show in the Excel file in tab 1.  Data for Subgroup A1 should show in tab 2.  Data for Cost center 12000 should show in tab 3, etc.  
    thanks.

  • Labview 2014 Excel Active X Property Nodes disabled - Why?

    Hello,
    I am using Labview 2014 and want to open, write to and close Excel by the use of Active X.
    I am confronted with the problem, that, if connecting (Active X-) property nodes to the references (e.g. "Excel_Application"), right-clicking on the context menue doesn´t let me choose any properties, the item is disabled (one can read in German "Keine Eigenschaften" (no properties)).
    How can I resolve this? What am I doing wrong?
    Thank you!

    I am having the same problem.  When I left click to choose/change the property I do not get a list - instead I get the greyed No Properties popup - see screenshot.
    If I drag and drop an existing property node from within an example subVI it connects to the reference and keeps showing the current property but I cannot change to a different one.
    I am using LV 2012, Win7, Office 2013.
    When I try with LV 2012, Win7, Office 2010, it works properly.  So my guess is that is has to do with the version of office.  But I would like to know the reason why as well.
    Attachments:
    NoProperties.png ‏67 KB

  • 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

Maybe you are looking for

  • Can't install Windows 7 on my Macbook pro.

    Hi, I've been trying to install Windows 7 on my Macbook pro, with no luck. I have been able to create a Windows Partition via Bootcamp. And after the Windows 7 installation guide started to expand my Windows files, my Windows 7 CD suddenly stopped sp

  • How much data does facetime use over wifi? on 5gb mifi

    so can any1 tell me how much or how long facetime hours/minutes will i get out of my 5gb wireless mifi (wi-fi)

  • LR v2.7 delivering incomplete gallery.

    I just finished a new gallery under Apple OS 10.6.3 using LR v2.7 (LR 3 is ordered) and I am getting an incomplete gallery.  Out of 79 photos one is missing in the gallery. The gallery content shows both the thumbnail and the large file.  There are 9

  • Select options : period restriction

    Hi, I have one select option Inventory period(S_INVPRD) in my selection screen. I want to restrict the date range to one year period. i.e the user should not be allowed to enter the date range which is more than one year. Could you please help on thi

  • An Intriguing/Frustrating Problem

    A week ago I somehow deleted my Utilities Folder. Using information garnered from this site, I downloaded Pacifist and successfuly restored all the items I needed except for the Disk Utility and System Profiler. When I try to open either of these two