You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@royale.apache.org by Serkan Taş <se...@likyateknoloji.com> on 2020/03/13 07:13:56 UTC

Single call for data grid

Alex, here is the screen capture of the loading data grid and the exception

https://drive.google.com/open?id=10uAGEa75pBqSqUXLCAyvZsHPc05R7pFt

Thanks,
Serkan


Re: Single call for data grid

Posted by Serkan Taş <se...@likyateknoloji.com>.
I replaced the ones I know and keep in mind for other occurrences.

Thanks Alex.

Serkan.

14.03.2020 19:52 tarihinde Alex Harui yazdı:
>
> Serkan,
>
> The recommended code would be more like:
>
>                                 [Bindable]
>
>                                 public var 
> jobListXmlCollection:XMLListCollection;
>
>                                 protected function 
> group1_creationCompleteHandler(event:FlexEvent):void {
>
> jobListXmlCollection = new XMLListCollection(jobListXml.children());
>
>                                 }
>
> If you initialize an XMLListCollection without any constructor 
> parameter, when you later set it, it has to unset the default, empty, 
> XMLList.
>
> It may not make a huge difference, but I would recommend doing it anyway.
>
> -Alex
>
> *From: *Serkan Taş <se...@likyateknoloji.com>
> *Reply-To: *"users@royale.apache.org" <us...@royale.apache.org>
> *Date: *Friday, March 13, 2020 at 11:00 PM
> *To: *"users@royale.apache.org" <us...@royale.apache.org>, Alex Harui 
> <ah...@adobe.com>
> *Subject: *Re: Single call for data grid
>
> The source for reference : source code 
> <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Flikyateknoloji%2Fpinaraui-royale%2Fblob%2Fmaster%2Fsrc%2Fcom%2Flikya%2Fpinara%2Fcomps%2Fjobdetail%2FJobListWithDetails.mxml&data=02%7C01%7Caharui%40adobe.com%7Cfdfb43483a524608b9f308d7c7dcf7d2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C637197624173578025&sdata=ZxHmPvX7DHVlIk9FonvMVLVOFgaLOxGmj8bfpWZ%2B9BM%3D&reserved=0>
>
> 14.03.2020 08:53 tarihinde Serkan Taş yazdı:
>
>     Actually I made the changes in test code but did not make so much
>     difference. It decreased around 1 secs.
>
>     For the real application things are  a bit different.
>
>     It is declared in the parent component of the grid component :
>
>                 [Bindable]
>                 public var jobListXmlCollection:XMLListCollection =
>     new XMLListCollection();
>
>
>     and assigned value in the parent component in one place :
>
>     in the function below, which is the result of rest call:
>
>     protected function xmlService_resultHandler(event:ResultEvent):void
>
>     jobListXmlCollection.source = jobListXml.children();
>
>
>     I moved the initialization to the line before the assignment
>
>
>     deceleration change to
>         [Bindable]
>                 public var jobListXmlCollection:XMLListCollection
>
>     and assignment ;
>
>             jobListXmlCollection = new XMLListCollection()
>                     jobListXmlCollection.source = jobListXml.children();
>
>
>     but nothing changed in terms of consumed time.
>
>     Serkan
>
>     14.03.2020 07:21 tarihinde Alex Harui yazdı:
>
>         Is this example before or after the suggested optimization for
>         initializing the XMLListCollection?
>
>         -Alex
>
>         *From: *Serkan Taş <se...@likyateknoloji.com>
>         <ma...@likyateknoloji.com>
>         *Reply-To: *"users@royale.apache.org"
>         <ma...@royale.apache.org> <us...@royale.apache.org>
>         <ma...@royale.apache.org>
>         *Date: *Friday, March 13, 2020 at 3:11 PM
>         *To: *"users@royale.apache.org"
>         <ma...@royale.apache.org> <us...@royale.apache.org>
>         <ma...@royale.apache.org>
>         *Subject: *Re: Single call for data grid
>
>         I will check listData issue.
>
>         For the video, you can see that the duration is very long.
>         There is a timestamp top right that you can check.
>
>         What is your opinion ?
>
>         13.03.2020 21:11 tarihinde Alex Harui yazdı:
>
>             I suspect that one or more of your custom item renderers
>             is not yet emulating the listData property.  Comment them
>             all out, and comment them back in until you find the one(s).
>
>             -Alex
>
>             *From: *Serkan Taş <se...@likyateknoloji.com>
>             <ma...@likyateknoloji.com>
>             *Reply-To: *"users@royale.apache.org"
>             <ma...@royale.apache.org> <us...@royale.apache.org>
>             <ma...@royale.apache.org>
>             *Date: *Friday, March 13, 2020 at 12:14 AM
>             *To: *"users@royale.apache.org"
>             <ma...@royale.apache.org> <us...@royale.apache.org>
>             <ma...@royale.apache.org>
>             *Subject: *Single call for data grid
>
>
>             Alex, here is the screen capture of the loading data grid
>             and the exception
>
>             https://drive.google.com/open?id=10uAGEa75pBqSqUXLCAyvZsHPc05R7pFt
>             <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Fopen%3Fid%3D10uAGEa75pBqSqUXLCAyvZsHPc05R7pFt&data=02%7C01%7Caharui%40adobe.com%7Cfdfb43483a524608b9f308d7c7dcf7d2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C637197624173587982&sdata=qW9dcWTtY2eNwGnL4sNcSNKLiRWWoS8uD%2Butxgs%2Bmzk%3D&reserved=0>
>
>             Thanks,
>             Serkan
>
>
>
>
>
>
>
>
>


