Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] tWebService - "You must provide a Map to create a complexType"

This Error comes as soon as i try to set tWebservice parameter to a list with complexTypes.. List<String[]> for example
Did anyone had success creating such Map?
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

i resolved it myself..
here is the code to correctly map an complexObjectArray
java.util.List<java.util.Map<String,String>> arguments = new java.util.ArrayList<java.util.Map<String,String>>();
java.util.Map<String, String> argMap = new java.util.HashMap<String, String>();
argMap.put("key", "entity_id");
argMap.put("value", "777");
arguments.add(argMap);
row.myArguments = arguments; //or globalMap.put("myArguments", arguments); //whatever you may use..

View solution in original post

1 Reply
Anonymous
Not applicable
Author

i resolved it myself..
here is the code to correctly map an complexObjectArray
java.util.List<java.util.Map<String,String>> arguments = new java.util.ArrayList<java.util.Map<String,String>>();
java.util.Map<String, String> argMap = new java.util.HashMap<String, String>();
argMap.put("key", "entity_id");
argMap.put("value", "777");
arguments.add(argMap);
row.myArguments = arguments; //or globalMap.put("myArguments", arguments); //whatever you may use..