Sends a DATA SQL database from FLEX

Hello, I am very new in FLEX. so, I am facing trouble with her...

I'm doing this tutorial = http://www.Adobe.com/devnet/flash-Builder/articles/FlashBuilder-PHP-part1.html

I use Flash Builder 4.5 for PHP. with WAMP php/sql server.

I am successful with the reading of the data of the SQL Server and placed in the data grid.

but the problem is when I tried to send the data to the server, I received a message like

"Channel disconnected".

Channel disconnected before an acknowledgement.

someone in this turorial commented that I should use the 'commit()' function to send data to the server.

but, when I include this function, the flash builder gives me error.

Please, please if anyone knows how to send data to SQL server... Please help me...

I really need to know that.

Hello again... I had my problem is solved.

now, I can add data to the sql database and also update and delete it.

those who have the same kind of problem, so...

Follow this tutorial = http://www.adobe.com/devnet/flex/testdrive/articles/1_build_a_flex_app.html

Tags: Flex

Similar Questions

  • Flatten to a string to send arbitrary objects by messages from the user interface?

    Hi people,

    I am trying to send arbitrary data by messages from the user interface defined by the user to my labview interface. Something funny happens then: if I send the data through the message of ui, it seems I have something strange. There is only one character or nothing in the message of the user interface that reached my reminder.

    It seems that flatten channel also creates control characters that are interpreted by NI TestStand and Labview not as members of the chain, and for this reason I only get incomplete data. within the action of testand, which creates the flattened data, I put a dialog box to display the string data, and it seems that at least up to 255 (ascii) characters are used.

    Is there something like uuencode/uudecode to avoid this problem?

    Thanks in advance

    Okidoki, found.

    His «binary"produced by «Flatten the string» string Apparently I thought, the LabVIEW data type is incompatible with the API of TestStand from LabVIEW. In conclusion I would classify this as a bug (sorry people, at least there should be documentation) API for LabVIEW TestStand 2014.

    As a solution, I use flatten it in XML, which is a printable and human readable 'normal' string.

    It was trial and error, and I'm not enjoying this.

  • How to connect sql database to esxi to save all data from the virtual machine

    How to connect sql database to esxi to save all data from the virtual machine

    Please provide steps

    In simple terms, you cannot connect ESXi to SQL. Connect a vCenter SQL (Windows only).

    If you want to save all the data that is contained in your virtual machines, I suggest a backup solution.

    Suhas

  • Send pdf form data to sql database

    Where can I find detailed information about the process of sending the pdf form data stored on the Web site of the sql database stored on the web server? Where I can find some samples, I could use to build my form and script related.

    Thanks for the tips.

    Tony

    If you want the form to communicate directly with the DB, you need to configure a DSN on each of the machines, which will take place in the form. Note that this wil only work on Windows machines. Also, the form must be started for the script runs (you mentioned the PDF has been stored on the web server). I have some examples that show how to deal with a DB, but attachments do not seem to work properly on the forum yet. If you cannot retrieve post them your email and I will send them to you directly.

    Paul

  • Is it possible to send data to the SQL database?

    Is there a way to communicate with a SQL database? Quiz results, step etc.

    Yes, it is possible, that we are currently working on a plugin that will create a database for you and write your Captivate info.

  • Is it possible to stop labview data hex autoconverting to a SQL database in ascii?

    Hi all

    I is currently working on a program that ask a SQL database for the data from the sensors and converts these data into a spreadsheet for future use.

    My problem is the following:
    I can access and read the data very well; However, the data I'm after are stored in the database as a hexadecimal number (example: "0 X 5727000...) ». When I pass this through this vi "DB Tools Fetch Item Data", he captures the data and the autoconverts it in ascii. It is a huge problem because the data contains several pieces of information and must be analyzed before his conversion in order to achieve the correct value (and wrong format in ascii).

    Is it possible to recover the data as a string containing only the hexagonal information? I already have the code that converts it to; I need as hexadecimal values and not ascii he tries to AutoFormat to.

    Your data are permanently binary.  And how it is stored in the database is a function of some program put in there.  It is not a case of LabVIEW doing any "autoconverting".

    "more labview uses the display format Hex to work more on television anyway.

    So the next question is what is the continuation of the work you want on these data?  There is a function call "String to Byte Array" that converts the characters in a table of U8.  So now, you have a table of numbers of U8.  What you then do with that depends on what all these data are supposed to represent.

  • get list from a SQL database and create links to each lines in AS3

    I'm doing an AIR application with these conditions:

    I have a SQL database. In my table, there is a column 'categories' (with different categories (computer, books... etc.)).

    enter image description here

    In my AS3, I managed to recover "theDescription" when the user select a category. With the URLMethod and a php file.

       // create SQL $sql = "SELECT * FROM annonces where categorie = '$categorie'";

    $sql_result = mysql_query($sql, $connection) or die ("Couldn't execute query.");

    $num = mysql_numrows($sql_result); $phptheDescription = "";

    $counter = 0;

    while ($row = mysql_fetch_array($sql_result)) {

    $theDescription = $row["theDescription"];

    $phptheDescription = $theDescription;

    }

    echo  "phptheDescription=" . $theDescription;

    So my AS3 code retrieves the $phptheDescription since php and displays in a output_txt .

    Problem: in my output_txt , a 'theDescription"appears. But I have TWO Articles in the category 'Computers' (and I have 100 points in the same categories).

    How do I show all the "theDescription' that are in the same categories?

    Ex: If I choose "Computer", it should display "a Surface Pro 3" and "An IMAC". But it only shows the last element "IMAC".

    And, after that, it is possible to create "links" for each item posted?

    Here are 2 videos of short films (20 sec) explaining my problems:

    https://vid.me/DS2r

    http://sendvid.com/6iesrygk

    THX

    Hi-I've never used PHP so I could be wrong here - but it seems to me you're a loop in the records, each time as reset $theDescription to all that is in the current (rather than accumulate output) record. If you are effctively echo only the last record in the query.

    I think you should be either running the command echo inside your loop, or alternatively the concatenation of a string inside the loop and then echoing the end of the loop?

    I would be likely to generate XML data in PHP (just by concatenating strings) and then use it in my AS3 code.

  • How can I transfer content from an XML file in a MS SQL database of the stored procedure using LabWindows/CVI SQL Toolkit?

    Hello

    I have a problem to transfer content to an XML file in a MS SQL database through a stored procedure data/fixed. I am able to transfer the content of the file using method...

    HSTMT = DBPrepareSQL (hdbc, EXEC usp_InsertReport " ... ");

    resCode = DBExecutePreparedSQL (hstmt);

    resCode = DBClosePreparedSQL (hstmt);

    ... but in this case, I am not able to read the return value of the stored procedure.

    I tried to follow the example of the stored procedure in the help documentation (DBPrepareSQL), but I miss a xml data type?

    No idea how to solve my problem?

    Cake of KR

    DianaS salvation,

    Thanks for your comments. During this time I found another way which fullfill my needs:

    resCode = DBSetAttributeDefault (hdbc, ATTR_DB_COMMAND_TYPE, DB_COMMAND_TEXT);

    sprintf (sz_SqlStatement, "DECLARE @TESTID INT EXEC @TESTID = usp_InsertReport ' SELECT 'RetVal' %s = @TESTID", sz_Buffer ");
    HSTMT = DBActivateSQL (hdbc, sz_SqlStatement);

    While ((resCode = DBFetchNext (hstmt)) == DB_SUCCESS)

    {

    / * Enter values in the record. */

    resCode = DBGetColInt (hstmt, 1, & s32_TestId);
    }

    resCode = DBDeactivateSQL (hstmt);

    sz_Buffer is the content of the XML file.

    Cake of KR

  • Can alerts be attracted on Foglight from a SQL database?

    Hello

    We have a building management system which alerts to high temperatures, the failures of UPS, etc. We would like to be able to feed these alerts Foglight. I understand that we can use the cartridge for SNMP integration to pull in alerts to third-party systems Foglight. However, it will not work with our BMS system because we have SNMP on the ethernet module. This only will give us status, such as up/down of the ethernet module and no alerts we are looking for.

    Is there another way we can get these alerts of our BMS system in Foglight? In my view, there is a SQL database connected to this system that stores the alarm so I was wondering if it would be possible to run a query and extract these alarms in Foglight?

    If someone has done something lilke this before or has any ideas on how I can accomplish this I'd love to hear them.

    Thank you

    Tony

    Hi Tony,.

    If the building management system does not have the ability to send SNMP traps to Foglight, then the best bet may be a collection defined by the user using the appropriate DB cartridge.

    Here is some information:

    http://communities.quest.com/docs/doc-14616

    And how to create rules for these collections:

    http://en.community.Dell.com/TechCenter/performance-monitoring/Foglight-for-databases/m/DB-downloads/20438422

    I hope this helps.

    -Marcel

  • database from 32 bit to 64 bit on Linux data / ORA-06553: PLS-801: internal error [56319]

    Hello

    I've migrated EBS from 32 bit to 64 bit Linux database. I followed this Metalink note.

    Note - 341880.1 how to convert a database from 32-bit to 64-bit on Linux database?

    After the move, I did the below steps and get the error below... How to solve this problem?

    ===================================================================================

    SQL > startup nomount

    ORACLE instance started.

    Total System Global Area 595591168 bytes

    Bytes of size 2098016 fixed

    415239328 variable size bytes

    163577856 of database buffers bytes

    Redo buffers 14675968 bytes

    SQL > @create_control - file.sql

    Created control file.

    SQL > alter database open resetlogs;

    Database altered.

    SQL > ALTER TABLESPACE TEMP add TEMPFILE ' / d01/prd1/prd1data/tmp1.dbf' SIZE 2000 M REUSE AUTOEXTEND OFF;

    Tablespace altered.

    SQL > @$ORACLE_HOME/olap/admin/olap.sql SYSAUX TEMP

    BEGIN

    *

    ERROR on line 1:

    ORA-06553: PLS-801: internal error [56319]

    DECLARE

    *

    ERROR on line 1:

    ORA-06553: PLS-801: internal error [56319]

    BEGIN

    *

    ERROR on line 1:

    ORA-06553: PLS-801: internal error [56319]

    ===================================================================================

    Thank you.

    Please see the solution in (ORA-06553: PLS-801: internal error [56319], ORA-06544: PL/SQL: internal error, arguments: [56319] [] [], [], [], [], [], [], ORA-00604 when using different bit datafiles that executable Oracle (Doc ID 1436552.1)).

    Thank you

    Hussein

  • Language is SQL varies from database to database?

    Language is SQL varies from database to database?

    OR

    SQL language is universal?

    All providers which makes a database has differences in SQL. The basic concepts are universal, but there are specific to the provider, different versions of the standard, extensions etc. SQL.

  • Moving database from 1 server to another via Data Pump - some queries

    Hello

    I am planing to move my database from one windows server to another. Part of the obligation is also to update this database 10g to 11.2.0.3. So I'm combining 2 tasks using the export / import method (via Data Pump) upgrade.

    Regarding export / import (which will be a pump full data of the database export) my plan is.

    create an empty 11.2.0.3 target database on the server (same number of control files, and redo logs etc.) ready for an import of the source database
    Q1. This will create tablespaces SYSTEM and UNDO - I presume the datapump export doesn't include these spaces of storage anyway?

    For export, I intend to simulate CONSISTENT = Y using FLASHBACK_TIME = SYSTIMESTAMP
    Q2. What is the return of flame characteristics must be active on the source database to use this knowledge should I Flashback Database enabled on the source (as opposed to other flashback features) database?

    My target is a virtual server with a single virtual processor
    Q3. Is there any point PARALLEL usinng in the import settings file (normally I would fix this number of processors - however in the case of this virtual server, it is actually onely a virtual processor)?

    For the import, I intend to use the REMAP_DATAFILE option to change the location of the data files on the target server

    Q4. If the import fails before the end, what is the best course of action? for example I just let go of data storage spaces and remake a complete import?

    Thank you
    Jim

    Jim,

    I'll take a pass on your questions:

    create an empty 11.2.0.3 target database on the server (same number of control files, and redo logs etc.) ready for an import > source database
    Q1. This will create tablespaces SYSTEM and UNDO - I presume the datapump export does not include these storage spaces > anyway?

    The system tablespace is created when you create a database, but the Data Pump will export and try to import. It will fail with tablespace exists. I am sure that the undo tablespace will be also exported and imported. If they are there, then just import will report that they already exist.

    For export, I intend to simulate CONSISTENT = Y using FLASHBACK_TIME = SYSTIMESTAMP
    Q2. What is the return of flame characteristics must be active on the source database to use this knowledge should I Flashback Database active > on the source (as opposed to other flashback features) database?

    I know not true about it. I thought that you need just enough cancel, but I hope that others will run in.

    My target is a virtual server with a single virtual processor
    Q3. Y at - it no PARALLEL point usinng in the import settings file (normally I put this on the number of processors - > however in the case of this virtual server, it is actually onely a virtual processor)?

    We recommend usually 2 times the number of processes, so 2 parallel should be ok.

    For the import, I intend to use the REMAP_DATAFILE option to change the location of the data files on the target server

    Q4. If the import fails before the end, what is the best course of action? that is, do I just give up storage of data and redo a > full import?

    It depends what is failure. Most of the failures will not stop work, but if this is the case, then most of these jobs may simply be restarted. To restart a job, you just need to know the name of the task, which is printed as you start to export/import, or you name the task in your order Data Pump. To restart, follow these steps:

    password/user Impdp attach = job_name

    If you do not name the work, the name of the job will be something like

    User.sys_import_full_01

    Hope that helps - and good luck with your migration.

    Dean

  • Inserting data in the form SQL database

    I'm sure this question has been asked before, but during my research, I couldn't find an answer.

    I have a field of file download a form where users can download a separator: excel file, which is inserted into the SQL tab. This method works correctly. In the same form, I have a couple of text entry boxes in which I want the data that the user entered to be inserted in every row in the database SQL - in conjunction with the excel data entries. I hope I explained this correctly. Let me give a Visual. Here are the fields of the form:

    FILE LOCATION: [] Browse...
    [TAIL:]
    [INSTALLATION:]
    [DOWNLOAD DATE:]
    [ENTRY DATE:]

    The user has access to their file and inserts the rest of form fields. In the background, Coldfusion downloads the file and it then inserts into the SQL database. I need to take the rest of the data entered by the user (TAIL, INSTALLATION, DOWNLOAD DATE, DATE of ENTRY) and add/update on the same lines as the data of the file upload (excel sheet).

    I am sure that this would imply a sort of < cfloop >, but not quite sure how to code correctly. Please notify.

    Found the solution. I have a will insert my excel data in a line at a time. I went ahead and added the 4 forms of the insert fields and it looped through each line while adding the values in the form. Thanks for your help anyway Westside, much appreciated.

  • Report error LabSQL SQL database

    Hi all, I want to ask about the error of LabSQL report, I made I followed machine 12-in-1 program to program, I did SQL database by LabSQL freeware

    in this case the database can function properly,

    Look on the date of database, he made 5 ranks (each plot 1 hour data), so it only 5 hour running program, the connection on LabSQL has an error like this report:

    What is the problem? Please explain to me what the problem is. help me fix my program, I'll set my program,

    on this case, I use only LabSQL because we have a lot of money to buy database connectivity kit, please help

    If you look at the description of the error, it is said there are "too many client tasks - how many SQL references that you opened earlier. You try to write to the database from several places by opening and closing the reference every time?

  • Getting milliseconds of DATETIME SQL database Labview

    Hello

    I am trying to extract a timestamp of my MS SQL database and I don't get the milliseconds when I retrieve the data. Does anyone know how to program sql or labview, so I can get the timestamp set. In SQL, I set as datetime2. I'll appreciate any help. Thank you

    It seems that it is a TEEN driver problem, not specific to LabVIEW.  If you use the query

    SELECT Convert(varchar,Start_Test_Time,21) FROM Engine_Tests

    You can retrieve data in a string and convert it into a timestamp.

    You can also use

    SELECT DATEPART (msStart_Test_Time) FROM Engine_Tests

    to get just the part ms.  More information about DATEPART can be found here:

    http://msdn.Microsoft.com/en-us/library/ms174420 (SQL.90) .aspx

Maybe you are looking for