rlackore

Add the Schedule Number to the Room Label

Recommended Posts

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?

 

919720595_roomlabel.thumb.PNG.0678715d56fccb4cc3c5bddca7bcdf6e.PNG

Share this post


Link to post
Share on other sites

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. 

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

 

MacroLabel.thumb.PNG.66198ef49034f11fe881c61ce74a6397.PNG

Share this post


Link to post
Share on other sites
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?

textmacro.thumb.PNG.0dcfbbe3eca83a04dddd714ae81bec14.PNG

Share this post


Link to post
Share on other sites
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%

  • Upvote 1

Share this post


Link to post
Share on other sites

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....

Share this post


Link to post
Share on other sites
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. 

Share this post


Link to post
Share on other sites
6 minutes ago, Alaskan_Son said:

 

You need to use %room.schedule_number%

 

Thanks.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Member Statistics

    28439
    Total Members
    9156
    Most Online
    JennieT
    Newest Member
    JennieT
    Joined