How to pass Hastable as Param in C# External Function?

Topics: General
Sep 8, 2011 at 12:03 AM

I created a generic helper class to accept a Hashtable that stores all the XSLT parameters so that I can loop through and get the parameters.  In a normal code-behind page, I can simply build the Hashtable with the ".Add" function but how would I do that in C1 and passing the Hashtable so that my external function can use it?

Thank you!

Sep 12, 2011 at 9:13 AM


I don't clear understand the task, I just can provide with link to the  Guide to C# Functions in C1

Sep 12, 2011 at 6:08 PM

What are you adding to the HashTable? Custom objects, C1 Data, strings?

If you post some of your code it will help understand what you mean.

Sep 12, 2011 at 6:18 PM

I made an  XSLT Transformation class and it's like this:

TransformXml (xslPath, xsltParams, xsltObjects)

To make that call, I first build my params and objects, for example for the xsltParams:

Hashtable xsltParams = new Hashtable();

and so on....  Then I pass that in where the TransformXml parses the Hashtable parameters so that my XSLT can use it.  Thanks for your help!