Getting Scriplet box caption (name)

Hi.

In some cases I use the same actual scriptlet code more than once, assigning different captions to reflect the params I have configured for each. In the log file, I would like to be able to distinguish which one of the several wrote a given log entry.

However, I can’t seem to find a function to fetch the name of a Scriplet box. Is there one?

If not, I would find it a useful addition for the future.

This?

But that means you have to give a handle and enable the scriptlet block for GPScript.

Right. How would you know which scriptlet to target if you didn’t already have some way to reference it

Possibly the request is for getting the name in the code of the scriptlet, which doesn’t know about plugin blocks?

Yes, that’s the hope - that somehow “the system” (which can know about plugin blocks) could provide a function call that returns the caption of the plugin block the scriptlet code is executing in.

Is that possible or impossible?

I’ve put it in our tracking system for a future release.

1 Like