Re: Setting the XML

  • From: Brendan Murphy <bmurphy@xxxxxxxxxxxxxxxxxxxxx>
  • To: ftcdev@xxxxxxxxxxxxx
  • Date: Wed, 3 Aug 2011 13:36:01 -0500

Jym Morton wrote:
> I thought this would be simple, but I'm obviously missing something.
> 
> So that I can understand how to retrieve XML data could you please
> demo what would go into the Action Event of button to display XML in
> the FTC.  I have put the following onto a Window myFTC, TextArea and 2
> buttons.  In the open event of the window I have cut and pasted the
> Demo's Insert Custom Hyperlink so myFTC opens with a working
> Hyperlink.
> 
> Button1 Action Event code :TextArea1.Text = myFTC1.getDoc.getXML
> (this works because if I cut and paste that to a text editor and save
> it as myFile.xml it opens in the demo with the hyperlink in tacked)
> 
> Button2 Action Event code: myFTC1.setXML(TextArea1.Text)
> (this will only show any text I have typed into myFTC1 and nothing else)
> 
> What am I missing in Button2 Action event so words True North Software
> appear (blue and underlined) AND when clicked on it opens the
> hyperlink?

Your instance of an FTC must contain code that tells the FTC how
to handle specific custom objects when they are read in. See the
XmlObjectCreate event in the FTC on the main test window. The
purpose of this code is to translate an XML tag into a custom
object when the base FTC does not recognize the tag.

If you can see the "FTCustomHyperlink" tag in the XML stream that
you extracted from the FTC, then what I said is probably what you
are running into in that you need to add this glue code.

----

Brendan Murphy
True North Software
www.TrueNorthSoftware.com



FTC Website: http://www.truenorthsoftware.com/formattedtextcontrol
Set List Options (digest and vacation modes): www.freelists.org/list/ftcdev
List Archive: www.freelists.org/archives/ftcdev
Unsubscribe: Send email to ftcdev-request@xxxxxxxxxxxxx with "unsubscribe" in 
the subject field.



Other related posts: