Skip to main content

The developer docs state that =@ should return the text of a shape:



However when I try to use that syntax in my shape I get an error:



 


The shape is just a simple rectangle as created from the 'Shapes' palette.


What am I doing wrong?

Hi Nathan thank you for contributing to the Lucid for Developers Community space. As this issue does not appear to concern our APIs I’ve moved your post to our Lucid Suite Community space.


You can represent a shape's text values with the formula =THIS. The @ symbol is used to reference shape data properties. For example if you have a shape data property named Value you could use @"Value" in a formula to get the value of that property.


However the @ symbol by itself does not return the text of a shape. It needs to be followed by the name of a shape data property. If you're trying to get the text of a shape you first would need to create a shape data field and manually assign the shape text as the value then you would need to reference the specific shape data property that contains this text.


If you're trying to achieve something different please provide more details and any additional screenshots of your canvas that might be helpful. This will help me provide a more accurate solution.


Thank you! Using =THIS worked for me to do exactly what I wanted.


 


However I'm still confused about the documentation that I included the screenshot of. It clearly states that:



When it is used without referencing items on the shape it will return the text of the shape.



 


Which is the opposite of what you said and how the formula works. 



However the @ symbol by itself does not return the text of a shape.



 


Am I misinterpreting something in the docs?


Hi Nathan


I appreciate your patience and your keen eye on this matter. I understand the confusion and I apologize for the discrepancy in the documentation. It appears there may be an error in our documentation regarding the use of the @ symbol.


The @ symbol is indeed used to reference shape data properties and not the text of the shape itself. The correct formula to get the text of a shape is =THIS. I have escalated this to our development team to correct the documentation and prevent any future confusion.


Your understanding and patience are greatly appreciated as we work on this. In the meantime please continue to use =THIS to get the text of a shape. If you have any other questions or concerns please don't hesitate to let me know.


Glad I'm not losing my reading comprehension skills 🙂


Thanks for the help!


You're welcome!


Reply