August 19, 200916 yr 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."
August 19, 200916 yr Why not just use GetasCSS ( ) and not enter the html code, but use FM's formatting?
August 19, 200916 yr Author 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, 200916 yr by Guest
August 19, 200916 yr 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, 200916 yr by Guest
August 19, 200916 yr 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.
August 19, 200916 yr Author 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.
August 19, 200916 yr Author 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 & ""
Create an account or sign in to comment