Hi,
I’m looking a way to list by script the template parameters (of a template object).
when I use :
getDynamicProps()
getDropTargetProperty()
all the parameters are returned, but I would like to filter only inputs parameters, (no internal template parameters)
Any idea to achieve that ???
CPowell
2
If you check to see if the property is public or not, you can then create two lists to return.
Public = Template Property
Not = Internal Property
templ = event.source.parent.getComponent('My Template')
tempprops = []
internalprops = []
temp = list(templ.getComponents()[0].getProperties())
print temp
for item in temp:
if templ.getComponents()[0].isPropertyDefinedAndPublic(str(item)):
tempprops.append(item)
else:
internalprops.append(item)
print "Template Properties", tempprops
print "Internal Properties", internalprops
Cheers,
Chris
Thanks Chris
perfect whith isPropertyDefinedAndPublic