3-11-11 any way to show FileMaker fields styled with TextColor in that color using Lasso?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

3-11-11 any way to show FileMaker fields styled with TextColor in that color using Lasso?

Tami Williams-3
Using Lasso 8.5.6 and FileMaker 11.

In the FileMaker database there are a large number of fields defined  
like this (note this is example text, not what's really there):

TextColor("this is text colored green"; RGB(0; 255; 0) )


So, on in browse mode in FileMaker you see a field with the value  
"this is text colored green" and that text is green in color (not  
black).


My problem is that I need to have these fields show up on the web in  
the exact same way that the user sees them in FileMaker.


Is there any way to do this automatically with Lasso?


Alternatively:

My workaround is to have 2 fields in the database - one, let's say its  
called "fieldX", which has the text string (i.e. "this is text colored  
green)  OR the original calc - TextColor("this is text colored green";  
RGB(0; 255; 0) ) and another field, let's say its called "fieldX  
colorName", which has the colorName (i.e. "green).

Then, in my stylesheet I'd define styles for each of my different  
colorNames, like this:

.green{
color:green;
}

And, in my Lasso page I'd do this:

<td class="[var('fieldX colorName')]">[var('fieldX')]</td>


Any other ways to do this?  Thanks in advance!




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"It's better to burn out than to fade away."

Tami Williams
Creative Computing
Atlanta, GA 30341
Voice: 770.457.3221
Fax: 770.454.7419
E-mail: [hidden email]
Web: http://www.asktami.com/
iChat/AIM/MSN: tamiwilliamsusa
ICQ: 304780390

FileMaker Solutions Alliance Associate | Lasso Professional Alliance  
Member


#############################################################
This message is sent to you because you are subscribed to
  the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
To switch to the DIGEST mode, E-mail to <[hidden email]>
To switch to the INDEX mode, E-mail to <[hidden email]>
Send administrative queries to  <[hidden email]>

Reply | Threaded
Open this post in threaded view
|

Re: 3-11-11 any way to show FileMaker fields styled with TextColor in that color using Lasso?

Tami Williams-3
Got the answer super quick!  Thanks!

Create a calc field in Filemaker using GetAsCSS, then display that  
calc field on the web.


On Mar 11, 2011, at 8:10 PM, Valentin Avksentyev wrote:

> GetAsCSS( text ) and pass in your formatted text.
>
> Sent from my iPad
>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"It's better to burn out than to fade away."

Tami Williams
Creative Computing
Let us help you make frustrating, costly, and inefficient processes  
more efficient, less costly and scalable.
Lasso, MySQL and FileMaker specialists.

Tel: 770.457.3221
Fax: 770.454.7419
E-Mail: [hidden email]
Web: http://www.asktami.com/
LinkedIn: http://www.linkedin.com/in/asktami
Twitter: http://twitter.com/asktami
iChat/AIM/Skype: tamiwilliamsusa

FileMaker Solutions Alliance Associate | Lasso Professional Alliance  
Member

------

If you want to receive sporadic email from Creative Computing  
regarding news at the company and announcements about upcoming Lasso  
webinars and online classes, please opt-in at http://tinyurl.com/yj7eqlg


#############################################################
This message is sent to you because you are subscribed to
  the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
To switch to the DIGEST mode, E-mail to <[hidden email]>
To switch to the INDEX mode, E-mail to <[hidden email]>
Send administrative queries to  <[hidden email]>

Reply | Threaded
Open this post in threaded view
|

Re: 3-11-11 any way to show FileMaker fields styled with TextColor in that color using Lasso?

Tom W Robinson
Hi Tammi,

Hoping to do the same.  Created a calc field in Filemaker and using GetAsCSS, but can't get lasso to render the calc field so I see the formatted text on the web.

Tom
Reply | Threaded
Open this post in threaded view
|

Re: 3-11-11 any way to show FileMaker fields styled with TextColor in that color using Lasso?

Tami Williams
All you need to do in your lasso page is

[field('yourfieldname')]

IF 'yourfieldname' = a FileMaker calc field  =

GetAsCSS ( yourfieldname )


where yourfieldname  is a text field with text in bold/colors, with paragraph returns, etc.


On Oct 25, 2011, at 5:55 PM, Tom W Robinson wrote:

> Hi Tammi,
>
> Hoping to do the same.  Created a calc field in Filemaker and using
> GetAsCSS, but can't get lasso to render the calc field so I see the
> formatted text on the web.
>
> Tom
>
> --
> View this message in context: http://lasso.2283332.n4.nabble.com/3-11-11-any-way-to-show-FileMaker-fields-styled-with-TextColor-in-that-color-using-Lasso-tp3349470p3938424.html
> Sent from the Lasso - Talk mailing list archive at Nabble.com.
> #############################################################
> This message is sent to you because you are subscribed to
>  the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: 3-11-11 any way to show FileMaker fields styled with TextColor in that color using Lasso?

Tami Williams
Sorry,

no I'm using Lasso 8.5.  Haven't tried it on Lasso 9.

Are you doing: [field('field name')]?

Try:

[var('test' = field('field name') )]

[var('test')]




On Oct 25, 2011, at 6:50 PM, Tom Robinson wrote:

> Hi Tami,
>
> thanks for your quick reply!
>
> Are you using Lasso 9.x?
>
> I'm still getting the css/html on the page.
>
> example:
>  
> I am testing if  <SPAN STYLE= "font-weight: bold;" >Bold </SPAN> is working
>
> appears on the page when I type
>
> I am testing if Bold is working
>
> in the field.
>
> Thanks,
>
> Tom
>
>
>
> On Oct 25, 2011, at 3:36 PM, Tami Williams wrote:
>
>> All you need to do in your lasso page is
>>
>> [field('yourfieldname')]
>>
>> IF 'yourfieldname' = a FileMaker calc field  =
>>
>> GetAsCSS ( yourfieldname )
>>
>>
>> where yourfieldname  is a text field with text in bold/colors, with paragraph returns, etc.
>>
>>
>> On Oct 25, 2011, at 5:55 PM, Tom W Robinson wrote:
>>
>>> Hi Tammi,
>>>
>>> Hoping to do the same.  Created a calc field in Filemaker and using
>>> GetAsCSS, but can't get lasso to render the calc field so I see the
>>> formatted text on the web.
>>>
>>> Tom
>>>
>>> --
>>> View this message in context: http://lasso.2283332.n4.nabble.com/3-11-11-any-way-to-show-FileMaker-fields-styled-with-TextColor-in-that-color-using-Lasso-tp3349470p3938424.html
>>> Sent from the Lasso - Talk mailing list archive at Nabble.com.
>>> #############################################################
>>> This message is sent to you because you are subscribed to
>>> the mailing list Lasso
>>> [hidden email]
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>