Home > Default > How to insert data into datagrid dynamically and also programatically with data and column names being retrived from a xml file..

How to insert data into datagrid dynamically and also programatically with data and column names being retrived from a xml file..

October 11Hits:0
Advertisement
iam not able to insert data into datagrid corresponding to the column names..as iam inserting both data and column names programatically..ie iam not able to co relate the data with the column names.plzzz help me asap

Answers

A DataGrid is row-based rather than cell-based with each row
corresponding to an item in an underlying collection (specified in the
dataProvider property). In order to add data to a DataGrid you
manipulate the underlying collection, rather than the grid directly.
Based on the limited description of your problem I would imagine you
would need to create dynamic objects with property names that correspond
to the dataFields of your dynamically created datagrid columns.
So if you had created columns with dataFields "alpha", "beta" and
"gamma" on your datagrid, you could create an item in your grid by
adding the following object to your dataProvider:
var gridItem : Object = new Object();
gridItem.alpha = "alphaValue";
gridItem.beta = "betaValue";
gridItem.gamma = "gammaValue";

Read other 2 answers

Tags:

Related Articles

  • How to insert data into datagrid dynamically and also programatically with data and column names being retrived from a xml file..October 11

    iam not able to insert data into datagrid corresponding to the column names..as iam inserting both data and column names programatically..ie iam not able to co relate the data with the column names.plzzz help me asapA DataGrid is row-based rather tha

  • How to store the data instead of memoryengine to database when use XML fileOctober 11

    Hi Experts, I have doubt which is into XML to database data transfer. While transferring the data from XML to database the tables will be store in memory for the xml files, my aim is instead of storing this in memory engine is there any way to store

  • Error while trying to insert data on a database through a mediatorOctober 11

    I have build a simple project on 11g TP$, which consists of a mediator, a file adapter, that reads an xml file and a DB adapter that inserts data on a database. The mediator connects the file adapter to the DB adapter and through a routing rule it in

  • Inserting data into a column from 2 different tablesOctober 11

    Hi, I need to insert data into a table using 2 other tables. The tables that contain data have identical column names. Is using a UNION statement the only option? Also, if I need to insert data into columns from only one of the either tables, how do

  • How to build a xml file dynamically with given data.October 11

    hi there i need to create a writer that can create a xml with some given data. what is the procedure of creating a xml file? if it is possible, please post some samples, thank you.I would reccomend JDOM, although it is not the only way(DOM is another

  • Problem converting data in XML file to internal table dataOctober 11

    Hi all, I have a requirement. I need to convert an XML file to internal table data and based on that data do Goods Receipt in SAP. With the help of this blog /people/r.eijpe/blog/2005/11/10/xml-dom-processing-in-abap-part-i--convert-an-abap-table-int

  • XML  file and DataGridNovember 30

    Hi everyone, Plz help me out..... Currently, I am working on flex and Remote Object Accessing. My problem is that, in my application I have one Servlet which writes .xml file in browser and I use that .xml file to display data in Datagrid. Everything

  • Build a web gallery with amazing flash slideshows with dynamic XML filesOctober 11

    Build a web gallery with amazing flash slideshows with dynamic XML files Screenshot: Features Features Transitions, zooming and panning effect You can  choose from  Random, Wipe from Left, Fade to White, Cross Expansion and  other 60-plus  transition

  • Data in XML format (XML files) to BW?October 11

    Hi, My customer is interested in loading data to BW (from 3rd party system) in XML format. Are there any advantages of doing this (compared to traditional ascii files)? How about disadvantages (BW version is 3.5) ?. How to get started with this one,

  • XML files imported into SPRC are not properly loading associated data into SPRCOctober 11

    Hi EHS Gurus, My Issue is - XML files imported into SPRC are not properly loading associated data into SPRC . When am uploading the XML files manually its working fine in /TDAG/CPM00. The same when we are uploading the XML files thru basis program IP

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.634 s.