Annika Posted June 27, 2024 Share Posted June 27, 2024 Hello, I would like to auto-create a new server object from a table and assign the "Entity Destination Type" as well as the "Node Name" from values in the table. I have tried used the Add Data Table From Schema option for the Server object, but this only covers table columns for the server NOT the input or output nodes. I have tried subclassing the server object (MyServer) and setting the "Entity Destination Type" and "Node Name" of the output node of the MyServer object. That works well but I would need different MyServer objects for every unique combination of "Entity Destination Type" and "Node Name". For example, MyServerA would route to "Specific" and "Input@Sink1" and "MyServerB" would route to "Specific" and "Input@Sink2". But I would rather just have a single MyServer object and use a table column to set the values for the output nodes. What is the best way of doing that? Thank you Annika Link to comment Share on other sites More sharing options...
cwhitehead Posted June 27, 2024 Share Posted June 27, 2024 Hi Annika, First, you will need to set up a data table where you are auto-creating the objects. I would recommend subclassing the Server into MyServer like you mentioned. In the data table, add an Object Instance Property column and set Object Type to 'MyServer' and Default Value Instantiation to 'AutoCreateInstance'. Then add two Node Instance Property columns, one that you can list the destination Node and the other where you list the Output Node of the auto-created MyServer. Ensure you set Auto-set Table Row Reference on the column where you list the Output Node of the auto-created MyServer to 'True'. Then on the MyServer, set Entity Destination Type to 'Specific' and Node Name to 'TableName.NodeInstancePropertyName'. You can then right click on the MyServer and select 'Update 'MyServer' Property Defaults From This'. You can then add more MyServers into the data table where you are auto-creating them and they will all route the entities to the correct next Node. Caleb 1 Link to comment Share on other sites More sharing options...
Annika Posted June 28, 2024 Author Share Posted June 28, 2024 Thank you so much! The piece that I was missing was adding the output node as a column with Auto-set Table Row Reference set to True. By adding this column and setting the row reference it therefore connects the source block with its output node. [I have shown a source object but the same is true for the Server object.] Link to comment Share on other sites More sharing options...
Recommended Posts