Populate Datagrid from database

Using Adobe Flex Builder 3 Beta 2, I have successfully used
the Data Source Explorer window to connect to the Northwind and
Pubs database on my SQL 2005 server. I can see the schemas and
tables, etc. I understand that currently I cannot simply drag and
drop the fields into the datagrid (which would be nice) so how do I
'wire up' a table to the data grid? Is there an example which you
can refer me to (with source) that would explain that? I've
successfully wired up a webservice, but not to a database listed in
the Data Source Explorer. If there were an example that showed a
CRUD data grid, that would help.

Just to give you an update as to where I am and where I'm
hung up, I was able to make a little bit of progress but not too
far.
1. I created a Flex Project (Web application) and specify
Applcation Server Type: ASP.net.
2. Next, I have the choice of specifying 'Use ASP .NET
Development Server' or 'Use Internet Information Services (IIS). At
the 'Usa ASP .NET Development Server', the error message at the top
of this wizard window says (X) You don't have ASP .NET Development
Server Installed. [Well, it may not be running but I do have it
installed as part of the .NET 2.0 Framework.. it does exist]. So,
because of the error, I have no choice but to use the alternate
option, 'Use Internet Information Services (IIS).
3. I specify my Web Application Root: d:\Flex3
Projects\TestProj3 (I manually have to create the folder).
4. I speciy my Web Application URL:
http://localhost
5. I click the Finish button.
Note... I've already selected my Connectivity using the Data
Source Explorer (which is available by selecting the following in
Flex Builder: Windows, Otherviews, Connectivity, Data Source
Explorer, and then adding in a database connection at my MS SQL
2005 server, specifying username and password).
6. Next, from Flex Builder, I select: Data, Create
Application from Database, and specify the current project,
connection (in my case, Northwind) and the employee table, etc. I
click NEXT.
7. I can select C# with web services or Visual Basic with Web
Services, so I select Visual Basic.
8. Select Finish.
OK at this point, a lot of code (action script, webservices,
etc. is auto-generated for me - kewl.. just like Dreamweaver :-)
Now I'm ready to run the application.
But wait - I know it won't run because I note that the ASP
.NET Development Server is not running. However - I can start it
from the windows command line.
First thing I do is stop my local IIS server which is using
Port 80.
Next thing I do is open a windows command line and navigate
to my .Net 2.0 Framework directory:
cd \WINDOWS\Microsoft.NET\Framework\v2.0.50727
and then I run the ASP .NET Web server at the same path that
my application (above) is written to (again, typed in the command
line window).
start /b webdev.webserver /port:80 /path:"D:\Flex3
Projects\TestProj3\bin"
Finally, from the Flex Builder window, I right-click on the
auto-build Employee.mxml table and select 'Run application'.
After a few moments an Internet Explorer window comes up. I
believe it says:
http://localhost/bin/Employees.html
and I change it to read:
http://localhost/Employees.html
and it runs.. well it runs, but with 'An unexpected error
occured and it has been logged.'
So that's as far as I have gotten but it does write the code.
So am I to assume that whether I do this by hand or use the
'auto-generated code' that I will be using WebServices to read and
write from the MS SQL 2005 database?
I would much rather my Flex Application open a connection to
the database directly and send SQL statements. I'm guessing that
might not be possible without some driver? Perhaps thats were Adobe
Live Cycle comes in?
Any insight (frm anyone) would be helpful. Thank you.

