In general, configuring the fields in the add2db dialog works same as before, in the section [USERDIALOG] in erpcustom.cfg
When using VBS statements, there are context objects “table” (proxyTableC), “document”, “prjpath”. This should also work in PSOL without changes. Before, you could access those objects via application.ActiveTable.Table and application.ActiveDocument, but it doesn´t make sense in a server environment. Example: [table.NN]
There was also a possibility to fill a ComboBox via VBS statements. You got a reference to a Qt ComboBox object and would add items to it. Now, the snippet must return a list of strings. You need two strings per item, the internal value, and the visible value. Example: [Array("1", "A", "2", "B")]