on 09-14-2016 10:53 AM
Hi all,
We have a problem applying the Method ShowObjectPicker to terms grouped in categories in the glossary model.
We would like to make the terms with a certain status (Candidate) available for selection. We've written the following script:
Dim gl, sel, selectedterm
Set gl = ActiveGlossary
Set sel = gl.CreateSelection
For Each cat In gl.Categories
For Each ter In cat.Terms
If ter.Status = "Candidate" Then
sel.Objects.Add ter
End If
Next
Next
Set selectedterm = sel.ShowObjectPicker
sel.Delete
The problem is, that the object picker doesn't show any terms (and we've verified that the selection contains elements). This problem seems to occur if the terms are located in categories, not if the terms are located directly under the model. The method ShowObjMultiSelection does not seem to have this problem, but we'd like to select only one element. We've also tried setting the arguments of the object picker, but as soon as you do that, it ignores the object selection. Could this be a bug of the object picker? Or is there something we have missed?
BR,
Rafal
When you create a term in a category, the entry will be added in Terms
automatically. So the following code works for me:
set gl = ActiveGlossary
set sel =gl.CreateSelection
for each t in gl.Terms
'in my case, it shows status is upper case
output t.status
if t.status = "CANDIDATE" then
sel.Objects.add t
end if
next
set selectedterm=sel.ShowObjectPicker()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.