Flex project to auto-generate reports

The requirements for the project I'm working on are to:
1) Create a chart-based report definition
2) Publish the definition to the database
3) Auto generate the chart/report every X minutes/hours/days,
etc as a pdf
4) Notify users where to download the report
So far, I've gotten the first part done so that the user can
define the report. And, I think publishing to the database should
be easy enough, however for the auto-generation, I was thinking of
using flex with charting to draw the reports, but I'm a little
fuzzy about generating the pdf and also about having the program
auto-generate things. I have been using a simple servlet up to this
point to communicate with the database (Oracle). However I was
thinking of using BlazeDS since I've been reading about it.
Does anyone have any experience with BlazeDS? Is it even
necessary? Do you have any comments or suggestions about which
technologies I should use to implement this solution?
And as far as the PDF generation, I had looked into Alive
PDF, but is there a better/easier solution?
Thanks for any help you can offer!

Not that I would recommend this in most case's but if the
PDF's do not need to be dynamic you could use something like PDF995
and send your page to it as a formatted print job. I had a client
that wanted printouts from Filemaker in PDF so they could Email
them to a list. Had to be automated so we just set up a print
script in filemaker to print to a PDF converter. Don't think it was
actually PDF995 and I do not remember what it was but I mention
PDF995 because I use it at home. You just need something where the
API allows you to specify the location to save too and the name of
the file as part of the printjob. Send the files to a standard
location on your server and trap the name of the file in a
database. Bingo. Easy PDF's.
Of course the alternate option is to auto generate your chart
as a web viewable formatted for print version. As it changes notify
your users with an email link of where to view it and then let them
print their own PDF using PDF995 or other such utilities if they
want to.
And then get back to the Game of Half-Life2 Death Match going
on in the server room.