Similar Messages

  • Populate combobox2 From database WHERE combobox1.text = something

    I want to populate combobox2 from database WHERE combobox1.text = something. Here is the code I have and also I am using datable so I want to keep it that way
    private void cbCompany_SelectedIndexChanged(object sender, EventArgs e)
                this.cmpLocationTableAdapter.FillLocbyCmp(this.shahiemsDataSet.cmpLocation, cbCompany.SelectedText.ToString());
                cbLocation.DataSource = shahiemsDataSet.cmpLocation;

    The result is a blank combobox2(cbLocation).
    Hello,
    Did you mean that the combobox2 bound to the datatable cbLocation, but it didn't contain any item, right?
    If so, it seems that the method FillLocbyCmp didn't fill any data to that datatable, to troubleshoot this case, we need to check the following tips.
    1. Whether the database for that dataAdapter contains any data, and whether you connected to the right database.
    2. Whether that database could get any result filtering by that text value.
    3. Whether that method could get that datatable filt succeccfully.
    Since we could not get code about that FillLocbyCmp method, if possible, you could share them with us.
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Populate List from Database (Very Strange Behaviour)

    Dear Fellows,
    I have developed a from which has two lists One for Major (say) and Other for Minor (say), thesr minors are based on the value of Major.
    Now I have developed this system on Windows XP Professional, Developer/2000 6i and Oracle 8i (release 8.1.7).
    Major list is populated from database and it shows all major values now using 'when_list_change' trigger the minor list is populated from the database based on the value of major list. Interestingly enough it is working fine without any problem.
    Now I have deployed the software to Windows 2000 Professional/Server (tried on both), Developer/2000 6i and Oracle 8.0.5, but strangly the lists are not working now. First list (major) is still working but the other dependent lists are not working.
    Another strange thing is that it populate the second list for one particular value (only at times).
    The logic is that I have used a program unit to which i am passing 'list element' and 'query' and call it for each list in the when-list-change trigge.
    Now its a very strange behaviour, I don't know what to do?
    Your cooperation will be highly appreciated.
    regards.

    rolrollerx wrote:
    Hi,
    I have Nokia N8 (a great phone, btw) with Symbian Anna. I wanted to download the maps. But the PC Ovi Suite is just busy forever, without downloading anything (I used Performance Monitor to find out it was doing nothing for hours).
    As I have unlimited data plan from my phone, I decided to try updating directly from the phone instead. It successfully downloaded the list of maps, but when I selected one of them
    "No Wi-Fi network available. Please configure a WiFi access point in the phone Internet destination settings."
    Why should I do that? I have a working connection on that phone (as evidenced by the successful download of the list of maps). So now, I am stuck. How can I download the maps?
    Well, the suggestion is there. Use a router.
    ‡Thank you for hitting the Blue/Green Star button‡
    N8-00 RM 596 V:111.030.0609; E71-1(05) RM 346 V: 500.21.009

  • Populate ComboBox from database - NOT using Flex Data Services

    Hi there,
    We are using CF with Flex but are not using the Flex Data
    Service. I'm very much a newb and I'm having trouble finding any
    information on how to populate controles from a database without
    using Flex Data Service. Any help would be greatly appreciated.
    First I have a page... JobSearch.mxml that contains a combo
    box that I want to populate with the job_id and job_title from a
    MSSQL database.
    In Flex in the RDS DataView I used the "Create CFC" Wizard
    which generated "job.cfc" and "jobGateway.cfc". It also generated
    "job.as".
    The CF Function that selects the data appears to be defaulted
    and called "load" and the .as function is called simply "job".
    So, that all looks great. But I can't find any information on
    what I need to have on my JobSearch.mxml to actually get this data
    into the comboBox.
    I did:
    <mx:Script>
    <![CDATA[
    [Bindable]
    public var jobData:job = null;
    ]]>
    </mx:Script>
    And then:
    <mx:ComboBox
    text="{jobData.job_title}"></mx:ComboBox>
    But I'm being told "Type was not found or was not a
    complie-time constant: job"
    I guess I'm missing something, or doing something way
    wrong... I just don't know enough of Flex at this point to know
    what it is.
    Thanks!
    April

    Using php or asp is not an option, as we are a Cold Fusion
    House.
    I was looking at an article on Ben Forta's blog (
    http://www.forta.com/blog/index.cfm?mode=e&entry=1786)
    and following his example I did this... only it doesn't work:
    I'm very very new to Flash and we are using ColdFusion but
    are not using Flex Data Services. I've been trying to figure out
    how to populate a combobox from a database and I'm just not having
    any luck.
    My project is called "PreTraffic". I have my main file as
    "JobSearch.mxml" and a folder under the root named "cfc" with a
    file called "job.cfc".
    job.cfc contains the following code:
    <cfcomponent>
    <!--- Get jobs --->
    <cffunction name="GetJob" access="remote"
    returntype="query" output="false">
    <cfset var job="">
    <cfset var results="">
    <cfquery datasource="discsdev" name="job">
    SELECT job_id, job_title
    FROM job
    WHERE status = 'O'
    ORDER BY job_title
    </cfquery>
    <cfquery dbtype="query" name="results">
    SELECT job_title AS label, job_id AS data
    FROM job
    ORDER BY label
    </cfquery>
    <cfreturn results>
    </cffunction>
    </cfcomponent>
    And JobSearch.mxml has the following code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
    xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns="*"
    layout="absolute"
    backgroundGradientColors="[#ffffff, #d0d0d0]"
    creationComplete="InitApp()">
    <mx:Style source="style.css" />
    <mx:Script>
    <![CDATA[
    public function InitApp():void {
    jobSvc.GetJob();
    ]]>
    </mx:Script>
    <!-- ColdFusion CFC (via AMF) -->
    <mx:RemoteObject id="jobSvc" destination="PreTraffic"
    showBusyCursor="true" />
    <mx:VBox label="Job History" width="100%" height="100%"
    x="10" y="92">
    <mx:Label text="Search jobs by"/>
    <mx:Form label="Task" width="100%">
    <mx:FormItem label="Job Name:">
    <mx:ComboBox id="jobNameCB"
    dataProvider="{jobSvc.GetJob.results}"></mx:ComboBox>
    </mx:FormItem>
    </mx:Form>
    <mx:HBox>
    <mx:Button label="Search"/>
    <mx:Button label="Clear"/>
    </mx:HBox>
    </mx:VBox>
    </mx:Application>
    My Compiler thingy points to:
    -services
    "/Volumes/flexwwwroot/WEB-INF/flex/job-services-config.xml" -locale
    en_US
    and job-services-config.xml contains the following code:
    <destination id="PreTraffic">
    <channels>
    <channel ref="my-cfamf"/>
    </channels>
    <properties>
    <source>flex.pretraffic.cfc.job</source>
    <lowercase-keys>true</lowercase-keys>
    </properties>
    </destination>
    Well, when I run the app... the combobox is not populated...
    Can anyone help with what I've done wrong?
    Thanks!
    April

  • Populate JCombo from Database

    I have a code that populates Combo box from a db and its ok. however, the items are displayed enclosed in brackets i.e. instead of seeing
    Coptic Hospital
    i see
    [Coptic Hospital]
    i dont want to see the brackets. here's the code
        public void getSp(){
        String query="SELECT Provider FROM `smartmain`.`providers` p ";
        JDataBase db=new JDataBase();
        providers=db.getData(query);
        for(int i=0;i<providers.size();i++){
         ComboSp.addItem(providers.elementAt(i));
        }getData is a function in JDataBase class.
           public Vector getData(String query) {
             int no_rows=0;
             if (connection == null || statement == null) {
               System.err.println("There is no database to execute the query.");
               return new Vector();
           try {
               resultSet = statement.executeQuery(query);
               metaData = resultSet.getMetaData();
               int numberOfColumns =  metaData.getColumnCount();
               columnNames = new String[numberOfColumns];
              // Get the column names and cache them.
               // Then we can close the connection.
               for(int column = 0; column < numberOfColumns; column++) {
                   columnNames[column] = metaData.getColumnLabel(column+1);
               // Get all rows.
               rows = new Vector();
               while (resultSet.next()) {
                    no_rows++;
                   Vector newRow = new Vector();
                   for (int i = 1; i <= numberOfColumns; i++) {
                       newRow.addElement(resultSet.getObject(i));
                   rows.addElement(newRow);
           catch (SQLException ex) {
               System.out.println(query);
               System.err.println(ex);
           return rows;
       }how should i remove them?

    Your getData() function is returning a Vector of Vectors, so you are adding a Vector to your combo box model. A Vector's toString() method will return its contents in [] brackets.

  • How to populate values from database into a Combo Box?

    Hi,
    How to display all the values of a field of a database table in a combo box inside a grid in B1 user defined form?
    Regards,
    Sudeshna.

    Hi,
    If you are trying to do this on a system form (I gues this is your case, reading the other question), for example Sales Orders, and you want to show the values from a User Defined Table (UDT), you just need to add a User Defined Field on Marketing Documents Line level, and say it is linked to the UDT.
    SBO will automatically show the combo with the values on the Code field of the UDT.
    Regards,
    Ibai Peña
    Sorry, I didn´t read the post well.
    What you could do is each time the form is loaded, read the values from the table, and asign them as Valid Values for the combobox column. You can do this programatically, or using XML (which is recommended becouse of better performance).
    Message was edited by: Ibai Peña

  • Populate Array from Database!

    I have this working manually, but please need help creating this from a DB Connection and populating the Array with the results.
    I just need help with populating "DestinationItem[]" from the SQL below
    DestinationBean.java
    //  Manual Array works but I need this to be populated from DB using the below Query and DB Connection info.
        private DestinationItem[] destinationResults = new DestinationItem[]{
                new DestinationItem("58285", "Dodge Grand Caravan"),
                new DestinationItem("57605", "Dodge SX 2.0"),
                new DestinationItem("58265", "Chrysler 300 Touring")
        public DestinationItem[] getdestinationResults() {
            return destinationResults;
        public class DestinationItem {
            String destid;
            String commdefid;
            public DestinationItem(String destid, String commdefid) {
                this.destid = destid;
                this.commdefid = commdefid;
    // Getter/Setter below
    // END
    I need to take this DB Connection Logic and populate the "DestinationItem[]" Array above and I need help.
    //DBConnection
    public static ArrayList<CustomerBean> getCustomer() {
            try {
                Class.forName("oracle.jdbc.OracleDriver").newInstance();
                Connection con = DriverManager.getConnection("jdbc:oracle:thin:", "BLAH", "BLAH");
                PreparedStatement ps = con.prepareStatement("select destination_id, commdef_id from BLAH.destination");
                ArrayList<CustomerBean> al = new ArrayList<CustomerBean>();
                ResultSet rs = ps.executeQuery();
                boolean found = false;
                while (rs.next()) {
                    CustomerBean e = new CustomerBean();
                    e.setDestId(rs.getString("destination_id"));
                    e.setDestId(rs.getString("commdef_id"));
                    al.add(e);
                    found = true;
                rs.close();
                if (found) {
                    return al;
                } else {
                    return null; // no entires found
            } catch (Exception e) {
                System.out.println("Error In getCustomer() -->" + e.getMessage());
                return (null);

    I have this working manually, but please need help creating this from a DB Connection and populating the Array with the results.
    What does 'working manually' mean?
    What PROBLEM are you having? The code you posted appears to ALREADY populate an ArrayList with the results.
    I just need help with populating "DestinationItem[]" from the SQL below
    Are you asking how to convert the ArrayList returned by the'getCustomer' method into an array?
    Just use the 'toArray' method of ArrayList. See the Java API
    ArrayList (Java Platform SE 7 )
    public Object[] toArray()
    Returns an array containing all of the elements in this list in proper sequence (from first to last element). 
    The returned array will be "safe" in that no references to it are maintained by this list. (In other words, this method must allocate a new array). The caller is thus free to modify the returned array. 
    This method acts as bridge between array-based and collection-based APIs.
    Why do you have one class named DestinationBean' and another one just like it named 'CustomerBean'?
    I need to take this DB Connection Logic and populate the "DestinationItem[]" Array above and I need help.
    What is it you need help with?
    The 'getCustomer' method ALREADY populates an ArrayList. So just convert the ArrayList to an array using 'toArray'.
    public static ArrayList<CustomerBean> getCustomer() {
    I don't understand what problem you are having.
                Class.forName("oracle.jdbc.OracleDriver").newInstance();
    Remove that line - that hasn't been used for years.  
                boolean found = false;
    Remove that code and ALL references to 'found'. You created an empty ArrayList when you started. If it is still empty when you are done then there are NO results. Just return an empty array (preferable).
    Let the caller handle an empty ArrayList.
    You already have code that appears to get a collection of items.
    Explain EXACTLY what your problem is. Why can't you just use the code you posted?

  • List Creation From Database Table

    I have a form that has two data blocks based on database tables:
    Block #1 = ORDER_LINE
    Block #2 = ORDER_CODE
    The ORDER_LINE block has an item in it that corresponds to an item in the ORDER_CODE block. I want to create a TLIST for this item in the ORDER_LINE block that populates the list from the values for the corresponding item in the ORDER_CODE block. I know that I can use the POPULATE_LIST built in and need a record group, etc, but I have not been able to make any of this work. Can anyone provide good instructions on how to do this? I find the On Line Help within Forms to be totally useless.
    Thanks.

    976798 wrote:
    --Hello..I want to ask that How to bind a list item with  table values? this below code does not populate items from database to list item.Pls any body give me solution.
    declare
         group_id RecordGroup;
         list_id Item:=Find_Item('LST_CLASS');
         status number;
    begin
         group_id:=Create_Group_From_Query('Answer_List','select CLASS_ID,CLASS_NM from CLASS_MSTR');
         status:=Populate_Group('Answer_List');
         message(to_char(status));
         Populate_List(list_id,group_id);
         end;Welcome to the Oracle Forums. Please take a few minutes to review the following:
    <ul>
    <li>Oracle Forums FAQ
    <li>Before posting on this forum please read
    <li>10 Commandments for the OTN Forums Member
    <li>How to ask questions the smart way
    </ul>
    Following these simple guidelines will ensure you have a positive experience in any forum; not just this one!
    Check this link: How to Dynamically Populate a Pop List ?
    Hope this helps
    Hamid
    If someone's response is helpful or correct, please mark it accordingly.

  • How to populate data from table into datagrid in form

    hi there. may i know how to populate data from a table into a datagrid? i have created a datagrid in a form using OLE's microsoft datagrid. i'm having problem to populate data from table into the grid. can i know how to do that? thanks

    Not exactly. I want to enter input from form and the user can have all options to choose i.e. HIGH, MEDIUM or so on.
    Suppose, you have option to select HIGH, MEDIUM or LOW and you can see all these options together. You select LOW and when you save, it is saves in the table as a value. So when you view the table again, it will show LOW as active and HIGH and MEDIUM are null.

  • How to populate a field from database through personalization

    I need to populate value of a field from database on self service transaction web page. This field is not configured as EIT or SIT, nor available in seeded transaction.I need to know abt creating some item through personalization where i can write a query . This item will execute the query and display the returned value on the page or something on the similar line.
    Thanks in advance,
    Tanveer

    This workaround should be used as a one time approach till you move to 11.5.10 CU3.
    Here are the details,
    You just need to add the following tags inside the site or function level customization document, remember it should be either site or function only no other levels are supported for adding a new item.
    before adding the following tags you need to find out the following details,
    1. what is the last item in the advancedTable, column or columnGroup in the base metadata. Do not conside the columns inside the columnGroups for this, just the last item which might be a column or a columngroup. Get the if of that item.
    2. You should know what is the view instance and viewattribute you will be attaching
    3. Remember you can only add columns through personalization and not columnGroups.
    4. Replace the appropriate values for the properties amrked with {...} with your own values. You can change the other properties to reflect any specific requirement you want. Make sure you provide correct values.
    <insert after="{the id you got from step 1}">
    <oa:column id="{yourid}" adminCustomizable="true" bandingShade="none"
    cellNoWrapFormat="false" columnDataFormat="textFormat" displayGrid="true"
    rendered="true" scope="." totalValue="false" userCustomizable="false"
    xmlns:oa="http://xmlns.oracle.com/oa">
    <ui:columnHeader xmlns:ui="http://xmlns.oracle.com/uix/ui">
    <oa:sortableHeader id="{yourid}" adminCustomizable="true"
    cellNoWrapFormat="false" initSortSeq="none" prompt="{your prompt}"
    rendered="true" required="no" scope="." sortState="no"
    userCustomizable="false"/>
    </ui:columnHeader>
    <ui:contents xmlns:ui="http://xmlns.oracle.com/uix/ui">
    <oa:messageStyledText id="{yourid}" adminCustomizable="true"
    cellNoWrapFormat="false" dataType="VARCHAR2" initSortSeq="none" queryable="false" rendered="true" required="no" scope="."
    selectiveSearchCriteria="false"
    serverUnvalidated="false" sortState="no" tipType="none" totalValue="false"
    userCustomizable="false" vAlign="middle" viewAttr="{your view attribute}" viewName="{your view instance name}"
    warnAboutChanges="true"/>
    </ui:contents>
    </oa:column>
    </insert>
    You can insert these tags at the end of any existing tags within the <modifications>
    </modifications> tag in the document.

  • Scheduled task that populates Lookup Definitions from database in oim11gr2

    Hi Friends,
    How to write a scheduled task that populates the Lookup Definitions from database tables in oim 11g r2.
    Regards,
    jdev

    Check this link http://docs.oracle.com/cd/E27559_01/dev.1112/e27150/refsched.htm#CIHBFCJG

  • Populate textInput from DataGrid

    Please help!
    My DataGrid has "FIELD_NAME" and "FIELD_VALUES" columns.
    My TextInput objects has to match id names from "FIELD_NAME"
    columns, and populate value from "FIELD_VALUES" column into text.
    How I can do this?
    Thank you very much!
    Slava

    Sorry for the messed up cut and paste.
    private function itemClickEvent(event:ListEvent):void
    if(event.columnIndex < 0)
    //can't do anything
    else
    var
    selectedVIPName:String=event.currentTarget.selectedItem.VIPName;
    var
    selectedVIPAddress:String=event.currentTarget.selectedItem.VIPAddress;
    var
    selectedExternalAddress:String=event.currentTarget.selectedItem.ExternalAddress;
    var selectedvid:String=event.currentTarget.selectedItem.vid;
    vipname_inp.text=String(selectedVIPName);
    vipaddress_inp.text=String(selectedVIPAddress);
    external_inp.text=String(selectedExternalAddress);
    vid_inp.text=String(selectedvid);
    <mx:DataGrid id="dg" dataProvider="{lc}" width="100%"
    height="100%" rowHeight="20" itemClick="itemClickEvent(event);"
    >
    <mx:columns>
    <mx:DataGridColumn headerText="VID" dataField="vid"
    visible="False" />
    <mx:DataGridColumn headerText="VIP Name"
    dataField="VIPName" />
    <mx:DataGridColumn headerText="VIP Address"
    dataField="VIPAddress"/>
    <mx:DataGridColumn headerText="External Address"
    dataField="ExternalAddress"/>
    </mx:columns>
    </mx:DataGrid>

  • CallResponder|Datagrid|delete item from Database

    Hello guys,
    I succeeded to display datas from database inside the DataGrid using the CallResponder, but until now I still don't know how can I access to the data that already stored in column in the DataGrid !
    the DataGrid Structure is (id, login, password, email, firstname, lastname), and want to access to those datas using the action script
    My question, what is the object that already stored these datasin memory? is it "dataProvider", or "data".
    When I want to delete a person from the dataGrid, I want to click on the dataGrid and then click the delete button, the button will seek for the "id" stored in the memory and finaly send the query to the server to delete the item token from the data Grid !
    example :
    I click on the second item in the DataGrid, and this item it's id = "14" so dataGrid.selectedIndex == 2, but the value of the attribute of that item is 14
    how can I access to to the values ?
    I face this problem because I don't know where the dataGrid does already stores the data that it displays, and what is the structure of it even it is ArrayList or ArrayCollection.
    I hope you understood my challenge?

    Thank you a lot, that is correct, I executed the application in debug mode and I saw that the dataProvider is already an ArrayCollection, so I can understand that all the method of an Arraycollection is already applyable to the dataProvider.
    I didn't know that it is the case, so before you reply me, I was thinking about doing that manually, by pushing the result that come from the CallResponder into an ArrayCollection that is already declared manually in the mxml file, after that adding an event listener and calling a function that is going to make a loop and store all the result into a the ArrayCollection.
    Here is the code: (I think it is useful if someone is going to select something manually from the database so he has to do the same thing and filtring the results inthe loop)
    Creating Manulally the dataProvider()
    Script :
    protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
    getAllUserResult.token = userService.getAllUser();
    getAllUserResult.addEventListener(ResultEvent.RESULT,onResult);
    protected function onResult(event:ResultEvent):void
    for (var i:int=0 ;i< event.result.length;i++){
    userMemory.addItem(event.result[i]);
    Mxml File (Declaration) :
    <fx:Declarations>
    <s:CallResponder id="getAllUserResult"/>
    <userservice:UserService id="userService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
    <s:ArrayCollection id="userMemory"/>
    </fx:Declarations>
    I must thank you my brother for the answer, and for the fast reply !

  • How to populate Adobe LiveCycle Designer generated  PDF Forms with data from Database in Windows app

    Hi
    I have a PDF template designed in Adobe LiveCycle Designer. This template has form fields which needs to be filled with data programmatically. I am using windows application in C#.Net 2005 in which I want to retrieve data from database and merge this data into PDF form in respective fields.
    How this can be achieved?
    I searched a lot & I found that we can process the XDP file generated from PDF to acheive this. I created the XDP file out of the PDF template created in designer. But I don't know how to merge data from database into that XDP file in respective fields and again convert this XDP file back to PDF programmatically. Can anybody help me ? This is urgent.
    Thanks in advance.
    Sambhaji

    Please ignore the above code.<br />The following one is correct one.<br />using System;<br />using System.Data;<br />using System.Configuration;<br />using System.Web;<br />using System.Web.Security;<br />using System.Web.UI;<br />using System.Web.UI.WebControls;<br />using System.Web.UI.WebControls.WebParts;<br />using System.Web.UI.HtmlControls;<br />using System.Text;<br />public partial class _Default : System.Web.UI.Page <br />{<br />    protected void Page_Load(object sender, EventArgs e)<br />    {<br />        Response.ContentType = "application/vnd.adobe.xdp+xml";<br />        StringBuilder responseString = new StringBuilder();<br />        responseString.Append("<?xml version='1.0' encoding='UTF-8'?>");<br />        responseString.Append("<?xfa generator='AdobeLiveCycleDesigner_V8.0' APIVersion='2.5.6290.0'?>");<br />        responseString.Append("<xdp:xdp xmlns:xdp='http://ns.adobe.com/xdp/'>");<br />        responseString.Append("<xfa:datasets xmlns:xfa='http://www.xfa.org/schema/xfa-data/1.0/'>");<br />        responseString.Append("<xfa:data>");<br /><br />        responseString.Append("<form1>");<br />        responseString.Append("<TextField1>Homer</TextField1>");<br />        responseString.Append("<TextField2>Simpson</TextField2>");<br />        responseString.Append("<field name ='DropDownList1'>");<br />        responseString.Append("<items save='1'>");<br />        responseString.Append("<text>1</text>");<br />        responseString.Append("<text>2</text>");<br />        responseString.Append("<text>3</text>");<br />        responseString.Append("</items>");<br />        responseString.Append("</field>");<br /><br />        responseString.Append("</form1>");<br /><br />        responseString.Append("</xfa:data>");<br />        responseString.Append("</xfa:datasets>");<br />        responseString.Append("<pdf  href='C:\\Test.pdf' xmlns='http://ns.adobe.com/xdp/pdf/' />");<br />        responseString.Append("</xdp:xdp>");<br /><br />        Response.Write(responseString);<br />        Response.Flush();<br />        Response.End();<br />    }<br />}

  • How to populate a form from database ?

    Hi,
    I am new to struts, and I have a small project , I want when I click a link I will have a jsp file with a form of data from database, can you please help me,
    thanks, you help is appreciated.

    You might have to generate an xml file from your Access Database with a list of member names. After that you can create a new data connection using Sample XML Data then map the drop down to the list.
    Then every time you distribute a new form, import the latest xml generated from your Access database to update the drop-down.
    Hope that helps.
    Kyle

Maybe you are looking for

  • Multiple screens opening; is that safari or comcast?

    Anyone have this problem?

  • How to export markers to FLV cuepoints?

    Is there a way of exporting sequence/layer markers to an xml document that could later be brought into Video Flash Encoder? I don't want to use AE for converting large video files. I actually tried, but the cuepoint tab was greyed out even though I m

  • Record Lock

    Hi all,    I have requirement like this. For one table i have created table maintainance generator. For data maintainance i have created one Transaction code. while one user is using that TCODE to update data for one record if another try to update a

  • Installing Elements 11- how to close ShellExtLoader?

    I am installing elements 11 on a iMac with OS 10.8.2 and installer wants me to close ShellExtLoader? I cannot find that application? How to close it?

  • Invoking 2 SQL statements one after another?

    Hi, Is it a good idea to invoke to 2 SQL statements one after another using the same connection & statement object? Some thing like this:- method(){ String insertSql="insert into employee(Name,Age)values(?,?); Connection conn=null; PreparedStatement