[flexcoders] Grid/renderer with AS

2012-07-26 Thread Davidson, Jerry
I realize it will be several hours before this appears, but as I'm not having 
much luck it will probably appear before I find the answer.

I have an advancedatagrid that has a column with a check box item renderer.  
When it is clicked, the event is triggered, but I'm not sure how to address the 
box such that if it is unchecked, return.  If you could, the same issue with a 
button.  The user hasn't decided which he likes better yet.


Jerry Davidson
Illinois DHS/MIS/
Client Systems/Update Unit
(217) 558-2194
jerry.david...@illinois.gov



[flexcoders] Question for Flex Builder 3.0.2 installation?

2012-07-26 Thread markflex2007
Hi Sir/Madam,

May I install Flex Builder 3.0.2 and Flex Builder plugin 3.0.2 in same 
computer? Do they affect each other.

Thanks for your help.

Mark



Re: [flexcoders] Grid/renderer with AS

2012-07-26 Thread Alex Harui
Usually, the checkbox changes some property in the dataprovider.  Your code can 
check the value of that property.


On 7/26/12 5:49 AM, Davidson, Jerry jerry.david...@illinois.gov wrote:






I realize it will be several hours before this appears, but as I’m not having 
much luck it will probably appear before I find the answer.

I have an advancedatagrid that has a column with a check box item renderer.  
When it is clicked, the event is triggered, but I’m not sure how to address the 
box such that if it is unchecked, return.  If you could, the same issue with a 
button.  The user hasn’t decided which he likes better yet.


Jerry Davidson
Illinois DHS/MIS/
Client Systems/Update Unit
(217) 558-2194
jerry.david...@illinois.gov






--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


[flexcoders] Re: Mate app, how to re-bind data to UI

2012-07-26 Thread theinvincible83
Nolan,

I guess its a binding issue that you are facing. An easy workaround would be to 
just reload the webpage once the user logs out, you can use the following 
snippet to reload the page, let me know if that works:

private function reloadpage():void
{
if(ExternalInterface.available)

ExternalInterface.call(NavigationControl,stop); 
var ref:URLRequest = new 
URLRequest(javascript:location.reload(true));
navigateToURL(ref, _self);
}

--- In flexcoders@yahoogroups.com, Nolan Erck nolan.erck@... wrote:

 Hi All,
 
 I inherited a Mate app from a previous developer and have been tasked with
 fixing a few bugs.  I'm new to Mate, I've hit a roadblock, and could use
 some help...
 
 The app I have works about like so:
 
 1. User logs in, credentials are verified, standard stuff
 2. The app then queries the server-side database for -only- the records
 specific to this user
 3. Records are then saved to the local SQL Lite database for later use
 4. In the MainEventMap file I have code that looks about like so:
 
 EventHandlers type={FlexEvent.PREINITIALIZE}
 ObjectBuilder generator={SafetyMeetingManager}
 constructorArguments={[scope.dispatcher,LOCAL_DB]}  /
 ObjectBuilder generator={SafetyMeetingDetailManager}
 constructorArguments={[scope.dispatcher,LOCAL_DB]}  /
 ObjectBuilder generator={SafetyDrillManager}
 constructorArguments={[scope.dispatcher,LOCAL_DB]}  /
 /EventHandlers
 
 EventHandlers type={NavigationEvent.CORRECTIVEACTIONLIST}
 MethodInvoker
 generator={CorrectiveActionManager}
 method=loadList
 arguments={event} /
 MethodInvoker
 generator={CorrectiveActionDetailManager}
 method=initDetail /
 /EventHandlers
 
 ...you get the idea. That all works however, I'm running into a bug when
 the first user logs OUT, then a new user logs in.  When that 2nd user logs
 in, the steps 1 - 4 above should run again, and I should see User #2's
 data in the app.  While User #2's data is indeed making it into the SQL
 Lite database, the screens in the app are still bound to User #1's data! So
 it's displaying the wrong information.  (If I have the user shut down the
 app entirely, then restart it, things work fine.)
 
 Does that make sense? Anyone have suggestions how to force the screens to
 invalidate, and re-bind themselves to the correct data?
 
 Thanks,
 Nolan