Multiple JScript code modules for a single form - InfoPath Dev
in

InfoPath Dev

Multiple JScript code modules for a single form

Last post 06-08-2006 09:40 AM by Greg Collins. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 05-31-2006 07:57 AM

    • Sash
    • Not Ranked
    • Joined on 03-30-2006
    • Posts 15

    Multiple JScript code modules for a single form

    Is it possible to create multiple code modules for a single Infopath form? It would be very necessary when code is large.
  • 05-31-2006 09:57 AM In reply to

    Re: Multiple JScript code modules for a single form

    Yes you can have multiple cs files in a single InfoPath solution. But what specifically do you mean when you say code modules?
    Shanthi Reddy
  • 05-31-2006 11:29 PM In reply to

    • Sash
    • Not Ranked
    • Joined on 03-30-2006
    • Posts 15

    Re: Multiple JScript code modules for a single form

    quote:
    Originally posted by Shanthi

    Yes you can have multiple cs files in a single InfoPath solution. But what specifically do you mean when you say code modules?


    "js" files are exactly what I had in mind. By default Infopath solution has single "script.js" file. I would like to add one more "js" file to the solution but I can't find way to do this.
  • 06-01-2006 09:23 AM In reply to

    Re: Multiple JScript code modules for a single form

    You can have multiple script files of the same language in your form. You will need to add each additional script file to the list of template resources (see Tools menu). And you will need to extract the form files to manually edit the manifest.xsf file and add a new xsf:script node for each additional script file.
  • 06-02-2006 12:29 AM In reply to

    • Sash
    • Not Ranked
    • Joined on 03-30-2006
    • Posts 15

    Re: Multiple JScript code modules for a single form

    Thank you, Greg, it works.
    But the new script file does not appear in the project explorer of MSE. It seems this file is read only when the form is opened in design mode. I close a form every time when I need to edit and save the additional script. Is it possible to open it in read-write mode during designing the form?
  • 06-08-2006 09:40 AM In reply to

    Re: Multiple JScript code modules for a single form

    Sorry - I haven't done much with multiple script files in a long time. I do seem to recall that, as you say, it doesn't show up in MSE... and I am not aware of a way to make it do so. I did as you are doing, which is to close, change the script, and reopen.
Page 1 of 1 (6 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.