Multiline (V) text in query trick

Contains tips for configurators working with Aware IM
Post Reply
hpl123
Posts: 2596
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Multiline (V) text in query trick

Post by hpl123 »

Hi all,
When creating some specific queries, I have struggled with what I thought was a limitation of the current Aware IM (extjs) queries, namely queries only supporting 1 line of text (vertically) and then today I tested adding a <br> "snippet" and whola, the query now is a multiline query (vertically) :).
Henrik (V8 Developer Ed. - Windows)
customaware
Posts: 2403
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Post by customaware »

Where did you add the <br> snippet
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
Rennur
Posts: 1191
Joined: Thu Mar 01, 2012 5:13 am
Location: Sydney, Australia

Post by Rennur »

<br> is a HTML tag that inserts a single line break.
I'm also curious as to where you have inserted this tag.

Got a screenshot?
hpl123
Posts: 2596
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Post by hpl123 »

I just added it directly in the text. Try it in a plain text attribute, add: "line 1<br>line2".
Henrik (V8 Developer Ed. - Windows)
customaware
Posts: 2403
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Post by customaware »

I cannot expect my users to type a <br> at the end of every line. :-/
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
hpl123
Posts: 2596
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Post by hpl123 »

No surely not. I intend to use it with special queries with specific information and thereby control it + play around some with rules etc to see what I can come up with.

Related to this, support can't we have this functionality build in as a setting? Extjs has many different additional text etc settings that would be valuable and the more we have the better.
Thanks
Henrik (V8 Developer Ed. - Windows)
customaware
Posts: 2403
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Post by customaware »

I have a real need for it but have solved the issue with a Custom HTML Form which displays multiple lined text in a cell.

Also solved the problem of conditionally displaying of data (background colours and text) on different rows and columns as well. Actually provides a lot of flexibility really.
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
himanshu
Posts: 723
Joined: Thu Jun 19, 2008 6:24 am
Location: India
Contact:

Post by himanshu »

Hi Henrik,

Are you able to successfully able to create a new line in the plain text attribute ?

As i am try to append text in a plain text attribute with new line but not get any success.

Thanks,
From,
Himanshu Jain


AwareIM Consultant (since version 4.0)
OS: Windows 10.0, Mac
DB: MYSQL, MSSQL
hpl123
Posts: 2596
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Post by hpl123 »

Yes, this works for me. I add the text (see previous post) in a plain text attribute and then run a query with that attribute in the query and I have 2 lines.
Henrik (V8 Developer Ed. - Windows)
ACDC
Posts: 1142
Joined: Sat Jun 30, 2007 5:03 pm
Location: California, USA

Post by ACDC »

Have you tried setting the css to

.x-grid-cell-inner {
white-space: normal;
}

as opposed to the default

.x-grid-cell-inner {
white-space: nowrap;
}
hpl123
Posts: 2596
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

THX

Post by hpl123 »

Nice tricks and after initial testing, seems like it works :). Thanks ACDC
Henrik (V8 Developer Ed. - Windows)
customaware
Posts: 2403
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Post by customaware »

Can that be applied for a single attribute in the query table rather than the entire app?

If so....where do you place it?
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
Post Reply