Quantcast
Channel: VMware Communities : All Content - VMware Services Software Solutions
Viewing all articles
Browse latest Browse all 497

Auto populate Workflow Group multiQD field after populating a Service QD field

$
0
0

Hi Guys,

 

We want to populate a Workflow group multiQD field with stakeholders of a service, after the Service QD field has been populated. This is on a Request Screen. So far I have the following Javascript:

 

Is in the Custom_InRequestDetails.js file.

 

function AfterQDSetValue(QDElement, ItemRef, SourceData)

{ 

  if (QDElement.ID == 'EXTFLDV_500090') //primary service

  {

  var primaryservref = document.getElementById('EXTFLDV_500090').value; //get primary service value

 

  da.DB.ClearParam();

  da.DB.AddParam("PRIMSERV", primaryservref);

  r = da.DB.GetRecordset("GET CHANGE APPROVAL GROUP"); // run query to retrieve group

 

  var changeapprover = GetString(r.Fields("NAME").Value);

 

  SearchFilter = new QDSearchFilter("NAME", changeapprover, true);

  SetValueFromQuickSearchResult(GetQDElement('EXTFLDV_500027'), ShowWorkflowGroupQuickSearch(GetQDElement('EXTFLDV_500027'), false, SearchFilter));

 

  }

}

 

So I can retrieve the stakeholder group from the Service then pass the value to the Workflowgroup quick search, but I have no idea how populate the multiQD value in the Workflow group field (EXTFLDV_500027).

 

Any ideas? Anyone tried this? or something similar?

 

Cheers


Viewing all articles
Browse latest Browse all 497

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>