Channel dependent logic

In a form, is there s session variable which says in which channel the form is being opened?

I need to invoke different logic for each of the two channels (e.g. web / mobile) the form is available in.

You can use:
channel = [mobile|web]
or
channelDescription = [APP_mobile|mobile|web]

web - form started in desctop
mobile - form started in mobile device
APP_mobile - form started in WebView [Banking mobile APP]

A czy istnieje zmienna pozwalająca rozróżnić w jakiej szacie graficznej weszliśmy na wniosek (white, nweb)?

What will happen when we change channel (white, form, nweb) being on the form?
Is it still possible to read changed state of channel?

Tak, zmienna baseHref zawiera informację o szacie, z którą wniosek został uruchomiany, trzeba jednak pamiętać, że jak sama nazwa wskazuje jest to wartość domyślnej ściezki w jakiej formularz jest uruchamiany.

W celu korzystania z tej wartości np. w warunkach widoczności należy zadeklarować takową zmienną sesyjną na formularzu. Można korzystać z niej bezpośrednio, albo utworzyć prsoty scriptcode, który wyłuska tylko interesujące nas informację, w tym przypadku nazwę szaty.

Przykładowe wartości zmiennej:
image
image

image

1 Like

I don’t think we have the ability to check the channel after changing it. We can only check the input channel on request using the baseHref session variable