Help Please UX Tipe Deck

How to make a ''conditional label''. When the status is 'on' it shows an image and the text in green and when it is 'off' it shows another image with red text.

texte.png

Solved Solved
1 3 158
1 ACCEPTED SOLUTION

Fala Jeff! Nesse caso é o seguinte. Como você está usando uma visualização DECK e o nome do veículo + imagem são um label você precisa que a imagem seja atualizada na tabela do veículo de acordo com o status dessa tabela que está no print aí.

Pra isso é só fazer o seguinte:

Na tabela Veículo você adiciona uma coluna virtual do tipo Image e na fórmula você usa o seguinte:

IF(LOOKUP([_THISROW].[Id],'Tabela2','Veículo','Status')='On', 'Imagem 1' ,'Imagem 2')
Sendo a Tabela2 essa do seu print

Depois você transforma essa coluna virtual com a fórmula IF em Label junto ao nome do veículo.

Agora o quando você mudar o status da Tabela2 entre ''ON'' e ''OFF'' o veículo vai ter a imagem atualizada e posteriormente ela é demonstrada na sua visualização DECK.

NOTA: Durante a atualização/sincronização pode ser que a imagem apareça como um alerta com o código 400 no lugar, mas após concluir a sincronização (mesmo em segundo plano) a imagem aparece ali normalmente. É só uma questão de segundos.

------------

Hi Jeff! In this case it is as follows. As you are using a DECK view and the vehicle name + image is a label you need the image to be updated in the vehicle table according to the status of this table in the printscreen.

To do this, just do the following:

In the Vehicle table you add a virtual column of type Image and in the formula you use the following:

IF(LOOKUP([_THISROW].[Id],'Table2','Vehicle','Status')='On', 'Image 1' ,'Image 2')
Being Table2 this one from your print

Then you transform this virtual column with the IF formula into a Label next to the vehicle name.

Now when you change the status of Table2 between ''ON'' and ''OFF'' the vehicle will have the image updated and later it is shown in your DECK view.

NOTE: During an update/sync, an image may appear as an alert with the code 400 . It's just a matter of seconds. After sync the correct image will appear



View solution in original post

3 REPLIES 3

Fala Jeff! Nesse caso é o seguinte. Como você está usando uma visualização DECK e o nome do veículo + imagem são um label você precisa que a imagem seja atualizada na tabela do veículo de acordo com o status dessa tabela que está no print aí.

Pra isso é só fazer o seguinte:

Na tabela Veículo você adiciona uma coluna virtual do tipo Image e na fórmula você usa o seguinte:

IF(LOOKUP([_THISROW].[Id],'Tabela2','Veículo','Status')='On', 'Imagem 1' ,'Imagem 2')
Sendo a Tabela2 essa do seu print

Depois você transforma essa coluna virtual com a fórmula IF em Label junto ao nome do veículo.

Agora o quando você mudar o status da Tabela2 entre ''ON'' e ''OFF'' o veículo vai ter a imagem atualizada e posteriormente ela é demonstrada na sua visualização DECK.

NOTA: Durante a atualização/sincronização pode ser que a imagem apareça como um alerta com o código 400 no lugar, mas após concluir a sincronização (mesmo em segundo plano) a imagem aparece ali normalmente. É só uma questão de segundos.

------------

Hi Jeff! In this case it is as follows. As you are using a DECK view and the vehicle name + image is a label you need the image to be updated in the vehicle table according to the status of this table in the printscreen.

To do this, just do the following:

In the Vehicle table you add a virtual column of type Image and in the formula you use the following:

IF(LOOKUP([_THISROW].[Id],'Table2','Vehicle','Status')='On', 'Image 1' ,'Image 2')
Being Table2 this one from your print

Then you transform this virtual column with the IF formula into a Label next to the vehicle name.

Now when you change the status of Table2 between ''ON'' and ''OFF'' the vehicle will have the image updated and later it is shown in your DECK view.

NOTE: During an update/sync, an image may appear as an alert with the code 400 . It's just a matter of seconds. After sync the correct image will appear



Obrigado Matheus!
Sua resposta foi valida, era isso mesmo que eu estava precisando . 

Top Labels in this Space