Roel Westhoff [W4]
3-Feb-2015, 08:00 AM
Hi All,
DF18.1.a1
Not sure if it is a bug or just my programming
The problem:
Related fields are not showing when a system-file is presented. The data of the systemfile itself is shown.
The save procedure is executed and related fields are filled in the database but when i reopen the view (restart the webapp) no related-field data is shown
Below the data-structure.
Object oTimezone_DD is a cTimezoneDataDictionary
End_Object
Object oCurrency_DD is a cCurrencyDataDictionary
End_Object
Object oSys_DD is a cSysDataDictionary
Set DDO_server to oCurrency_DD
Set DDO_server to oTimezone_DD
Set pbClearAfterSave to False
// define local relationship
Set pbUseDDRelates to True
Set Field_Related_FileField Field Sys.CurrentTimezone to File_Field Timezone.ID
Set Field_Related_FileField Field Sys.CurrentCurrency to File_Field Currency.Code
End_Object
Set Main_DD to oSys_DD
Set Server To oSys_DD
Procedure OnShow
Send Clear to oSys_dd
Send Rebuild_Constraints to oSys_dd
End_Procedure
Pretty straightforward.
Field length are identical and indexes has been placed on timezone.id and currency.code
Done this hunderds of times.....
Roel
DF18.1.a1
Not sure if it is a bug or just my programming
The problem:
Related fields are not showing when a system-file is presented. The data of the systemfile itself is shown.
The save procedure is executed and related fields are filled in the database but when i reopen the view (restart the webapp) no related-field data is shown
Below the data-structure.
Object oTimezone_DD is a cTimezoneDataDictionary
End_Object
Object oCurrency_DD is a cCurrencyDataDictionary
End_Object
Object oSys_DD is a cSysDataDictionary
Set DDO_server to oCurrency_DD
Set DDO_server to oTimezone_DD
Set pbClearAfterSave to False
// define local relationship
Set pbUseDDRelates to True
Set Field_Related_FileField Field Sys.CurrentTimezone to File_Field Timezone.ID
Set Field_Related_FileField Field Sys.CurrentCurrency to File_Field Currency.Code
End_Object
Set Main_DD to oSys_DD
Set Server To oSys_DD
Procedure OnShow
Send Clear to oSys_dd
Send Rebuild_Constraints to oSys_dd
End_Procedure
Pretty straightforward.
Field length are identical and indexes has been placed on timezone.id and currency.code
Done this hunderds of times.....
Roel