Krishna Hari
68 posts
Registered:
05 Dec 2019
23 Jan 2020
in reply to
Alex
Link to this post
I have been using this query below to set the look up value for asrt_ceutypeid_0
(document).ready(function(){
function parseQuery(queryString) {
var query = {};
var pairs = (queryString[0] === '?' ? queryString.substr(1) : queryString).split('&');
for (var i = 0; i < pairs.length; i++) {
var pair = pairs[i].split('=');
query[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1] || '');
}
return query;
}
var d = parseQuery(window.location.search)["Qs"];
tpc.forms[0].asrt_ceutypeid_0.set_value("altai_ceutype;d");
});
but it gives me a console error
HTTP500: SERVER ERROR - The server encountered an unexpected condition that prevented it from fulfilling the request.
(XHR)POST - https://dev1.asrt.org/PortalConnectorMvc/Services/Data/Lookup/MapValue/e1af9dd1-0c82-6490-b755-ff0000d82291/d
What am I doing wrong.