Small Component to parse Post Response
Link to blog: Design Studio SDK: Post Response Parser
Name | Description | Group | Default | Visible |
---|---|---|---|---|
DBasicAuthorisation [String] |
Basic Authorization Content [Basic: GUID] Basic Authorization Content [Basic: GUID] |
Display | true | |
DContentType [String] |
Content Type Content Type |
Display | application/x-www-form-urlencoded | true |
DCrossDomain [boolean] |
Is This Request Cross-Domain Is This Request Cross-Domain |
Display | false | true |
DExpectedContentType [String] |
Expected Content Type Expected Content Type |
Display | text | true |
DExpectedResponseStatus [int] |
Response Status For Good Response Response Status For Good Response |
Display | 200 | true |
DHeaders [String] |
Headers Headers |
Display | [] | true |
DJsonp [boolean] |
Do You Want To Use JSONP Do You Want To Use JSONP |
Display | false | true |
DParameters [String] |
Parameters Parameters |
Display | [] | true |
DRequestMethod [String] |
Request Method (POST | GET | PUT) Request Method (POST | GET | PUT) |
Display | POST | true |
DRequestType [String] |
Request Type (JQuery | HTTP) Request Type (JQuery | HTTP) |
Display | JQuery | true |
DReturnHeaders [String] |
Parameters Parameters |
Display | [] | true |
DReturnParameters [String] |
Parameters Parameters |
Display | [] | true |
DUrl [String] |
Url To Send The Request Url To Send The Request |
Display | true | |
DWithCredentials [boolean] |
Do You Need With Credentials Do You Need With Credentials |
Display | false | true |
Name | Description | Group | Default | Visible |
---|---|---|---|---|
onResponse [ScriptText] |
Event For On Response Event For On Response |
Events | true |
Name | Parameters | Return |
---|---|---|
addHeader [details] | key, value | void |
addParameter [details] | key, value | void |
addPayloadToHttp [details] | data | void |
addReturnHeader [details] | key, value | void |
addReturnParameter [details] | key, value | void |
cleanAllHeaders [details] | String | |
cleanAllHeaders [details] | void | |
cleanAllParameters [details] | String | |
cleanAllParameters [details] | void | |
cleanAllReturnHeaders [details] | String | |
cleanAllReturnParameters [details] | String | |
getBasicAuthorisation [details] | String | |
getContentType [details] | String | |
getExpectedContentType [details] | org_scn_community_shared_Enumfield | |
getExpectedContentTypeAsString [details] | String | |
getExpectedResponseStatus [details] | int | |
getHeaderAtIndex [details] | index0based | String |
getHeaderValue [details] | key | String |
getHeadersAsJSON [details] | String | |
getParameterAtIndex [details] | index0based | String |
getParameterValue [details] | key | String |
getParametersAsJSON [details] | String | |
getPayload [details] | String | |
getRawParameters [details] | String | |
getRawParameters [details] | String | |
getRequestMethod [details] | org_scn_community_shared_Enumfield | |
getRequestMethodAsString [details] | String | |
getRequestType [details] | org_scn_community_shared_Enumfield | |
getRequestTypeAsString [details] | String | |
getReturnHeaderAtIndex [details] | index0based | String |
getReturnHeaderValue [details] | key | String |
getReturnHeadersAsJSON [details] | String | |
getReturnHeadersAsNameValueArray [details] | (maxMembers) | org.scn.community.shared.NameValueArray |
getReturnParameterAtIndex [details] | index0based | String |
getReturnParameterValue [details] | key | String |
getReturnParametersAsJSON [details] | String | |
getReturnParametersAsNameValueArray [details] | (maxMembers) | org.scn.community.shared.NameValueArray |
getReturnResponse [details] | String | |
getReturnStatus [details] | int | |
getUrl [details] | String | |
insertHeader [details] | insertionIndex0based, key, value | void |
insertParameter [details] | insertionIndex0based, key, value | void |
insertReturnHeader [details] | insertionIndex0based, key, value | void |
insertReturnParameter [details] | insertionIndex0based, key, value | void |
isCrossDomain [details] | boolean | |
isJsonp [details] | boolean | |
isWithCredentials [details] | boolean | |
removeHeader [details] | key | void |
removeParameter [details] | key | void |
removeReturnHeader [details] | key | void |
removeReturnParameter [details] | key | void |
setBasicAuthorisation [details] | basicAuthorisation | void |
setContentType [details] | contentType | void |
setCrossDomain [details] | crossDomain | void |
setExpectedContentType [details] | expectedContentType | void |
setExpectedContentTypeByString [details] | expectedContentType | void |
setExpectedResponseStatus [details] | expectedResponseStatus | void |
setHeaderValue [details] | key, value | void |
setHeaderValues [details] | keys, separator, value | void |
setJsonp [details] | jsonp | void |
setParameterValue [details] | key, value | void |
setParameterValues [details] | keys, separator, value | void |
setRawParameters [details] | rawParameters | void |
setRequestMethod [details] | requestMethod | void |
setRequestMethodByString [details] | requestMethod | void |
setRequestType [details] | requestType | void |
setRequestTypeByString [details] | requestType | void |
setReturnHeaderValue [details] | key, value | void |
setReturnHeaderValues [details] | keys, separator, value | void |
setReturnParameterValue [details] | key, value | void |
setReturnParameterValues [details] | keys, separator, value | void |
setUrl [details] | url | void |
setWithCredentials [details] | withCredentials | void |
triggerExecution [details] | void | |
updateHeader [details] | key, value | void |
updateParameter [details] | key, value | void |
updateReturnHeader [details] | key, value | void |
updateReturnParameter [details] | key, value | void |
Name | Description | Group | Default | Visible |
---|---|---|---|---|
DPayload [String] |
HTTP Reuqest Payload HTTP Reuqest Payload |
Display | false | |
DRawParameters [String] |
Raw Parameters As String Content Raw Parameters As String Content |
Display | false | |
DReturnResponse [String] |
Return Response As String Return Response As String |
Display | false | |
DReturnStatus [int] |
Return Status Return Status |
Display | 200 | false |
DTrigger [String] |
Just As Simple Triger Just As Simple Triger |
Display | false |
void addHeader |
Adds a root element containing key [String], value [String]. You want to add 2 root elements POSTRESPONSEPARSER.addHeader(key [String], value [String]); POSTRESPONSEPARSER.addHeader(key [String], value [String]);
|
||||||||||||
Source Code |
var itemDef = { leaf:true, key:key, value:value }; if (this.DHeaders === undefined || this.DHeaders === "" || this.DHeaders === "<delete>"){ this.DHeaders = "[]"; } var elementsJson = JSON.parse(this.DHeaders); var alreadyFound = false; for (var i = 0; i < elementsJson.length ; i++){ if (elementsJson[i].key == key) { alreadyFound = true; break; } } if(!alreadyFound) { elementsJson.push(itemDef); } this.DHeaders = JSON.stringify(elementsJson); |
||||||||||||
void addParameter |
Adds a root element containing key [String], value [String]. You want to add 2 root elements POSTRESPONSEPARSER.addParameter(key [String], value [String]); POSTRESPONSEPARSER.addParameter(key [String], value [String]);
|
||||||||||||
Source Code |
var itemDef = { leaf:true, key:key, value:value }; if (this.DParameters === undefined || this.DParameters === "" || this.DParameters === "<delete>"){ this.DParameters = "[]"; } var elementsJson = JSON.parse(this.DParameters); var alreadyFound = false; for (var i = 0; i < elementsJson.length ; i++){ if (elementsJson[i].key == key) { alreadyFound = true; break; } } if(!alreadyFound) { elementsJson.push(itemDef); } this.DParameters = JSON.stringify(elementsJson); |
||||||||||||
void addPayloadToHttp |
/START HERE PLACE FOR CUSTOM ZTL FUNCTIONS Adds payload to HTTP requests. Typically used with POST requests as GET uses the URL query string. You want to add JSON data to your POST request to be send to the server addPayloadToHttp("{"key":"value"}");
|
||||||||||||
Source Code | this.DPayload = data; | ||||||||||||
void addReturnHeader |
Adds a root element containing key [String], value [String]. You want to add 2 root elements POSTRESPONSEPARSER.addReturnHeader(key [String], value [String]); POSTRESPONSEPARSER.addReturnHeader(key [String], value [String]);
|
||||||||||||
Source Code |
var itemDef = { leaf:true, key:key, value:value }; if (this.DReturnHeaders === undefined || this.DReturnHeaders === "" || this.DReturnHeaders === "<delete>"){ this.DReturnHeaders = "[]"; } var elementsJson = JSON.parse(this.DReturnHeaders); var alreadyFound = false; for (var i = 0; i < elementsJson.length ; i++){ if (elementsJson[i].key == key) { alreadyFound = true; break; } } if(!alreadyFound) { elementsJson.push(itemDef); } this.DReturnHeaders = JSON.stringify(elementsJson); |
||||||||||||
void addReturnParameter |
Adds a root element containing key [String], value [String]. You want to add 2 root elements POSTRESPONSEPARSER.addReturnParameter(key [String], value [String]); POSTRESPONSEPARSER.addReturnParameter(key [String], value [String]);
|
||||||||||||
Source Code |
var itemDef = { leaf:true, key:key, value:value }; if (this.DReturnParameters === undefined || this.DReturnParameters === "" || this.DReturnParameters === "<delete>"){ this.DReturnParameters = "[]"; } var elementsJson = JSON.parse(this.DReturnParameters); var alreadyFound = false; for (var i = 0; i < elementsJson.length ; i++){ if (elementsJson[i].key == key) { alreadyFound = true; break; } } if(!alreadyFound) { elementsJson.push(itemDef); } this.DReturnParameters = JSON.stringify(elementsJson); |
||||||||||||
String cleanAllHeaders |
Cleans All Headers |
||||||||||||
Source Code | this.DHeaders = "[]"; | ||||||||||||
void cleanAllHeaders |
Remove All Headers from the Array. |
||||||||||||
Source Code |
this.DCleanAll = true; var elementsArray = []; this.DHeaders = JSON.stringify(elementsArray); |
||||||||||||
String cleanAllParameters |
Cleans All Parameters |
||||||||||||
Source Code | this.DParameters = "[]"; | ||||||||||||
void cleanAllParameters |
Remove All Parameters from the Array. |
||||||||||||
Source Code |
this.DCleanAll = true; var elementsArray = []; this.DParameters = JSON.stringify(elementsArray); |
||||||||||||
String cleanAllReturnHeaders |
Cleans All ReturnHeaders |
||||||||||||
Source Code | this.DReturnHeaders = "[]"; | ||||||||||||
String cleanAllReturnParameters |
Cleans All ReturnParameters |
||||||||||||
Source Code | this.DReturnParameters = "[]"; | ||||||||||||
String getBasicAuthorisation |
Gets Basic Authorization Content [Basic: GUID] Property |
||||||||||||
Source Code | return this.DBasicAuthorisation; | ||||||||||||
String getContentType |
Gets Content Type Property |
||||||||||||
Source Code | return this.DContentType; | ||||||||||||
org_scn_community_shared_Enumfield getExpectedContentType |
Gets Expected Content Type Property as Choice Option |
||||||||||||
Source Code | return this.DExpectedContentType; | ||||||||||||
String getExpectedContentTypeAsString |
Gets Expected Content Type Property as String |
||||||||||||
Source Code | return this.DExpectedContentType; | ||||||||||||
int getExpectedResponseStatus |
Gets Response Status For Good Response Property |
||||||||||||
Source Code | return this.DExpectedResponseStatus; | ||||||||||||
String getHeaderAtIndex |
Returns Key at given Index
|
||||||||||||
Source Code |
if (this.DHeaders === undefined || this.DHeaders === "" || this.DHeaders === "<delete>"){ this.DHeaders = "[]"; } var elementsJson = JSON.parse(this.DHeaders); for (var i = 0; i < elementsJson.length ; i++){ if (index0based == i) { return elementsJson[i].key; } } return ""; |
||||||||||||
String getHeaderValue |
Returns value of Value for Header Key
|
||||||||||||
Source Code |
if (this.DHeaders === undefined || this.DHeaders === "" || this.DHeaders === "<delete>"){ return; } var elementsJson = JSON.parse(this.DHeaders); var value = ""; // loop and find and update for (var i = 0; i < elementsJson.length ; i++){ if (elementsJson[i].key == key) { value = elementsJson[i].value; break; } } return value; |
||||||||||||
String getHeadersAsJSON |
Gets Headers As JSON String |
||||||||||||
Source Code |
var jsonObject = JSON.parse(this.DHeaders); return JSON.stringify(jsonObject, null, 4); |
||||||||||||
String getParameterAtIndex |
Returns Key at given Index
|
||||||||||||
Source Code |
if (this.DParameters === undefined || this.DParameters === "" || this.DParameters === "<delete>"){ this.DParameters = "[]"; } var elementsJson = JSON.parse(this.DParameters); for (var i = 0; i < elementsJson.length ; i++){ if (index0based == i) { return elementsJson[i].key; } } return ""; |
||||||||||||
String getParameterValue |
Returns value of Value for Parameter Key
|
||||||||||||
Source Code |
if (this.DParameters === undefined || this.DParameters === "" || this.DParameters === "<delete>"){ return; } var elementsJson = JSON.parse(this.DParameters); var value = ""; // loop and find and update for (var i = 0; i < elementsJson.length ; i++){ if (elementsJson[i].key == key) { value = elementsJson[i].value; break; } } return value; |
||||||||||||
String getParametersAsJSON |
Gets Parameters As JSON String |
||||||||||||
Source Code |
var jsonObject = JSON.parse(this.DParameters); return JSON.stringify(jsonObject, null, 4); |
||||||||||||
String getPayload |
Gets HTTP Reuqest Payload Property |
||||||||||||
Source Code | return this.DPayload; | ||||||||||||
String getRawParameters |
Gets Raw Parameters As String Content Property |
||||||||||||
Source Code | return this.DRawParameters; | ||||||||||||
String getRawParameters |
Gets Raw Parameters As String Content Property |
||||||||||||
Source Code | return this.DRawParameters; | ||||||||||||
org_scn_community_shared_Enumfield getRequestMethod |
Gets Request Method (POST | GET | PUT) Property as Choice Option |
||||||||||||
Source Code | return this.DRequestMethod; | ||||||||||||
String getRequestMethodAsString |
Gets Request Method (POST | GET | PUT) Property as String |
||||||||||||
Source Code | return this.DRequestMethod; | ||||||||||||
org_scn_community_shared_Enumfield getRequestType |
Gets Request Type (JQuery | HTTP) Property as Choice Option |
||||||||||||
Source Code | return this.DRequestType; | ||||||||||||
String getRequestTypeAsString |
Gets Request Type (JQuery | HTTP) Property as String |
||||||||||||
Source Code | return this.DRequestType; | ||||||||||||
String getReturnHeaderAtIndex |
Returns Key at given Index
|
||||||||||||
Source Code |
if (this.DReturnHeaders === undefined || this.DReturnHeaders === "" || this.DReturnHeaders === "<delete>"){ this.DReturnHeaders = "[]"; } var elementsJson = JSON.parse(this.DReturnHeaders); for (var i = 0; i < elementsJson.length ; i++){ if (index0based == i) { return elementsJson[i].key; } } return ""; |
||||||||||||
String getReturnHeaderValue |
Returns value of Value for ReturnHeader Key
|
||||||||||||
Source Code |
if (this.DReturnHeaders === undefined || this.DReturnHeaders === "" || this.DReturnHeaders === "<delete>"){ return; } var elementsJson = JSON.parse(this.DReturnHeaders); var value = ""; // loop and find and update for (var i = 0; i < elementsJson.length ; i++){ if (elementsJson[i].key == key) { value = elementsJson[i].value; break; } } return value; |
||||||||||||
String getReturnHeadersAsJSON |
Gets ReturnHeaders As JSON String |
||||||||||||
Source Code |
var jsonObject = JSON.parse(this.DReturnHeaders); return JSON.stringify(jsonObject, null, 4); |
||||||||||||
org.scn.community.shared.NameValueArray getReturnHeadersAsNameValueArray |
Returns the content of property Return Headers as loopable name/value array. You want to loop at values: var content = POSTRESPONSEPARSER.getReturnHeadersAsNameValueArray(); This LISTBOX_1 has now following values entries:// a loop for all entries content.forEach(function(element, index) { LISTBOX_1.addItem(element.name, element.value); });
|
||||||||||||
Source Code |
var s = this.DReturnHeaders; var a = []; if(s!="") a = JSON.parse(s); var tempA = []; if(maxMembers == undefined || maxMembers <= 0 || maxMembers > a.length) { maxMembers = a.length; } for(var i=0;i<maxMembers;i++){ var itemDef = { "name": a[i].name, "value": a[i].value }; tempA.push(itemDef); } return tempA; |
||||||||||||
String getReturnParameterAtIndex |
Returns Key at given Index
|
||||||||||||
Source Code |
if (this.DReturnParameters === undefined || this.DReturnParameters === "" || this.DReturnParameters === "<delete>"){ this.DReturnParameters = "[]"; } var elementsJson = JSON.parse(this.DReturnParameters); for (var i = 0; i < elementsJson.length ; i++){ if (index0based == i) { return elementsJson[i].key; } } return ""; |
||||||||||||
String getReturnParameterValue |
Returns value of Value for ReturnParameter Key
|
||||||||||||
Source Code |
if (this.DReturnParameters === undefined || this.DReturnParameters === "" || this.DReturnParameters === "<delete>"){ return; } var elementsJson = JSON.parse(this.DReturnParameters); var value = ""; // loop and find and update for (var i = 0; i < elementsJson.length ; i++){ if (elementsJson[i].key == key) { value = elementsJson[i].value; break; } } return value; |
||||||||||||
String getReturnParametersAsJSON |
Gets ReturnParameters As JSON String |
||||||||||||
Source Code |
var jsonObject = JSON.parse(this.DReturnParameters); return JSON.stringify(jsonObject, null, 4); |
||||||||||||
org.scn.community.shared.NameValueArray getReturnParametersAsNameValueArray |
Returns the content of property Return Parameters as loopable name/value array. You want to loop at values: var content = POSTRESPONSEPARSER.getReturnParametersAsNameValueArray(); This LISTBOX_1 has now following values entries:// a loop for all entries content.forEach(function(element, index) { LISTBOX_1.addItem(element.name, element.value); });
|
||||||||||||
Source Code |
var s = this.DReturnParameters; var a = []; if(s!="") a = JSON.parse(s); var tempA = []; if(maxMembers == undefined || maxMembers <= 0 || maxMembers > a.length) { maxMembers = a.length; } for(var i=0;i<maxMembers;i++){ var itemDef = { "name": a[i].name, "value": a[i].value }; tempA.push(itemDef); } return tempA; |
||||||||||||
String getReturnResponse |
Gets Return Response As String Property |
||||||||||||
Source Code | return this.DReturnResponse; | ||||||||||||
int getReturnStatus |
Gets Return Status Property |
||||||||||||
Source Code | return this.DReturnStatus; | ||||||||||||
String getUrl |
Gets Url To Send The Request Property |
||||||||||||
Source Code | return this.DUrl; | ||||||||||||
void insertHeader |
Insert a root element by index. You want to insert a root element POSTRESPONSEPARSER.insertHeader(index [int], key [String], value [String]);
|
||||||||||||
Source Code |
if (this.DHeaders === undefined || this.DHeaders === "" || this.DHeaders === "<delete>"){ this.DHeaders = "[]"; } var elementsJson = JSON.parse(this.DHeaders); var newElementsJson = []; var itemDef = { leaf:true, key:key, value:value }; for (var i = 0; i < elementsJson.length ; i++){ if (i == insertionIndex0based) { newElementsJson.push(itemDef); } newElementsJson.push(elementsJson[i]); } this.DHeaders = JSON.stringify(newElementsJson); |
||||||||||||
void insertParameter |
Insert a root element by index. You want to insert a root element POSTRESPONSEPARSER.insertParameter(index [int], key [String], value [String]);
|
||||||||||||
Source Code |
if (this.DParameters === undefined || this.DParameters === "" || this.DParameters === "<delete>"){ this.DParameters = "[]"; } var elementsJson = JSON.parse(this.DParameters); var newElementsJson = []; var itemDef = { leaf:true, key:key, value:value }; for (var i = 0; i < elementsJson.length ; i++){ if (i == insertionIndex0based) { newElementsJson.push(itemDef); } newElementsJson.push(elementsJson[i]); } this.DParameters = JSON.stringify(newElementsJson); |
||||||||||||
void insertReturnHeader |
Insert a root element by index. You want to insert a root element POSTRESPONSEPARSER.insertReturnHeader(index [int], key [String], value [String]);
|
||||||||||||
Source Code |
if (this.DReturnHeaders === undefined || this.DReturnHeaders === "" || this.DReturnHeaders === "<delete>"){ this.DReturnHeaders = "[]"; } var elementsJson = JSON.parse(this.DReturnHeaders); var newElementsJson = []; var itemDef = { leaf:true, key:key, value:value }; for (var i = 0; i < elementsJson.length ; i++){ if (i == insertionIndex0based) { newElementsJson.push(itemDef); } newElementsJson.push(elementsJson[i]); } this.DReturnHeaders = JSON.stringify(newElementsJson); |
||||||||||||
void insertReturnParameter |
Insert a root element by index. You want to insert a root element POSTRESPONSEPARSER.insertReturnParameter(index [int], key [String], value [String]);
|
||||||||||||
Source Code |
if (this.DReturnParameters === undefined || this.DReturnParameters === "" || this.DReturnParameters === "<delete>"){ this.DReturnParameters = "[]"; } var elementsJson = JSON.parse(this.DReturnParameters); var newElementsJson = []; var itemDef = { leaf:true, key:key, value:value }; for (var i = 0; i < elementsJson.length ; i++){ if (i == insertionIndex0based) { newElementsJson.push(itemDef); } newElementsJson.push(elementsJson[i]); } this.DReturnParameters = JSON.stringify(newElementsJson); |
||||||||||||
boolean isCrossDomain |
Gets Is This Request Cross-Domain Property |
||||||||||||
Source Code | return this.DCrossDomain; | ||||||||||||
boolean isJsonp |
Gets Do You Want To Use JSONP Property |
||||||||||||
Source Code | return this.DJsonp; | ||||||||||||
boolean isWithCredentials |
Gets Do You Need With Credentials Property |
||||||||||||
Source Code | return this.DWithCredentials; | ||||||||||||
void removeHeader |
Removes a root element by key. You want to remove root element POSTRESPONSEPARSER.removeHeader(String key);
|
||||||||||||
Source Code |
if (this.DHeaders === undefined || this.DHeaders === "" || this.DHeaders === "<delete>"){ this.DHeaders = "[]"; } var elementsJson = JSON.parse(this.DHeaders); var alreadyFound = false; for (var i = 0; i < elementsJson.length ; i++){ if (elementsJson[i].key == key) { elementsJson.splice(i,1); break; } } // remove all items with this parent for (var i = elementsJson.length - 1; i >= 0; i--){ if (elementsJson[i].parentKey == key) { elementsJson.splice(i,1); } } this.DHeaders = JSON.stringify(elementsJson); |
||||||||||||
void removeParameter |
Removes a root element by key. You want to remove root element POSTRESPONSEPARSER.removeParameter(String key);
|
||||||||||||
Source Code |
if (this.DParameters === undefined || this.DParameters === "" || this.DParameters === "<delete>"){ this.DParameters = "[]"; } var elementsJson = JSON.parse(this.DParameters); var alreadyFound = false; for (var i = 0; i < elementsJson.length ; i++){ if (elementsJson[i].key == key) { elementsJson.splice(i,1); break; } } // remove all items with this parent for (var i = elementsJson.length - 1; i >= 0; i--){ if (elementsJson[i].parentKey == key) { elementsJson.splice(i,1); } } this.DParameters = JSON.stringify(elementsJson); |
||||||||||||
void removeReturnHeader |
Removes a root element by key. You want to remove root element POSTRESPONSEPARSER.removeReturnHeader(String key);
|
||||||||||||
Source Code |
if (this.DReturnHeaders === undefined || this.DReturnHeaders === "" || this.DReturnHeaders === "<delete>"){ this.DReturnHeaders = "[]"; } var elementsJson = JSON.parse(this.DReturnHeaders); var alreadyFound = false; for (var i = 0; i < elementsJson.length ; i++){ if (elementsJson[i].key == key) { elementsJson.splice(i,1); break; } } // remove all items with this parent for (var i = elementsJson.length - 1; i >= 0; i--){ if (elementsJson[i].parentKey == key) { elementsJson.splice(i,1); } } this.DReturnHeaders = JSON.stringify(elementsJson); |
||||||||||||
void removeReturnParameter |
Removes a root element by key. You want to remove root element POSTRESPONSEPARSER.removeReturnParameter(String key);
|
||||||||||||
Source Code |
if (this.DReturnParameters === undefined || this.DReturnParameters === "" || this.DReturnParameters === "<delete>"){ this.DReturnParameters = "[]"; } var elementsJson = JSON.parse(this.DReturnParameters); var alreadyFound = false; for (var i = 0; i < elementsJson.length ; i++){ if (elementsJson[i].key == key) { elementsJson.splice(i,1); break; } } // remove all items with this parent for (var i = elementsJson.length - 1; i >= 0; i--){ if (elementsJson[i].parentKey == key) { elementsJson.splice(i,1); } } this.DReturnParameters = JSON.stringify(elementsJson); |
||||||||||||
void setBasicAuthorisation |
Sets Basic Authorization Content [Basic: GUID] Property
|
||||||||||||
Source Code | this.DBasicAuthorisation = basicAuthorisation; | ||||||||||||
void setContentType |
Sets Content Type Property
|
||||||||||||
Source Code | this.DContentType = contentType; | ||||||||||||
void setCrossDomain |
Sets Is This Request Cross-Domain Property
|
||||||||||||
Source Code | this.DCrossDomain = crossDomain; | ||||||||||||
void setExpectedContentType |
Sets Expected Content Type Property by Choice Option
|
||||||||||||
Source Code | this.DExpectedContentType = expectedContentType; | ||||||||||||
void setExpectedContentTypeByString |
Sets Expected Content Type Property by String
|
||||||||||||
Source Code | this.DExpectedContentType = expectedContentType; | ||||||||||||
void setExpectedResponseStatus |
Sets Response Status For Good Response Property
|
||||||||||||
Source Code | this.DExpectedResponseStatus = expectedResponseStatus; | ||||||||||||
void setHeaderValue |
Sets the Value for Header Key
|
||||||||||||
Source Code |
if (this.DHeaders === undefined || this.DHeaders === "" || this.DHeaders === "<delete>"){ return; } var elementsJson = JSON.parse(this.DHeaders); // loop and find and update for (var i = 0; i < elementsJson.length ; i++){ if (elementsJson[i].key == key) { elementsJson[i].value = value; break; } } this.DHeaders = JSON.stringify(elementsJson); |
||||||||||||
void setHeaderValues |
Sets the Value for Header keys
|
||||||||||||
Source Code |
if (this.DHeaders === undefined || this.DHeaders === "" || this.DHeaders === "<delete>"){ return; } var changeKeys = keys.split(separator); var elementsJson = JSON.parse(this.DHeaders); // loop and find and change for (var i = 0; i < elementsJson.length ; i++){ for (var j = 0; j < changeKeys.length ; j++){ if (elementsJson[i].key == changeKeys[j]) { elementsJson[i].value = value; break; } } } this.DHeaders = JSON.stringify(elementsJson); |
||||||||||||
void setJsonp |
Sets Do You Want To Use JSONP Property
|
||||||||||||
Source Code | this.DJsonp = jsonp; | ||||||||||||
void setParameterValue |
Sets the Value for Parameter Key
|
||||||||||||
Source Code |
if (this.DParameters === undefined || this.DParameters === "" || this.DParameters === "<delete>"){ return; } var elementsJson = JSON.parse(this.DParameters); // loop and find and update for (var i = 0; i < elementsJson.length ; i++){ if (elementsJson[i].key == key) { elementsJson[i].value = value; break; } } this.DParameters = JSON.stringify(elementsJson); |
||||||||||||
void setParameterValues |
Sets the Value for Parameter keys
|
||||||||||||
Source Code |
if (this.DParameters === undefined || this.DParameters === "" || this.DParameters === "<delete>"){ return; } var changeKeys = keys.split(separator); var elementsJson = JSON.parse(this.DParameters); // loop and find and change for (var i = 0; i < elementsJson.length ; i++){ for (var j = 0; j < changeKeys.length ; j++){ if (elementsJson[i].key == changeKeys[j]) { elementsJson[i].value = value; break; } } } this.DParameters = JSON.stringify(elementsJson); |
||||||||||||
void setRawParameters |
Sets Technical proprty for raw parameters Property
|
||||||||||||
Source Code | this.DRawParameters = rawParameters; | ||||||||||||
void setRequestMethod |
Sets Request Method (POST | GET | PUT) Property by Choice Option
|
||||||||||||
Source Code | this.DRequestMethod = requestMethod; | ||||||||||||
void setRequestMethodByString |
Sets Request Method (POST | GET | PUT) Property by String
|
||||||||||||
Source Code | this.DRequestMethod = requestMethod; | ||||||||||||
void setRequestType |
Sets Request Type (JQuery | HTTP) Property by Choice Option
|
||||||||||||
Source Code | this.DRequestType = requestType; | ||||||||||||
void setRequestTypeByString |
Sets Request Type (JQuery | HTTP) Property by String
|
||||||||||||
Source Code | this.DRequestType = requestType; | ||||||||||||
void setReturnHeaderValue |
Sets the Value for ReturnHeader Key
|
||||||||||||
Source Code |
if (this.DReturnHeaders === undefined || this.DReturnHeaders === "" || this.DReturnHeaders === "<delete>"){ return; } var elementsJson = JSON.parse(this.DReturnHeaders); // loop and find and update for (var i = 0; i < elementsJson.length ; i++){ if (elementsJson[i].key == key) { elementsJson[i].value = value; break; } } this.DReturnHeaders = JSON.stringify(elementsJson); |
||||||||||||
void setReturnHeaderValues |
Sets the Value for ReturnHeader keys
|
||||||||||||
Source Code |
if (this.DReturnHeaders === undefined || this.DReturnHeaders === "" || this.DReturnHeaders === "<delete>"){ return; } var changeKeys = keys.split(separator); var elementsJson = JSON.parse(this.DReturnHeaders); // loop and find and change for (var i = 0; i < elementsJson.length ; i++){ for (var j = 0; j < changeKeys.length ; j++){ if (elementsJson[i].key == changeKeys[j]) { elementsJson[i].value = value; break; } } } this.DReturnHeaders = JSON.stringify(elementsJson); |
||||||||||||
void setReturnParameterValue |
Sets the Value for ReturnParameter Key
|
||||||||||||
Source Code |
if (this.DReturnParameters === undefined || this.DReturnParameters === "" || this.DReturnParameters === "<delete>"){ return; } var elementsJson = JSON.parse(this.DReturnParameters); // loop and find and update for (var i = 0; i < elementsJson.length ; i++){ if (elementsJson[i].key == key) { elementsJson[i].value = value; break; } } this.DReturnParameters = JSON.stringify(elementsJson); |
||||||||||||
void setReturnParameterValues |
Sets the Value for ReturnParameter keys
|
||||||||||||
Source Code |
if (this.DReturnParameters === undefined || this.DReturnParameters === "" || this.DReturnParameters === "<delete>"){ return; } var changeKeys = keys.split(separator); var elementsJson = JSON.parse(this.DReturnParameters); // loop and find and change for (var i = 0; i < elementsJson.length ; i++){ for (var j = 0; j < changeKeys.length ; j++){ if (elementsJson[i].key == changeKeys[j]) { elementsJson[i].value = value; break; } } } this.DReturnParameters = JSON.stringify(elementsJson); |
||||||||||||
void setUrl |
Sets Url To Send The Request Property
|
||||||||||||
Source Code | this.DUrl = url; | ||||||||||||
void setWithCredentials |
Sets Do You Need With Credentials Property
|
||||||||||||
Source Code | this.DWithCredentials = withCredentials; | ||||||||||||
void triggerExecution |
Trigger Execution of the given URL and parameter list |
||||||||||||
Source Code | this.DTrigger = "GO"; | ||||||||||||
void updateHeader |
Updates given Header
|
||||||||||||
Source Code |
if (this.DHeaders === undefined || this.DHeaders === "" || this.DHeaders === "<delete>"){ this.DHeaders = "[]"; } var itemDef = { leaf:true, key:key, value:value }; var elementsJson = JSON.parse(this.DHeaders); // loop and find and update for (var i = 0; i < elementsJson.length ; i++){ if (elementsJson[i].key == elementKey) { elementsJson[i] = itemDef; break; } } this.DHeaders = JSON.stringify(elementsJson); |
||||||||||||
void updateParameter |
Updates given Parameter
|
||||||||||||
Source Code |
if (this.DParameters === undefined || this.DParameters === "" || this.DParameters === "<delete>"){ this.DParameters = "[]"; } var itemDef = { leaf:true, key:key, value:value }; var elementsJson = JSON.parse(this.DParameters); // loop and find and update for (var i = 0; i < elementsJson.length ; i++){ if (elementsJson[i].key == elementKey) { elementsJson[i] = itemDef; break; } } this.DParameters = JSON.stringify(elementsJson); |
||||||||||||
void updateReturnHeader |
Updates given ReturnHeader
|
||||||||||||
Source Code |
if (this.DReturnHeaders === undefined || this.DReturnHeaders === "" || this.DReturnHeaders === "<delete>"){ this.DReturnHeaders = "[]"; } var itemDef = { leaf:true, key:key, value:value }; var elementsJson = JSON.parse(this.DReturnHeaders); // loop and find and update for (var i = 0; i < elementsJson.length ; i++){ if (elementsJson[i].key == elementKey) { elementsJson[i] = itemDef; break; } } this.DReturnHeaders = JSON.stringify(elementsJson); |
||||||||||||
void updateReturnParameter |
Updates given ReturnParameter
|
||||||||||||
Source Code |
if (this.DReturnParameters === undefined || this.DReturnParameters === "" || this.DReturnParameters === "<delete>"){ this.DReturnParameters = "[]"; } var itemDef = { leaf:true, key:key, value:value }; var elementsJson = JSON.parse(this.DReturnParameters); // loop and find and update for (var i = 0; i < elementsJson.length ; i++){ if (elementsJson[i].key == elementKey) { elementsJson[i] = itemDef; break; } } this.DReturnParameters = JSON.stringify(elementsJson); |
||||||||||||