Re: Single call for data grid

Posted by Alex Harui <ah...@adobe.com>.
Serkan,

The recommended code would be more like:

                                [Bindable]
                                public var jobListXmlCollection:XMLListCollection;

                                protected function group1_creationCompleteHandler(event:FlexEvent):void {
                                                jobListXmlCollection = new XMLListCollection(jobListXml.children());
                                }

If you initialize an XMLListCollection without any constructor parameter, when you later set it, it has to unset the default, empty, XMLList.

It may not make a huge difference, but I would recommend doing it anyway.

-Alex

From: Serkan Taş <se...@likyateknoloji.com>
Reply-To: "users@royale.apache.org" <us...@royale.apache.org>
Date: Friday, March 13, 2020 at 11:00 PM
To: "users@royale.apache.org" <us...@royale.apache.org>, Alex Harui <ah...@adobe.com>
Subject: Re: Single call for data grid

The source for reference : source code<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Flikyateknoloji%2Fpinaraui-royale%2Fblob%2Fmaster%2Fsrc%2Fcom%2Flikya%2Fpinara%2Fcomps%2Fjobdetail%2FJobListWithDetails.mxml&data=02%7C01%7Caharui%40adobe.com%7Cfdfb43483a524608b9f308d7c7dcf7d2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C637197624173578025&sdata=ZxHmPvX7DHVlIk9FonvMVLVOFgaLOxGmj8bfpWZ%2B9BM%3D&reserved=0>
14.03.2020 08:53 tarihinde Serkan Taş yazdı:
Actually I made the changes in test code but did not make so much difference. It decreased around 1 secs.

For the real application things are  a bit different.

It is declared in the parent component of the grid component :

            [Bindable]
            public var jobListXmlCollection:XMLListCollection = new XMLListCollection();


and assigned value in the parent component in one place :

in the function below, which is the result of rest call:

protected function xmlService_resultHandler(event:ResultEvent):void

jobListXmlCollection.source = jobListXml.children();


I moved the initialization to the line before the assignment


deceleration change to
            [Bindable]
            public var jobListXmlCollection:XMLListCollection

and assignment ;

                jobListXmlCollection = new XMLListCollection()
                jobListXmlCollection.source = jobListXml.children();


but nothing changed in terms of consumed time.

Serkan
14.03.2020 07:21 tarihinde Alex Harui yazdı:
Is this example before or after the suggested optimization for initializing the XMLListCollection?

-Alex

