10-13-2014 10:47 AM
10-14-2014 07:07 AM
(...maybe you could post the code you have so far...)
Ok, then after you instantiate the current document, declare your keywords as variables, some simple Case statements should do it
Case xxx
kw=xx
case yyy
kw=yy
10-14-2014 12:12 PM
Hi Kathy,
Thanks for the additional information. It looks like your current approach, using VBScripting, is going to be the only way to accomplish what you want to do since you're using OnBase 11.
However, I would encourage you to keep the following in mind. In OnBase 12 we started to add significant functionality to Workflow where scripts can be replaced for common tasks by using Properties and Expressions within Workflow. The very thing that you're trying to accomplish could be replaced with 2 actions within Workflow now!
In the current version of OnBase, you'd use one action to copy the keyword that contains the Doc Type name into a Property using the "Set Property Value" action. Then, you'd use another action of "Set Document Type" and use the "Get Document Type from Property" setting on that action.
This is just a general statement for everyone that reads this post, but make sure you re-evaluate your existing scripts in Workflow to see if native Workflow functionality can replace them.
I wish I had more to contribute here. Unfortunately, I'm not a lot of help when it comes to scripting. However, now that we have a bit more context around what you're trying to do, I'm sure someone else here can help.
Thanks,
Thomas
10-15-2014 07:44 AM
10-15-2014 11:03 AM
hmmm... You may have to declare an array for the data set.... Anyways....
What happens if you try something like this?
------------------------------------------
With CurrentDoc '(whatever this object is)
Select Case strOBDocName
Case Yellow
obkeys.AddKeyword "LN RTL Doc Type", "Yellow"
Case Blue
obkeys.AddKeyword "LN RTL Doc Type", "Blue"
etc
End Select
End With
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.