Hello,
I have run into a problem in the standard code (which I didn't change it, and I don't understand why is the problem) on SalesPurchJournalSelect.setJournalHeader_allowEdit()
Here is the code :
*******************
protected void setJournalHeader_allowEdit()
{
SysDictTable dictTable = new SysDictTable(this.journalHeader_ds().table());
Counter i;
FormDataSource fds = this.formDataSourceAll();
;
for (i=1; i<=dictTable.fieldCntWithoutSys() ;i++)
{
this.journalHeader_ds().object(dictTable.fieldCnt2Id(i)).allowEdit(false);
}
for (i=1; i<=dictTable.fieldCntWithoutSys() ;i++)
{
fds.object(dictTable.fieldCnt2Id(i)).allowEdit(false);
}
}
For the line :
this.journalHeader_ds().object(dictTable.fieldCnt2Id(i)).allowEdit(false);
I got (when i=37) the exception of null object (And that is the first field I added to the table PurchParmLine).
I have tried to do synchornize, also delete the new fields and add them again, but still the same problem.
I see that fields are on sqlDictionary with appropiate index, but on :
this.journalHeader_ds().object(dictTable.fieldCnt2Id(i)) the object is null.
- but I cannot see what may be the problem cause (Why SysDictTable is not synchronized with my table).
Thanks :)