How to insert data into datagrid dynamically and also programatically with data and column names being retrived from a xml file..
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
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";
Similar Messages
-
How do I set up my drag and drop questionaire to export to a XML file?
How do I set up my drag and drop questionaire to export to a
XML file?
I have a 70 seperate SWF files that pose a question and
contain a drag and drop rank order response of 1,2,3,4.How do I set
up a XML file that receives the responses.I don't understand how to
do the Actionscript
and get my responses to connect to the XML.Please
Help!Thanks!
Here's an example of my XML.
<assessment>
<sessionid>ffae926ea290ee93c3f26669c6c04a92</sessionid>
<request>save_progress</request>
<question>
<number>1</number>
<slot_a>2</slot_a>
<slot_b>1</slot_b>
<slot_c>4</slot_c>
<slot_d>3</slot_d>
</question>
<question>
<number>2</number>
<slot_a>4</slot_a>
<slot_b>3</slot_b>
<slot_c>2</slot_c>
<slot_d>1</slot_d>
</question>
<question>
<number>3</number>
<slot_a>1</slot_a>
<slot_b>2</slot_b>
<slot_c>3</slot_c>
<slot_d>4</slot_d>
</question>
</assessment>Use XML.sendAndLoad.
http://livedocs.macromedia.com/flash/8/main/00002879.html
You will need a server script to receive the XML structure
and it depends on
the server scripting language how you obtain that data. Then
you can either
populate a database or write to a static file or even email
the XML data
received from Flash.
For a basic example, I have two links I use for students in
my Flash
courses:
http://www.hosfordusa.com/ClickSystems/courses/flash/examples/XMLASP/Ex01/XMLASPEchoEx01_D oc.php
http://www.hosfordusa.com/ClickSystems/courses/flash/examples/XMLPHP/EX01/XMLPHPEchoEx01_D oc.php
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
"kenpoian" <[email protected]> wrote in
message
news:e5i9hp$cs6$[email protected]..
How do I set up my drag and drop questionaire to export to a
XML file?
I have a 70 seperate SWF files that pose a question and
contain a drag and
drop rank order response of 1,2,3,4.How do I set up a XML
file that receives
the responses.I don't understand how to do the Actionscript
and get my responses to connect to the XML.Please
Help!Thanks!
Here's an example of my XML.
<assessment>
<sessionid>ffae926ea290ee93c3f26669c6c04a92</sessionid>
<request>save_progress</request>
<question>
<number>1</number>
<slot_a>2</slot_a>
<slot_b>1</slot_b>
<slot_c>4</slot_c>
<slot_d>3</slot_d>
</question>
<question>
<number>2</number>
<slot_a>4</slot_a>
<slot_b>3</slot_b>
<slot_c>2</slot_c>
<slot_d>1</slot_d>
</question>
<question>
<number>3</number>
<slot_a>1</slot_a>
<slot_b>2</slot_b>
<slot_c>3</slot_c>
<slot_d>4</slot_d>
</question>
</assessment> -
How to load data to a SQL Server 2000 from a text file ( fixed / delimited)
I am a navie user to ODI, just installed some time back. And I wanted to load text data ina file ( fixed length/ delimited ) to SQL server 2000 database.
Iam intrested to know the steps I need to take to achieve this. I mean for example first creating topology,next designer..
Could you please provide some books/articles or any documents that talt about these steps clearly one-by-one.Hi,
Oracle Data Integrator - Getting Started with an ETL Project
follow this manuel step by step and you will be able to load data from file to any database... -
How to Insert Hastables Into Database Through JDBC
hi all,
I have place the Data from the Hashtables Into the Database.I can place it by Iterating through the Hastables.I would Like to Place the Entire Hashtable Itself Into the Database.
Can Any one tell me how?
bye.Hi,
Can anyone help me out how to insert image into
database using struts...with dao n dto classes?If it matters whether or not you are using struts then you might have something wrong.
Make sure you separate the database logic out.
I know these types of questions are asked frequently, you might want to search the forum for additional examples.
Here is a good one:
http://forum.java.sun.com/thread.jspa?threadID=620455&messageID=3495899 -
How to populate a form from an xml file with multiple records
I want to be able to create a single form that will add pages as needed based upon the number of records being imported from an xml file.
I have an IRS form that does this exactly, but I do not know how to re-create it. I entered data into the form, then exported that data to xml. Then I opened that xml file in excel and added more records (this is just an easy way to manage the xml data in a tabular form). Then I import the changed xml file into the IRS form and it adds as many pages as I have records. Perfect! Unfortunately, I cannot edit the form to examine the technique. It does not appear to be relying upon any additional local javascript files. It does use an 'add page' button which may suggest the form is using the template .spawn() technique, but when I try that in my own form, it gives me unique field names for each page which are then not consistent with the xml data. Hopefully someone can help me understand what I am missing.did you want
<record>0
<data>"11.97.23.174/32"
<record>address <data>
<record>address <data>
<record>subnet <data>
<record>ip <data>"10.97.23.174"</data></record>
</data></record>
</data></record>
</data></record>
</data></record>
or
<record>0
<data>"11.97.23.174/32"
<record>address <data>
<record>address <data>
<record>subnet <data>
<record>ip <data>"10.97.23.174"</data></record> -
How to insert data from site into DB?
Hi
Does anyone know how to insert data into a database from a
website?
I have created a Registration form for users to register to
my web site. With this I would like the data they have entered to
be stored in a MySQL database. I have created the a form and used
the record insertion form wizard.
When they have registered, I need to be able to check their
username every time they log in.
If anyone could help, it would be greatly appreciated,
thanks Lou.LoobieLouLou wrote:
> When I inserted a form, I enetered a name and the method
was POST, but it also needed an action.
> How do I write in java script that it needs to be
inserted into the database?
You can't do it with JavaScript. You need to use a
server-side language
like ASP, ASP.NET, ColdFusion, or PHP. Dreamweaver automates
a lot of
the process for you, but you need to choose your server model
first.
It sounds as though you are completely new to this. First ask
your
hosting company whether it supports a server-side language,
and if so,
which one. Then open Dreamweaver help (F1) and read the
section titled
"Preparing to Build Dynamic Sites".
Working with server-side languages and databases isn't
difficult, but
it's not something you can pick up in five minutes or be
shown how to do
in a couple of forum posts.
If you can't make up your mind which server-side language to
use,
ASP.NET is the most difficult of the four I mentioned. ASP is
popular,
but is no longer actively developed, so will eventually die
out
(although it will take many years to do so). ColdFusion and
PHP are
relatively easy to learn. I prefer PHP, but all of them do
basically the
same thing. However, you must choose one; they cannot be
mixed.
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
Its very urgent:how to insert data into database tables
Hi All,
I am very new to oaf.
I have one requirement data insert into database tables.
here createPG having data that data insert into one custom table.
but i dont know how to insert data into database tables.
i wrote the code in am,co as follows.
in am i wrote the code:
public void NewoperationManagerLogic()
ManagerCustomTableVOImpl vo1=getManagerCustomTableVO1();
OADBTransaction oadbt=getOADBTransaction();
if(!vo1.isPreparedForExecution())
vo1.executeQuery();
Row row=vo1.createRow();
vo1.insertRow(row);
in createPG processrequest co:
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
ManagerInformationAMImpl am=(ManagerInformationAMImpl)pageContext.getApplicationModule(webBean);
am.NewoperationManagerLogic();
process form request:
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
if(pageContext.getParameter("Submit")!=null)
ManagerInformationAMImpl am=(ManagerInformationAMImpl)pageContext.getApplicationModule(webBean);
am.getOADBTransaction().commit();
please help with an example(sample code).
its very urgent.
thanks in advance
Seshu
Edited by: its urgent on Dec 25, 2011 9:31 PMHi ,
1.)You must have to create a EO based on custom table and then VO based on this EO eventually to save the values in DB
2.) the row.setNewRowState(Row.STATUS_INITIALIZED); is used to set the the status of row as inialized ,this is must required.
3.) When u will create the VO based on EO the viewattributes will be created in VO which will be assigned to the fields to take care the db handling .
You must go thtough the lab excercise shipped with you Jdeveloper ,there is a example of Create Employee page ,that will solve your number of doubts.
Thanks
Pratap -
How to insert data into newly added column
Hi all,
i am having a doubt how to insert entries into newly added column..
i created a table with two columns and inserted the data into them then i altered the table by adding additional column.now i want to insert data into that..plz tell me how to do that..??
thanks in advance..help meSmall example:
[email protected]> create table t(id int, id2 int);
Table created.
[email protected]> insert into t values (1,2);
1 row created.
[email protected]> insert into t values (2,2);
1 row created.
[email protected]> alter table t add id3 int;
Table altered.
[email protected]> select * from t;
ID ID2 ID3
1 2
2 2
[email protected]> update t
2 set id3 = 10
3 where id = 1;
1 row updated.
[email protected]> select * from t;
ID ID2 ID3
1 2 10
2 2
Best Regards
Krystian Zieja / mob -
How to insert data into two tables linke with foreign key..
I have two tables
1)EMP(emp_ID,username,emp_type_code)
emp_ID is primary key, emp_type_code is a foreign key references emptype table.
2)emptype(emp_type_code,emp_type_descripton)
emp_type_code is primary key
Could anyone help me ..how to insert data into EMP table. How to insert data into two tables linke with foreign key..CREATE TABLE "CATDB"."DWDIMUSER"
"USER_ID" NUMBER(10,0) NOT NULL ENABLE,
"SPECIALTY_ID" NUMBER(10,0),
"FULLNAME" VARCHAR2(20 BYTE),
"FNAME" VARCHAR2(20 BYTE),
"LNAME" VARCHAR2(20 BYTE),
"USER_SUBTYPE" VARCHAR2(20 BYTE),
CONSTRAINT "DIMUSER_PK" PRIMARY KEY ("USER_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "CATDB" ENABLE,
CONSTRAINT "DIMUSER_DIMSPECIALTY_FK" FOREIGN KEY ("SPECIALTY_ID") REFERENCES "CATDB"."DWDIMSPECIALTY" ("SPECIALTY_ID") DISABLE
CREATE TABLE "CATDB"."DIMSPECIALTY"
"SPECIALTY_ID" NUMBER(10,0) NOT NULL ENABLE,
"SPECIALTY_NAME" VARCHAR2(100 BYTE),
CONSTRAINT "DIMSPECIALTY_PK" PRIMARY KEY ("SPECIALTY_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "CATDB" ENABLE
INSERT INTO DIMUSER (FullName, FNAME, LNAME, USER_TYPE, USER_SUBTYPE)
SELECT DISTINCT
Engineer AS FullName,
regexp_substr(Engineer , '[^,| ]+', 1, 1) as FName,
regexp_substr(Engineer , '[^,| ]+', 1, 2) as LName ,
'Engineer'
FROM EMPLOYEELOOKUP;
INSERT INTO DIMSPECIALTY (SPECIALTY_NAME)
SELECT DISTINCT SPECIALITY
FROM EMPLOYEELOOKUP;
COMMIT;
CREATE TABLE employeelookup ...IS A TABLE THAT HAS ALL THE DATA NEDED TO BE FILLED IN BOTHE TABLES...
CREATE TABLE "CATDB"."EMPLOYEELOOKUP"
"EMPLOYEELOOKUP_ID" NUMBER(10,0) NOT NULL ENABLE,
"ENGINEER" VARCHAR2(25 BYTE),
"SPECIALTY" VARCHAR2(20 BYTE),
CONSTRAINT "DIMSPECIALTY_PK" PRIMARY KEY ("EMPLOYEELOOKUP_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "CATDB" ENABLE
DATA IN EMPLOYEELOOKUP
Engineer, Specialty,
John, Dow, Electronis,
Dow, Jons, Technician
Stan Smithers Sales
Mark, Richards Marketing
Jenny, Lane Marketing
John, Lee Sales
I NEED TO LOAD THE FOREIGN KEY IN DIMUSER FROM THE DIMSPECIALTY TABLE?
BY USING THE LOOKUP TABLE TO MARCH THE NAMES UNDER THE Engineer COLUMN, SPECIALTY COLUMNE DISTICTIVLY BY JOINING THE DIMSPECILTY TO RISTIVE THE PRIMARY KEY AND FILL IT IN THE DIMUSER TABLE AS A FOREIGNE KEY. -
How to insert data into the mysql table by giving as a text file
Hi,
Any one know's how to insert data into the mysql table by giving as a text file as the input in JSP.Please respond ASAP.
Thanks:)At least you can try StringTokenizer to parse your text files. Or download a text JDBC driver to parse your files, for instance, HXTT Text(www.hxtt.net) or StelsCSV(www.csv-jdbc.com).
-
How to insert data into BLOB column using sql
Hi all,
How to insert data into BLOB column directly using sql .
create table temp
a blob,
b clob);
SQL> /
Insert into temp values ('32aasdasdsdasdasd4e32','adsfbsdkjf') ;
ERROR at line 1:
ORA-01465: invalid hex number
Please help in this.Thanks,
P Prakashsee this
How to store PDF file in BLOB column without using indirect datastore -
*Urgent*How to insert data from MS SQL to the table that create at the adobe form?
Hi,
I'm using Adobe life cycle designer 8 to do my interactive form. I would like to ask how to insert data from MS SQL to the table that i have created in my adobe interactive form?
I really need the information ASAP as i need to hand in my project by next week... i really appreciate any one who reply this post.
ThanksTou need to do a couple of things
1. On the Essbase server, set up an odbc system connection to your MySQL database
2. In the load rule , go to the file menu and select open SQL data source and in the data source put in your SQL statement . A couple of hints. Where it says Select, don't put in the word select and where it say from don't put in from. The system adds them for you. The easiest way ti enter a SQL statement is to do it all in the select area So if your SQL would normanlly say select * from mytable just enter the code as * from mytable in the select area
The click ol/retrieve and enter in your connection info. Itshould bring data back into the load rule. Save the load rule and use it -
How to insert data in table UI elements
Hi Guys,
Here is my questions. How to insert data in table UI elements.
Here i try to insert data by using Add button
data:
Node_Item type ref to If_Wd_Context_Node.
Node_Item = wd_comp_controller->get_data_node( ).
data:
lr_table_line type ref to ITEM.
lr_table_line = Node_Item->create_element( ).
field-symbols:
<ls_table> type any.
assign lr_table_line->* to <ls_table>.
Node_Item->bind_element(
new_item = <ls_table>
set_initial_elements = abap_false
index = 1 ).
But i got syntax error the result type of the function method cannot not be converted in to the type of lr_table_line.
And i set cardinality and selection as 0.n.
Pls, let me know for the soulutions
Chandru
Message was edited by:
chandrasekar muthuvelrajChadru, another option is for you to bind the table UI field to an internal table and to populate the internal table. Then, automatically, your Table UI field will be populated with the data from the internal table. Here is the code that does that and works for me. Good luck!
method FILL_DATA .
DATA: node_level1 type ref to if_wd_context_node,
node_level2 type ref to if_wd_context_node,
node_items type ref to if_wd_context_node,
stru_ResItems type BAPI2093_RES_ITEM,
tab_ResItems TYPE TABLE OF BAPI2093_RES_ITEM,
n type i.
node_level1 = wd_context->get_child_node( name = 'BAPI_RESERVATION_CRE' ).
node_level2 = node_level1->get_child_node( name = 'CHANGING' ).
node_items = node_level2->get_child_node( name = 'RESERVATIONITEMS' ).
n = 2.
do n times.
insert stru_ResItems into table tab_ResItems.
enddo.
node_items->bind_table( tab_ResItems ).
endmethod. -
How to insert data in to msaccess through jsp
i am doin a project in jsp, which i am new to. i have completed the design part in jsp now i am supposed to work with backend and stuffs.
yesterday i had asked how to connect jsp with msaccess and Mr sharma had helped me in that and now that part is up and running. i am able to retrieve data from the table
now my problem is how to insert data that i get from the user through the forms in to a table
i have a registration form in jsp that contains the username, password, age etc. how can i get add these informations in to access.pls help me
thanks in advanceHi....
Simply obtain a jdbc connection to your ms access database.
one u have a connection u can use , Statement Or PreparedStatement to
execute queries against database
Here is an example of mysql...
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
public class SqlAuthenticationHandler{
private Connection conn;
private PreparedStatement statement;
private ResultSet rs;
public SqlAuthenticationHandler(){
/** Load ur JDBC driver **/
try{
Class.forName("com.mysql.jdbc.Driver");
conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/JDrive","root","password");
}catch(Exception ex){
ex.printStackTrace();
public void insertUser(String name, String password){
try{
/** Create a statement **/
statement=conn.prepareStatement("INSERT into user values(?,?)");
statement.setString(1,name);
statement.setString(2,password);
statement.executeUpdate();
statement.close()
}catch(SQLException e){
e.printStackTrace();
Here replace "com.mysql.jdbc.Driver" with class name of your type 4 Ms Access Driver.
replace jdbc:mysql://localhost:3306/JDrive","root","password" with url of ur access database
check out this jdbc tutorial
http://java.sun.com/docs/books/tutorial/jdbc/overview/index.html
Sudhir Nimavat (Sudhir_nimavat at yahoo dot com) -
How to insert data in database table
Hi experts,
How to insert data into database table using internal table from function module.Hi,
As per my understanding are you looking for the complete API feature of data insertion into the database using the Locking Mechanism? If yes, then you need to create a Lock Object using the Primary keys of the Primary Table and Secondary Tables. You need to call the lock object first and then you need to make the entry into the table. This principle is based on 'All or None Concept'.
For the insert Statement Key word you can have a look at the following link:
http://help.sap.com/abapdocu/en/ABAPINSERT_SOURCE.htm
Hope this helps.
Thanks,
Samantak.
Maybe you are looking for
-
Wierd Apple TV Connection issue.....
AppleTV will connect to iTunes wirelessly via airport extreme, but will not connect via ethernet. Have disabled firewalls, updated everything, disabled/renabled search for appletv in itunes, rebooted everything - no sign of appletv when ethernet plug
-
Dear All, I need to learn discoverer integrated with Oracle Apps R12. Can anybody please suggest me a link where can I find a tutorial on discoverer. I googled for it but could not get a good tutorial anywhere. I need to start creating reports within
-
How do we restrict the Rental Object Mesurement
Hi Experts, Here I am facing ine problem with RE_FX Master data creation . Eg:we have defined 100 sqm as a land .Further we have created 4 rental objects of 25Sqm under Land. Now the measurement is equel land (100SQM) = 4 rental objects of 25SQM
-
i recently changed my mail setting per my Verizon Email Provide. I can receive mail in but can not send out mail from AppleMail. my icon just keep spinning on the outgoing mail what can i do?
-
EMAIL ICON DISAPPEARS CURVE 8530
Ok I love u guys. U have been of great help. No I have my email synch. With my curve 8530. At first my yahoo icon appeared on the message envelope and then disappeared a couple days later. I still get email but it seems like I don't get all of it and