Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

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

Carl Pates


At 09 JUL 2021 05:56AM Gordon Heidtmann wrote:

Thanks Carl, that sorted it.

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/814a74f856a6754ea26ef5c26c1f2d18.txt
  • Last modified: 2024/01/04 20:57
  • by 127.0.0.1