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

Topics: General
Sep 7, 2011 at 11:03 PM

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!

Coordinator
Sep 12, 2011 at 8:13 AM

Hello,

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 5: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 5: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();
xsltParams.Add("projID","125");

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!