KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
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
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

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

Commented by Tim Penner on September 21, 2009 at 4:28 PM
The developer can retrieve the id and state through the following commands:

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)