Problem Module/datagrid, one time with data, one time is null

Hello All
thanks for this discussion place, i have a problem in Flash Builder 4.6 (sdk 4.6.0), construct an application who connect to DB, for now, the CRUD works fine with flex service,
i have a problem with a datagrid, one time it's worked fine, and another time my obj is null, i cannot understand why.. the fact it's work one time trouble me.. and i have no error in console..
the target, is to edit a row of datagrid in popup, it's work as you stay in the ModuleClient, but when i launch another Module and come back to ModuleClient, the edit datagrid doesn't work anymore
i try to put the process here, as the app is large: (say to me if you want more code, i will try to isolate some pieces)
- click in ModuleMenu and load ModuleClient in ModuleContent
- dataGrid populate with ArrayCollection
- double click row in dataGrid (dataGrid_doubleClickHandler(event:MouseEvent))
- dataGridClients.selectedItem contains effective data
- push data to ValueObject (ClientObj) already defined in flex services/connected to DB
          var ClientDataGrid:ClientObj = dataGridClients.selectedItem as ClientObj;
- push data ClientDataGrid to Popup
          in Popup: <valueObjects:ClientObj id="clientObj"/>
- works fine
if i select another Module in ModuleMenu, and later relaunch ModuleClient
- dataGrid populate with ArrayCollection
- double click row in dataGrid
- dataGridClients.selectedItem contains effective data
- push data to ValueObject (ClientObj) already defined in flex services/connected to DB
          var ClientDataGrid:ClientObj = dataGridClients.selectedItem as ClientObj;
- ClientDataGrid is null
- cannot push data ClientDataGrid to Popup as ClientDataGrid is null
- doesn’t work
<s:DataGrid id="dataGridClients" left="0" right="230" top="66" bottom="10"
creationComplete="dataGrid_creationCompleteHandler(event)"
dataProvider="{clientListeSimpleResult.lastResult}"
doubleClick="dataGrid_doubleClickHandler(event)" doubleClickEnabled="true"
alternatingRowColors="[#FFFFFF, #f4f3f2]">
Thanks in advance for any advices/ideas
i think i make misunderstood of something, im not a flex/flash as3 coder
so any help would be greatly appreciated
best regards anyway

thanks Alex for your link, i read it carrefully, i have to study some thing imo
but, i don't find solution for now, otherwise, i found a strangely similar problem here : it's seem to be the same problem as i have :
https://issues.apache.org/jira/browse/FLEX-18680 [After Module reload dataGrid.selectedItem as MyClass NOT WORKING]
do you think i encounter a bug?
(i will try to isolate some code to test more)
thanks again for advices/ideas

