calling code/script from Rule

R

Reetu

Hi All,

In order to clal the call the script from the rule I followed the following
article

http://blogs.msdn.com/infopath/archive/2005/06/17/430347.aspx

and added the attribute to the manifest.xsf file’s xDocumentClass element
xmlns:xdExtension="http://schemas.microsoft.com/office/infopath/2003/xslt/extension".

So I followed the steps listed below:

1) Added the jscript function in the script editor and added the condition
on the form to call the jscript function.
2) Extracted the files from my infopath form.
2) closed the infopath form and edited the manifest .xsf file.
3) Now once I edit the xsf file I saved the file and opened the xsn frm in
preview mode and it popped up the following error. "Unspecified error. Some
rules could not be applied".

4) Then from the list of extracted files I opened template.xml file and
there the script function that I had added was called and it worked fine.

I am kind of confused here.. I would really appreciate if someone could
explain me what's going on behind the scenes.

Thanks & Regards,
-Reetu
 
R

Reetu

Hi All,

I tried the following and it works but I am not sure if this is the right
way to do it.

I changed the extension of template.xml file to template.xsn. I then opened
the form which opened it in the preview mode. At the top in the toolbar
there was an option "Open this form in Design mode". I clicked that option
and it opened the form in Design mode. I then saved that form and now I am
able to call the script from the rule.

As I mentioned before I am not sure if this is the right way. I would really
appreciate if someone can comment on this?

Thanks & Regards,
-Reetu
 

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