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 152
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