Generate mxml from database

i am new to the flex. i want to generate the mxml file from
the data feched from the database. e.g account info conatains the
account_id and account_type then i want to generate the flex page
contains info about the account having only 2 fields. these fields
may differ as per account information is considered. Any body
having sample app.
any pointers how we can do it??

Flex doesnt really work like a ColdFusion or ASP type page
where you insert dynamic variables to render the page. With Flex
the best way to do is build the application and setup those
variables in your MXML files before you compile to SWF. Then in
your HTML page wrapper you pass what is called Flash Variables or
Flash Vars to the application. So for example you pass your
account_id and account_type to the Flex movie and the Flex
application can then use them based on how you set them up. Do a
search for Flex and Flash Vars.

Similar Messages

  • Generating XML from database

    I'm a total newbie in XML DB and need advice on generating XML from database.
    The situation is the following: there is a legacy web application which uses an XML document as a configuration file. This document conforms to some well-defined schema. For instance:
    <config>
         <title value="TITLE" />
         <subtitle value="SUBTITLE" />
         <style url="default.css" />
         <widgets>
              <widget id="1" opened="true" />
              <widget id="2" opened="false" />
         </widgets>
    </config>
    It contains portions of static data which are common for all users as well as dynamic personal data.
    Dynamic data comes from two sources:
    1) security considerations (for instance, not all widgets are available for some users) - thus the "master" configuration content must be filtered, but not otherwise modified;
    2) user preferences (for instance, user can set widget2 to be opened by default) - thus values of some attributes must be different for each user. When the user saves her preferences, the entire document with new values is posted back to server.
    We want to try to store user preferences, apply security and generate personalized configuration documents using XML DB.
    So we need advice on storage models and generation procedures - which should be more efficient and easy to support or extend.
    Please note, that there is no requirement to actually store data as XML.
    Thanks in advance!
    P.S.: Sorry for the incomplete initial post.
    Edited by: WxD on 27.09.2010 11:45

    Hi,
    See this link for more details
    http://www.stanford.edu/dept/itss/docs/oracle/10g/appdev.101/b10790/xdb13gen.htm

  • Generate report from database using .xsl style sheet

    I am trying to view test result histories for specific uut serial numbers.
    We are logging all test data to the default access database template that was provided with Teststand.
    Is there a method of generating reports from the database that match the format of those generated at runtime?
    I was surprised to find that the default access database did not contain any gui or pre-made reports matching the xsl style sheets chosen in the report options dialog.
    My database skills are weak, I am able to browse the raw data and I see the relationships between some of the tables, but the prospect of recreating one of the xml report formats in access seems daunting. Am I missing something? what is the best way to print a uut report from test data stored in access?

    Hello msears,
    Thank you for posting on the NI Discussion Forums.  Unfortunately there are no tools available in TestStand for directly converting an Access database to a formatted .xsl report.  It is possible to have a step in a sequence that reads the information from the database, and create the .xsl report as if it had been generated at sequence run-time, by writing those values directly to Locals.ResultList.  Admittedly, this would require some knowledge of Microsoft Access, and the ability to write a program that will extract information from the database, in order to include it as a step in the sequence.
    Is there anything stopping you from creating a formatted .xsl report when the sequence is run (instead of trying to create it from previous data stored in an Access database)?
    Chris_G
    Sr Test Engineer
    Medtronic, Inc.

  • Generate PDF From Database

    Hi,
    I have a table in database. Table has a column. There is data of pathes of images into column. I cretaed a illustrator template and I want to generate PDF from this template with using table data in database. so, is it possible? illustrator created pdf per each image with using illustrator template.
    thanks,

    AI cannot conent directly to databases. It can only parse CSV/ XML data. You either need to export the stuff or create extensive scripts to connect to the life database using sockets.
    Mylenium

  • Generating tables from database

    Hello,
    What Im trying to do is generate table information from my
    database. What Im doing right now is retrieving the information
    this way, which is combersome because alot of pages would be
    different because they dont all have the same number of columns.
    this is how the code looks now:
    <cfloop
    query="addtobom">#toppage#</a></td></cfloop>
    <td><div
    align="center">#column1#</a></div></td>
    <td><div
    align="center">#column2#</a></div></td>
    <td><div
    align="center">#column3#</a></div></td>
    <td><div
    align="center">#column4#</a></div></td>
    <td><div
    align="center">#column5#</a></div></td>
    <td><div
    align="center">#column6#</a></div></td>
    <td><div
    align="center">#column7#</a></div></td>
    </tr>
    </cfoutput>
    If there an easy line of code I can put in here that queries
    the database for columns that have info and avoiding null columns.
    Thanks for any help

    Normally the table of data you display matches the query.
    Your code will not run the way you have it. This should run
    but I am not
    sure what you are doing here.
    <cfoutput query="addtobom" maxrows="1"
    startrow="1">#toppage# </cfoutput>
    <table>
    <cfoutput query="addtobom">
    <tr>
    <td align="center">#column1#</td>
    <td align="center">#column2#</td>
    <td align="center">#column3#</td>
    <td align="center">#column4#</td>
    <td align="center">#column5#</td>
    <td align="center">#column6#</td>
    <td align="center">#column7#</td>
    </tr>
    </cfoutput>
    </table>
    You can check rows for null but I do not think you can check
    columns /
    fields.
    It depends on the database but
    WHERE (NOT (Cat IS NULL))
    "dennisquery" <[email protected]> wrote in
    message
    news:ekbcf5$7nm$[email protected]..
    > Hello,
    >
    > What Im trying to do is generate table information from
    my database. What
    > Im
    > doing right now is retrieving the information this way,
    which is
    > combersome
    > because alot of pages would be different because they
    dont all have the
    > same
    > number of columns.
    >
    > this is how the code looks now:
    >
    > <cfloop
    query="addtobom">#toppage#</a></td></cfloop>
    >
    > <td><div
    align="center">#column1#</a></div></td>
    > <td><div
    align="center">#column2#</a></div></td>
    > <td><div
    align="center">#column3#</a></div></td>
    > <td><div
    align="center">#column4#</a></div></td>
    > <td><div
    align="center">#column5#</a></div></td>
    > <td><div
    align="center">#column6#</a></div></td>
    > <td><div
    align="center">#column7#</a></div></td>
    > </tr>
    > </cfoutput>
    >
    > If there an easy line of code I can put in here that
    queries the database
    > for
    > columns that have info and avoiding null columns.
    >
    >
    > Thanks for any help
    >

  • Generating XSD from Database

    I need to auto-generate an XSD file from a database. I'm told there are free tools out there to do this but haven't had any luck finding any. Any ideas? I don't want to have to write this by hand.

    Thanks, I'll take a look at that. Are there any free tools available to do this? I heard a rumor that Hibernate will do this. Let me know if anyone has any other ideas.

  • Generate jsp from database table

    Does anyone know of a utility that will take a database table as input and generate a generic maintenance app (jsp) that will allow add/change/delete functionality to the table?
    I tried a utility called JSPMaker, however the code generated is horrid and I'm afraid it will not be maintainable.
    I also loaded Workshop Studio and was hoping that the dbXplorer had that functionality, but have not been successful.
    Thanks in advance!
    Rob

    I think the answer for the first question is JSTL. :)

  • Generating XML from Database using XSQL

    Hi ,
    I have been using Reports as an intermidiate to generate XML (by giving concurrent program o/p type as XML). Now, i want it to be done from SQL or PL/SQL. I am able to achieve this using XSQL functions. I placed the SQL in a .sql file and registered it as a concurrent program. It was giving me XML output.
    I have two problems here.
    1. How can i know whether i have generated valid xml or not?
    2. When i am linking this concurrent program to XML Publisher, publisher is not able to read thie output from the concurrent prograam. It is erroring out. Why?
    Thanks
    sap

    Save the XML file - try to open it with IE and/or Firefox.
    If that doesn't work you know already something is wrong.
    You may try to cut&paste it into notepad and save as UTF-8.
    Then try it out with the Template Builder for Wrod.
    If you can't figure it out and run the report with a SMALL dataset six (ie. 1)
    and post it here.

  • Generate html from database before runtime (infrequent sql query)

    Hi,
    I have a SQL query which I want to use to update one section of my web page but the data only changes once a month.  I don't need a dynamic page where the results are executed against the database every time the page is opened (results display on the main index.htm of my web site).
    Is there some way to configure DW (preferably DW CS3) so that it will query the database and insert the results into my static html page being edited on my machine?
    Is there a general technique for including SQL data in static web pages in DW?
    Thanks,
    G

    tx for the tip.
    reason: gobaddy's mysql servers are slow pokes.  i have a larger application where the list would be a dozen or more pages long and only the last entry changes with my update each month.  figured I'd generate all the pages and then just update the first one but your method is the same thing minus all the fuss of screwing around with the first page all the time.

  • 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 />}

  • Programmatically generate password for pdf with data from database

    Good day everyone,
      I would like to know is it possible to programmatically generate passwords for pdf??
    The main idea is to enable an automated process of pdf acquiring individualised password from a database (Excel, Access, you name it) and finally sending the pdf to individual recipient. Can I use javascript for this? And if yes, how?? If not, pls do advice me on the appropriate steps.
    Background (for clarity's sake): 
      Currently I am working on developing an automated process for the sending customised, password encrypted payslip to about 80 staff. The entire procedure is pretty much summarized as below:
    mail merg (UBS output in) excel to words -> convert words to pdf -> programmatically password encrypt the pdf -> email to individual recipients.
    Well my current status is - I am quite done with the batch mail merge and convertion part. And batch proccessing of password encryption is not a problem, but the idea is to allow acrobat to retrieve password automatically from a database and not key-in each and every password manually. The batch email for now is another problem but for now I have to work stepwise. (Any ideas on how to do it would equally be valued though! =D)
    System and software using:
    Windows  XP and 7 Professional
    Microsoft Office Proffesional 2010
    Adobe Acrobat X Pro
    I would be really grateful for any relevant replies to my question and any additional thoughts or ideas are welcome!!
    I would to thank any potential saviour in advance!
    Thank you for helping!

    Basically I need to automate the password generation from database extract
    e.g. Excel database with StaffID, StaffName, PayMonth, etc. Then when the pdf is created, its password would be <StaffID>_<PayMonth> which is extracted from excel.
    Is it possible for this to happen?? I dont mine using Javascript, I'll just have to learn it.
    Or how about recommending a program which does that??
    Whichever is fine as long there's a solution!
    Thanks!

  • I wish to generate reports from the database an out put it but i need to enter a date from and to ina  html input box

    i wish to generate reports from the database an out put it
    but i need to enter a date from and to ina html input box
    in the input box a data of range will be input from a start
    to latest
    latest being the default as today's date.
    any help tips snipplets, concepts , turot=rails.
    thanks

    easycfm.com has tutorials for people who are brand new.
    If you don't know much about sql, I have heard good things
    about the book, Teach Yourself SQL in 10 Minutes by Ben
    Forta.

  • Generate report with data from database package

    Hi
    Is it possible to generate a report where the values come from an oracle database package instead of from an sql query declared in the report itself?
    If yes, how is it done?
    Appreciate any help. Thx.

    Hi,
    You can use REF CURSORs to generate reports from a database package.
    For information about REF CURSORs, please see Chapter 40 'Building a Paper Report with REF CURSORs' of the Oracle Reports Building Reports manual.
    This chapter is at:
    http://download-uk.oracle.com/docs/html/B13895_01/orbr_refcur.htm#i1011693
    Hope this helps.
    Regards,
    Panna

  • How to fetch latest data from database instead of clicking on Generate report in RSRT?

    Hi all,
    We are not able to get latest data of BEx query.Everytime we have to click on Generate Report  button in RSRT for getting latest value.
    Is there any way to get latest value automatically? We are not doing any changes in query.
    When we click on Generate Report it is fetching data from Database instead of cache,so if it is possible to disable cache or any other workaround?
    We have used time(0TIME) characteristic in query as a formula variable. We have applied a condition on that variable to fetch the first record (latest value). When we click on generate report, it fetches correct value with latest time but when we run the query without generate report, it is not fetching latest value. The cube on which this query is developed, is a realtime cube.
    Regards,
    Zalak

    Once its in the request attributes it would be far better to use JSP Expression Language as well as the JSTL that Malcolm suggested So if the servlet code said:
         request.setAttribute("myList", al);Then using EL and the JSTL tags from <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> the JSP would look something like:
    <c:forEach items="${myList}" var="user">
    <TR>
       <TD><c:out value="${user.name}" /></TD>
       <TD><c:out value="${user.fname}" /></TD>
       <TD><c:out value="${user.city}" /></TD>
       <TD><c:out value="${user.cont}" /></TD>
       <TD><c:out value="${user.age}" /></TD>
    </TR>
    </c:forEach>

  • E-Mail Generating from database error ORA-06502: PL/SQL:

    Hello,
    I have write script for generating HTML formated email from database (11g).
    when text body increase 4000 char it generating error
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small ORA-06512: at "EXPORT.REALIZATIONHTML", line 56 ORA
    how i can resolve it.
    I also try with LONG
    Thanks

    Thanks for reply.
    I try with CLOB, Reason is that message body have almost 1000 recode and length(message) have more than 8000 characters even more than 10000
    how i can resolve it , which data type I have to use
    Thanks

Maybe you are looking for

  • Z68A-GD65 (G3) issues.

    I'll start with my build, Z68A-GD65 Gen 3 i5 2500k under Noctura NH-D14 16GB G.Skill DDR3 1333 CL9 1.5V MSI R6950 Twin Frozr II 2GB Crucial M4 128GB SSD (in 1st intel sata 3 port) Antec HCP 850w Bios 23.3 (or whatever, I'm on phone at work) A few iss

  • XML data from Form?!?!

    I've used LD8.0 to create a feedback form for my customers (it's at http://www.raven-multimedia.com/Feedback.pdf for reference). The first time I created it it was fairly large (1.4MB) and when a user clicked the submit-by-email button the data file

  • Character Display in old application

    Hi there, I am continuing updates on a VB6 program MyReels: at http://www.ozemail.com.au/~lmstearn. It runs surprisingly well under Windows 8.1 for XPSP3 compatibility. Unfortunately, there are now problems with character display that weren't seen in

  • How to synchroniz​e sampling on PXIe-5162

    Hi, I need to characterize phase and amplitude imbalance of two quadrature signals from a 14bit TxDAC. I selected two 5162 modules to do the job. The signals can have a frequency of up to 1.2GHz.. Is PXIe-5162 capable of doing this job? The plan was

  • @prompt used as part of Access Restriction

    We are struggling with implementing this, and wanted to check to see if this we can accomplish this.  We need to use an @prompt as part of an access restriction applied to the everyone group in order to force all users to select Group A, B or C at ru