From: Serkan Taş <se...@likyateknoloji.com>
Reply-To: "users@royale.apache.org"<ma...@royale.apache.org> <us...@royale.apache.org>
Date: Friday, March 13, 2020 at 3:11 PM
To: "users@royale.apache.org"<ma...@royale.apache.org> <us...@royale.apache.org>
Subject: Re: Single call for data grid

I will check listData issue.

For the video, you can see that the duration is very long. There is a timestamp top right that you can check.

What is your opinion ?
13.03.2020 21:11 tarihinde Alex Harui yazdı:
I suspect that one or more of your custom item renderers is not yet emulating the listData property.  Comment them all out, and comment them back in until you find the one(s).

-Alex

From: Serkan Taş <se...@likyateknoloji.com>
Reply-To: "users@royale.apache.org"<ma...@royale.apache.org> <us...@royale.apache.org>
Date: Friday, March 13, 2020 at 12:14 AM
To: "users@royale.apache.org"<ma...@royale.apache.org> <us...@royale.apache.org>
Subject: Single call for data grid


Alex, here is the screen capture of the loading data grid and the exception

https://drive.google.com/open?id=10uAGEa75pBqSqUXLCAyvZsHPc05R7pFt<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Fopen%3Fid%3D10uAGEa75pBqSqUXLCAyvZsHPc05R7pFt&data=02%7C01%7Caharui%40adobe.com%7Cfdfb43483a524608b9f308d7c7dcf7d2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C637197624173587982&sdata=qW9dcWTtY2eNwGnL4sNcSNKLiRWWoS8uD%2Butxgs%2Bmzk%3D&reserved=0>

Thanks,
Serkan











Re: Single call for data grid

Posted by Serkan Taş <se...@likyateknoloji.com>.
The source for reference : source code 
<https://github.com/likyateknoloji/pinaraui-royale/blob/master/src/com/likya/pinara/comps/jobdetail/JobListWithDetails.mxml>

14.03.2020 08:53 tarihinde Serkan Taş yazdı:
> Actually I made the changes in test code but did not make so much 
> difference. It decreased around 1 secs.
>
> For the real application things are  a bit different.
>
> It is declared in the parent component of the grid component :
>
>             [Bindable]
>             public var jobListXmlCollection:XMLListCollection = new 
> XMLListCollection();
>
>
> and assigned value in the parent component in one place :
>
> in the function below, which is the result of rest call:
>
> protected function xmlService_resultHandler(event:ResultEvent):void
>
> jobListXmlCollection.source = jobListXml.children();
>
>
> I moved the initialization to the line before the assignment
>
>
> deceleration change to
>             [Bindable]
>             public var jobListXmlCollection:XMLListCollection
>
> and assignment ;
>
> jobListXmlCollection = new XMLListCollection()
>                 jobListXmlCollection.source = jobListXml.children();
>
>
> but nothing changed in terms of consumed time.
>
> Serkan
>
> 14.03.2020 07:21 tarihinde Alex Harui yazdı:
>>
>> Is this example before or after the suggested optimization for 
>> initializing the XMLListCollection?
>>
>> -Alex
>>
>> *From: *Serkan Taş <se...@likyateknoloji.com>
>> *Reply-To: *"users@royale.apache.org" <us...@royale.apache.org>
>> *Date: *Friday, March 13, 2020 at 3:11 PM
>> *To: *"users@royale.apache.org" <us...@royale.apache.org>
>> *Subject: *Re: Single call for data grid
>>
>> I will check listData issue.
>>
>> For the video, you can see that the duration is very long. There is a 
>> timestamp top right that you can check.
>>
>> What is your opinion ?
>>
>> 13.03.2020 21:11 tarihinde Alex Harui yazdı:
>>
>>     I suspect that one or more of your custom item renderers is not
>>     yet emulating the listData property.  Comment them all out, and
>>     comment them back in until you find the one(s).
>>
>>     -Alex
>>
>>     *From: *Serkan Taş <se...@likyateknoloji.com>
>>     <ma...@likyateknoloji.com>
>>     *Reply-To: *"users@royale.apache.org"
>>     <ma...@royale.apache.org> <us...@royale.apache.org>
>>     <ma...@royale.apache.org>
>>     *Date: *Friday, March 13, 2020 at 12:14 AM
>>     *To: *"users@royale.apache.org" <ma...@royale.apache.org>
>>     <us...@royale.apache.org> <ma...@royale.apache.org>
>>     *Subject: *Single call for data grid
>>
>>
>>     Alex, here is the screen capture of the loading data grid and the
>>     exception
>>
>>     https://drive.google.com/open?id=10uAGEa75pBqSqUXLCAyvZsHPc05R7pFt
>>     <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Fopen%3Fid%3D10uAGEa75pBqSqUXLCAyvZsHPc05R7pFt&data=02%7C01%7Caharui%40adobe.com%7Ca5161e7ff59d44fbc13808d7c79b88be%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637197343143640778&sdata=oybKxJEko%2FdXc3j0a8IWBBcIiP5hXrtyvFET1lGrf%2BI%3D&reserved=0>
>>
>>     Thanks,
>>     Serkan
>>
>>
>>
>>
>>
>


