Open table with Repository Function (OpenInsight 64-bit)
At 09 JUL 2021 05:34:31AM Gordon Heidtmann wrote:
I'm trying to use the Repository function to open a table in the table editor, as follows:
*Table
AppID = 'LF' ;* current application
TypeID = "DBTABLE" ;* OpenInsight message
ClassID = "" ;* Not Applicable
SP_Name = 'POLICY'
entid = AppID : '*' : TypeID : '*' : ClassID : '*' : SP_Name
result = Repository("DESIGN", entid, '')
However, I'm getting the following error:
REP300: Entity SYSPROG*OIWINEXE**TB_MAIN does not exist.
I'm assuming TB_MAIN is a deprecated version of the table builder? I have been able to open both Forms and Stored Procs with the same function.
Could anyone shed some light on this or suggest an alternative method please?
At 09 JUL 2021 05:47AM Carl Pates wrote:
Hi Gordon,
Sorry, it looks like we didn't catch that one - the DBTABLE specific DESIGN method is hard-coded to use TB_MAIN.
Try using this instead:
call repository( "DSNOPEN", entID, parentWin)Where parentWIn is the instance of the IDE to open in (it defaults to "RTI_IDE" )
We'll get this fixed for the next release.
Regards
At 09 JUL 2021 05:56AM Gordon Heidtmann wrote:
Thanks Carl, that sorted it.