Delights Posted August 19, 2009 Posted August 19, 2009 Greetings; I have a field called "Product_description" and "Product_description_html". what i want to happen is when you type the following into the field "Product_description"; "FEATURES: Pg 20- EVAN FARMER- While You Were Out's handsome handyman host kisses and tells about his music, his 'underrobe' and his search for Mrs. Farmer. " to this in "Product_description_html"; "FEATURES: Pg 20- EVAN FARMER- While You Were Out's handsome handyman host kisses and tells about his music, his 'underrobe' and his search for Mrs. Farmer."
bcooney Posted August 19, 2009 Posted August 19, 2009 Why not just use GetasCSS ( ) and not enter the html code, but use FM's formatting?
Delights Posted August 19, 2009 Author Posted August 19, 2009 (edited) well because eventually all the descriptions will be changed to have the html code. I want the second box to show what it will look like on the website.. Edited August 19, 2009 by Guest
bcooney Posted August 19, 2009 Posted August 19, 2009 Just format in FM. For the website, have a calc field that uses GetasCss()
TheTominator Posted August 19, 2009 Posted August 19, 2009 (edited) You should be able to use the "data" feature of the web viewer to properly render the HTML you have in a data field. Make the "second box" a web viewer on your layout. Instead of using an external URL, set the web viewer to have something like "data:text/html," & Product_description & "" as the calculation of its URL. Note that the web portal's "data:" feature has become more reliably cross-platform with FM 10. Edited August 19, 2009 by Guest
Peter (duksis3) Posted August 19, 2009 Posted August 19, 2009 GetAs(CSS) mainly is" aprox to html". OK in a lot of cases but anyway - for lager texts containing several fields, calculations, image URL's - correct calculation must be written - with all "&", " and so on, and then GetAS (CSS) can be used to finalize html code.
Delights Posted August 19, 2009 Author Posted August 19, 2009 i would like to make sure that is is going to come out all right, i want to make sure that it is fine so i dont have to check all 1000+ records on the site, it will show a preview on the second box.
Delights Posted August 19, 2009 Author Posted August 19, 2009 Thanks This is excactly what i was after, the coding is listed below. Thanks for the help. "data:text/html," & Product Catalog::v_products_description_1 & ""
Recommended Posts
This topic is 5576 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now