Here is the process (remember, Infopath 2003 only allows JScript or VBScript)
I assume here we want to move from jscrit to vbscript.
1) Open form in design mode and select "Extract Form Files" from the Files menu. This will "explode" the xsn in several forms.
2) Save the .js file if needed (this is a text file with your existing code).
3) Look for the JS string in the exploded files. Remove every xml markup part containing the js string, except the one which specifies the languate type in the manifest.xml (tag xsf:solutionProperties).
4) Save the files and open the xsn again.
You can now create a vbscript file.
AnumaGGKTec wrote:
Hi,As of my knowledge there is no workarround to remove the existing code from
09-Dec-08
Hi
As of my knowledge there is no workarround to remove the existing code from
infopath2003. I think we need to remove that file or code manually
--
Anuma Redd
http://www.GGKtech.co
:
Previous Posts In This Thread:
Info Path 2003 change programming language from VBS to JS?
I wish to change the default programming language of a template from VBS to
JS script
Info Path 2007 allows you to remove any code attached to a template with a
"Remove Code" button in 'Form Options'. This feature does not seem to exist
in 2003 that will allow you to remove any associated code to allow the
default programing language to change
Any workarounds?
Hi,To change the programming language in infopath 2003, follow the below steps.
Hi
To change the programming language in infopath 2003, follow the below steps
1.Go to Tools-> Form Options
2.Go to Advanced tab -> Programming Language section
3.Select JScript from the Form code Language drop down
--
Swathi Porandl
http://www.ggktech.com
:
Hi,To change programming language of a template from VBS to JS script follow
Hi
To change programming language of a template from VBS to JS script follow
below steps
1. Open manifext.xsf in any notepad
2. Change the file name to ???script.js??? from ???script.vbs???
3. Search for ???solutionProperties???. There change scriptLanguage to "jscript"
from 'vbscript???
4. And delete the following lines of code
<xsf:scripts language=" vbscript" enforceScriptTImeout="yes"
<xsf:script src=" script.vbs "></xsf:script
</xsf:scripts
5. And replace it with the following code
<xsf:scripts language="jscript"
<xsf:script src="script.js"></xsf:script
</xsf:scripts
6. Save changes and close manifest.xsf
7. Outside change the filename to ???script.js??? from ???script.vbs???
Hope this helps
--
Rajith
:
Hi,As of my knowledge there is no workarround to remove the existing code from
Hi
As of my knowledge there is no workarround to remove the existing code from
infopath2003. I think we need to remove that file or code manually
--
Anuma Redd
http://www.GGKtech.co
:
Submitted via EggHeadCafe - Software Developer Portal of Choice
Coding Standards, Team Development, And You
http://www.eggheadcafe.com/tutorial...c4-ad051e4bb81a/coding-standards-team-de.aspx