Re: Single call for data grid

Posted by Serkan Taş <se...@likyateknoloji.com>.
Actually I made the changes in test code but did not make so much 
difference. It decreased around 1 secs.

For the real application things are  a bit different.

It is declared in the parent component of the grid component :

             [Bindable]
             public var jobListXmlCollection:XMLListCollection = new 
XMLListCollection();


and assigned value in the parent component in one place :

in the function below, which is the result of rest call:

protected function xmlService_resultHandler(event:ResultEvent):void

jobListXmlCollection.source = jobListXml.children();


I moved the initialization to the line before the assignment


deceleration change to
             [Bindable]
             public var jobListXmlCollection:XMLListCollection

and assignment ;

jobListXmlCollection = new XMLListCollection()
                 jobListXmlCollection.source = jobListXml.children();


but nothing changed in terms of consumed time.

Serkan

14.03.2020 07:21 tarihinde Alex Harui yazdı:
>
> Is this example before or after the suggested optimization for 
> initializing the XMLListCollection?
>
> -Alex
>
> *From: *Serkan Taş <se...@likyateknoloji.com>
> *Reply-To: *"users@royale.apache.org" <us...@royale.apache.org>
> *Date: *Friday, March 13, 2020 at 3:11 PM
> *To: *"users@royale.apache.org" <us...@royale.apache.org>
> *Subject: *Re: Single call for data grid
>
> I will check listData issue.
>
> For the video, you can see that the duration is very long. There is a 
> timestamp top right that you can check.
>
> What is your opinion ?
>
> 13.03.2020 21:11 tarihinde Alex Harui yazdı:
>
>     I suspect that one or more of your custom item renderers is not
>     yet emulating the listData property.  Comment them all out, and
>     comment them back in until you find the one(s).
>
>     -Alex
>
>     *From: *Serkan Taş <se...@likyateknoloji.com>
>     <ma...@likyateknoloji.com>
>     *Reply-To: *"users@royale.apache.org"
>     <ma...@royale.apache.org> <us...@royale.apache.org>
>     <ma...@royale.apache.org>
>     *Date: *Friday, March 13, 2020 at 12:14 AM
>     *To: *"users@royale.apache.org" <ma...@royale.apache.org>
>     <us...@royale.apache.org> <ma...@royale.apache.org>
>     *Subject: *Single call for data grid
>
>
>     Alex, here is the screen capture of the loading data grid and the
>     exception
>
>     https://drive.google.com/open?id=10uAGEa75pBqSqUXLCAyvZsHPc05R7pFt
>     <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Fopen%3Fid%3D10uAGEa75pBqSqUXLCAyvZsHPc05R7pFt&data=02%7C01%7Caharui%40adobe.com%7Ca5161e7ff59d44fbc13808d7c79b88be%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637197343143640778&sdata=oybKxJEko%2FdXc3j0a8IWBBcIiP5hXrtyvFET1lGrf%2BI%3D&reserved=0>
>
>     Thanks,
>     Serkan
>
>
>
>
>


Re: Single call for data grid

Posted by Alex Harui <ah...@adobe.com>.
Is this example before or after the suggested optimization for initializing the XMLListCollection?

-Alex

