How can I get the list of all protocols in c# and show them in the low code app in dropdown as adhoc-data source?
As in GQI I cannot see any way like engine.GetUserConnection().GetProtocols?
OR
I can see I can get protocols all from Low code app directly, but how can I adjust to bring only names from Query?
Hi Apurva,
It's indeed currently not very straightforward to use the DMS classes in a GQI data source. The trick is to create a class that implements the ICommunication interface. This can be found here.
The 'GqiDmsConnection' class can then be used as follows:
public OnInitOutputArgs OnInit(OnInitInputArgs args)
{
var connection = new GqiDmsConnection(args.DMS);
var dms = DmsFactory.CreateDms(connection);var protocols = dms.GetProtocols();
...return new OnInitOutputArgs();
}