We're trying to troubleshoot a problem with our custom constituent headers that seems to be related to the batch number. Can anyone shed any light as to how the batch number actually gets passed into the constituent header?
Nick was correct in his speculation that the batch_no is poked into the constituent header datawindow by powerbuilder code that runs just after the header data is retrieved. The code looks for a column in the datawindow called 'batch_no' that is of datatype LONG and, if it finds one, sets the value to be the currently open batch number. Since the code is working off the column name, this should work for custom datawindows as well, as long as a column of that name and datatype is present. The userid and batch_type columns are also set the same way.