Scripting on Custom Properties

How can I, if possible, pull in custom properties into my scripts?

Here’s what I want to do: I have a custom property whose type is a dataset. I want some way to know if there are zero rows. I didn’t see any ability to do this by creating an expression, so I’m guessing it has to be done with a script. I know how to write scripts on datasets in general, but I’m not sure how to access custom properties in my scripts.

Here’s a simple example using an actionPerformed script of a button located on a root container that has a dataset custom property called testDS :

myDataSet = event.source.parent.testDS
system.gui.messageBox(“My Datset has " + str(myDataSet.getRowCount()) + " rows”)

1 Like

Also, you can use the len expression function on datasets, if you want to continue using expressions.