NetTalk Central

Author Topic: How to put a <br/> in the planner's Right Column Headers  (Read 3516 times)

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
How to put a <br/> in the planner's Right Column Headers
« on: August 30, 2017, 06:08:15 AM »
Hello All,

Hope everyone has been doing well.

I need to put a <br/> in the Right Column Header of a planner.  Despite my best efforts, I cannot figure out what I'm doing wrong.  

If I try (I'm paraphrasing).... 'Some text' & '<br/>' & 'Other Text' or
                                            'Some text & p_web.CRLF & 'Other Text'

And so on, the HTML in the source is displayed as "Some text <br/> other text."

Currently, the only way I can achieve the effect I need is to make the column narrow to force the text to "wrap."

I have attached some images to try and explain what I need.

Thanks,

Don
« Last Edit: August 30, 2017, 06:13:18 AM by DonRidley »
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

Robert Iliuta

  • Sr. Member
  • ****
  • Posts: 471
    • View Profile
    • Email
Re: How to put a <br/> in the planner's Right Column Headers
« Reply #1 on: August 30, 2017, 06:59:15 AM »
Hallo Don!

Did you try to check the option: Allow xHTML in column?
Go to field on General tab and bellow on Column tab and check this option.

It should works.

Robert

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: How to put a <br/> in the planner's Right Column Headers
« Reply #2 on: August 30, 2017, 07:07:09 AM »
Yes sir I did.

I've tried:

'Some String' & p_web.br & 'Some String'
'Some String' & p_web.HtmlString('<br/>') & 'Some String'
'Some String' & packet.append('<br/>') & 'Some String'  <----ERROR:  Cannot Call Procedure as Function (or something like that).
'Some String' & p_web.CRLF & 'Some String'
and many other iterations....

Thanks,

Don
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11179
    • View Profile
Re: How to put a <br/> in the planner's Right Column Headers
« Reply #3 on: August 30, 2017, 11:52:15 PM »
It should work, but doesn't for column headers.
I'm looking into that.

cheers
Bruce

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: How to put a <br/> in the planner's Right Column Headers
« Reply #4 on: August 31, 2017, 02:31:30 AM »
Yes Sir.  Thank you.  That was my conclusion as well.  The normal ways to perform <br/> in other areas of the planner work fine.  It just doesn't there.  I have a sneaky feeling it's in the Javascript but I may be wrong.

This is NT 8.71 by the way but I bet the issue is in NT10 as well.

Thanks again,

Don
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: How to put a <br/> in the planner's Right Column Headers
« Reply #5 on: August 31, 2017, 03:34:11 AM »
Also...just a quick bit of flattery for Bruce...

Although I haven't been active in Clarion for a few years, I have been keeping an eye on how my favorite products have been evolving (Hello NetTalk!).  I will be purchasing NT10 as soon as possible.  I believe it is one of the greatest Clarion accessories ever developed! I have a project that I have been tinkering with for many years.  I plan on marketing it soon and hopefully making money on it finally.  I could not do it without NetTalk and the many other awesome Capesoft templates.

Having said all that.....

Bruce,

Here is an idea to mull over in your mind.....

I believe the Planner in NT is an extremely powerful and versatile tool.  I use it in a, perhaps, unorthodox way in my current project (See Attached Picture).  I use this application at my day job as a police lieutenant in command of a shift of officers.  In fact, my whole agency uses this application.  I can click a button and automatically generate a schedule for my shift for any date range I select.  I can then assign officer to specific assignments and details which are acquired from another table.  This is the single most "cool" thing my application does.

I would like the planner to be able to do one more thing however.  I would love to be able to have multiple rows in the planner's right header row.  First row might be the dates.  Second row could display indicators for holidays (H), paydays (PD), etc.,.  ....and so on.  I know that you can enter multiple Right Side Headers under the data tab but they don't "line up" with each other.  They display consecutively instead of concurrently (I hope that makes sense).   

Anyway, food for thought to make the planner even more powerful.

Keep up the good work and God bless,

Don
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11179
    • View Profile
Re: How to put a <br/> in the planner's Right Column Headers
« Reply #6 on: September 05, 2017, 04:58:50 AM »
Hi Don,

I'm working to get the multi-line thing working. Once you have multi lines it's easy to have one thing on line 1, and something else on line 2. You just adjust the content of the cell to do that.

You can also control the height of the header bar in css. You could add something like this to your custom.css file;

.planner-header-row-size{
height:  34px;
}
.planner-header-data-height{
height: 34px;
}


cheers
Bruce

update: Fixed in 10.05
« Last Edit: September 05, 2017, 05:06:31 AM by Bruce »

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: How to put a <br/> in the planner's Right Column Headers
« Reply #7 on: September 05, 2017, 05:35:08 AM »
Yes sir.  I have adjusted the CSS quite a bit already to get the desired effect. 

I will patiently wait on the multiple lines feature.  I will be upgrading to NT10 at some point regardless.

What about the </br> issue itself?  It would be moot with the ability to have multiple header rows however.

Thanks for the update!!   :)

Don
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11179
    • View Profile
Re: How to put a <br/> in the planner's Right Column Headers
« Reply #8 on: September 06, 2017, 02:34:21 AM »
>> What about the </br> issue itself?

that's fixed in 10.05.

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: How to put a <br/> in the planner's Right Column Headers
« Reply #9 on: September 06, 2017, 04:45:21 AM »
Thanks!  I don't have NT10 yet but it's good to know that will be corrected when I get there.   ;)
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11