Skip to main content
March 14, 2025

GetDynamicAdaptersForDynamicComponent

  • March 14, 2025
  • 2 replies
  • 0 views

Hello,

I can find no documentations about the "GetDynamicAdaptersForDynamicComponent" that is under the dynamic dashboard services.

How to use it ? How to define a dynamic adapter ?

My goal is to create dynamically a label component (which is done), but I would like to add a data adapter to it. Unfortunately, I haven't been succesful in dynamically linking a data adapter to my label :



 

Regards,

2 replies

SergeyAuthor
March 17, 2025

That being said, I can directly reference any data and put in the text field of my label, hence no need for a data adapter !

March 17, 2025

It appears be used to get your Adapter object inside another Adapter by its name:

	string adapterName = "someAdapter";
	WsDynamicAdapterCollection collection = GetDynamicAdaptersForDynamicComponent(
			si,
			api,
			workspace,
			maintUnit,
			dynamicComponentEx,
			customSubstVarsAlreadyResolved);
	
	WsDynamicCompAdptrMemberEx adapter = collection.GetAdapterUsingBasedOnName(adapterName)
	
	// do stuff with the adapter...