Hi,
Today, if a user copies and pastes the same node several times, we can end up with names like this:
TaskSUVHcHPwiimioCiWMQ0DvZUEBrE1EAddPTHRVyIkwqJ80CgS
TaskSUVHcHPwiimioCiWMQ0DvZUEBrE1EAddPTHRVyIkwqJ80CgSGH0T
TaskSUVHcHPwiimioCiWMQ0DvZUEBrE1EAddPTHRVyIkwqJ80CgSGH0TZXq7
TaskSUVHcHPwiimioCiWMQ0DvZUEBrE1EAddPTHRVyIkwqJ80CgSGH0TZXq7IDMw
TaskSUVHcHPwiimioCiWMQ0DvZUEBrE1EAddPTHRVyIkwqJ80CgSGH0TZXq7IDMwkO75
TaskSUVHcHPwiimioCiWMQ0DvZUEBrE1EAddPTHRVyIkwqJ80CgSGH0TZXq7IDMwkO75vZZE
TaskSUVHcHPwiimioCiWMQ0DvZUEBrE1EAddPTHRVyIkwqJ80CgSGH0TZXq7IDMwkO75vZZEvr5A
Ideally I would like the pasted node to have a net new name rather than simply appending a new random string to the existing name (although the base name from the palette must be at the beginning - e.g., Task in the above samples).
I looked at the documentation and noticed that the paste method accepts 2 arguments:
paste([object], [rename])
However, I don't always have an object - in fact we have a clone function that copies ALL nodes on a diagram and pastes them on a new diagram. I was hoping I could do something like diagram.paste(,true) or diagram.paste(true) since object is optional, but that doesn't paste anything.
Any suggestions on how to avoid these lengthy names?
Thanks
Jim