StrataFrame Forum

Using BO with XML instead of temp table

http://forum.strataframe.net/Topic23085.aspx

By Doron Farber - 5/12/2009

Hi Trent,

I will be using XML data (returned from a stored procedure) and an XSLT to display the results of our search.  Is there a way to use the BO tailored to this scenario?

Please see below link what I am actually doing just to be clear of the subject.

http://forum.strataframe.net/Topic21580-8-2.aspx#bm21888|

Thanks,

Doron

By Trent L. Taylor - 5/13/2009

How are you planning on displaying the results?  If you are going to use a web browser control to show the results, then there is not much to do past retrieving the results and dumping them into the web browser control for display.  Otherwise, I would need more detail to understand what you are planning on doing.
By Doron Farber - 5/14/2009

Hi Trent,

That's correct.  We are planning on displaying the result in a web browser control.  From there, we will link to various other pages. 

Here’s a thread going back and forth regarding XML/XSLT versus using a basic Grid.  http://bytes.com/groups/net/121665-what-pros-cons-using-xslt

Regards,

Doron

 

 



By Trent L. Taylor - 5/15/2009

Well, you won't want to use XML within the BO itself as that would be really slow.  You will want to leave all BO logic intact as this will be the best way to go.  However, you can create a custom property or method that allowes you to interact with the data in an XML format.

For example, you could create a property called XMLData which in turn calls an internal method to produce the desired output.  Since at this point you do not need to update the XML data, just display it, then this would work great.  You could set it up as a custom property and then you would be able to access this at any point and even bind to it.