Similar Messages

  • Auto generate report everyday

    Hi All
    How to schedule auto generate report everyday and then csv file should be attach to office email recipient ? for that i want to create SSIS Package. I'm new to SSIS pacake pls help me how to do step by step.
    Many Thanks

    Why do you need SSIS for this? Why not simply set a subscription to deliver reports in csv format through mail?
    http://msdn.microsoft.com/en-IN/library/ms160334.aspx
    http://jesborland.wordpress.com/2010/08/06/the-power-of-reporting-services-subscriptions-for-delivery-e-mail/
    in case you want to use ssis see this
    http://www.travisgan.com/2013/09/ssrs-data-drive-subscriptions-part-3.html
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Adobe 7, and opening a pdf file with a auto generated report

    We have upgraded to the latest version of a tool we use to generate reports. The older version, when you exported the report to a PDF file, it would open it in an internet broswer, IE 6/7 in this case, and just display the PDF in the browser.
    With the latest version of the reporting tool, when you export a report to a PDF file, it opens up a blank IE windows, and subsequently opens the autogenerated report in a separate Adobe Reader window, but it does not have the primary focus. It pop's under the blank IE window. This causes a lot of confusion to our employees who are not computer savvy as they are not aware the PDF actually opened since the window did not get primary focus on the screen.
    The company which writes the tool for us says there are no changes to the way it auto generates the pdf file, and insists it has nothing to do with their software.
    We decided to dig a little deeper and only found one difference between the old and the new software.
    Old - Content-Type: application/pdf
    New - Content-Type: application/pdf;charset=UTF-8
    Would that command cause our problems? It almost seems at though Adobe 7 plugin in IE7 doesn't recognize the "charset=UTF-8" and dumps the pdf to the full Adobe reader.
    If anybody has any insight, or would need some more info to help solve the problem just let me know.
    Also, we have to stay with Adobe 7, since all 7000+ computer's this affects have identical images, and upgrading to a new version costs $$$$ and has to go through massive channels.

    Welcome To  Discussions Kathy216!
    If these are files, that are already on the Hard Drive, click once on a pdf document to highlight it.
    Press the Command + I keys, to Get Info.
    Click on the ▼ Disclosure Triangle for Open with:.
    Select Adobe if listed. If it is not listed, select Other..., and navigate to Adobe, and press Add.
    In the Get Info window, click on Change All.
    If these are pdf documents, that you are viewing on the Internet, a handy utility to use is PDF Browser Plugin.
    ali b

  • Error in Auto Generated Reports after upgradation from 4.5B to ECC6

    Hi All,
    We are currently upgraded the system from 4.5B to ECC6.
    We are having many reports with report names such as
    'GP0HRYGE9KG1RM5HN4WY9MXC9E4'
    'GP0IZ026BMC4SX5K8BISNZ00FSV' with few syntax errors in it.
    Can any one suggest whether these are any auto generared reports , as the report starts from 'GP *'.
    If so, please suggest how to regenerate the same.
    Thanks.
    Regards,

    Please check the below SAP Note:
    [Note 586786 - Short dump PERFORM_NOT_FOUND with forms from SAPLJ1AY|https://service.sap.com/sap/support/notes/586786]
    Regards,
    Dipanjan

  • Auto.generate report

    Hello,
    I'd like to know if BEx has any capability to automatically generate reports based on number of specific input.
    For example, if there were 500 customers, will BEx be able to generate the same report format for 500 customers without manually input customer id?
    If customer number is not in order, to specify range of customer id might not be possible.
    Or could it be done on portal?
    Any suggestion?
    -WJ-

    Closed without solution!

  • Generating size report for Flex project

    How do I do this? I would like to see a breakdown of asset
    and code sizes like the one shown in Flash when "generate size
    report" is selected...thanks!

    Not that I would recommend this in most case's but if the
    PDF's do not need to be dynamic you could use something like PDF995
    and send your page to it as a formatted print job. I had a client
    that wanted printouts from Filemaker in PDF so they could Email
    them to a list. Had to be automated so we just set up a print
    script in filemaker to print to a PDF converter. Don't think it was
    actually PDF995 and I do not remember what it was but I mention
    PDF995 because I use it at home. You just need something where the
    API allows you to specify the location to save too and the name of
    the file as part of the printjob. Send the files to a standard
    location on your server and trap the name of the file in a
    database. Bingo. Easy PDF's.
    Of course the alternate option is to auto generate your chart
    as a web viewable formatted for print version. As it changes notify
    your users with an email link of where to view it and then let them
    print their own PDF using PDF995 or other such utilities if they
    want to.
    And then get back to the Game of Half-Life2 Death Match going
    on in the server room.

  • Missing Outcomes for Human Task in Auto-Generated ADF Project

    Hi
    I am using SOA Suite 11g (11.1.1.5) and have created a Human Task in my composite application and then auto-generated the appropriate task form using the wizard which has been successful and created the ADF project.
    My task has 3 outcomes the responses of which are then mapped out in the BPEL process.
    When the human task is raised it puts a notification in the BPM worklist as expected however the 'Actions' list on the notification is blank? I was expecting there to be 3 values in the Actions list one for each of my outcomes.
    I have tried re-building the ADF project from scratch from the task flow but still no joy.
    I have not changed the ADF project over its default.
    My next step is to look into the binding on the Actions picklist but I thought this was standard functionality and that the wizard handled this at the point of form generation.
    Any assistance greatly appreciated.

    Hi
    User error.
    I had sent the task to a group rather than a user. Before the task outcomes will display in the ADF page a user must first claim the notification using the 'Claim' button. On re-selecting the notification the task outcomes display as buttons.

  • Generate report from flex

    If its possible to generate report from flex.Please help me

    Hi,
    thanks for your reply. I tried with alive pdf, but source
    code only AIR files. can we use this in web based flex?. How we can
    format the report like html code? I just see in alivepdf, its only
    linebyline display, not multiple columns? pls advise.
    thanks alot
    Subhash

  • EWA - Auto Generate Word Report

    Dear all,
    When the EWA report create each week, we need click the "word" icon to generate word report.
    Is it possible to auto generate EWA word report ?
    Best Regards,
    Wu

    Hello,
    It seems like your system is already setup to generate the report automaticallly. Usually when you have the 'Word' icon, it means the report has been generated correctly. By clicking on that icon, you are just opening the report.
    If you want to have the report  or solution to automatically forward to your email address, please navigate to the link below for the PDF activation file. This will provide youwith the steps required to setup the automatic emailing of the report.
    http://service.sap.com/~sapidb/011000358700001873212008E
    Regards,
    Jared

  • Auto-Generate mail for database performace reporting.

    Hello,
    i have many server to keep an eye on for maintenance but, now the number for it is growing day by day. Its difficult for me to keep a watch on each in detail. So I have an idea to implement.
    I want to make a script which will auto generate a mail from the server & send it to my email id with all the details of database. Basically performance related details.+
    Is it possible to do so ???? I know how to send a mail with attachment, the code i will use is given below.+
    please suggest me how can i attach my performance tuning queries  output & get those things in my mail on a daily basis......
    thanks in advance .....
    DECLARE
    v_From VARCHAR2(80) := '[email protected]';
    v_Recipient VARCHAR2(80) := '[email protected]';
    v_Subject VARCHAR2(80) := 'test subject';
    v_Mail_Host VARCHAR2(30) := 'mail.mycompany.com';
    v_Mail_Conn utl_smtp.Connection;
    crlf VARCHAR2(2) := chr(13)||chr(10);
    BEGIN
    v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host, 25);
    utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
    utl_smtp.Mail(v_Mail_Conn, v_From);
    utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
    utl_smtp.Data(v_Mail_Conn,
    'Date: ' || to_char(sysdate, 'Dy, DD Mon YYYY hh24:mi:ss') || crlf ||
    'From: ' || v_From || crlf ||
    'Subject: '|| v_Subject || crlf ||
    'To: ' || v_Recipient || crlf ||
    'MIME-Version: 1.0'|| crlf ||     -- Use MIME mail standard
    'Content-Type: multipart/mixed;'|| crlf ||
    ' boundary="-----SECBOUND"'|| crlf ||
    crlf ||
    '-------SECBOUND'|| crlf ||
    'Content-Type: text/plain;'|| crlf ||
    'Content-Transfer_Encoding: 7bit'|| crlf ||
    crlf ||
    'some message text'|| crlf ||     -- Message body
    'more message text'|| crlf ||
    crlf ||
    '-------SECBOUND'|| crlf ||
    'Content-Type: text/plain;'|| crlf ||
    ' name="excel.csv"'|| crlf ||
    'Content-Transfer_Encoding: 8bit'|| crlf ||
    'Content-Disposition: attachment;'|| crlf ||
    ' filename="excel.csv"'|| crlf ||
    crlf ||
    'CSV,file,attachement'|| crlf ||     -- Content of attachment
    crlf ||
    '-------SECBOUND--'               -- End MIME mail
    utl_smtp.Quit(v_mail_conn);
    EXCEPTION
    WHEN utl_smtp.Transient_Error OR utl_smtp.Permanent_Error then
    raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
    END;
    /

    I like your script idea.
    You can spool output to a file and mail the file to yourself.
    What OS are you running?
    On linux a simple starter script would look like this:
    #!/bin/bash
    echo `date`
    # Set the Environmental variable for TESTDB instance
    . /u01/app/oracle/dba_tool/env/TESTDB.env
    $ORACLE_HOME/bin/sqlplus -s system/<PASSWORD> <<EOF
    @/u01/app/oracle/dba_tool/TESTDB/quickaudit
    EOF
    echo `date`
    mailx -s "Check database on TESTDB" [email protected] < /tmp/quickaudit.lst
    ----------------------sample ENV file--------------------------------------
    ORACLE_BASE=/u01/app/oracle
    ULIMIT=unlimited
    ORACLE_SID=TESTDB
    export ORACLE_TERM=xterm
    ORACLE_HOME=$ORACLE_BASE/product/11.2.0
    ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
    LIBPATH=$LD_LIBRARY_PATH:/usr/lib
    TNS_ADMIN=$ORACLE_HOME/network/admin
    PATH=$ORACLE_HOME/bin:$ORACLE_BASE/dba_tool/bin:/bin:/usr/bin:/usr/ccs/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:/usr/lbin:/GNU/bin/make:/u01/app/oracle/dba_tool/bin:/home/oracle/utils/SCRIPTS:/usr/local/bin:
    export ORACLE_BASE ORACLE_SID ORACLE_TERM ULIMIT
    export ORACLE_HOME
    export LIBPATH LD_LIBRARY_PATH ORA_NLS33
    export TNS_ADMIN
    export PATH
    --------------------Starter reporting script--------------------------------------------------
    SET ECHO OFF
    SET TERMOUT OFF
    REM Revisions:
    REM Date ID Version Description
    REM -------- -- ------- ----------------------------------------------------|
    REM 10/07/05 1.0 Script to check for database issues
    SPOOL /tmp/quickaudit.lst
    SELECT SYSDATE FROM DUAL;
    SHOW USER
    SET TERMOUT ON
    SET VERIFY OFF
    SET FEEDBACK ON
    PROMPT
    PROMPT Checking database name and archive mode
    PROMPT
    column NAME format A9
    column LOG_MODE format A12
    SELECT NAME,CREATED, LOG_MODE FROM V$DATABASE;
    PROMPT
    PROMPT ------------------------------------------------------------------------|
    PROMPT
    PROMPT
    PROMPT Checking database versions
    PROMPT
    column BANNER format A64
    select * from v$version;
    PROMPT
    PROMPT ------------------------------------------------------------------------|
    PROMPT
    PROMPT
    PROMPT Checking control file(s)
    PROMPT
    column STATUS format a7
    column NAME format a68
    column IS_RECOVERY_DEST_FILE format a3
    set linesize 110
    SELECT * FROM V$CONTROLFILE;
    PROMPT
    PROMPT ------------------------------------------------------------------------|
    PROMPT
    PROMPT
    PROMPT Checking redo logs and group(s)
    PROMPT
    column member format a70
    set linesize 110
    set pagesize 30
    SELECT group#, member FROM v$logfile;
    PROMPT
    PROMPT -----------------------------------------------------------------------|
    PROMPT
    PROMPT
    PROMPT ------------------------------------------------------------------------|
    PROMPT
    PROMPT
    PROMPT Checking freespace by tablespace
    PROMPT
    column dummy noprint
    column pct_used format 999.9 heading "%|Used"
    column name format a16 heading "Tablespace Name"
    column bytes format 9,999,999,999,999 heading "Total Bytes"
    column used format 99,999,999,999 heading "Used"
    column free format 999,999,999,999 heading "Free"
    break on report
    compute sum of bytes on report
    compute sum of free on report
    compute sum of used on report
    set termout off
    set pagesize 40
    select a.tablespace_name name,
    b.tablespace_name dummy,
    sum(b.bytes)/count( distinct a.file_id||'.'||a.block_id ) bytes,
    sum(b.bytes)/count( distinct a.file_id||'.'||a.block_id ) -
    sum(a.bytes)/count( distinct b.file_id ) used,
    sum(a.bytes)/count( distinct b.file_id ) free,
    100 * ( (sum(b.bytes)/count( distinct a.file_id||'.'||a.block_id )) -
    (sum(a.bytes)/count( distinct b.file_id ) )) /
    (sum(b.bytes)/count( distinct a.file_id||'.'||a.block_id )) pct_used
    from sys.dba_free_space a, sys.dba_data_files b
    where a.tablespace_name = b.tablespace_name
    group by a.tablespace_name, b.tablespace_name;
    PROMPT
    PROMPT ------------------------------------------------------------------------|
    PROMPT
    PROMPT
    PROMPT Checking for invalid objects
    PROMPT

  • How to test a generated report in my application by using web test written with Visual Studio 2012 Ultimate

    Hello,
    My application generates report in different formats, such as: Adobe, Excel, XML, CSV and HTML
    I have a webtest that makes all preparations, then generates a report. 
    In my application I have an option either to save the new generated report or open it.
    When I try to open the new report, the web test doesn't see it and therefore not allows me to test it.
    Please refer me to knowledge base or let me know how to resolve this type of issues.
    Thanks.
    qatm

    Hi qatm,
    Thank you for posting in MSDN forum.
    Since this web performance test is used to verify the Http request/respond work correctly in VS, and the browser session is then displayed as a list of URLs in the Web Performance Test Editor.
    However, as you said that you want to test a generated report in my application by using web performance test in VS2012 Ultimate. If the report is not as the Http format, so I think that it is not possible to test a generated report by using web performance
    test.
    Thanks for your understanding.
    Best Regards,
    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.

  • Error while generating Report through XL Reporter.

    Hello..
    I am using microsoft excel 2003.I have installed XL Reporter 2005SP1. While i am trying to generate report throgh excel reporter i get the following error.
    Security setting in microsoft excel prohibit XL Reporter from running.
    For more information click Help.
    I also tried by making security level low in microsoft excel -->Tools > Macros> Security.But still problem there.
    Thanks,
    Arpit

    Hi Arpit,
    As well as setting the macro security to Medium or lower, you need to tick the options 'Trust all installed add-ins and templates' and 'Trust access to Visual Basic Projects'. These options appear at the bottom of the Trusted Publishers tab in the Macro Security window.
    Hope this helps,
    Owen

  • Trouble executing "some" auto generated php remote services...?

    Hi,
    I was using the flash builder 4 premium trial with the 4.0 sdk, recently I bought the CS5 web premium suite. It includes flash builder 4.0.1 standard with 4.1 sdk.
    1. create a new flex project (as in the welcome tutorial)
    2. create a sample PHP service using my db infos (let it install Zend_AMF for me)
    3. place a datagrid in the desing mode,
    4. drop the the "getAll()" method on it
    5. tweek some columns,
    6. it works, I see the service call and answer with service capture (an external AMF service monitor).
    the 2 problems that appear now (which were not existing in the 4.0 trial version I had)
    1) add a new item
    protected var newItem:dbItem;
    protected function addBtn_clickHandler(event:MouseEvent):void
    newItem = new dbItem();
    newItem.attribute = 'someValue';
    this.addDbItem(newItem:dbItem);
    protected function addDbItem(item:dbItem:void
    createDbItemResult.token = dbItemService.createDbItem(item);
    <s:Button label="new item" id="addBtn" click="addBtn_clickHandler(event)"/>
    When I click the button, absolutely NOTHING happens, no error, no service call, nothing at all.
    2) refresh the datagrid's dataprovider
    I followed the tutorial on how to bind an ArrayCollection to the dataGrid instead of binding it to "service.lastresult"
    populate the ArrayCollection with the service result handler with event.result as ArrayCollection... everything works like before. whe the datagrid is created, it calls the "dataGrid_creationCompleteHandler".
    protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
    this.getAllDbItem();
    protected function refreshBtn_clickHandler(event:MouseEvent):void
    this.getAllDbItem();
    protected function getAllDbItemResult_resultHandler(event:ResultEvent):void
    DbItems = event.result as ArrayCollection;
    <s:Button label="refresh" id="refreshBtn" click="refreshBtn_clickHandler(event)"/>
    this works!, the refresh button also works, BUT... it only refreshes item which have not bee edited within the app... if I change some item value with a form, (still using skills from the tutorial) :
    - the data in the datagrid ARE UPDATED.
    - the service.update(item) method DOES NOT EXECUTE (like the create above)
    - if I update the DB manualy, ONLY the NON UPDATED rows refresh...
    Any idea?
    Thank you! I'm stuck here for hours and hours now :-(
    the full MXML code
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:moniteurservice="services.moniteurservice.*" xmlns:valueObjects="valueObjects.*">
    <fx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.controls.Alert;
    import mx.events.FlexEvent;
    import mx.rpc.events.ResultEvent;
    [Bindable]
    protected var moniteurs:ArrayCollection = new ArrayCollection();
    protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
    getAllMoniteurResult.token = moniteurService.getAllMoniteur();
    protected function button_clickHandler(event:MouseEvent):void
    moniteur.statut = statutTextInput.text;
    moniteur.nom = nomTextInput.text;
    moniteur.prenom = prenomTextInput.text;
    moniteur.tel = telTextInput.text;
    moniteur.mobile = mobileTextInput.text;
    moniteur.email = emailTextInput.text;
    moniteur.adresse = adresseTextInput.text;
    moniteur.npa = npaTextInput.text;
    moniteur.lieu = lieuTextInput.text;
    moniteur.pays = paysTextInput.text;
    this.updateMoniteur(moniteur);
    protected function updateMoniteur(item:Moniteur):void
    updateMoniteurResult.token = moniteurService.updateMoniteur(item);
    protected function button1_clickHandler(event:MouseEvent):void
    getAllMoniteurResult.token = moniteurService.getAllMoniteur();
    protected function getAllMoniteurResult_resultHandler(event:ResultEvent):void
    moniteurs = event.result as ArrayCollection;
    ]]>
    </fx:Script>
    <fx:Declarations>
    <s:CallResponder id="getAllMoniteurResult" result="getAllMoniteurResult_resultHandler(event)"/>
    <moniteurservice:MoniteurService id="moniteurService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
    <valueObjects:Moniteur id="moniteur"/>
    <s:CallResponder id="updateMoniteurResult"/>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <fx:Binding source="dataGrid.selectedItem as Moniteur" destination="moniteur"/>
    <mx:DataGrid x="25" y="24" id="dataGrid" creationComplete="dataGrid_creationCompleteHandler(event)"
    dataProvider="{moniteurs}">
    <mx:columns>
    <mx:DataGridColumn headerText="id" dataField="id"/>
    <mx:DataGridColumn headerText="statut" dataField="statut"/>
    <mx:DataGridColumn headerText="nom" dataField="nom"/>
    <mx:DataGridColumn headerText="prenom" dataField="prenom"/>
    <mx:DataGridColumn headerText="tel" dataField="tel"/>
    <mx:DataGridColumn headerText="mobile" dataField="mobile"/>
    <mx:DataGridColumn headerText="email" dataField="email"/>
    <mx:DataGridColumn headerText="adresse" dataField="adresse"/>
    <mx:DataGridColumn headerText="npa" dataField="npa"/>
    <mx:DataGridColumn headerText="lieu" dataField="lieu"/>
    <mx:DataGridColumn headerText="pays" dataField="pays"/>
    </mx:columns>
    </mx:DataGrid>
    <mx:Form defaultButton="{button}" x="25" y="174">
    <mx:FormItem label="Statut">
    <s:TextInput id="statutTextInput" text="{moniteur.statut}"/>
    </mx:FormItem>
    <mx:FormItem label="Nom">
    <s:TextInput id="nomTextInput" text="{moniteur.nom}"/>
    </mx:FormItem>
    <mx:FormItem label="Prenom">
    <s:TextInput id="prenomTextInput" text="{moniteur.prenom}"/>
    </mx:FormItem>
    <mx:FormItem label="Tel">
    <s:TextInput id="telTextInput" text="{moniteur.tel}"/>
    </mx:FormItem>
    <mx:FormItem label="Mobile">
    <s:TextInput id="mobileTextInput" text="{moniteur.mobile}"/>
    </mx:FormItem>
    <mx:FormItem label="Email">
    <s:TextInput id="emailTextInput" text="{moniteur.email}"/>
    </mx:FormItem>
    <mx:FormItem label="Adresse">
    <s:TextInput id="adresseTextInput" text="{moniteur.adresse}"/>
    </mx:FormItem>
    <mx:FormItem label="Npa">
    <s:TextInput id="npaTextInput" text="{moniteur.npa}"/>
    </mx:FormItem>
    <mx:FormItem label="Lieu">
    <s:TextInput id="lieuTextInput" text="{moniteur.lieu}"/>
    </mx:FormItem>
    <mx:FormItem label="Pays">
    <s:TextInput id="paysTextInput" text="{moniteur.pays}"/>
    </mx:FormItem>
    <s:Button id="button" label="Submit" click="button_clickHandler(event)"/>
    </mx:Form>
    <s:Button x="322" y="200" label="Button" click="button1_clickHandler(event)"/>
    </s:Application>
    the full PHP service code:
    <?php
    *  README for sample service
    *  This generated sample service contains functions that illustrate typical service operations.
    *  Use these functions as a starting point for creating your own service implementation. Modify the
    *  function signatures, references to the database, and implementation according to your needs.
    *  Delete the functions that you do not use.
    *  Save your changes and return to Flash Builder. In Flash Builder Data/Services View, refresh
    *  the service. Then drag service operations onto user interface components in Design View. For
    *  example, drag the getAllItems() operation onto a DataGrid.
    *  This code is for prototyping only.
    *  Authenticate the user prior to allowing them to call these methods. You can find more
    *  information at http://www.adobe.com/go/flex_security
    class MoniteurService {
    var $username = "root";
    var $password = "mikedev";
    var $server = "localhost";
    var $port = "8889";
    var $databasename = "test_db";
    var $tablename = "moniteur";
    var $connection;
    * The constructor initializes the connection to database. Everytime a request is
    * received by Zend AMF, an instance of the service class is created and then the
    * requested method is invoked.
    public function __construct() {
       $this->connection = mysqli_connect(
       $this->server, 
       $this->username, 
       $this->password,
       $this->databasename,
       $this->port
    $this->throwExceptionOnError($this->connection);
    * Returns all the rows from the table.
    * Add authroization or any logical checks for secure access to your data
    * @return array
    public function getAllMoniteur() {
    $stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename");
    $this->throwExceptionOnError();
    mysqli_stmt_execute($stmt);
    $this->throwExceptionOnError();
    $rows = array();
    mysqli_stmt_bind_result($stmt, $row->id, $row->statut, $row->nom, $row->prenom, $row->tel, $row->mobile, $row->email, $row->adresse, $row->npa, $row->lieu, $row->pays);
        while (mysqli_stmt_fetch($stmt)) {
          $rows[] = $row;
          $row = new stdClass();
          mysqli_stmt_bind_result($stmt, $row->id, $row->statut, $row->nom, $row->prenom, $row->tel, $row->mobile, $row->email, $row->adresse, $row->npa, $row->lieu, $row->pays);
    mysqli_stmt_free_result($stmt);
        mysqli_close($this->connection);
        return $rows;
    * Returns the item corresponding to the value specified for the primary key.
    * Add authorization or any logical checks for secure access to your data
    * @return stdClass
    public function getMoniteurByID($itemID) {
    $stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename where id=?");
    $this->throwExceptionOnError();
    mysqli_stmt_bind_param($stmt, 'i', $itemID);
    $this->throwExceptionOnError();
    mysqli_stmt_execute($stmt);
    $this->throwExceptionOnError();
    mysqli_stmt_bind_result($stmt, $row->id, $row->statut, $row->nom, $row->prenom, $row->tel, $row->mobile, $row->email, $row->adresse, $row->npa, $row->lieu, $row->pays);
    if(mysqli_stmt_fetch($stmt)) {
          return $row;
    } else {
          return null;
    * Returns the item corresponding to the value specified for the primary key.
    * Add authorization or any logical checks for secure access to your data
    * @return stdClass
    public function createMoniteur($item) {
    $stmt = mysqli_prepare($this->connection, "INSERT INTO $this->tablename (id, statut, nom, prenom, tel, mobile, email, adresse, npa, lieu, pays) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)");
    $this->throwExceptionOnError();
    mysqli_stmt_bind_param($stmt, 'issssssssss', $item->id, $item->statut, $item->nom, $item->prenom, $item->tel, $item->mobile, $item->email, $item->adresse, $item->npa, $item->lieu, $item->pays);
    $this->throwExceptionOnError();
    mysqli_stmt_execute($stmt);
    $this->throwExceptionOnError();
    $autoid = $item->id;
    mysqli_stmt_free_result($stmt);
    mysqli_close($this->connection);
    return $autoid;
    * Updates the passed item in the table.
    * Add authorization or any logical checks for secure access to your data
    * @param stdClass $item
    * @return void
    public function updateMoniteur($item) {
    $stmt = mysqli_prepare($this->connection, "UPDATE $this->tablename SET statut=?, nom=?, prenom=?, tel=?, mobile=?, email=?, adresse=?, npa=?, lieu=?, pays=? WHERE id=?");
    $this->throwExceptionOnError();
    mysqli_stmt_bind_param($stmt, 'ssssssssssi', $item->statut, $item->nom, $item->prenom, $item->tel, $item->mobile, $item->email, $item->adresse, $item->npa, $item->lieu, $item->pays, $item->id);
    $this->throwExceptionOnError();
    mysqli_stmt_execute($stmt);
    $this->throwExceptionOnError();
    mysqli_stmt_free_result($stmt);
    mysqli_close($this->connection);
    * Deletes the item corresponding to the passed primary key value from
    * the table.
    * Add authorization or any logical checks for secure access to your data
    * @return void
    public function deleteMoniteur($itemID) {
    $stmt = mysqli_prepare($this->connection, "DELETE FROM $this->tablename WHERE id = ?");
    $this->throwExceptionOnError();
    mysqli_stmt_bind_param($stmt, 'i', $itemID);
    mysqli_stmt_execute($stmt);
    $this->throwExceptionOnError();
    mysqli_stmt_free_result($stmt);
    mysqli_close($this->connection);
    * Returns the number of rows in the table.
    * Add authorization or any logical checks for secure access to your data
    public function count() {
    $stmt = mysqli_prepare($this->connection, "SELECT COUNT(*) AS COUNT FROM $this->tablename");
    $this->throwExceptionOnError();
    mysqli_stmt_execute($stmt);
    $this->throwExceptionOnError();
    mysqli_stmt_bind_result($stmt, $rec_count);
    $this->throwExceptionOnError();
    mysqli_stmt_fetch($stmt);
    $this->throwExceptionOnError();
    mysqli_stmt_free_result($stmt);
    mysqli_close($this->connection);
    return $rec_count;
    * Returns $numItems rows starting from the $startIndex row from the
    * table.
    * Add authorization or any logical checks for secure access to your data
    * @return array
    public function getMoniteur_paged($startIndex, $numItems) {
    $stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename LIMIT ?, ?");
    $this->throwExceptionOnError();
    mysqli_stmt_bind_param($stmt, 'ii', $startIndex, $numItems);
    mysqli_stmt_execute($stmt);
    $this->throwExceptionOnError();
    $rows = array();
    mysqli_stmt_bind_result($stmt, $row->id, $row->statut, $row->nom, $row->prenom, $row->tel, $row->mobile, $row->email, $row->adresse, $row->npa, $row->lieu, $row->pays);
        while (mysqli_stmt_fetch($stmt)) {
          $rows[] = $row;
          $row = new stdClass();
          mysqli_stmt_bind_result($stmt, $row->id, $row->statut, $row->nom, $row->prenom, $row->tel, $row->mobile, $row->email, $row->adresse, $row->npa, $row->lieu, $row->pays);
    mysqli_stmt_free_result($stmt);
    mysqli_close($this->connection);
    return $rows;
    * Utility function to throw an exception if an error occurs
    * while running a mysql command.
    private function throwExceptionOnError($link = null) {
    if($link == null) {
    $link = $this->connection;
    if(mysqli_error($link)) {
    $msg = mysqli_errno($link) . ": " . mysqli_error($link);
    throw new Exception('MySQL Error - '. $msg);
    ?>

    >
    >  the service.update(item) method DOES NOT EXECUTE (like the create above)
    >
    I think you are not using the "commit" on the service. By default the Data services are "managed".
    Data management features allow you to synchronize adding, updating, and deleting of records in a database. Changes you make in the client application are not written to the server until a "commit" method is called. You can call a revert method to roll back changes made in the client application.
    So wherever you update or create add "commit" to the service after adding/updating. for eg.
    protected function addDbItem(item:dbItem:void
         createDbItemResult.token = dbItemService.createDbItem(item);
         dbItemService.commit();
    I think the following article might be of interest to you:
    http://help.adobe.com/en_US/Flex/4.0/FlexTutorials/WSbde04e3d3e6474c4292a0331216558354b-80 00.html#WSbde04e3d3e6474c4-10020e8112165e18e29-8000

  • Auto generated code in makefile

    For our product we have a TCL script that reads a series of text files and generates C++ classes for easy access to database records. Our code has been in use for make years and works very well. We have always used a solaris command prompt dmake to compile, which first generates the C++ files then complies them. It uses a series of enviroment variables which a user must set before compilation.
    I recently tried to create a Sun Studio Express based on NetBeans 6.5.rc1 project from a make file. This has worked for every other makefile except for this one. The others do not have any auto generated code.
    To run sun studio I in a command prompt source in the environments then run netbeans. Then I choose to build the product but I get an error. I then try to copy the command it is running into telnet window and it works fine. Does anyone have an idea on why in the sun studio I get and error while the telnet window works fine.

    I think the problem is that the SunStudio IDE runs the build command in a wrong directory.
    Can you verify that the working directory is correct?
    (it is in project properties: Build > Make)
    Also you can find this directory in the message in the output, when you try to build the project.
    That's the message, that you copied to the terminal window.
    Thanks,
    Nik

  • Project wise Trial Balance Report

    Dear All
    Could u plz help me in this regard
    How to select "Project" in Trail Balance Report?
    I want to generate Project wise Trail Balance Report.
    Thanks & Regards
    KISHAN

    Hi,
    Goto the Financials Module > Financial Reports > Financial > Trial Balance - Selection Creteria.
    You will see a button Expanded. Click on it and in the window opened, enter the project code in the Project field appearing and run the report to get the desired result.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

Maybe you are looking for