cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
445
Views
0
Helpful
1
Replies

TypeError: document.getElementById("ns_sim_assetDictName") is null

rabdulaz
Level 1
Level 1

Hi Team,

As we are extending the Multi-cloud for CUIC platform and facing the issue while lunching "Validate Platform Element" service form i.e. "Error: TypeError: document.getElementById("ns_sim_assetDictName") is null". So I have trying to searched "ns_sim_assetDictName" in the service form like html, scripts whether it is defined anywhere to identified the problem. but I couldn't.

Code sniphet:

// #########  Validate Platform Element ########### //

if (ServiceName == 'Validate Platform Element') {

   if (document.getElementById("ns_sim_assetDictName").value == 'ReturnEmail')

      serviceForm.SIBDCUICElement.setVisible(true);

  else

   if (document.getElementById("ns_sim_assetDictName").value == 'SIBDCUICElement') {

       serviceForm.SIBDCUICElement.setVisible(true);

       serviceForm.MultiCloudTriggers.PlatformType.setValue(['CUIC']);

       serviceForm.SIBDVMWarevCenterServerElement.setVisible(false);

       serviceForm.SIBDUCSManagerElement.setVisible(false);

       serviceForm.SIBDCiscoSPElement.setVisible(false);

   }

}

And the same style of code is followed for the other platform but I could find any issues over there. So could you please clarifying me that what is "ns_sim_assetDictName"? and where it should be defined? how can I happed to fix the issue?

1 Reply 1

derevan
Level 4
Level 4

Are you running Validate Platform Element from My Services? Or from the System Health portlet?

IAC only supports services ordered from the portlets. The ns_sim_assetDictName field comes from the URL used to load the service from the portlet. This is not available when ordering directly.

Review Cisco Networking for a $25 gift card