Hi dalmeidd,
it will be very easy if you apply some Jscript code. It will not include more than 10 lines. If you haven't solved the problem here is a very simple code how do it:
XDocument.DataObject["Data connection name"].Query;
var objList = XDocument.DataObjects["Data connection name"].DOM;
objList .SetProperty(".....")
var nodes = objList .selectNodes("here is the dfs path\@ID");
maxID = nodes.Math.Util(nodes)
uniqueID = maxID +1;
while ((uniqueID.toString()).length <number of length you want )
{
uniqueID = "0"+uniqueID;
}
This is a very fast example so there can be some errors. But the idea is correct. Hope you get it fast.
Regards,
Svetoslav