Maybe this can't help, we must start with some point! The error in the console is "Error: "'Dreamfactory' is undefined"", and, I can't see the relation with this error nor identifier with the "userSession" variable.
Maybe the existing error causes in the app a bad behaviour or something like that?
In other words, please, take a look at what the refered error means. "Dreamfactory" is an app variable? Why is undefined?
I double checked and still the same error, even if I set the variable with SetVar and try assign in HttpSetHeader is still giving errors. Look the code below:
Now check the error below:
See... even if I set the variable manually with SetVar the error still exists. It's like HttpSetHeader is compiling wrong in some way.
My apologies. Certainly I can't understand the problem at the first time, but, you explain it very well and I can in fact test it to view what really happen. Actually, you are completely right and found an error when App Builder translate the HttpSetHeader action, which occur when the value to be established come from an app's variable. The error is fixed now, so please, upgrade your AB copy Octacilio.
My apologies again, because, in fact, if I test the code before, I can suggest you the below possible aproach, until I can prepare the appropriate bug fix and then upgrade App Builder:
The above code is a possible translation of the HttpSetHeader action (in fact what you need), then we can use the "StartJS" and "EndJS" actions to directly use that Javascript code. Anyway this is not required now, since AB is now fixed and you can upgrade your copy now.
Please, let me know if you have any further questions!
Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.
This website uses cookies only to store your preferences.