macros:example:deletegroup
Table of Contents
Example
Delete Group X
by: | Sebastian Beutel |
---|---|
published: | November 2018 |
description: | deletes a designated group |
functions
Code
- DeleteGroup20.xml
<?xml version="1.0" encoding="utf-8"?> <avolites.macros> <macro id="SB.DeleteGroupUn20" name="Delete Group 20"> <sequence> <step>Handles.SetSourceHandleFromHandle("groupHandleUN=20")</step> <step>Handles.ConfirmDelete()</step> </sequence> </macro> </avolites.macros>
Explanation
This explains the functional steps within the sequence. For all the other XML details please refer to Formats and syntax
Handles.SetSourceHandleFromHandle(“groupHandleUN=20”)
marks the group with usernumber 20 as sourceHandle for the next operationHandles.ConfirmDelete()
deletes the previously selected handle (the group UN20)
How to use it
- while it may be not that interesting to delete a group by individual macro, this is an example how items can be deleted in general - and maybe this is useful in another context
You could leave a comment if you were logged in.
macros/example/deletegroup.txt · Last modified: 2018/12/23 15:54 by 127.0.0.1