Code: Select all
StiFunctions.AddFunction(Category, "LookupCode", "LookupCode", "..", typeof(GReportLookupResolver),typeof (object), "...", ParamTypes, ParamNames, ParamDescrips);
{LookupCode(Datenquelle1,"ART",Datenquelle1.ART)}
When I, however, want to use the return value of this function to actually sort a table or databand, I get the following error from the report checker:
Umwandlungsfehler, Ein Umwandlungsfehler wurde im Report 'Report' gefunden. Der Name 'LookupCode' ist im aktuellen Kontext nicht vorhanden.
(LookupCode can not be found in the current context..)
Looking at the source code of the report, I do see the problem: When using the function to display a value, the Designer automatically qualifies the function with the namespace. When using it as a sort statement, this does not happen.
Is this a bug? Is there something that I could do about it?