This content has been marked as final. Show 2 replies
"henrihoffmann" <email@example.com> wrote in message
> have a app with many datagrids and some popups, because of very long data.
> Some fields a defined in the database with "not null", so I need to insure
> this fields are filled with
> <datagrid itemeditend="check()">.
> The itemrenderer for the datagridcolumn is defined as:
> <mx:Text xmlns:mx=" http://www.adobe.com/2006/mxml"
> implements="mx.controls.listClasses.IDropInListItemRenderer" ...
> I tried a couple of days to
> to pass the changed to to the check() routine, but without success. In the
> check() routine, I currently pickup the changed data with:
> var newValue:String =
> result: null exception.
> How to do this right? I tested almost any available sample, but the
> routine is unable to get the changed data.
> Thanks a lot
I think it might be easier to approach it from the other end. When you
instantiate the objects that are being passed to the DataGrid, just make
sure that property is not null to begin with. And you can also do it on the
back end side, by converting any nulls to empty strings or zeroes or
whatever makes sense.
Thanks a lot for this tip.
But what's the right way, at a database backed datagrid, to post the ITEM_EDIT_END event in a itemrenderer? In the generated AS (build application from database) , the database update trigger is this event, so I assume, there must be some official way to trigger this event with the correct data structure, because I have the same problem in the AS to get the data. I have a lot of sql relational things between tables and have to make sure, that the data are valid, to avoid minus sql codes from the database.