rlackore Posted July 27, 2020 Share Posted July 27, 2020 For a few versions I've been using Rich Text boxes and macros to create custom room labels. However, I'm trying to leverage the power of schedules, and have figured out how to add the %schedule_number% macro to the default Room Label; however, any text (or macro) entered into the default Room Label appears after the room name, and I can't determine if there is a method to display the schedule number before the room name, e.g. 005 bdrm instead of bdrm 005. Has anyone else solved this problem? Link to comment Share on other sites More sharing options...
Alaskan_Son Posted July 27, 2020 Share Posted July 27, 2020 This is one reason of many that I don’t use the default room label a lot of times and rather to use standard or rich text boxes instead. P.S. Just to be clear, you can totally leverage schedules and still use manually copied and pasted text boxes. Link to comment Share on other sites More sharing options...
rlackore Posted July 28, 2020 Author Share Posted July 28, 2020 14 hours ago, Alaskan_Son said: P.S. Just to be clear, you can totally leverage schedules and still use manually copied and pasted text boxes. To a certain extent, but the %schedule_number% macro doesn't work in Rich Text boxes, at least not for Rooms. I will make a Suggestion. Link to comment Share on other sites More sharing options...
BrownTiger Posted July 28, 2020 Share Posted July 28, 2020 1 hour ago, rlackore said: To a certain extent, but the %schedule_number% macro doesn't work in Rich Text boxes, at least not for Rooms. I will make a Suggestion. That is because %schedule_number% is not a macro, and you are right it will never work. On the other hand if you do create a ruby macro: result="" result += owner.room.schedule_number + " - " + owner.room.name result It will work as a fake RichText room label Link to comment Share on other sites More sharing options...
rlackore Posted July 28, 2020 Author Share Posted July 28, 2020 15 minutes ago, BrownTiger said: That is because %schedule_number% is not a macro, and you are right it will never work. It isn't? Link to comment Share on other sites More sharing options...
Alaskan_Son Posted July 28, 2020 Share Posted July 28, 2020 1 hour ago, rlackore said: To a certain extent, but the %schedule_number% macro doesn't work in Rich Text boxes, at least not for Rooms. I will make a Suggestion. You need to use %room.schedule_number% 1 Link to comment Share on other sites More sharing options...
BrownTiger Posted July 28, 2020 Share Posted July 28, 2020 Yeah, I probably should have used the term not the "Ruby Macros" [or read the help file to find out how CA calls these] IMHO (%schedule_number%) - probably simple old string substitutions thingies... eval("%%room.schedule_number%%") returns an error... No matter what Ruby macros work in a richtext box.... Link to comment Share on other sites More sharing options...
Alaskan_Son Posted July 28, 2020 Share Posted July 28, 2020 45 minutes ago, BrownTiger said: That is because %schedule_number% is not a macro Sure it is. It's just not a valid macro for text boxes. Link to comment Share on other sites More sharing options...
rlackore Posted July 28, 2020 Author Share Posted July 28, 2020 6 minutes ago, Alaskan_Son said: You need to use %room.schedule_number% Thanks. 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