Jump to content

How to Test IWP document Uploaded


This topic is 4359 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi,

I use supercontainer for several of my clients. The one difficulty I have run into is on IWP checking to see if the user uploaded their document. Often they select it, but then don't click the upload button. In filemaker I can do that using this check (below) or use the plugin, but this doesn't work on IWP any recommendations?

PatternCount(GetLayoutObjectAttribute ("supercontainer"; "Content");"<a id=\"download\" href")>0

Sincerely

Peter

Link to comment
Share on other sites

Hey Peter,

A good way to check whether a document has been uploaded in IWP is to make use of the SuperContainer Companion plugin function, "SCGetInfo()"... this will return an uploaded file's information if one exists. For example:

If( GetValue( SCGetInfo( "/path/to/file" ) ; 1 ) ≠ "" )

Show Custom Dialog[ "File already uploaded" // p.s. No dialog boxes in IWP -- just for illustration

End If

This would get the filename (if one exists) of an uploaded file. If a filename is returned, then something has been uploaded to that particular folder path in SuperContainer.

Hope this makes sense. If you have any additional questions, let me know.

Regards,

Link to comment
Share on other sites

This topic is 4359 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.