How to use xdExtension:function() to set default value of field?

X

xinfli

I'm use InfoPath to create a editor for a specific XML file, in this
XML file, some nodes has a GUID property, so I need to generate a new
GUID for them when I create new node, but I can't complete this with
the functions in InfoPath.

I can simply get GUID with C# managed code, but I don't know how to
set the default value for a field with this function?

I tried xdExtension:function() in the default value field, and I got
an error "Reference to undeclared namespace prefix: 'xdExtension'."

I read this topic "http://groups.google.com/group/
microsoft.public.infopath/browse_frm/thread/71efbc34e85a3d9c/
be0cb72c7e185e84?lnk=st&q=%22reference+to+undeclared+namespace+prefix
%3A+%27xdExtension%27%22&rnum=1#be0cb72c7e185e84", and Greg Collins
[InfoPath MVP] said that it is possible to do this, but I don't know
how to do it.

Could any one help me? Thanks a lot!
 

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