Using MOSS's resource files - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Using MOSS's resource files

Last post 05-24-2007 08:49 PM by davidair. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-03-2007 11:53 PM

    • Marcin
    • Not Ranked
    • Joined on 05-04-2007
    • Posts 3

    Using MOSS's resource files

    Hello, i'm developing a workflow in MOSS, and i want to use in my ip forms values from resource files. Is this possible? Just in clear ip form? In code behind?
  • 05-11-2007 12:04 AM In reply to

    Re: Using MOSS's resource files

    Well, in theory it is possible wich code behind, but unfortunatly I`ve never tried this :(
    Best regards,
    Alexander Ekzarov
    Kyiv, Ukraine
    silverlightnet.blogspot.com
  • 05-24-2007 08:49 PM In reply to

    Re: Using MOSS's resource files

    Are you talking about the resource files you have added to your form in InfoPath? In this case, those files are available to be used by your code - they reside the in the same folder your assembly is being executed from.

    That means that if you have a file called "data.txt", you could read its contents in this way:

    string data = System.IO.File.ReadAllText("data.txt");

    Note that your form has to be fully trusted which is always the case anyway for solutions with business logic that run in MOSS.

    Still, if your data is in the XML format, there is an easier way to access it. Instead of adding your XML file as a resource, add it as a data connection (and then tell InfoPath to add the file as a resource automatically). You can then access those values by either dragging them into your form or by using rules - so no need to write code.

     I hope this answers the question...

    David Airapetyan / Software Services Architect
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.