Commerce Server General - TreeView HTC in BizDesk

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > March 2004 > TreeView HTC in BizDesk





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author TreeView HTC in BizDesk
Jez Brewster

2004-03-02, 12:36 pm

Deferred loading of data via the Treeview HTC in BizDesk sounds like a great idea, but I must be missing a trick somewhere.

If I have a treeview data island of:

========================================
=============
<xml id=<xml id='taxonomyTreeViewXml'><document skip='yes'><s caption='ServiceLine'><HC caption='Pharmaceuticals and Healthcare'><Therapeu caption='Therapeutic Area' closed='yes'><expand /></Therapeu><CNS caption='Central Nervous System' closed='yes'><exp
and/></CNS></HC><FS caption='Financial Services'/></s><operations hidden='yes'><expand formid='treeViewExpand' /></operations></document></xml>
========================================
=============

.... and I want to load the children of the element "Therapeu" on-demand. I created an HTML form called "treeViewExpand" and used the onItemOpen event to set a hidden input value on this form. Then I set the ACTION property on the HTML form to a ASP con
taining the following:

========================================
=============
<!-- #INCLUDE FILE="../../include/BDXMLHeader.asp" --><!-- #INCLUDE FILE="../../include/ASPUtil.asp" --><!-- #INCLUDE FILE="../../include/DBUtil.asp" --><!-- #INCLUDE FILE="../../include/HTTPXMLUtil.asp" --><%
ServiceXMLRequest()

Sub ServiceXMLRequest()

Response.Write "<Oncology caption='Oncology' closed='yes'/><Respirat caption='Respiratory' closed='yes'/>"

End Sub
========================================
=============

The error message that I receive "Only one top level element is allowed in an Xml document" is logical. But HOW do I go about retrieving multiple children for a taxonomy term. If I can only ever return one child, this seems fairly confusing.

I'd be grateful for any pointers.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com