Re: Handle of a DDO
There's probably a cleverer-out-the-box way, but we have the following in our DataDictionary subclass
Code:
// Function so that you can simply do a Broadcast Get inside a view to find a DDO that mightn't be a parent or child of the main server DDO
Function Find_DDO Integer hFile Returns Handle
If (hFile=Main_File(Self)) Begin
Function_Return (Self)
End
Function_Return 0
End_Function
// .. or alternatively call "DDObject" of the server and let it do the work for you.
Function DDObject Integer hFile Returns Handle
Handle hoParent hoDDO
If (hFile=Main_File(Self)) Begin
Function_Return (Self)
End
Get Parent to hoParent
Broadcast Get Find_DDO of hoParent hFile to hoDDO
Function_Return hoDDO
End_Function
The second is a helper function, whereby we can simply code
Code:
Get DDObject of (Server(Self)) (RefTable(MyUnrelatedTable)) to hoDD
"My wife thinks I over-analyse our marriage, which, to be frank completely contradicts the findings of my report." - @MooseAllain