Dear David,
Perhaps I'm wrong or confusing how to use HttpSetHeader, but when I'm trying to assign a variable to HttpSetHeader I have the following error:
As you can see in the console the variable [userSession] is defined and had a value, but when I assign to HttpSetHeader the following error comes.
Here is part of the code used in the application where the error appears:
I appreciate any assistance you can give me.
Best Regards,
Otacilio Alves
Hello Otacilio,
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?
Hello David,
Thanks for your reply. I will go to make a double check and get back to you.
Hi David,
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.
If you can help me I will appreciate.
Best Regards,
Otacilio Alves
Hello Octacilio,
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!
Hello David.
Thanks for the fix since I was breaking my head with that :-). Therefore I will download the new updated version and test.
Once again David thanks for your prompt attention and solution.
Best Regards,
Otacilio Alves
Hello to all,
Hello David.
Thanks for the fix since I was breaking my head with that :-). Therefore I will download the new updated version and test.
Once again David thanks for your prompt attention and solution.
Best Regards,
Otacilio Alves
You're welcome Otacilio! Please, sorry again for the inconveniences.
Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.