From: Serkan Taş <se...@likyateknoloji.com>
Reply-To: "users@royale.apache.org" <us...@royale.apache.org>
Date: Friday, March 13, 2020 at 3:11 PM
To: "users@royale.apache.org" <us...@royale.apache.org>
Subject: Re: Single call for data grid

I will check listData issue.

For the video, you can see that the duration is very long. There is a timestamp top right that you can check.

What is your opinion ?
13.03.2020 21:11 tarihinde Alex Harui yazdı:
I suspect that one or more of your custom item renderers is not yet emulating the listData property.  Comment them all out, and comment them back in until you find the one(s).

-Alex

From: Serkan Taş <se...@likyateknoloji.com>
Reply-To: "users@royale.apache.org"<ma...@royale.apache.org> <us...@royale.apache.org>
Date: Friday, March 13, 2020 at 12:14 AM
To: "users@royale.apache.org"<ma...@royale.apache.org> <us...@royale.apache.org>
Subject: Single call for data grid


Alex, here is the screen capture of the loading data grid and the exception

https://drive.google.com/open?id=10uAGEa75pBqSqUXLCAyvZsHPc05R7pFt<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Fopen%3Fid%3D10uAGEa75pBqSqUXLCAyvZsHPc05R7pFt&data=02%7C01%7Caharui%40adobe.com%7Ca5161e7ff59d44fbc13808d7c79b88be%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637197343143640778&sdata=oybKxJEko%2FdXc3j0a8IWBBcIiP5hXrtyvFET1lGrf%2BI%3D&reserved=0>

Thanks,
Serkan






Re: Single call for data grid

Posted by Serkan Taş <se...@likyateknoloji.com>.
I will check listData issue.

For the video, you can see that the duration is very long. There is a 
timestamp top right that you can check.

What is your opinion ?

13.03.2020 21:11 tarihinde Alex Harui yazdı:
>
> I suspect that one or more of your custom item renderers is not yet 
> emulating the listData property. Comment them all out, and comment 
> them back in until you find the one(s).
>
> -Alex
>
> *From: *Serkan Taş <se...@likyateknoloji.com>
> *Reply-To: *"users@royale.apache.org" <us...@royale.apache.org>
> *Date: *Friday, March 13, 2020 at 12:14 AM
> *To: *"users@royale.apache.org" <us...@royale.apache.org>
> *Subject: *Single call for data grid
>
>
> Alex, here is the screen capture of the loading data grid and the 
> exception
>
> https://drive.google.com/open?id=10uAGEa75pBqSqUXLCAyvZsHPc05R7pFt 
> <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Fopen%3Fid%3D10uAGEa75pBqSqUXLCAyvZsHPc05R7pFt&data=02%7C01%7Caharui%40adobe.com%7Cf02745a3451544363ed908d7c71e21ef%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637196804544958057&sdata=ks4XXXzUS8058DTi1GfAkz%2F8OElx6j2jU2vjbxcK5AI%3D&reserved=0>
>
> Thanks,
> Serkan
>
>


Re: Single call for data grid

Posted by Alex Harui <ah...@adobe.com>.
I suspect that one or more of your custom item renderers is not yet emulating the listData property.  Comment them all out, and comment them back in until you find the one(s).

-Alex

From: Serkan Taş <se...@likyateknoloji.com>
Reply-To: "users@royale.apache.org" <us...@royale.apache.org>
Date: Friday, March 13, 2020 at 12:14 AM
To: "users@royale.apache.org" <us...@royale.apache.org>
Subject: Single call for data grid


Alex, here is the screen capture of the loading data grid and the exception

https://drive.google.com/open?id=10uAGEa75pBqSqUXLCAyvZsHPc05R7pFt<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Fopen%3Fid%3D10uAGEa75pBqSqUXLCAyvZsHPc05R7pFt&data=02%7C01%7Caharui%40adobe.com%7Cf02745a3451544363ed908d7c71e21ef%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637196804544958057&sdata=ks4XXXzUS8058DTi1GfAkz%2F8OElx6j2jU2vjbxcK5AI%3D&reserved=0>

Thanks,
Serkan