Skip to main content
Nintex Community Menu Bar

Attaching Files to SmartObjects via InfoPath

  • December 7, 2007
  • 6 replies
  • 11 views

Forum|alt.badge.img+9
I have created a SmartObject that has a property of type 'File'.  I have bound this SmartObject to an InfoPath form, but the 'File' property shows up as two fields:  Name (Text), and Content (Picture?).  How do I bind a file attachment to these values?

6 replies

Forum|alt.badge.img+8
  • December 11, 2007

An infopath file attachment field can be directly tied to the content smartobject field.  The Name parameter is optional and in my tests will get populated with the file name when no value is supplied.


 I hope that helps.


-Eric


Forum|alt.badge.img+10
  • Nintex Partner
  • December 12, 2007
This is something that I have not tried.  Has anyone else done this?

Forum|alt.badge.img+8
  • December 13, 2007

It worked for me in my test but it was a very simple test.


Forum|alt.badge.img+9
  • Author
  • December 13, 2007
I've been sidetracked, but I will revisit this shortly.  Ultimately all that I am trying to accomplish is to have a file as a part of the workflow, for example, the user starts a process that involves answering a few questions and attaching a file.  Then, their answers and the file attachment go to their supervisor who either approves or rejects their information.  Is using the InfoPath form as the container for the file with a smart object behind it the right way to go?  Do I even need a smart object field for this?

Forum|alt.badge.img+8
  • December 31, 2007

Sorry for the delayed reply.


 You wouldn't need to have a smartobject field for the file because you could just have the main infopath datasource hold the attachment and it will get passed to the approver.  If the file attachment is large and you don't want it stored as a part of the form then you could use a smartobject field to represent the attached file and only load it when necessary.


 -Eric


Forum|alt.badge.img+9
  • Author
  • December 31, 2007
Yeah, that makes sense now.  Thanks!