image component visibility evaluation

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

image component visibility evaluation

serkan
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
Reply | Threaded
Open this post in threaded view
|

Re: image component visibility evaluation

Alex Harui-2

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 <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Monday, June 8, 2020 at 8:11 AM
To: "[hidden email]" <[hidden email]>
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

Reply | Threaded
Open this post in threaded view
|

Re: image component visibility evaluation

serkan
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 [hidden email]
Reply-To: [hidden email] [hidden email]
Date: Monday, June 8, 2020 at 8:11 AM
To: [hidden email] [hidden email]
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


Reply | Threaded
Open this post in threaded view
|

Re: image component visibility evaluation

Alex Harui-2

You might see null for data during initialization but eventually you should see non-null.

 

From: serkan <[hidden email]>
Date: Monday, June 8, 2020 at 1:28 PM
To: "[hidden email]" <[hidden email]>, Alex Harui <[hidden email]>
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 [hidden email]
Reply-To: [hidden email] [hidden email]
Date: Monday, June 8, 2020 at 8:11 AM
To: [hidden email] [hidden email]
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




Reply | Threaded
Open this post in threaded view
|

Re: image component visibility evaluation

serkan
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 [hidden email]
Date: Monday, June 8, 2020 at 1:28 PM
To: [hidden email] [hidden email], Alex Harui [hidden email]
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 [hidden email]
Reply-To: [hidden email] [hidden email]
Date: Monday, June 8, 2020 at 8:11 AM
To: [hidden email] [hidden email]
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