on 02-19-2015 2:05 PM
I am trying to see how many attributes have domains assigned to it.
My vb script throws an error the moment it runs into an attribute that has no domain assigned. Is there any way to check if a domain is assigned or not without getting an exception from the script?
thank you
Hi,
You simply need to compar the domain with Nothing
If you are in a CDM, you need to check the domain on the data item.
An attribute in CDM is just a relational link between an entity and a data item.
if not (attribute.DataItem.Domain is Nothing) then
... do something on domain
end if
In an LDM, you check the attribute.
if not (attribute.Domain is Nothing) then
... do something on domain
end if
Marc
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A a dependency matrix like this one (in the CDM, the rows must contain data items) provides a simple visual check:
In the matrix, use the 'empty rows' and 'non-empty rows' buttons to filter the attributes to show only those that do or don't have a domain specified:
You can also use the filter button to select fewer or more objects for the rows and columns:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.