Can not give parameter an value

Topics: General, Troubleshooting
Jun 24, 2011 at 7:00 AM

I have added an external function in C1.

(the signature of my function )

[

FunctionParameterDescription("html", "Html", "fwefewfwfw", null

)]

public static

Control MyFink(XhtmlDocument html)

When I insert it on a page, it shows that there is a paramter html, but I can only give it default value. I can not select constant value, as I would like.

Jun 24, 2011 at 7:34 AM

The meta data Composite C1 can get from the attribute do not (can not) contain info about what widget should be used to 'constant editing'. We should automatically set the widget by sniffing your type, by seems this is missing.

Until we get this fixed, you can work around the issue either by populating it with 'Function call, Composite.Constants.XhtmlDocument' (also give the wysiwyg editor) or moving your C# code to an "Inline C# Function" - this allow you to specify very rich meta data on parameters.