I have queried the Table (GlobalTable1) in custom code using SQL, Now i am trying to clone or copy the result to the Token Label is there is any way to copy the result to label using the flexscrpit
I have queried the Table (GlobalTable1) in custom code using SQL, Now i am trying to clone or copy the result to the Token Label is there is any way to copy the result to label using the flexscrpit
Hi @Tamilselvan,
Thank you for contributing to our community! We couldn't identify a maintained license or subscription linked to your account.
You may need to update your profile information to identify yourself as a license owner or their associate. Check out our article for how to ensure you receive timely support. If you update your profile comment back to let us know - we'll adjust the priority of your post accordingly.
If your current license is expired, please contact your local distributor to renew.
Hi @Tamilselvan, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.
If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.
Table result = Table.query("..."); result.cloneTo(token.labels.assert("labelName", labelValue);
This will copy the table to the label node. labelValue will be what is shown as the value of the table. To later access the table again, you have to cast the treenode as a table.
Table result = token.labels["labelName"]; Variant value = result[1][1];
Or all in one line.
Variant value = token.labels["labelName"].as(Table)[1][1];
14 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved