Hi Keith, Thanks… looks like we will have to wait a bit longer to resolve expressions in the headers…
Regards, Rudy Mortier Two Way Communications bvba ----------------- > On 22 Aug 2017, at 15:31, Keith Culotta via 4D_Tech <[email protected]> > wrote: > > > Maybe not super useful, but this: > > WP EXPORT VARIABLE(waAreaPtr->;$destination;wk web page html 4D;wk html debug) > SET TEXT TO PASTEBOARD($destination) > > gives this result: > > <html xmlns="http://www.w3.org/1999/xhtml" xmlns:d4="http://www.4D.com"> > <head> > <title>4D Write Pro New Document</title> > <meta name="datetimeCreation" content="2017-08-22T13:09:30.384Z" /> > <meta name="datetimeModified" content="2017-08-22T13:29:25.797Z" /> > <style type="text/css"> > body { -d4-version:1.01;background-color:#FFFFFF } > ul, ol { margin:0;padding:0 } > p,li { > white-space:pre-wrap;margin:0pt;padding:0pt;-d4-list-font:'Times New > Roman';-d4-font:'Times New Roman';font-family:'Times New Roman' } > div.section1Footer { margin:0.5cm 2.5cm 1cm } > div.section1Header { margin:1cm 2.5cm 0.5cm } > p.Normal,li.Normal { white-space:pre-wrap } > </style> > </head> > <body> > <p class="Normal">=======BODY text=======</p> > <div class="section1Header" style="visibility: hidden; height: 0"> > <p class="Normal">=======HEADING text=======</p> > </div> > <div class="section1Footer" style="visibility: hidden; height: 0"> > <p class="Normal">=======FOOTER text=======</p> > </div> > </body> > </html> > > Keith -CDI > >> On Aug 22, 2017, at 8:22 AM, Koen Van Hooreweghe via 4D_Tech >> <[email protected]> wrote: >> >> Rudi, >> >> Probably not for the faint-hearted! But I think it is not possible to access >> a 4D Write Pro object’s contents and you’re limited to the ST and WP >> commands. >> >> I did a quick test: >> >> C_OBJECT($wpObject) >> C_TEXT($jsonText) >> $wpObject:=WP New >> ST SET TEXT($wpObject;"Hello World!") >> TRACE >> $jsonText:=JSON Stringify($wpObject) >> SET TEXT TO PASTEBOARD($jsonText) >> >> If I look at the object in the debugger, I can only see the general >> settings, not the actual content. >> >> This is what I get on the pasteboard: >> { >> "backgroundColor": 16777215, >> "dateCreation": "2017-08-22T13:17:56.918Z", >> "dateModified": "2017-08-22T13:17:56.918Z", >> "title": "4D Write Pro New Document", >> "version": 1.01 >> } >> >> Not much to manipulate. >> >> Koen >> >> >>> Op 22 aug. 2017, om 14:26 heeft Two Way Communications via 4D_Tech >>> <[email protected]> het volgende geschreven: >>> >>> Would we be able to check the actual 4D Write PRO object and manipulate it? >>> After all, it is a C_Object… >> >> >> >> -------------------- >> Compass bvba >> Koen Van Hooreweghe >> Kloosterstraat 65 >> 9910 Knesselare >> Belgium >> tel +32 495 511.653 >> >> ********************************************************************** >> 4D Internet Users Group (4D iNUG) >> FAQ: http://lists.4d.com/faqnug.html >> Archive: http://lists.4d.com/archives.html >> Options: http://lists.4d.com/mailman/options/4d_tech >> Unsub: mailto:[email protected] >> ********************************************************************** > > ********************************************************************** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:[email protected] > ********************************************************************** ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

