i have a secondary data connection that gets the ID from sharepoint:
var prDom = XDocument.DataObjects("PRID").DOM;
XDocument.DataObjects("PRID").Query();
var prNum = prDom.selectSingleNode("/dfs:myFields/dfs:dataFields/dfs:PR/@ID").text;
my problem is this:
i'd like to update my form with the sharepoint id, but this just queries all of them and gives me the latest one.
is there code that would onLoad get the sharepoint ID? i know that on first load this would be nothing, but i can live with that. using the code above i was able to add one to the number, but this only works if one PR is created at a time. any help would great.