Vault Data Standard 2015 R2 - set file category automatically

Vault Data Standard 2015 R2 - set file category automatically

Rproehl
Participant Participant
466 Views
2 Replies
Message 1 of 3

Vault Data Standard 2015 R2 - set file category automatically

Rproehl
Participant
Participant

Hi,

 

I'd like to set the category of an Excel file automatically related to the folder where it will be created (or it is stored).

 

e.g.

I have

 

-folder1

-folder2

-folder3

 

for each folder I have a catogory (e.g. categoryf1, categoryf2, categoryf3)

 

creating a new file in folder1 should set the category to categoryf1.

 

using

 

if ($_fl1 -eq "folder1")

{

$Prop[_Category].Value = "categoryf1"

}

 

within the function InitializeWindow

 

will stop the functionality (no UI window pops up).

in the xaml-file I've added

 

<TextBox x:Name="txtCategory2" Text="{Binding Prop[_Category].Value}"/>

 

I've removed the default ComboBox (which is part of the file.xaml) for selecting the category.

 

I hope it is just a little thing to modify - many thanks for your help

BR

Rainer

 

0 Likes
Accepted solutions (1)
467 Views
2 Replies
Replies (2)
Message 2 of 3

wangdu
Collaborator
Collaborator
Accepted solution

Hi Rainer,

 

In the script you have posted, double quotes in the indexer is missing.

$Prop["_Category"].Value = "categoryf1"

Does that help you?

 

HTH

Wangdu

www.coolOrange.com

Message 3 of 3

Rproehl
Participant
Participant

Thank u very much - after sitting days in front of these editor I'm getting blind.

 

It works now Smiley Embarassed

0 Likes