Two datagrids get data to a PHP data service

Hello

on my main screen I have an invisible datagrid that receives data from a PHP data via a MySQL database table service. All the rows of the datagrid contains data that are used by a visible form to fill its fields. So the first line of the data grid is selected by default (in this form are buttons: forward and backward to go through all the other entries in the datagrid control, but this is only the information aside).

On my main screen I also have a navigation bar in which a button opens a titlewindow (I work with mx components only, so no spark). This titlewindow contains an another datagrid that gets the data from the same database table (using the same data service). As soon as this datagrid received the data, the selection in my datagrid on the main screen disappears (only the selection, and not the data) and so all the information in the form also disappears (leaving the fields blank).

My wish is that the selection in the DataGrid on the main screen does not disappear. How can I achieve this?

I tried to identify the problem and the only thing I can say is that the problem has something to do with the data service used by the datagrid control in the titlewindow. Without this data service, the value selected in the DataGrid on the main screen does not disappear.

Your help is very appreciated!

Padraig

See the part code, also, why are you doing this and not databinding how many rows are we talking about

Tags: Flex

Similar Questions

  • getting data from two servers?

    Experts-

    We have two servers for the storage of the tables. 1 history 1. current server Prod

    We have same tables in the databases server.

    All the info before one month from the date of the day are stored in database tables history server
    and the rest in database tables current prod server.


    I create reports such as when the user enters a date, OBIEE must check if the date is in a month (30 days) the date today or earlier at 30 days, on this basis, it must get data from historical Server database tables / running production database server.

    How can I implement this?

    I need to create two clusters of connction (RPD records) and develop the same model twice? (One for the historical paintings and one for prod tables?)
    or can I use the technique of fragmentation? If so, can you give me an idea hwow to implement the Fragmentation of this requirement?

    Thank you for your help in advance

    You must use the fragmentation of this requirement. It is not difficult once you understand the basic principle. Nico article read here for details:

    http://gerardnico.com/wiki/dat/OBIEE/fragmentation_content

    The only non-standard bit for you will be to define the criteria of fragmentation on your sources of logical table. This is the part that says BI server to hit source.

    After return here if you get stuck.

    Paul

  • Cannot create files in the database by using the PHP Data Service

    Hello, I was stuck on this during a few days and get up and down for this on the net, no response, I found did work, so I come back to you...

    Here are the steps I took, I think that's pretty standard

    1. I have a macbook pro running osx 10.7.3

    2. I installed MAMP default all the (I've acually reinstalled this because someone suggested it could fix)

    3. via phpMyAdmin, I created a database called my_test

    4. in this database, I created a table, it is the export of this table: (I also tried with InnoDB, which is the default)

    CREATE TABLE 'client')

    int (10) 'id' unsigned NOT NULL AUTO_INCREMENT,

    'name' varchar (50) NOT NULL,

    'email' varchar (150) NOT NULL,

    PRIMARY KEY ('id'),

    UNIQUE KEY 'id' ('id')

    ) ENGINE = MyISAM DEFAULT CHARSET = latin1 AUTO_INCREMENT = 1;

    5. I created a new project of Flx (running Flash Builder Premium 4.5.1)

    Project name: PHPTest

    Type of application: Desktop (although I did the same thing with the Web and got the same results)

    > > Next

    Type of application server: PHP

    Web root: / Applications/MAMP/htdocs /.

    Root of the URL: http://localhost: 8888 /

    Click on "Save Configuration" and who worked

    Output folder: / Applications/MAMP/htdocs/PHPService (default value of Flash Builder)

    > > Finish

    6. in the Data/Services on the background tab, I click on "connect to data or services...". »

    Select "PHP".

    > > Next

    Select «Click here to generate a sample»

    Select the option "Generate database"

    User name: root

    Password: root (default for MAMP)

    Host name: localhost

    Server port: 8889 (default for MAMP MySQL port, the default HTTP port is 8888, which, in both cases, seems to work, but all the videos I've seen that use MAMP on youtube uses 8889)

    Database: my_test

    Click 'Test connection' (work)

    Table: customer

    Primary key: id of (this field is dimmed and Flash selects Builder 'id', which it appears in the SQL table)

    > > Click OK

    7. then if I do not have the Zend Framework folder in my/Applications/MAMP/htdocs/folder it tells me its going to do this and I mean. Then Flash Builder said some things about how it really is for testing, not production server ready and I mean.

    8. then it brings back me to the form of step 6 when I have the chance to select «Click here to generate a sample»

    These fields are now filled with these data automatically:

    PHP class: /Applications/MAMP/htdocs/PHPTest/services/CustomerService.php

    Name of the service: customer service

    Package: services.customerservice

    Type of data package: valueObjects

    > > Click on Next (shows all functions, which will now be availible)

    > > Click done (end shapes and she opens Dreamweaver in the php file it created CustomerService.php that I didn't need to change so that I have that closes down)

    9. back in Flash Builder I switch to design mode and drag a datagrid control onto the large white area in the Middle, no matter who is called.

    10 slide below in the Data/Services on the bottom tab I click the "GetAllCustomer" function on the top of the data grid.

    I say yes to bounce, then click ok and the display of the data grid is updated with the columns of the 'customer' table in mySQL.

    (Now I would like to say that when I hit save and compile it, if I actually had documents in this table I have insert via phpMyAdmin, this is displayed in the datagrid control) So for all the CRUD, I am able to get the R which is read)

    11. now go back to the designer view in Flash Builder, I'll create a form to create the table records... (I guess this isn't really a step)

    12. in the data on background tab/Service I select the function 'createCustomer' and then there is an icon called "Form generating" that looks like a white sheet of paper with a sprocket on the bottom of things.

    13. This opens a new form and because I don't have a crazy bunch of fields in my table I click just finished (if you click then you can specify which fields you want to exclude from the form, but this time I don't have to)

    14. This creates actually 2 forms if you look at the code, the second shows just the return type of when you click on the button 'CreateCustomer' on the first form. Because they overlap in design mode I drag the form so you can see the entry form, the return form and the datagrid

    15 then I save and compile...

    (Also if your reading this fact does not delete the field in form of code, I get the same result, so be it, but if you do not delete the form field in the code/design you must also update the function button do not deal with the id before he is deported to the php page, since in this case the MySQL table's auto_increment sorry id value that does not have a lot of) sense, but this small area does not matter much anyway)

    16. now fill some data you want for name and email, try different numbers in the field id as 0, nothing, 1, 1000, then click on 'CreateCustomer '.

    (For me that nothing happens, no return is put on return, no error appears and the datagrid control is not updated with the new record, passing also to phpMyAdmin and checking her browse the table does no changes, I know that the button calls the function because if I add a state change it in this function of changes) , it seems that the line:

    createCustomerResult.token = customerService.createCustomer (customer2); does nothing)

    So no idea what is wrong here, I am convenced that's something stupid easy simple, I can't see it.

    So, I thought about it after 24 hours to post my question and probing every thing I could think about. I've been stuck with this problem for over a week, so I'll give myself credit for this one...

    userService.commit ();

    need to be added at the end of the function of button to force flex to do what seems every tutorial that I've ever read on how to do online is no need or mention, don't know why it worked without them but at this point I don't really like.

  • How to fix or get data off Mac Pro with display/restart issues

    Hi, my early 2008 Mac Pro running El Capitan suddenly started to show lines all over the screen, then it restarted, displaying an error message and since then he's been stuck in a reboot loop never get past the progress bar and with very distorted display. Two questions:

    (1) any solution to this? It is an old machine, worked great so I would like to continue using it if possible, but do not want to put money in it at this stage.

    (2) what is the best way to get data out of the two internal drives to the machine on my Mac Air? I need to access the files on it, also like his 2 x 1 TB hard drives I will not be able to transfer the data on Air, but you will need to use them as external drives.

    Help appreciated!

    Get a dock like this

    http://www.felinediabetes.com/FDMB/forums/feline-health-the-main-forum.28/

    and take the readers on the Mac Pro and put them in the dock and connect to new mac via USB

    You can also get an enclosure that accept disks 3 1/2 in.

    In addition, you can get a bolt of lightning > FireWire adopter and connect the two Macs via FireWire and start the old mac in target disk mode

    How to use and troubleshoot disk mode target FireWire - Apple Support

    The error message say? Problem could be the graphics card bad or maybe bad memory.

    If you open the side cover are all diagnostic lights on?

  • Apparent problem with OpenG Get Data Name_ogtk.vi

    The data Name_ogtk.vi Get OpenG is a function that takes a data Structure and returns the name of this structure if the Data Structure has a name.

    I use it in my Configure.vi. Configure.VI takes several data structures and saves / loads to an INI file. The name of the section in the INI file is the same as the name of the Data Structure. When loading, Configure.vi takes the name of the data structure to load and locate the Section in the INI file with the same name and then uses the items listed in the INI section to load the Data Structure with the data values.

    In my case, I have 3 sections. Two of the sections, 1 Servo and Servo 2 derive from the same Type definition. I am trying to load 3 of the attached INI file data Structure. The Config.ini in the system file has been generated by the backup function Configure.vi. I'm passing in the routine of the load, 3 Data Structures, each with unique names. I have an explicit call to get the data for Servo 1 Name.vi and 2 Servo. But the probes on the output of the Name.vi of data values get two return to the same 'Servo 1' same string if sensors on the Structure of data entries that clearly indicate them the unique names of the "Servo 1" and "Servo 2" respectively.

    It seems that the 2nd Get data name returns the name of the Data Structure 1 by mistake. If anyone can check this?

    Does anyone know how to fix Get Data Name.vi so that it returns the appropriate data Structure names?

    Thank you.

    I was able to reproduce it and I show here as an oddity to force entry to the variant on the primitive flat string Variant.

    Basically, if you have more than one cluster with content command to match the type and order wired directly to this function, it returns the flattened string which is first to each call.  The wires must be wired without before converting to alternative, if you have points of constraint.

    This only happens if you feed directly the input varying both and get the stress points.  If you are using a variant is not the case.

    I found that this occurs if the cluster is of type defined, and it does not occur for constants.  I didn't try other controls.  I'll be honest, I'm usually used to constrain to the Variant.  I'll be more careful in the future!

    ----

    so convert to first variant will solve your problem.  In addition, if you leave the entry of the section name of the variant config openG write screw unwired, he will take the name as it is the research of the control, you did, so you need not the name of data Get there at all.

    An excerpt from 2009.  as - is equal to true.  The bunches are each a dbl and a bool, but each FP different controls.

  • Get data from transient attribute to another VO

    Hello

    I created a transitional attribute in a table, how do I get the data in the other table.

    My requirement is

    I have two tables are ministries and officials, Dept_effect_date is a field in the departments, I need this field with data in the original Version used. I created the transitional VO employees with the same name attribute, but can't hw I get data data same Department for emp?

    Sainaba

    You can get the value of the current row in the main table and place it in the secondary table.

    Line curRow = masterVo.getCurrentRow ();

    or if you have a relationship master detail then go into your viewLink and see the name of the accessor here and write your expression like this

    accesorName.attributeName

    to refer to see - ADF tutorial: transient attributes and how to complete the & #8211; Part 1 | Oralublog - Oralution & #039; s Blog

  • Problem PHP/Data Services, creating entry in the database

    Hello

    I use Flash Builder with Flex 4.1 SDK.

    I don't have bproblem to connect to a database, but some commands do not work.

    When I connect to a database by using the wizard in the Data/Services section, I use the link 'click here to generate a sample' to 'configure PHP services' Assistant.

    Flash Builder then creates the basis for my CRUD methods (counting[ServiceName],[ServiceName]to create, delete[ServiceName], count with all[ServiceName], get[ServiceName]ByID).

    Most of the methods of work, but does not have the create method.

    After hours to analyze the code, I noticed that in the file .as [ServiceName] _Super_ of services. [yourservice] package, the create method used another class to transmit its data.

    While most methods use the 'mx.rpc.AsyncToken", use it create "mx.data.ItemReference"class as a return type.

    I changed the method to create so it would use the "mx.rpc.AsyncToken" and I got things market.

    I also commented the following piece of code for thing make it work:

    dmOperation = new mx.data.ManagedOperation ("createUsers", "create");

    dmOperation.parameters = "item";

    _usersRPCDataManager.addManagedOperation (dmOperation);

    I was then able to use the create method.

    I'm sure I'm missing an important part of the knowledge here.

    While some methods use the mx.data.ItemReference, most methods use the mx.rpc.AsyncToken.

    Can someone explain to me what I have to do in order to be on the right track?

    Thank you for your time

    I think that you must call commit() on the service after calling create(). Try it. This should solve the problem.

  • Flex Builder 4 Data Service (PHP) integration

    Hello

    Preface:

    a database of existing MySQL (Bioographies of Artists) has created a form of dataservice

    When I call the functions from the tab "Data Services" of Flash Builder 4 they work flawless. (add, delete, update)

    Assume that the next object of value has been created:

    'Artists_biography '.

    I am now trying to call service through Actionscript as follows:

    var updateObject:Artists_biography = new Artists_biography();
          updateObject.biography_de = contentToSave;
          updateObject.biography_id = biography_id;
          updateObject.artists_id = artist_id;
    updateArtists_biographyResult.token = artistsbiographyService.updateArtists_biography(updateObject);
    

    I get this:

    Error: Could not find the data for the value service: valueObjects::Artists_biography

    I also tried to use the valueObject mxml like this:

    < valueObjects:Artists_biography id = "updateObject" / >

    Even the created forms automatically produce this error

    Any hint why this happens?

    Help * please *.

    Hello

    When the PHP sample is generated from the database, data management is enabled by default on the entity of this service (in your case, it is Artists_biography).

    In this case, the update of "Artists_biography" method only accepts managed server valueObjects.

    There are 2 options if you want to use updateArtists_biography in FormGen

    1. remove the update method in assistant management of the data. Context, click feature and click on "Enable data management" and delete the "update" method

    or

    2. use the result of the getItemById operation. Cast in a valueObject, modify and transmit as an argument to the updateArtists_biography.

    -Rahma

  • Getting data from several tables

    Hello

    I started a few days working with Oracle TopLink, and since yesterday, I came across a problem that I can not find a solution, so I hope that someone will direct me in the right direction with this one... I'm using the tutorial provided by Oracle [http://www.oracle.com/technology/products/ias/toplink/doc/11110/tutorial/index.htm].

    Assuming I want to get the most effective possible , the following data (* only * these data): first_name_of_employee, last_name_of_employee, number_of_phones_of_employee.
    The Employee and phone tables are involved, table phone has an EMP_ID field that points to the field of the employee EMP_ID. How could I get such data for all employees? The first two pieces of data are pretty easy to get, but get one final turned out to be more difficult than I imagined...

    Any help will be most appreciated.

    Thank you
    Vlad

    You can probably use a ReportQuery and Expressions for this query. In TopLink you can do something you can do in JPQL using Expressions, like our support JPQL uses Expressions. To get the number of phones, you can use a count() on the id of the employee's phone with a groupBy to id of the employee. Get back the name and the name can be tricky depending on your database because I think that you can select return values that groupBy, you might try grouping by first and last name as well.

    that is something like:
    The ExpressionBuilder builder = new ExpressionBuilder();
    Query ReportQuery = new ReportQuery (Builder, Employee.class);
    query.addAttribute ("firstName");
    query.addAttribute ("lastName");
    query.addCount (builder.anyOf("phones").get ("id"));
    query.addGrouping ("id");
    query.addGrouping ("firstName");
    query.addGrouping ("lastName");

    ---
    James: http://www.eclipselink.org

  • How to get data from excel

    Hello world

    How can I get data from excel inside my program? I'm using labview 8.2. I have tried to find the solution for this but seems that the solutions are not suitable. Can someone help me? Thank you.

    Hi jieah,

    Inside of the attachment nijams don't you see this?

    read_excel_values. LLB

  • Office toolkit 'excel get data' cannot read anything else of integers?

    I use LabVIEW 2009 and can not get LabVIEW to read non-entiers to a worksheet.  In the attached example, I put a breaktpoint after the new report vi, and and when it hits at this breakpoint I put a number as 1,234 in cell A1, and then continue execution.  But the 'data' outputs always return an integer value.  Even tried to change the format of the output of the data field.  I also tried to replace this with vi (LDM) Excel Get Data in the folder of the Toolbox, but got the same result.

    When I tried the same thing in LabVIEW 8.0 it worked.  No idea what I am doing wrong?  :-)

    Thank you

    -Bill

    Your meter is complete after you have changed the type of indicatpr, then you can get good results.

  • How to read the two columns of data in a file of PDM.

    Hi all

    I am reading two data columns for the 2nd of a PDM file two sheets, as shown below.

    Two columns of data must then be shared so they can be displayed in a xy chart and also apply a linear adjustment VI. I implemented the graph xy and linear adjustment using a txt file (see below), therefore all the outputs work, however this application with a tdms file turns a little more tax.

    So, essentially, that I don't know how read the correct leaf and therefore the columns in the PDM file and then how to produce the graph xy and linear adjustment of the data types produce. Here's my current attempt, which produces several errors of the type of terminal, as well as not being able to select the exact data in the PDM.

    Any help/suggestions/example vi on this asap would be greatly appreciated.

    Thanks in advance,

    Pete

    Also the PDM file viewer. VI helps you easily understand the structure of data files.

  • How to read the two columns of data from the Port series

    Hello

    I'm reading two columns of data from the serial port.

    Example:

    52439 52430

    52440 52437

    52209 52214

    51065 51070

    52206 52390

    I use the serial of Visa service and I can read the first column of data from the serial port, but I can't understand how to read the second column.

    I want to both sets of chart data.

    I enclose my VI.

    Thank you for your help.

    The analysis of string function takes a "Format string" on top (with the right button of the function and choose Help, which explains all the entries).  In particular, you can say 'Give me two numbers separated by a tab' and the output will be two numbers (whole or floating, depending on the chosen format).  In particular, %d\t%d specifies a decimal integer, , whole decimal.

  • Y510 unable to get data from the camera.

    Hello

    I have a Y510 with Windows Vista 32 bit, 3 GB RAM, only 5 weeks. I get this message when I try to use Veriface, "unable to get data from the camera. The camera may have been disconnected or busy. I reinstalled Vista of the State in which the laptop came, but it does not work. I also updated the bios and install other updates were available. I would appreciate any advice.

    Thank you

    Peter

    I wish it was as easy as press Fn + Esc, I looked through an another Y510 our office and managed to find a process that must be set to Auto, the process is KtmRm. This process cannot be disabled, handicapped, or on a time delay, it must be AUTOMATIC.

  • get date and time seconds

    I am using get date time in seconds, the function to send the date and time to a sub vi where I can use it to calculate the time difference in timestamps of waveform and the hour when he began to get the time in seconds. So I wanted to know if I pass this value to a sub - vi will be this value constantly updated in the sub - vi or it will remain constant until the sub - vi is finished.

    Yes it will remain constant because the time was read only once, to hand.  Any value is passed to the Subvi remains the same.  If you want once updated, you must put the function get Date/time inside the Subvi.

