Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / April 2007

Tip: Looking for answers? Try searching our database.

calling code/script from Rule

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Reetu - 24 Apr 2007 17:10 GMT
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
Reetu - 24 Apr 2007 17:48 GMT
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

> Hi All,
>
[quoted text clipped - 24 lines]
> Thanks & Regards,
> -Reetu
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.