on ‎2020 Sep 15 4:49 PM
Hello,
I am manipulating data in a script task in SCP Workflow on Cloud Foundry.
I got object stored in the context
$.context.myObj = {
key1: val1,
key2: val2,
key3: val3
};
Now I try to handle that object as a standard JS object
Object.keys($.context.myObj).forEach(.....)
I got an error
TypeError: [object ContextObject] is not an Object in <eval> at line number 2
Where can I find the specification of that special kind of object and how to handle them? Is there some specification, documentation or at least some information (beside that standard docu)
Request clarification before answering.
Hi Vladimir,
I cannot share implementation details, because then people start relying on it. It is not too difficult to guess, but guessing is a different thing from SAP documenting it and then being bound to that.
The engine does have Object.keys, but it only works on native JS objects, but not on the special objects that come out of our context API.
Regards,
Tobias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 8 | |
| 7 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.