Change icon dynamically in mobile

Hi,


Is there a way to change the icon dynamically in mobile?

Currently, you need to click and choose manually the icon you want to see in your mobile. 

Thanks,

Lanz

Hi Lanz,


I'm not sure I understand your question? You mean at runtime? Or in Service Studio?

Hi Lanz,

You can create an If statement, something like that:

It is lighter to you for read and analise the code.


Best regards,

Paulo

Jay Santos wrote:

Hi Lanz,


I'm not sure I understand your question? You mean at runtime? Or in Service Studio?


Hi Jay,


 Our requirement is to have a back office to change the icon dynamically during run time.


Thanks,

Lance

Paulo Cação wrote:

Hi Lanz,

You can create an If statement, something like that:

It is lighter to you for read and analise the code.


Best regards,

Paulo


Hi Paulo,


That's a good idea. however, our requirements is to create a back office that can change the icon during runtime.


Thanks,

Lanz

Hi Lanz,

It's a pretty old post, has this been resolved?
In Traditional Web, Expression can be used in Name Property of Icon of RichWidget, so IconNameId can be set dynamically.

However, In in Reactive Web/Mobile App, Expression cannot be used in Icon Property, so IconName (e.g. "icon fa-link") could be dynamically set in Style Property as shown in the following post.

https://www.outsystems.com/forums/discussion/35319/change-icons-dynamicaly-at-run-time/#Post125601

Best regards,

Kosuke Ogawa

Hi Kosuke Ogawa,

Refer this Post: https://www.outsystems.com/forums/discussion/59327/change-icon-dynamically-in-mobile/#Post226372


Hope this helps you!


Regards,

Benjith Sam

Hi Benjith,

Oh, I see…I didn't know that you can do that!
Thank you  for the useful information.

Best regards,

Kosuke Ogawa

Kosuke Ogawa wrote:

Hi Benjith,

Oh, I see…I didn't know that you can do that!
Thank you  for the useful information.

Best regards,

Kosuke Ogawa

You are welcome, Kosuke :)


Regards,

Benjith Sam