Is this possible?

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

Is this possible?

Postby Morley » Mon Aug 23, 2004 3:39 pm

I'd like a calculation that displays in two lines. Possible? The following does NOT work.
Code: Select all
return '<html>' + company_name + '<br>' + city + ' ' + region;
Morley Chalmers
7Office Inc.
User avatar
Morley
 
Posts: 891
Joined: Fri Apr 25, 2003 4:54 pm
Location: Toronto, Canada

Postby Jan Blok » Mon Aug 23, 2004 3:43 pm

When dislayed on a label it should work without a problem, what do you get?
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Postby Morley » Mon Aug 23, 2004 4:04 pm

Found another way to solve my problem.
Morley Chalmers
7Office Inc.
User avatar
Morley
 
Posts: 891
Joined: Fri Apr 25, 2003 4:54 pm
Location: Toronto, Canada

Postby Morley » Mon Aug 23, 2004 4:13 pm

Jan Blok wrote:When dislayed on a label it should work without a problem, what do you get?
I was trying to get a popup to display company name on one line with city, state and country on a second. Trying to provide for the same company name in multiple cities and keep the popup from stretching out horizontally. But value lists don't return calculations.

Instead I've made the value list be name and city and then display city, state and country immediately below when a particular name/city item is chosen in the popup.

I think this solution serves the purpose.
Morley Chalmers
7Office Inc.
User avatar
Morley
 
Posts: 891
Joined: Fri Apr 25, 2003 4:54 pm
Location: Toronto, Canada

Postby patrick » Mon Aug 23, 2004 4:45 pm

you could also create an html tooltip for that. Works very nice and you don't waste methods and forms for plain info...
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Postby Morley » Mon Aug 23, 2004 6:53 pm

patrick wrote:you could also create an html tooltip for that. Works very nice and you don't waste methods and forms for plain info...

Make the values in the popup appear by a tooltip? How is this done? Sorry Patrick, I'm not following you.
Morley Chalmers
7Office Inc.
User avatar
Morley
 
Posts: 891
Joined: Fri Apr 25, 2003 4:54 pm
Location: Toronto, Canada

Postby DFehrenbach » Mon Aug 23, 2004 8:19 pm

I don't know about having a tool tip in a pop-up, but if you want to display something in a tool tip that text wraps at a certain width you could try somethhing like this:
http://forum.servoy.com/viewtopic.php?t ... t=tool+tip
DFehrenbach
 
Posts: 252
Joined: Sat Sep 13, 2003 6:48 pm
Location: Cleveland, OH


Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 27 guests

cron