Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Info Path 2003 change programming language from VBS to JS?

18 views
Skip to first unread message

Bunny@discussions.microsoft.com Bugs Bunny

unread,
Nov 10, 2008, 9:17:01 AM11/10/08
to
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?

Swathi (GGK Tech)

unread,
Nov 11, 2008, 12:28:01 AM11/11/08
to
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 Porandla
http://www.ggktech.com

Rajitha

unread,
Nov 11, 2008, 12:56:01 AM11/11/08
to
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.

--
Rajitha

Anuma(GGK Tech)

unread,
Dec 9, 2008, 9:58:23 AM12/9/08
to

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 Reddy
http://www.GGKtech.com

xaviergodin

unread,
Dec 28, 2009, 4:58:59 AM12/28/09
to
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 Reddy
http://www.GGKtech.com

"Bugs Bunny" wrote:

Previous Posts In This Thread:

On Monday, November 10, 2008 9:17 AM
Bugs Bunn wrote:

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?

On Tuesday, November 11, 2008 12:28 AM
SwathiGGKTec wrote:

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 Porandla
http://www.ggktech.com

"Bugs Bunny" wrote:

On Tuesday, November 11, 2008 12:56 AM
Rajith wrote:

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.

--
Rajitha


"Bugs Bunny" wrote:

On Tuesday, December 09, 2008 9:58 AM
AnumaGGKTec wrote:

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 Reddy
http://www.GGKtech.com

"Bugs Bunny" wrote:


Submitted via EggHeadCafe - Software Developer Portal of Choice
Coding Standards, Team Development, And You
http://www.eggheadcafe.com/tutorials/aspnet/4261caad-3bcd-416b-91c4-ad051e4bb81a/coding-standards-team-de.aspx

0 new messages