Chapter Contents

Previous

Next
Form Data Model: _completeDrag

Form Data Model: _completeDrag



Completes a viewer's drag operation


Syntax
Details

Syntax

CALL SEND (model-id, '_completeDrag', rep, op, data, code);

Argument Type Description
rep
C specifies the representation selected for the drop
op
C specifies the operation selected for the drop
data
N specifies an SCL List identifier that contains the data defined by the representation
code
C returns the completion code of the _validateDropData method:


'ACCEPT' successful completion


'CANCEL' canceled completion


Details

The _completeDrag method is called automatically when a drag operation has been completed on the attached viewer and the viewer does not recognize the rep passed to it. The values passed for rep and code determine how the drag operation is completed. For example, a subclass of the Form Data Model is the Data Set Data Model, which understands a drag representation of _dndDATASET. This representation means to create a new table and pass the name of table as the drag data. If a rep of _dndDATASET was passed to an instance of Data Set Data Model and code was 'ACCEPT', no action would take place. If code was 'CANCEL', the instance of Data Set Data Model would need to delete the table that it created.

As another example, suppose a user is attempting to move rows from one data table to another. The user would use _completeDrag to delete the rows being moved if code was 'ACCEPT'.

For general information about drag and drop operations, see SAS/AF online help.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.