Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Calling SRP EDITOR from OI TCL...
What is the best method to call / launch SRP Editor from OI TCL?
1. By just lauching-it from TCL
2. By launching-it from TCL and passing parameters, example: srpedit filename recordname
Thanks
Paulo
1. By just lauching-it from TCL
2. By launching-it from TCL and passing parameters, example: srpedit filename recordname
Thanks
Paulo
Comments
First, I move your thread from the SRP Editor Control topic to the SRP Editor topic. I know, a bit confusing, but the SRP Editor is also a control which can be used without the SRP Editor.
1. The way to launch any OpenInsight form from the OI TCL is to use the EVAL command. Thus, you can use the MAKEVOC tool or manually create a record in the SYSVOC table as such:
<1> TCL
<2> EVAL SRP_EDITOR
2. Passing parameters is a bit more complicated. The SRP Editor supports this, but it has to be done via code. We will write a more complete article on how to interface with the SRP Editor in the near future, but this syntax should get you started:
SRP_Editor_Open(Type, ID, LineNo)
Here are the comments for this routine:
* Parameters: * Type [in] -- Must be: "Procedure", "Insert", "Record", or "DOS" (!!!CASE SENSITIVE!!!) * ID [in] -- ID of the document to open. If "Procedure" or "Insert", ID must be an entity * ID descriptor. If "Record", then ID<1> is the table name and ID<2> is the key. * If "DOS", then ID is the full path and file name. * LineNo [in] -- Optional line number to jump to when the file is opened * * Returns: * 1 if successful, 0 if not.