VB Script vs. Java Script

H

Hasse

Hi,

What would the community recommend to use in InfoPath,
VB Script or Java Script?
First of all I want to use script to get information from our AD and to set
running number in a SQL database and in the future maybe I will come up with
other ideas where scripting is useful. If I understand it correct it is not
possible to have both VB Script and Java Script in the same form.

Regards,
Hans
 
G

Greg Collins [InfoPath MVP]

Correct - you cannot have both scripts in the same form code.

My recommendation would be to use managed code (C#.NET or VB.NET) rather than script because there is so much more that can be done with it.

But if you need to use script, use whichever you (and anyone else who will be working on the code) are most comfortable with. For me that is JScript... If the majority of your devs are familiar with a particular language, use that.

--
Greg Collins [InfoPath MVP]
Visit http://www.InfoPathDev.com


Hi,

What would the community recommend to use in InfoPath,
VB Script or Java Script?
First of all I want to use script to get information from our AD and to set
running number in a SQL database and in the future maybe I will come up with
other ideas where scripting is useful. If I understand it correct it is not
possible to have both VB Script and Java Script in the same form.

Regards,
Hans
 
G

Greg Collins [InfoPath MVP]

Correct - you cannot have both scripts in the same form code.

My recommendation would be to use managed code (C#.NET or VB.NET) rather than script because there is so much more that can be done with it.

But if you need to use script, use whichever you (and anyone else who will be working on the code) are most comfortable with. For me that is JScript... If the majority of your devs are familiar with a particular language, use that.

--
Greg Collins [InfoPath MVP]
Visit http://www.InfoPathDev.com


Hi,

What would the community recommend to use in InfoPath,
VB Script or Java Script?
First of all I want to use script to get information from our AD and to set
running number in a SQL database and in the future maybe I will come up with
other ideas where scripting is useful. If I understand it correct it is not
possible to have both VB Script and Java Script in the same form.

Regards,
Hans
 
B

Ben Walters

Hans,
Based on the functionality you want to implement I would recomend you use
managed code rather than script. This will require that you have access to
the following

- InfoPath SP1 (Freely downloaded from Microsot)
- Visual Studio 2003 or 2005 (Licensed product)
- InfoPath toolkit for Visual studio
note: the InfoPath toolkit for visual studio is free for 2003 however it is
licensed as part of VSTO2005 (Visual Studio Tools For Office)

Also you will need to have InfoPath SP1 installed on your client machines
who are going to use the form with managed code.

Hope this helps

Cheers
Ben
 

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