xdExtension and xdXDocument with Managed code

K

Ken

First, thanks for helping.

1.
I would like to use xdExtension and xdXDocument from and xsl file like
one of the viewXX.xsl files.

I have not been unable to call managed functions form the xsl file.

2.
I would also like to use xdExtension from the rules, conditional
formating, data validation and expressions dialogs -- so far no go.

Thanks,

Ken
 
K

Ken

Hi Greg,

Thanks for your response.

I had alread tried the "InfoPath Dev: Dev Nugget titled, "Use Code to
Determine a Rule Condition" approach and it only seems to work for
standard non-managed code.

Perhaps you could give some short syntax example of say a managed
method returning a simple string, like:

public string strTest(){
return "Hello World!";
}

<xsl:value-of select="xdExtension:strTest" />

because I seem to be unable to get it working.

Thanks,

Ken
 
K

Ken

Try syntax as follow <xsl:value-of select="xdExtension:strTest()" />

My appologies !

In my previous post I forgot the "()" on the method; however, that
does not make <xsl:value-of select="xdExtension:strTest()" /> work.

Do you have some actually, Tested Code that I might try?

Do I need some type of attribute on the method? If so what might it
be?

Thanks,

Ken
 
K

Ken

Are you trying to do this with an Expression Box? If so, that's the problem. Expression Boxes need to be set in a Preserve Code Block in order to use xdExtension...

Check out this thread:

http://groups-beta.google.com/group..._doneTitle=Back+to+Search&&d#b349a18362125cc1

Hi Greg,

Thanks ! I see the problem -- I wanted to use the xdExtension in the
Rule's action to set a field's value.

It does work if used in the Condition part of a Rule.

Do you know of a way to get it to return values using the Rule's
action dialog?

Verifying the fromula says it doesn't know about the xdExtension
namespace.

Thanks again,

Ken
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top