Hmmm... I did not try anything like that. Perhaps I mis-understood Justin's post, but what I did was add a method to the Utils class:
- Code: Select all
public TableRelation CreateTableRelation(ITable tableMeta, IForeignKey foreignKey)
TableRelation tr = new TableRelation(tableMeta, foreignKey);
I was able to get it working in a JScript template, but never did get that, or anything else, to work in a VBScript template. If you, or anyone else, is interested in taking this further, I added DnpUtils_116Beta.zip to the DnpUtils Plugin Archive. There is a message posted at the bottom of the archive that describes its contents.