Similar Messages

  • How to judge if one string is  date or  time

    hi everyone,
    how to get to check if one string means date or time? Any sugestion is appreciated.
    Julian

    Hi julian ,
    just give the example for a string how u are storing the formats for date and time in ur system ,
    i mean what is the length of the date field and time field in ur text format
    will it be same ,,if so give us a value (or a set of values )to work on a specific logic
    cause system takes 8 chars for date field and 6 chars for time field ,,
    also ur requirement is asking for a date or time check on a specific string ,
    but i cant put the same string for two fields check ...
    if that is the scenario y dont u put
    field string
    DXXXXXX,
    TXXXXXX,
    DXXXXXX,
    DXXXXXX,
    TXXXXXX,
    this way ..
    differentiate with a tag
    field string+0(1) = 'D', --->DATE FIELD
    ELSE                         TIME FIELD.
    regards,
    vijay
    data date type d value '20061014'.
    DATA TIME TYPE T VALUE '154633'.
    WRITE (8) TIME USING EDIT MASK '__:__:__'.  "Output: 15:46:33
    write (10) date using edit mask '__/__/____'.
    write  time using edit mask '______'.
    *my logic is system uses internally 8 chars for date field and 6 chars
    *for time field

  • Adding fields with data type "TIMS" to the BP transaction

    hi all,
      This  is Anil regarding the addition of fields to the BP transaction.
    here my problem is for BP transaction I could not find any BADI or screen exit  to add the fields. Even EEWB tool does not allow us to cretate the fields with data type "TIMS". so could you please suggest any other way to add these fields to BP?
    when I enter the values to the time fields in BP transaction, they must reflect in
    BUT000 table also?
    Regards,
    Anil .

    In the physical layer, Column Properties change the data type to int.
    If still problem exists, In the Business Model, write a case statement like
    case when column1=1 then 1 end
    and apply count aggregation on the new calculated column,add the column to presentation table, use that new calculated column for report.
    - Madan

  • Photoshop on more than one computer with my one subscription price?

    I have a monthly subscription for Photoshop CS6.  Am I able to download and use Photoshop on more than one computer with my one subscription price?

    Also, I have no registered products.  I thought my CS6 would have shown up s a registered product.  Is this why I cannot find a serial number?  I apologize for dragging this on but I simply can't figure this one out.
    Also, I read that adobe is no longer updating CS6.  And on the Creative Cloud app it doesn't even give the option to download CS6 as a trial.  It only offers CC to trial.  Should I be doing that?
    Thank you again.

  • How to check the current time with a Stored  time in string format

    Hi All
    I would like to compare the system time with an existing time values which is allready there in String format..
    i mean i would like to check if the SysTime is inbetween 6:30 and 14:00
    I accomplished this in Oracle ..
    Select 'Y' from dual where to_date(to_char(sysdate,'HH24:MI '),'HH24:MI') between to_date('06:30','HH24:MI') and to_date('14:00','HH24:MI')
    But instead of checking the DB each and every time , the perfomance would be better if we can do this in our java code..
    Could some one provide me with a code to accomplish the above scenario..
    Thanks in advance..,.,

    import java.util.Calendar;
    Calendar rightNow = Calendar.getInstance();  // gets the current date and time to millisec
    Calendar earlyTime = Calendar.getInstance().set(Calendar.HOUR_OF_DAY, 6).set(Calendar.MINUTE, 30);
    Calendar lateTime = Calendar.getInstance().set(Calendar.HOUR_OF_DAY, 8).set(Calendar.MINUTE, 0);
    if (rightNow.compareTo(earlyTime)> 0 && rightNow.compareTo(lateTime) < 0){
    // do something
    }Try this.

  • Problem with date and time syncing itouch to macbook

    i have a problem with the date and time on ical when i sync my itouch4 w my macbookair. whatever i entered into my calendar in itouch will appear different in my ical( with a 6 hrs advance difference) and the alarm i set on my itouch in the calendar doesnt ring at the right time as set even though it is shown the time that i wanted.
    Both my macbook n itouch are set to the same time zone and i have checked this many many times n the time is the same on both machine. but i just dont understand why is there a time difference when synced and my alarm just dont sound at the time it was supposedly set. it rings hours later n showing a different time that it was set but in the parenthesis the right time that i had set it.
    One time my computer ran out of battery n went into sleep mode and when i open it again, the time n date setting was all off. which im surprised why it had gone off. So did this create the problem i have now with the date n time sync or something else?
    please help!!!!

    Having the same problem, & am running Parallels (which I haven't used for some time) not boot camp. I tick the box labeled "Set time automatically" & lock the "click the lock to make changes". When I reboot, the Lock is unlocked and the "set time...." is unticked. Any ideas. Cheers.

  • As I open my computer, there's a notification telling me to allow these files for a connection, which are very unsual for my mac. I allowed one and my date and time reset to january 1 of 2001. It caused my internet connection to stop working properly.

    Please help me figure out what causes my internet connection and airport extreme run erratically.  It occurred twice already and my only solution is to reset the date and time, and restart my macbook pro. after that, everything seems to work perfectly again. This is only problem that my macbook pro encountered for two years. Thanks!

    Try what Terence Devlin posted in this topic:
    Terence Devlin
    Apr 14, 2015 11:21 AM
    Re: Is Iphoto gone ? i want it back!
    in response to Johannes666
    Recommended
    Go to the App Store and check out the Purchases List. If iPhoto is there then it will be v9.6.1
    If it is there, then drag your existing iPhoto app (not the library, just the app) to the trash
    Install the App from the App Store.
    Sometimes iPhoto is not visible on the Purchases List. it may be hidden. See this article for details on how to unhide it.
    http://support.apple.com/kb/HT4928
    One question often asked: Will I lose my Photos if I reinstall?
    iPhoto the application and the iPhoto Library are two different parts of the iPhoto programme. So, reinstalling the app should not affect the Library. BUT you should always have a back up before doing this kind of work. Always.

  • Problem with date and time preference

    hi there,
    i set my date and time and the time support yesterday and then i click the lock button to prevent further chance and last night i shut down my iMac, open it again in the morning the lock open back up and the timezone support change.
    i redo that again and restart my iMac the same thing happen. is this a problem with my software or everyone have this problem?
    any idea what should i do?
    thanks in advance
    regards AL

    Having the same problem, & am running Parallels (which I haven't used for some time) not boot camp. I tick the box labeled "Set time automatically" & lock the "click the lock to make changes". When I reboot, the Lock is unlocked and the "set time...." is unticked. Any ideas. Cheers.

  • Different Effective Date in One BOM with only ONE Change Number

    Hi gurus
    here is my complete question?
    Is it possible to realize this function that Different Effective Date in One BOM for different BOM items with only ONE Change Number?
    Thanks for your information/help in advance.

    Dear Zhao,
    Using One change number it's not possible to define a different valid from date for the BOM changes of a single material BOM.
    In case if the same change number is used for making different material's BOM component,then a different valid from date for
    each BOM can be defined,but at any given point not for each component/item level of the same BOM.
    Check and revert back.
    Regards
    Mangalraj.S

  • Table - populate one table with data from the list of another table

    Hello All,
    I am a newbie in Swing and am a book and few tutorials old.
    I am trying to achieve the following:
    (1) I populate Table1 (a JTable) with a list of data - each row consists of several columns. And I have a Table2 (also JTable) that is in the beginning empty.
    Both the tables (Table1 and Table2) are showed in the window.
    (2) Lets say, there's a button (JButton) in between the two tables.
    Now if I Select a row from Table1 and press the button, this row will be sent/copied to Table2.
    And this way I can choose different rows and pass the data to Table2.
    I have manages to make Table1 and put data in it ... but for the rest, I don't know where and how to begin.
    Would appreciate some ideas and tips.
    Thank you.

    Since you are using a button to start the copy process you don't need to worry about a ListSelectionListener or a MouseListener. You need to create a button with an ActionListener that does the following:
    a) Create an Array based on the size of the number of columns in the table
    b) get the index of the selected row
    c) populate the Array with data from the TableModel by using the table.getModel().getValueAt(...) method for each
    d) Now you can add the row of data to the other JTable by updating its model.
    DefaultTableModel model2 = (DefaultTableModel)table2.getMode();
    model.addRow( theArray );

  • Is any one familiar with Data Backup by Prosoft?

    Hi! Just me again. I wonder if anyone out there is familiar with Data Backup by Prosoft? It's a backup (obviously) programme for Mac OSX. I came across it today while surfing through the software section of Amazon's website.

    Hi, yes I am using Data Backup to backup multiple servers onto an Xraid. What do you want to know about it?
    Cheers,
    Tim

  • When I create a calendar, in iphoto 8, I had an information pane lower left corner with date and time of the picture. Can it possibly be that the iphoto developers forgot about that in iphoto 9? This was very helpful when placing images according to date.

    Today I updated to the latest iphoto version. The update itself went smooth and nice as one is used to from Apple. But when I wanted to finish my already started calendar, I have encountered two problems. The first is that I can't view the aperture library anymore directly from iphoto. Instead I have to open the iphtoto library in aperture but then my calendar isn't there. So now I have to copy images back and forth. No problem.
    However, the old iphoto had a small information area in the lower left corner which was very nice to place images on an exact date. This seems to be gone...?? Really? How am I supposed to sort images according to date and time when I have to back to the library view every time? That's not very convenient..Or am I missing something?
    Thanks for ANY help!
    Patrick

    The first is that I can't view the aperture library anymore directly from iphoto.
    THat is exceeding strange since iPhoto '08 could not open or share an Aperture library - that ability was first introduced in iPhoto '11 - with the latest version of iPhoto and or Aperture you can open the same library with either application - http://support.apple.com/kb/HT5043
    In the current version of iPhoto the photos are sorted by date in the film strip - I've not recently done a calendar so do not remember the specifics -
    LN

  • Unable to empty trash with data from Time Machine Drive

    Hi there,
    Cause of the current issue:
    I am hoping the experts can help me with this one. I have an external hard drive which is used for my Time Machine Backups. Recently there has been an error on the backup to this drive on occasion. This error only occurs when the system does the back up, and appears only periodically, never when I do the back up manually. One of the threads I read to solve this issue is to delete some older backup files from your time machine drive, and all is good. This worked for awhile.... but now a new problem:
    New Problem:
    I have been able to empty all of the trash save one particular set of folders. So the trash always appears with content.
    The structure of the trash content appears as such...
    Macintosh HD
    +-Users
    +--<username>
    +---Library
    +----FK6T0KGc9y4KBB <-- This changes each time I try to empty the trash.
    The library folder always has the time/date of the last time I tried to empty the trash.
    What I have tried:
    1. I have tried to empty the trash Securely. No good.
    2. I have tried the terminal command : sudo rm -rf ~/.Trash with no success
    3. I have tried this terminal command : sudo rm -rf ~/.Trash/* with no success
    4. I have tried just plain old Empty Trash. But I get the message "This operation cannot be completed because the item 'FK6T0KGc9y4KBB' is in use.
    Any thoughts, recommendations?

    Hey thanks for the help anyway VK.
    I tried that command and no go either.
    Last login: Fri Jul 25 08:13:39 on console
    iMac:~ tmlohnes$ sudo rm -rf /Volumes/Time\ Machine\ Backups/.Trashes/501/*
    Password:
    rm: /Volumes/Time Machine Backups/.Trashes/501/2008-03-28-160634/Macintosh HD/Users/tmlohnes/Library/8xMlmPGUHzilET: Directory not empty
    rm: /Volumes/Time Machine Backups/.Trashes/501/2008-03-28-160634/Macintosh HD/Users/tmlohnes/Library: Directory not empty
    rm: /Volumes/Time Machine Backups/.Trashes/501/2008-03-28-160634/Macintosh HD/Users/tmlohnes: Directory not empty
    rm: /Volumes/Time Machine Backups/.Trashes/501/2008-03-28-160634/Macintosh HD/Users: Directory not empty
    rm: /Volumes/Time Machine Backups/.Trashes/501/2008-03-28-160634/Macintosh HD: Directory not empty
    rm: /Volumes/Time Machine Backups/.Trashes/501/2008-03-28-160634: Directory not empty
    iMac:~ tmlohnes$
    I am wondering, would it make sense to try this same command if I were to do a safe boot?
    What about formatting the external hard drive and starting fresh?

  • CRYSTAL REPORT GRAPH WITH DATE AND TIME

    Post Author: Dino Dentone
    CA Forum: Charts and Graphs
    Dear forum,
    I am developing a Visual Studio .net 2005 Windows Form,i have a sql table with 2 field:1) DATA (date and time)2) Temperatura (numeric)I have to make a line graph with numeric data axes.I have insert two parameters' to customize the filtering, so i can have a graph of the temperature between to date and time.If i choose two date's and time (parameters) like 20/04/2008 00:00:00 trought 20/05/2008 00:00:00 i have no problemBut if a choose a range minor of 1 day (some hours like from 15/05/2008 00:00:00 trought 15/05/2008 08:00:00) i have no graph.It sound like it don't use the time values?Thank's for the Help.

    There is some debugging info on the website. I've had problems getting the text to work. It was generally that I installed either the wrong 'version' of ImageMagick (the recommended one works for me--I'm running Vista x64 and one time installed the x64 version and it didn't work). I also installed Ghostscript to get the font list to work correctly. At one time I installed the x64 version of Ghostscript and it didn't work with the plug-in, either.
    I installed two items:
    ImageMagick: ImageMagick-6.4.9-3-Q16-windows-dll.exe
    Ghostscript: gs863w32.exe
    I don't know if it is necessary but I also added the fonts from
    ghostscript-fonts-std-8.11.tar.gz to the c:\Program Files (x86)\gs\fonts directory. Some, none, perhaps all, may already be installed just by installing ghostscript--it has been so long that I don't remember exactly. I do know that the contents of the gs fonts directory contains all the files in the .gz, I just don't remember if I put them there separately or as part of the gs install :)
    You need to make sure the font size is large enough. I usually use about 2-4% of height and export a single photo to make sure I see the text correctly.
    Tim does respond to email when he can so if you can't get it to work you can always drop him a line.

  • Help with Date n time!!

    I am having problems with time and dates.
    I am reading records from the database which is in time format (hh:mm) but when I am reading those records it is giving me this; like:
    <b>10:00 AM in the database would be something like this</b>
    <b>12/31/1899 10:00 AM some junk.</b>
    How would u convert time in the same format I have in the database.
    How would u add time.Please help!!
    My project is at halt b/c of this..

    I am assuming that you have read the link that I've posted but don't understand what it said....So, here is a code snipet that shows you how you can convert the time string and the date-and-time string:
    try {
       SimpleDateFormat df=new SimpleDateFormat("hh:mm a",Locale.getDefault());
       Date date=df.parse("10:00 AM");
       System.out.println(date.getTime());
       df=new SimpleDateFormat("MM/dd/yyyy hh:mm a z",Locale.getDefault());
       date=df.parse("12/31/1999 10:00 AM CST");
       System.out.println(date.getTime());
    } catch (Throwable e) {}Note that date.getTime() returns a long integer representing number of milliseconds (in the case where a date is involved, the number starts at 0 for 1/1/1970 -- a negative number is for a date prior to 1/1/1970). To find seconds, divide date.getTime() by 1000, to find minute, divide by 60000, etc....)
    To answer your other problem, you can subtract one date.getTime() value by another. Unfortunately Java developers didn't see fit to provide classes to do date arithmetic.
    Hope this answer your questions.
    V.V.

Maybe you are looking for

  • Create an IDOC using Txt file

    Hello All, I have recived an   IDOC DATA in TEXT file. would u please help me how to create an idoc using the above text file. Kind Regards, Dev.

  • Sharing A Calendar on My Blackberry

    I am trying to set up a calendar that I can share with my wife (or view multiple calendars simultaneously) -- and use my BB to view our appointments and schedule new ones.  It is not necessary to access real time data -- as long as we can both synch

  • Sat SP10-804: XP Home thinks Control Key stuck down (XP SP2)

    Satellite SP10-804 XP home as installed plus SP2 Occasionally XP thinks that the Ctrl key is stuck down. So it is impossible to log on, Word wants to start in 'Safe Mode' C is always Ctrl-C etc and the only solution I have found so far is a reboot. T

  • MySql connection, URL help

    If my database is stored on my local hard drive so I will use localhost to connect to it. What is the path? Where does localhost dump you into the drive? If my database is stored in c:\mysql\data\kalasys Thanks

  • I can not down my printer and I do not know what is wrong.

    Can you download my printer for me