Skip to main content
sameeru0003
February 5, 2024
Question

Call expression in an interface in runtime not in designer or expression mode

  • February 5, 2024
  • 9 replies
  • 0 views

a!localVariables(
  local!Details: rule!GetInformation(),
  a!formLayout(
  .......
  showwhen:if(local!Details <> "ERROR")
  )
)

Hi,

I want to show the formLayout in the design mode(designer/expression) irrespective of the return value of rule!GetInformation() expression rule. However in runtime the form should load as mentioned in above code i.e., based on the return value of rule!GetInformation() .

Kindly suggest.

9 replies

konduruc733182
February 5, 2024

Hello [mention:207c3ddc02994e6bb3b09c9da969a8b9:e9ed411860ed4f2ba0265705b8793d05] 

Use default value function and while testing you can set the default to true.

stefanhelzle0001
Brainy
February 5, 2024

Appian does not support to run code depending on whether it runs in designer or "runtime".

What do you want to achieve?

sameeru0003
February 5, 2024

Since i want to load the interface for designing and see the changes reflecting i dont want the rule to be called how to achieve that. when i am designing.

stefanhelzle0001
Brainy
February 5, 2024

I am not sure I understand which problem you want to solve. What is wrong with that rule? When I design an interface, I typically provide some test data to see how it works.

harshitb6843
February 5, 2024

[mention:207c3ddc02994e6bb3b09c9da969a8b9:e9ed411860ed4f2ba0265705b8793d05] 

You can differentiate the design time and the run time using groups in Appian. If anyone, in the developers/administrators group tries to access this, it will load normally, but if anyone from the business groups (all users, etc.) tries to load it, then the condition is validated. 

mathieud0001
Brainy
February 5, 2024

You can also create a dedicated "debug" group for this type of requirement have a DEBUG environment constant that you enable on a per environment basis.

Alternatively you could always use the application's admin group which usually includes Designers.