Tech Tip: Deleting 4D Ajax Framework's DDW's from the back end
PRODUCT: 4D Web 2.0 Pack | VERSION: 11.1 | PLATFORM: Mac & Win
Published On: August 6, 2008
PLEASE NOTE: This Tech Tip applies to 4D Web 2.0 Pack version 11.1 (Release 1)
Starting with the 4D Ajax Framework v11.1 (release 1) there is a new feature which allows developers to delete DDW's from code in the back end. The DAX_Dev_DDW_Delete command can be used to delete DDW's that were created On startup in the DAX_Dev_DDW_Install method.
The command is documented as follows:
Syntax: DAX_Dev_DDW_Delete(DDW ID) -> Result
Parameters:
$0 - LONGINT - Result (1 for success)
$1 - LONGINT - DDW ID
For more information on the 4D Ajax Framework go to:
Daxipedia
Command: DAX_Dev_DDW_GetID
This method allows the developer to get the DDW ID for a particular DDW name programmatically.
Syntax: DAX_Dev_DDW_GetID(DDW Name{;Mode}) -> DDW ID
Parameters:
$0 - LONGINT - DDW ID
$1 - TEXT - DDW Title or Name (e.g. DDW_1, DDW_2, ..., DDW_[n])
$2 - LONGINT - Mode (0 or Omitted for Get-By-Title, 1 or more for Get-By-Name)