Sign in to follow this  
Followers 0
MSPJ

Strange Convert Behavior

2 posts in this topic

Hi - 

 

I have a single file runtime solution, and working on an upgrade that requires conversion from pre-FMP12 format.  I'm using the Convert File script step.  I've run into something very strange.  My solution uses it's own file extension  .fhc.

 

So I've set up the Convert step with no dialog and with a specified source file - namely 'fhcm.fhc.  The first several times I tried this, the output file was named fhcm.fmp12 - as expected -- and the original file was left unchanged, since I specified no dialog.  (It does not get changed to a fp7 file extension.  

 

Somewhere along the way, the Convert File step started naming the output file FHCM #, where # is a digit, starting with 0 and incrementing if I do this multiple times.  It also changes the lowercase to upper case.

 

So instead of naming the converted file fhcm.fmp12 (which it had done at first), I now end up with a converted file named FHCM 0.fhc or FHCM 1.fhc, etc.

 

I can't for the life of me figure out what changed nor can I find any documentation of when or why it would do this.

 

Any thoughts?

 

Thanks,

Michael

Share this post


Link to post
Share on other sites

I think I've figured this out, and it appears to be a genuine bug - or else I missed the documentation.  It seems that runtime behaves differently when using the Convert File script step.  Documentation says converted file will get fmp12 extension, but when I run from runtime, with dialog turned off, it adds a space and digit to the filename but does NOT change extension.  Seem to be very consistent.  

Would be great if anyone else can test this.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0

  • Similar Content

    • Convert date format from imported excel sheet
      By shevyshevy
      I recently imported records from an excel sheet into my filemaker solution. I just noticed that the dates in the excel sheet were entered in this format  1996-04-19
      and as a result, all my date calculations are not working. For example, the Age and other functions. Manually changing the date to 4-19-1996 resolves it. 
      Is there a way i can do this without manually going to each record? because there are a lot of records to deal with.. 
      Thanks for your anticipated response
    • UK (South East) Developer / Consultant available
      By Davinity Powis
      UK freelance FileMaker Pro Developer / consultant available
       
      40 year old female, with over 20 years experience. Been using FMP since v2.1 back in the early 90s, so fairly sure I can turn my hand to most requirements. 
       
      Currently based in Hampshire UK, but most of my work has been in Hampshire, Berkshire, Home Counties and London. Prepared to travel for the right work. 
       
      Ran my own data consultancy for 8 years and have considerable background in marketing, CRM-type systems, but have also worked in many other industries too. Comfortable working in client premises or remotely as required. I now spend 50% of my time doing data work, and 50% doing FileMaker development. 
       
      Looking for an exciting contract to get stuck into or can help with short fixes if required too.
       
      Daily rate negotiable. 
       
      email: davinity@datalchemy.co.uk
      www.datalchemy.co.uk
       
    • Records disappear
      By millmaine
      We have been having an occasional issue where records just disappear. It's been going on for almost a year now and we simply can't see what might be causing it. It is not common and seems to happen at random. Once every 2 weeks or so.
      Our database has 33 tables. The disappearing records all come from the same table. It is hosted on a cloud based server with 17 clients in 2 cities (same time zone) accessing it.
      Steps we have taken so far are:
      • Disabled "delete record" from the Menu Set
      • Implemented a dedicated "delete record" script that notifies the administrator when it is run so that the administrator can confirm with the user that the deletion was intentional.
      • Checked that records can not be deleted via a relationship
      • Tracked the timing of discovery that records have disappeared. This is difficult because it may be weeks or months before someone needs to refer to it, so doesn't really tell us when the record disappeared.
      When the record is deleted it appears that related records are NOT deleted.
      Help?
       
    • Converted from FM5 to FM13: Find criteria missing?
      By Justin Close
      I have a client who converted an old solution (FM5) to FM13 recently.  They have found that some Find script steps, that used embedded criteria, have the operator missing from the step.  It may just be limited to ">" operators, too.  (I haven't have a chance to look at the files yet, but a couple of printouts show this to be the case.)
      Does anyone have experience converting these old files that use embedded criteria?
       
      Thanks,
      Justin
    • $$Map_HTML customisation
      By Lloyd Hird
      Hi there,
      I am using EasyMaps and trying to integrate into my own solution. I am loving it so far, however, I have run into issues when trying to create infoWindow on Marker Click.
      I had it working within maps as a standalone setup in my database before I integrated EasyMaps but now i can only load a blank screen.
      Here is my code. I know it's flawed, I just don't know where lol.
      "<!DOCTYPE html>¶ <html>¶ <head>¶ <meta name=\"viewport\" content=\"initial-scale=1.0, user-scalable=no\">¶ <meta charset=\"utf-8\">¶ <title>FMEasyMaps " & Get ( CurrentTimestamp ) & "</title>¶ <style>¶ html, body, #map-canvas {¶ height: 100%;¶ margin: 0px;¶ padding: 0px¶ }¶ </style>¶ ¶ <script src=\"http://maps.googleapis.com/maps/api/js?key=[[API_KEY]]&v=3.exp&sensor=false\"></script>¶ ¶ <script>¶ ¶ function initialize() {¶ ¶ var positionLatlng = new google.maps.LatLng([[START_COORDS]]);¶ ¶ var mapOptions = ( {¶ zoom: 5,¶ center: positionLatlng¶ } );¶ ¶ var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);¶ ¶ var contentString = '<div id=\"content\">'+¶ '<div id=\"siteNotice\">'+¶ '</div>'+¶ '<h1 id=\"firstHeading\" class=\"firstHeading\">Tony McShane</h1>'+¶ '<div id=\"bodyContent\">'+¶ '<p><b>TONY</b>, also referred to as <b>Epic Douchebag</b>, is a dude from cranny' +¶ '</p>'+¶ '<div id=\"link_div\" style=\"text-align:centre\">'+¶ '<a href=\"fmp://REMOVED/iCOMPLI%20Auditor_Tenancy%20Lite%20MetCash%20upgrade.fmp12?script=goto_iCompli%20Map%20Info%20Window%20Button%20Click%20TEST\">View Client Record</a>'+¶ '</div>'+¶ '</div>'+¶ '</div>';¶ ¶ var infowindow = new google.maps.InfoWindow({¶ content: contentString¶ ¶ });¶ ¶ });¶ ¶ var bounds = new google.maps.LatLngBounds();¶ ¶ [[MARKERS]]¶ ¶ google.maps.event.addListener(marker, 'click', function() {¶ infowindow.open(map,marker);¶ });¶ ¶ map.fitBounds(bounds);¶ ¶ }¶ ¶ google.maps.event.addDomListener(window, 'load', initialize);¶ ¶ </script>¶ </head>¶ <body>¶ <div id=\"map-canvas\"></div>¶ </body>¶ </html>" Any help would be appreciated.