1
PCS Bugs and Issues / Re: PCS AD Issues
« on: June 10, 2025, 01:32:41 am »
As soon as we received the new license the problem went
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
SELECT t_object.ea_guid AS CLASSGUID,
t_object.Object_Type AS CLASSTYPE,
t_object.Name,
tv.Value AS TagName
FROM t_object
LEFT OUTER JOIN t_objectproperties AS tv
ON t_object.Object_ID = tv.Object_ID AND tv.Property = 'Vendor'
The clue is probably how you defined this attribute with default value.
It it correct that you didn't define that in code, but in your model, as an attribute of the DMScripts class?
In that case this.SomeData is definitely not going to work. There is little to no magic involved when it comes to EA.
If you want to access the attributes of the element on which the script is defined, then you'll have to do that yourself.
What you can do is (in VBScript)Code: [Select]dim x
dim dmScriptsClass
set dmScriptsClass = Repository.GetElementByGUID(<guid of the DMScripts class>)
for each attr in dmScriptsClass
if attr.Name = "SomeData" then
x = attr.Default
exit for
end if
next
Geert