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 <se...@likyateknoloji.com> on 2020/06/08 15:10:46 UTC
image component visibility evaluation
Hi,
I have an image component as below:
<s:Image id="startJob" source="images/startJob.jpg"
toolTip="{resourceManager.getString('messages', 'startJobTooltip')}"
width="23" height="23"
includeInLayout="{data.visualParams.commandabilityParams.isStartable
== true}" buttonMode="true"
visible="{data.visualParams.commandabilityParams.isStartable == true}"
click="executeJobCommand(event, data.@Id, data.@Id)" />
For he issue #819 it looks like it is working but not the same for the
real app. I need to debug an inspect the value of
"data.visualParams.commandabilityParams.isStartable" for the image
component
to check the value of
"visible="{data.visualParams.commandabilityParams.isStartable == true}"
Where are the values evaluated ofr a component ?
Thanks,
Serkan
Re: image component visibility evaluation
Posted by serkan <se...@likyateknoloji.com>.
May be looking at the wrong method.
I should check again.
Thanks
8.06.2020 23:42 tarihinde Alex Harui yazdı:
>
> You might see null for data during initialization but eventually you
> should see non-null.
>
> *From: *serkan <se...@likyateknoloji.com>
> *Date: *Monday, June 8, 2020 at 1:28 PM
> *To: *"users@royale.apache.org" <us...@royale.apache.org>, Alex Harui
> <ah...@adobe.com>
> *Subject: *Re: image component visibility evaluation
>
> I tried set methods of the components but surprisingly data is always
> is null but still the logic works.
>
> 8.06.2020 19:09 tarihinde Alex Harui yazdı:
>
> They are evaluated by PropertyWatchers, but it is tricky to setup
> breakpoints for them and probably not necessary. The first step
> is to get rid of the warnings as you asked on another thread.
> Once the warnings are gone, the PropertyWatchers will likely be
> doing the right thing. Then make sure the values are being set
> properly in the renderer itself by setting breakpoints in the
> renderer and other data objects in the expression. Setters
> transpile to set__foo methods.
>
> HTH,
>
> -Alex
>
> *From: *serkan <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: *Monday, June 8, 2020 at 8:11 AM
> *To: *"users@royale.apache.org" <ma...@royale.apache.org>
> <us...@royale.apache.org> <ma...@royale.apache.org>
> *Subject: *image component visibility evaluation
>
> Hi,
>
> I have an image component as below:
>
> <s:Image id="startJob" source="images/startJob.jpg"
> toolTip="{resourceManager.getString('messages',
> 'startJobTooltip')}" width="23" height="23"
> includeInLayout="{data.visualParams.commandabilityParams.isStartable
> == true}" buttonMode="true"
> visible="{data.visualParams.commandabilityParams.isStartable ==
> true}"
> click="executeJobCommand(event, data.@Id, data.@Id)" />
>
>
> For he issue #819 it looks like it is working but not the same for
> the real app. I need to debug an inspect the value of
> "data.visualParams.commandabilityParams.isStartable" for the image
> component
>
> to check the value of
> "visible="{data.visualParams.commandabilityParams.isStartable ==
> true}"
>
> Where are the values evaluated ofr a component ?
>
> Thanks,
> Serkan
>
>
>
>
Re: image component visibility evaluation
Posted by Alex Harui <ah...@adobe.com>.
You might see null for data during initialization but eventually you should see non-null.
From: serkan <se...@likyateknoloji.com>
Date: Monday, June 8, 2020 at 1:28 PM
To: "users@royale.apache.org" <us...@royale.apache.org>, Alex Harui <ah...@adobe.com>
Subject: Re: image component visibility evaluation
I tried set methods of the components but surprisingly data is always is null but still the logic works.
8.06.2020 19:09 tarihinde Alex Harui yazdı:
They are evaluated by PropertyWatchers, but it is tricky to setup breakpoints for them and probably not necessary. The first step is to get rid of the warnings as you asked on another thread. Once the warnings are gone, the PropertyWatchers will likely be doing the right thing. Then make sure the values are being set properly in the renderer itself by setting breakpoints in the renderer and other data objects in the expression. Setters transpile to set__foo methods.
HTH,
-Alex
From: serkan <se...@likyateknoloji.com>
Reply-To: "users@royale.apache.org"<ma...@royale.apache.org> <us...@royale.apache.org>
Date: Monday, June 8, 2020 at 8:11 AM
To: "users@royale.apache.org"<ma...@royale.apache.org> <us...@royale.apache.org>
Subject: image component visibility evaluation
Hi,
I have an image component as below:
<s:Image id="startJob" source="images/startJob.jpg" toolTip="{resourceManager.getString('messages', 'startJobTooltip')}" width="23" height="23"
includeInLayout="{data.visualParams.commandabilityParams.isStartable == true}" buttonMode="true"
visible="{data.visualParams.commandabilityParams.isStartable == true}"
click="executeJobCommand(event, data.@Id, data.@Id)" />
For he issue #819 it looks like it is working but not the same for the real app. I need to debug an inspect the value of "data.visualParams.commandabilityParams.isStartable" for the image component
to check the value of "visible="{data.visualParams.commandabilityParams.isStartable == true}"
Where are the values evaluated ofr a component ?
Thanks,
Serkan
Re: image component visibility evaluation
Posted by serkan <se...@likyateknoloji.com>.
I tried set methods of the components but surprisingly data is always is
null but still the logic works.
8.06.2020 19:09 tarihinde Alex Harui yazdı:
>
> They are evaluated by PropertyWatchers, but it is tricky to setup
> breakpoints for them and probably not necessary. The first step is to
> get rid of the warnings as you asked on another thread. Once the
> warnings are gone, the PropertyWatchers will likely be doing the right
> thing. Then make sure the values are being set properly in the
> renderer itself by setting breakpoints in the renderer and other data
> objects in the expression. Setters transpile to set__foo methods.
>
> HTH,
>
> -Alex
>
> *From: *serkan <se...@likyateknoloji.com>
> *Reply-To: *"users@royale.apache.org" <us...@royale.apache.org>
> *Date: *Monday, June 8, 2020 at 8:11 AM
> *To: *"users@royale.apache.org" <us...@royale.apache.org>
> *Subject: *image component visibility evaluation
>
> Hi,
>
> I have an image component as below:
>
> <s:Image id="startJob" source="images/startJob.jpg"
> toolTip="{resourceManager.getString('messages', 'startJobTooltip')}"
> width="23" height="23"
> includeInLayout="{data.visualParams.commandabilityParams.isStartable
> == true}" buttonMode="true"
> visible="{data.visualParams.commandabilityParams.isStartable == true}"
> click="executeJobCommand(event, data.@Id, data.@Id)" />
>
>
> For he issue #819 it looks like it is working but not the same for the
> real app. I need to debug an inspect the value of
> "data.visualParams.commandabilityParams.isStartable" for the image
> component
>
> to check the value of
> "visible="{data.visualParams.commandabilityParams.isStartable == true}"
>
> Where are the values evaluated ofr a component ?
>
> Thanks,
> Serkan
>
Re: image component visibility evaluation
Posted by Alex Harui <ah...@adobe.com>.
They are evaluated by PropertyWatchers, but it is tricky to setup breakpoints for them and probably not necessary. The first step is to get rid of the warnings as you asked on another thread. Once the warnings are gone, the PropertyWatchers will likely be doing the right thing. Then make sure the values are being set properly in the renderer itself by setting breakpoints in the renderer and other data objects in the expression. Setters transpile to set__foo methods.
HTH,
-Alex
From: serkan <se...@likyateknoloji.com>
Reply-To: "users@royale.apache.org" <us...@royale.apache.org>
Date: Monday, June 8, 2020 at 8:11 AM
To: "users@royale.apache.org" <us...@royale.apache.org>
Subject: image component visibility evaluation
Hi,
I have an image component as below:
<s:Image id="startJob" source="images/startJob.jpg" toolTip="{resourceManager.getString('messages', 'startJobTooltip')}" width="23" height="23"
includeInLayout="{data.visualParams.commandabilityParams.isStartable == true}" buttonMode="true"
visible="{data.visualParams.commandabilityParams.isStartable == true}"
click="executeJobCommand(event, data.@Id, data.@Id)" />
For he issue #819 it looks like it is working but not the same for the real app. I need to debug an inspect the value of "data.visualParams.commandabilityParams.isStartable" for the image component
to check the value of "visible="{data.visualParams.commandabilityParams.isStartable == true}"
Where are the values evaluated ofr a component ?
Thanks,
Serkan