Miscellaneous CDK

From Team Developer SqlWindows Wiki
Revision as of 12:47, 12 September 2008 by 62.58.16.59 (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This page covers miscellaneous CDK Tips & Tricks

Contents


Pointer.pngWhy do old CDK tools fail to work on newer TD versions

You have to use the command line parameter "-MTX" with apps using CDK.
Gupta introduced this with TD 2005 PTF1, TD 2005.1 and TD 3.1 PTF4.

Place the -MTX parameter behind all other parameters in the user tool settings :

   "$Outline $MainWindow $File -MTX"


Pointer.pngHow to merge an application using CDK

The following sample shows how to merge an application and save it back to disk.

First include cdk.apl.

The next function performs the task, it merges Test.apt and saves it as Test_merged.apt:

Function: MergeAndSaveApplication
  Local variables
    cdkApplication: uApplication
  Actions
    If uApplication.InitFromFile( "c:\\Test.apt" )
      Call SalOutlineMergeIncludes( uApplication.GetOutline( ) )
      Call uApplication.SaveOutlineAsText( "c:\\Test_merged.apt", FALSE )
      Call uApplication.CloseApp(  )