25.01.2015 Views

Using Caché Objects - InterSystems Documentation

Using Caché Objects - InterSystems Documentation

Using Caché Objects - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The Dynamic Dispatch Methods<br />

22.3.5 %DispatchSetMultidimProperty<br />

This method sets the value of an unknown multidimensional property. Its syntax is:<br />

Method %DispatchSetMultidimProperty(Property As %String, Value, Subs...)<br />

where its first two arguments are the name of the referenced property and the value that was<br />

being attempted to be assigned to it. The third argument, Subs, is an array that contains the<br />

subscript values. Subs has an integer value that specifies the number of subscripts, Subs(1)<br />

has the value of the first subscript, Subs(2) has the value of the second, and so on. If no subscripts<br />

are given, then Subs is undefined.<br />

Only direct multidimensional property references are supported for dynamic dispatch. $DATA,<br />

$ORDER, and $QUERY are not supported, nor is a SET command with a list of variables.<br />

Note:<br />

Note that there is no %DispatchGetMultidimProperty dispatch method. This is<br />

because a multidimensional property reference is identical to a method call. Thus,<br />

such a reference invokes %DispatchMethod, which must include code to differentiate<br />

between method names and multidimensional property names.<br />

22.3.6 %DispatchGetModified<br />

This method gets the value of the modified flag for an unknown property. Its syntax is:<br />

Method %DispatchGetModified(Property As %String)<br />

where its argument is the name of the referenced property.<br />

22.3.7 %DispatchSetModified<br />

This method sets the value of the modified flag for an unknown property. Its syntax is:<br />

Method %DispatchSetModified(Property As %String, Value)<br />

where its arguments are the name of the referenced property and the value to set for its<br />

modified flag.<br />

<strong>Using</strong> <strong>Caché</strong> <strong>Objects</strong> 191

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!