Renerabbitt Posted August 18, 2021 Share Posted August 18, 2021 Maybe I am doing something wrong but wanted to create a library of notes that carried global macros without using the attached macro option of the library item iself. Meaning I want to set a global macro from either the notes text or Custom Field. I couldn't get it to work, confirming that I am not doing something wrong. Link to comment Share on other sites More sharing options...
Alaskan_Son Posted August 18, 2021 Share Posted August 18, 2021 49 minutes ago, Renerabbitt said: I want to set a global macro from either the notes text or Custom Field. The defining macro needs to be executed somewhere onscreen or else the global will never be defined. It doesn't necessarily need to be visible, but Chief needs to render it somehow. If you want to use the Text Field for example, then you would need to have the Note Schedule placed somewhere in your view (even off to the side) and the Text Column would need to be displayed. Because the Text Column is displayed, the defining code will be executed, and then global variable will be set. The problem with the Text Field is that the Note Schedule is the only place that text can be rendered onscreen aside from the actual data entry field. If you want to use a Custom Object Field, you could still use the schedule method, but there are other more complex methods you can use as well. For example, you could just include the defining text in your actual callout label in such a way that it is not displayed, like this maybe... %simple_schedule_number%%($test = custom_fields["Test Field"]); ""% Link to comment Share on other sites More sharing options...
Renerabbitt Posted August 19, 2021 Author Share Posted August 19, 2021 As always, you're the man. Drag and drop Library Notes to automatically change detail callouts and Project info. 1 hour ago, Alaskan_Son said: %simple_schedule_number%%($test = custom_fields["Test Field"]); ""% Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now