DMXzone App Connect Support Product Page

What triggers Unsuccessful Dynamic event for Dynamic Attributes? Because error does not.

Asked 23 Mar 2017 17:08:25
1
has this question
23 Mar 2017 17:08:25 Firdaus Rohman posted:
Error on console: 400 (Bad Request)

If you ask what caused that error, it's from Condition that I set in Server Connect. I don't want to allow Server Action to load if condition is not met. What I want to achieve is to set s variable value on Success event (no problem with it), and a different value for unSuccess event (I've tried on Error, Unauthorized, Abort, Forbidden all of them don't trigger Dynamic Event).

Help please!

Replies

Replied 24 Mar 2017 08:01:01
24 Mar 2017 08:01:01 Teodor Kuduschiev replied:
Hello Firdaus,
If a condition in your server connect steps is not met, this is not considered as an error state as the action did run successfully.
What exactly would you like to do? Why don't you put all the steps in one action file, and use the condition step to do this or that depending on true/false?
Replied 24 Mar 2017 08:28:23
24 Mar 2017 08:28:23 Firdaus Rohman replied:
I see. Actually I wanted to do server validation data already exists / not exists but since they don't work well with AppConnect, I thought it was possible to have condition when and not else to produce error so I can trigger events like adding css class etc. when condition is not met. I was planning to set variable value 'yes' when success and 'no' when not success / error. Then I can set dynamic attributes of elements based on the value.

I figured out how to achieve what I need though by comparing the input value againsts a hidden input binded with query filtered by value of the input. Not sure if there's better solution.

Reply to this topic