Maybe you are looking for

  • File PDF not opening not in Firefox

    Here is my site: http://www.naaip.org/ I have a lot of PDF files there which worked fine before, but since a few days, Firefox is not able to open. It starts loading stops. Here are few of them: http://www.naaip.org/Gerber.PDF http://www.naaip.org/fo

  • Unable to connect to Server error-1 HP 6510

    When I initially installed printer I was able to access the applications, now all I get is an error code that says that I can not connect to Server error - 1.  Is there any solution for this?

  • Impression on Deskjet 2544

    Hello I just bought a Deskjet 2544 and are unable to print on the project.  I can't find it in the advanced settings. I can find levels of gray, but this does not remain on after I chose it. Is gray and the project of the same thing? Can someone tell

  • When you connect USB device, explore crash in Vista

    I have a slow USB device, with some of the big files on it. When I plug in and go on the drive in Explorer, the little light on the device starts flashing like crazy, and explore stops for a minute. There is a 12 MB file there, which takes about a mi

  • Cordova/Phonegap for WebSQL Storage API does not not on BB10

    I use the API of storage for WebSQL to Phonegap with BB10 but his does not work. And not able to see the logs in the web Inspector. I have test code on system Z10 bb OS 10.2. And cordova 3.1. Is there a sdcard is required in the device? Currently, th