<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
	<title>360Works</title>
	<description>360Works forums RSS feed</description>
	<link>http://fmforums.com/forum</link>
	<pubDate>Wed, 22 Feb 2012 21:55:13 +0000</pubDate>
	<ttl>0</ttl>
	<item>
		<title>Problem with emailConnectIMAP on serverSideScript</title>
		<link>http://fmforums.com/forum/topic/82629-problem-with-emailconnectimap-on-serversidescript/</link>
		<description><![CDATA[Script that runs perfectly on client side from a remote computer, or from fmkr client installed on the server, gives me an error every time at the emailConnectIMAP script step.  <br />
<br />
The error returned is "Login failed."  <br />
There is no firewall<br />
The plugin is installed on the server<br />
The emailRegister step is returning properly<br />
I'm running the script with admin privileges]]></description>
		<pubDate>Wed, 22 Feb 2012 21:55:13 +0000</pubDate>
		<guid>http://fmforums.com/forum/topic/82629-problem-with-emailconnectimap-on-serversidescript/</guid>
	</item>
	<item>
		<title><![CDATA[SC Installation problem - can't view images remotely]]></title>
		<link>http://fmforums.com/forum/topic/82596-sc-installation-problem-cant-view-images-remotely/</link>
		<description><![CDATA[I've installed SC on numerous PCs and Macs, but am having a problem getting it to work at one client site. SC works fine in the office, but we just can't see images remotely.<br />
<br />
The only thing that is different at this site is that SC is hosted on Mac Server. The host is running FileMaker Pro 11 v4. We have the latest version of SuperContainerserver.jar, we've opened port 80 and have verified that it is open via CanYouSeeMe.org. In System Preferences we have Web Sharing turned on.<br />
<br />
Is there some special setting for Mac Server? What setup step have I possibly overlooked?<br />
<br />
Thank you for your time and assistance,<br />
Will]]></description>
		<pubDate>Wed, 22 Feb 2012 15:47:02 +0000</pubDate>
		<guid>http://fmforums.com/forum/topic/82596-sc-installation-problem-cant-view-images-remotely/</guid>
	</item>
	<item>
		<title>Select File () path needs volumeName?</title>
		<link>http://fmforums.com/forum/topic/82591-select-file-path-needs-volumename/</link>
		<description><![CDATA[I have just DL'd v 4.<br />
<br />
I got it working and have the file and path (OSX) assigned to a variable: $$SelectImportFile .<br />
<br />
<a class='resized_img' rel='lightbox[383001]' id='ipb-attach-url-17371-0-38588700-1329964968' href="http://fmforums.com/forum/index.php?app=core&module=attach&section=attach&attach_rel_module=post&attach_id=17371" title="import file.jpg - Size: 30.76K, Downloads: 5"><img src="http://fmforums.com/forum/uploads/monthly_02_2012/post-72145-0-82436500-1329893994_thumb.jpg" id='ipb-attach-img-17371-0-38588700-1329964968' style='width:100;height:4' class='attach' width="100" height="4" alt="Attached Image: import file.jpg" /></a><br />
<br />
I try and use $$SelectImportFile as the File Source variable specified in the Specify data source dialog.<br />
<br />
<a class='resized_img' rel='lightbox[383001]' id='ipb-attach-url-17373-0-36313300-1329964968' href="http://fmforums.com/forum/index.php?app=core&module=attach&section=attach&attach_rel_module=post&attach_id=17373" title="specify File.jpg - Size: 177.11K, Downloads: 5"><img src="http://fmforums.com/forum/uploads/monthly_02_2012/post-72145-0-73853300-1329894116_thumb.jpg" id='ipb-attach-img-17373-0-36313300-1329964968' style='width:100;height:85' class='attach' width="100" height="85" alt="Attached Image: specify File.jpg" /></a><br />
<br />
FM DOES NOT IMPORT / FIND the file?  I thought perhaps I need to specify the volumeName in addition to the path and file name?<br />
<br />
If so, how can I get the volumeName to append to the path?  (concatination is the method I presume).<br />
<br />
Thanks]]></description>
		<pubDate>Wed, 22 Feb 2012 03:35:00 +0000</pubDate>
		<guid>http://fmforums.com/forum/topic/82591-select-file-path-needs-volumename/</guid>
	</item>
	<item>
		<title>A password dialogue input function</title>
		<link>http://fmforums.com/forum/topic/82587-a-password-dialogue-input-function/</link>
		<description><![CDATA[Has a bit of help from Sam Barnum on StackOverflow with this but have a function which either gives you three chances to enter the correct password, or returns the password you enter into the box.<br />
Just a bit of practice for me with SwingBuilder but might be a useful starting point for others. <br />
<br />
Some of this has been enabled by the latest Groovy 1.8.4 version in the current Scriptmaster<br />
<br />
<pre class='prettyprint'>
// PasswordSwing ( title ; message ; type ; password ; returnPass )
// 12_02_21 JR
// v1.0
// type -1 plain, 0 error, 1 information, 2 warning, 3 question
// if returnPass then displays a dialogbox with a password field and returns the passsword on OK
// and uses title and password parameters and returns entered text
// else gives three attempts to enter a password which matches password parameter
// returns true if match if not or dialog cancelled returns false


import javax.swing.JComponent
import groovy.swing.SwingBuilder

type = type.toInteger()
i = 0
left = ''
swing = new SwingBuilder()

if(returnPass){
swing.edt{
  passwordField = passwordField()
  JComponent&#91;&#93; components = &#91;label(message), passwordField&#93;
  result = optionPane().showConfirmDialog(null, components, title, 2, type)
}
return passwordField.getPassword().toString()
} else {
swing.edt{
  passwordField = passwordField()
  while(i &lt; 3){
   JComponent&#91;&#93; components = &#91;label('Password'+left), passwordField&#93;
   result = optionPane().showConfirmDialog(null, components, title, 2, -1)
   if (passwordField.getPassword().toString() == password || result == -1 || result == 2){
    i=3
   } else if (passwordField.getPassword().toString() != password && i==2) {
    result = optionPane().showMessageDialog(null, '&lt;html&gt;&lt;h1&gt;&lt;font color="red"&gt;WRONG PASSWORD&lt;/font&gt;&lt;/h1&gt;&lt;h3&gt;Script halted&lt;/html&gt;', 'ERROR', 2)
    i=3
   } else {
    result = -1
    i++
    message = i == 2 ? ' try':' tries'
    left = ' - ' + (3-i) + "${message}" + ' left'
    passwordField = passwordField()
   } //end if
  } //end while
} //end swing
return result == 0 ? true:false
}

</pre>]]></description>
		<pubDate>Tue, 21 Feb 2012 22:34:31 +0000</pubDate>
		<guid>http://fmforums.com/forum/topic/82587-a-password-dialogue-input-function/</guid>
	</item>
	<item>
		<title>JDBC Plugin Query Timeout ?</title>
		<link>http://fmforums.com/forum/topic/82573-jdbc-plugin-query-timeout/</link>
		<description><![CDATA[I tried adding the suggested "timeout=30" to my jdbcPerformQuery, and it fails<br />
<br />
I tried it enclosed in quotes, and not<br />
<br />
is this feature available?<br />
<br />
thanks<br />
greg]]></description>
		<pubDate>Mon, 20 Feb 2012 17:47:42 +0000</pubDate>
		<guid>http://fmforums.com/forum/topic/82573-jdbc-plugin-query-timeout/</guid>
	</item>
	<item>
		<title>Currency converter</title>
		<link>http://fmforums.com/forum/topic/82572-currency-converter/</link>
		<description><![CDATA[Was playing around with the new XMLtemplateEngine in the latest Groovy today and offer the following function for returning currency conversion rates via SOAP<br />
<br />
<pre class='prettyprint'>
//ExRates( from ; to; amount )
// 12_02_20 JR
// v1.1
// adapted from Groovy API examples
// from, to -&gt; 3 letter currency codes
// if amount is null returns rate else returns converted value


import groovy.text.SimpleTemplateEngine as STE
import groovy.xml.Namespace

XMLtext = '''\
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;soap:Envelope
  xmlns:xsi="http&#58;//www.w3.org/2001/XMLSchema-instance"
  xmlns:xsd="http&#58;//www.w3.org/2001/XMLSchema"
  xmlns:soap="http&#58;//schemas.xmlsoap.org/soap/envelope/"&gt;
  &lt;soap:Body&gt;
	&lt;ConversionRate xmlns="http&#58;//www.webserviceX.NET/"&gt;
	  &lt;FromCurrency&gt;${from}&lt;/FromCurrency&gt;
	  &lt;ToCurrency&gt;${to}&lt;/ToCurrency&gt;
	&lt;/ConversionRate&gt;
  &lt;/soap:Body&gt;
&lt;/soap:Envelope&gt;
'''
template = new STE().createTemplate(XMLtext)
params   = &#91;from:from, to:to&#93;
request  = template.make(params).toString().getBytes('UTF-8')
url  = 'http&#58;//www.webservicex.net/CurrencyConvertor.asmx'
conn = new URL(url).openConnection()
reqProps = &#91;
	'Content-Type': 'text/xml; charset=UTF-8',
	'SOAPAction'  : 'http&#58;//www.webserviceX.NET/ConversionRate',
	'Accept'	  : 'application/soap+xml, text/*'
&#93;
reqProps.each { key,value -&gt; conn.addRequestProperty(key,value) }
conn.requestMethod = 'POST'
conn.doOutput	  = true
conn.outputStream &lt;&lt; new ByteArrayInputStream(request)
if (conn.responseCode != conn.HTTP_OK) {
return "Error - HTTP:${conn.responseCode}"
}
resp   = new XmlParser().parse(conn.inputStream)
serv   = new Namespace('http&#58;//www.webserviceX.NET/')
result = serv.ConversionRateResult


if ( !amount){
return "Current " + params.from + " to " + params.to + " conversion rate: " + resp.depthFirst().find{result == it.name()}.text()
} else {
rate = resp.depthFirst().find{result == it.name()}.text()
convert = amount.toInteger() * rate.toDouble()
return 'That is ' + convert.round(2) + ' ' + cTo
}

</pre>]]></description>
		<pubDate>Mon, 20 Feb 2012 17:23:57 +0000</pubDate>
		<guid>http://fmforums.com/forum/topic/82572-currency-converter/</guid>
	</item>
	<item>
		<title>How do you get information from a dialog box?</title>
		<link>http://fmforums.com/forum/topic/82554-how-do-you-get-information-from-a-dialog-box/</link>
		<description><![CDATA[The scriptmaster dialog example allow you to have a dialog with dynamic buttons (Formatted Dialog with Dynamic Buttons), but in the example, it is unclear how to use the dialog to obtain user information as one can with Filemakers show custom dialog.<br />
<br />
I want to use the dialog box and have the user enter a name and other information.<br />
<br />
Is there any documentation anyone can point me to, on how to use this feature in the scriptmaster dialog.<br />
<br />
Thanks<br />
<br />
Abel]]></description>
		<pubDate>Sat, 18 Feb 2012 17:05:35 +0000</pubDate>
		<guid>http://fmforums.com/forum/topic/82554-how-do-you-get-information-from-a-dialog-box/</guid>
	</item>
	<item>
		<title>Problem with SCMove</title>
		<link>http://fmforums.com/forum/topic/82550-problem-with-scmove/</link>
		<description><![CDATA[Hello,<br />
<br />
I am trying to use the SCMove function to move a file from one directory to another inside my SuperContainer location. Currently my function call looks something like this:<br />
<br />
<pre class='prettyprint'>
SCMove("WorkingDirectory/UniqueResourceDirectory/","TargetDirectory/"&TABLE::ID)
</pre>
<br />
When I run my script, I get an error, and the supercontainer server says:<br />
<br />
Move operation failed: java.io.FileNotFoundException: No SuperContainer file for /WorkingDirectory/UniqueResourceDirectory<br />
No SuperContainer file for /WorkingDirectory/UniqueResourceDirectory<br />
<br />
I have also tried my function call like this:<br />
<br />
<pre class='prettyprint'>
SCMove("WorkingDirectory/UniqueResourceDirectory/file.pdf","TargetDirectory/"&TABLE::ID)
</pre>
<br />
In which case I get the same error but like this:<br />
<br />
Move operation failed: java.io.FileNotFoundException: No SuperContainer file for /WorkingDirectory/UniqueResourceDirectory/file.pdf<br />
No SuperContainer file for /WorkingDirectory/UniqueResourceDirectory/file.pdf<br />
<br />
I am stumped, as I have tried many variations on the above themes, putting slashes in different places, with and without the file name, etc.<br />
<br />
Can someone help? Or possibly provide a working example of how to call SCMove, since the companion plugin documentation does not have one.<br />
<br />
Thanks,<br />
Mark]]></description>
		<pubDate>Sat, 18 Feb 2012 00:14:31 +0000</pubDate>
		<guid>http://fmforums.com/forum/topic/82550-problem-with-scmove/</guid>
	</item>
	<item>
		<title>Upload from iPhone : We did it!</title>
		<link>http://fmforums.com/forum/topic/82482-upload-from-iphone-we-did-it/</link>
		<description><![CDATA[<em class='bbc'>May be old news, we were excited.</em><br />
<br />
<strong class='bbc'>Scenario</strong>:<br />
Our field techs use iPhones to document installations of various wireless equipment and site configurations in the field. Its really important in our business (large regional WISP) since sending a tech out to a location 50 or 100 miles removed is an expensive business. We need to be able to troubleshoot as much as possible remotely and a big part of that is equipment location/setup.<br />
<br />
This was causing us to store tons of photos in our already huge FMP database. SuperContainer to the rescue!<br />
<br />
Except you can't upload out of fmp go. Ouch!<br />
<br />
<strong class='bbc'>Solution</strong>:<br />
So we are using PicUp (<a href='http://picupapp.com/' class='bbc_url' title='External link' rel='nofollow external'>http://picupapp.com/</a>). This intercepts any URL requests for the space 'fileupload://' and does some magic. <br />
<br />
Then its just a matter of embedded a button that sends the right url to an Open URL script step.<br />
<br />
(generic example: fileupload://new?callbackURL=http://picupapp.com/done.html&referrername=Picup%20Scratchpad&referrerfavicon=http%3A//picupapp.com/favicon.ico&purpose=Select%20a%20sample%20image%20for%20the%20Picup%20Scratchpad%20tool.&debug=true)<br />
<br />
Our specific URL posts to a listener on our server which, based on some parameters (not above) sticks the file into the right place for SuperContainer which the client then can view.<br />
<br />
<em class='bbc'>Elegant? Somewhat. Does it work? <strong class='bbc'>Heck yea</strong>. </em><br />
<br />
Anyone have alternate solves for this?]]></description>
		<pubDate>Mon, 13 Feb 2012 05:07:03 +0000</pubDate>
		<guid>http://fmforums.com/forum/topic/82482-upload-from-iphone-we-did-it/</guid>
	</item>
	<item>
		<title>Noisy backgrounds at different pixel sizes</title>
		<link>http://fmforums.com/forum/topic/82481-noisy-backgrounds-at-different-pixel-sizes/</link>
		<description><![CDATA[Hi folks, trying to find any reference to 'noise' or 'noisy' in the SuperContainer Forums with no success, hence this post:<br />
<br />
-- Does anyone know how to combat this noise in the thumbnail files...?  It only occurs at specific pixel sizings... that is, make it a few pixels bigger or smaller, and they go away - so something to do with the rendering/downsampling process...  and, you guessed it, at the size most images appear on our web catalogue, a noticeable number appear like this.<br />
<br />
<br />
I'm working off Mac Mini Lion Server, so using the Core Image Previews - and this file was a PDF, originally out of Illustrator. Happy to provide any/all specs on request.<br />
<br />
Pre-emptively throwing it out there: please don't suggest to make a white background behind all artwork - we have many many thousands of live and legacy files!<br />
<br />
<br />
With many thanks,<br />
<br />
AB<div id='attach_wrap' class=''>
	<h4>Attached Thumbnails</h4>
	<ul>
		
			<li class=''>
				<a class='resized_img' rel='lightbox[382405]' id='ipb-attach-url-17317-0-41056400-1329964968' href="http://fmforums.com/forum/index.php?app=core&module=attach&section=attach&attach_rel_module=post&attach_id=17317" title="Screen Shot 2012-02-13 at 2.14.43 PM.png - Size: 129.25K, Downloads: 10"><img src="http://fmforums.com/forum/uploads/monthly_02_2012/post-89814-0-67247300-1329103155_thumb.png" id='ipb-attach-img-17317-0-41056400-1329964968' style='width:100;height:66' class='attach' width="100" height="66" alt="Attached Image: Screen Shot 2012-02-13 at 2.14.43 PM.png" /></a>
			</li>
		
	</ul>
</div>]]></description>
		<pubDate>Mon, 13 Feb 2012 03:22:02 +0000</pubDate>
		<guid>http://fmforums.com/forum/topic/82481-noisy-backgrounds-at-different-pixel-sizes/</guid>
	</item>
</channel>
</rss>
