ActiveDocument.DynamicUpdateCommand("INSERT INTO tabGroups (groupName, number) VALUES ($(vGroupName), "&InsertValue&")")
This macro populates the tabGroups table with a group name and the selected numbers.
We initiate the application using e.g. this script:
RowNo() as number
'one' as groupName,
1 as number
The result would look like this:
You then could select some numbers, enter a group name in the input box and press the "new group of numbers" button, which creates a new group consisting of your selected numbers and named as you entered in the input box.
This solution only works, if you can enable the dynamic update feature
on document as well as on server level and might be limited to the IE plugin due to the AJAX/macro issue.