Jump to content

JF Fortier

Members
  • Posts

    22
  • Joined

  • Last visited

  • Days Won

    1

JF Fortier last won the day on October 9 2019

JF Fortier had the most liked content!

About JF Fortier

  • Birthday February 25

Profile Information

  • Slogan
    Jedi Apprentice
  • Industry
    Construction
  • Gender
    Male
  • Location
    Québec

FileMaker Experience

  • Skill Level
    Intermediate
  • Application
    21

Platform Environment

  • OS Platform
    Windows
  • OS Version
    Win10

Claris Partner

  • Certification
    Not Certified

JF Fortier's Achievements

Explorer

Explorer (4/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

1

Reputation

  1. Thanks, I'll have a look at it, but when you already have your licences !! and many other stuff that we have can't connect to an online mail server (copier, old fax application, etc !!) That's why the software industry is a billion-dollar business, you keep feeding it with new version and licences that require you to keep upgrading one after another, but for a small business, it was always a better investment to buy licence and keep them for a long time, and do a switch over all at once every "x" years then trying to keep it up every year, As always, thanks for your help
  2. This is an old one, but I'm going to be upgrading from FM17 x32 to FM19 x64, it was in my intention to redeploy Office x64 too because on the email issue. We use on site AD and exchange server, I use some send email from the server, but sometime (like quotes attachment) it needs to be sent by the user that will fill the email with any information deem necessary to the customer... I know I can use a card window with a global field to enter email body, etc and then send it via the server. Unless FM19 is different, I think FMS19 send email is still SMTP ? So I don't get the concept of your email API, does onsite 2019 Exchange server have this API ? And we connect to FM using the AD, not Office365 account, is this still relevant if we don't use Microsoft web OAuth (maybe AD is the same... newbie here!! :)) PS I don't want to deal with plugins to send email. Thanks,
  3. Thank you it work Latest version was installed, set a variable calculation to TRUE and now it doesn't display the error message.
  4. Hi, I use the native default script to erase a file. When it fail to erase the file (and in some case, it's OK) I have an error dialog that popup ... bla bla bla "OK" Win10, FMS16, FMA17 #1- How can I disable that error message, can't delete the file, no worry, that's ok. #2- For some unknown reason, when it's called with a card window, it might go background.... and I'm stuck, I can't press "OK", can't bring it back to front. If I kill FM process, the record is now lock on the server, disconnect the user doesn't release the record I'm in the process of switching to FM19, that as the native delete file, but for now, I'm not Thanks
  5. Using this will only bring the process name in a list, no more useless data TaskList = '' Process p = Runtime.getRuntime().exec (System.getenv('windir') +'\\system32\\' + 'tasklist.exe /nh /fo csv' ) BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream())); while ((line = input.readLine()) != null) { line = Eval.me('[' + line + ']') TaskList += line.get(0) + '\n' } return TaskList
  6. By reversing engineering many script and code on the web, I wrote the script like this and it return what I need to have, so for anyone looking to get the list of all running process on windows, use it freely 😁 TaskList = '' Process p = Runtime.getRuntime().exec (System.getenv("windir") +"\\system32\\"+"tasklist.exe /nh " ) BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream())); while ((line = input.readLine()) != null) { TaskList = TaskList + line + '\n' } return TaskList
  7. Hi, Going to FM19, I'm updating some old plugin and I need to know if an application is running or not on the client PC. I used Moo Plug for years and it work https://mooplug.com/docs/functions/moo_processrunning ** Edit: A new x64 version is on the way, Adam send me a beta version ** I'm trying this code try { String line; Process p = Runtime.getRuntime().exec (System.getenv("windir") +"\\system32\\"+"tasklist.exe"); BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream())); while ((line = input.readLine()) != null) { System.out.println(line); //<-- Parse data here. } input.close(); } catch (Exception err) { err.printStackTrace(); } I know nothing about Java or Groovy, but it look like it's sending data in the "while" one by one and at the end the input.close flush the result and I get nothing ?!?! So from the return value I could test if my process is running or not. If someone could shed some light, it will be appreciated. Thanks
  8. Yep! I just did some research, as I was saying, not a Java or JS person...Thanks Google I now know the difference ! Thanks
  9. Hi, Maybe a stupid question, I have no clue, not really a JS guy. With the new FM19, can we run Javascript natively in FM without the use of the plugin ? I run Win10/Server2012 and in the process of updating from FM17, I need to get rid of some old 32 bits plugins first. I created some on the function that I wanted with SMaster into a custom plugin.... but now FMS required a signed plugin, on Windows 🙄 not an easy task, for a newbie like me. So can we run some basic JS code in FM19 directly and get the result ? Or we still need to run them with SMaster. Thanks JF
  10. I need to add, sometime the item in the list is populated by a list of value based on multiple fields. I have a function that returns all the emails a customer may have in his file (multiple work location, commercial customer with a list of multiple employees) So when we need to send a quotation, this dialog open and let the user choose the email from the list of all email that customer as in file. That one I have no idea how, since it can't be a portal or list view. Maybe if I export all that info to a global table and then link and empty the table after ? Seems a lot of work and data manipulation for a single task ?! Thanks,
  11. Hi, I've been using the Kargas Dialog plugin for years, event if it's no longer supported, it's still working in FMA17, I'm planning to move to FM19 this year and I need to get rid of old 32 bits plugins. It's a lot of work since I use it in so many places. I already replaced large dialog and custom dialog with card windows (Technic by Matt at Filemaker Magazine). Mainly it is used to allow the user to select related information about something. The items in the list are not fixed. For example, we sell an item and we prepare a list of parts the installer will need to go with that item. So I have a table relation from item.id <----> multiple parts available for that item and I need to list all parts for the user to select. In some item I will allow only one selection and in some case, I will allow multiple selection. Now before I go into finding a way to replace this type of dialog, a picker, maybe there's someone that already made a solution for this ? I know it will be with a portal (or maybe with a layout in list view?) I can filter relationship so I know how to populate the portal or list view. I'm looking for a way to have a checkbox and select line, import those into a new portal (The import loop is already existing, as the Dialog return that info). Thanks, JF
  12. This is really an old post, but I love the look, we dispatch technician and that time picker will be very neat and easy to set time. We only schedule to 1/4 of an hour, I just remove the unwanted item and Voilà ! Thanks
  13. I found the code that I had that only return the coordinates and screen size. I just add the "import" section, that is what was missing from my previous attempt. import java.awt.GraphicsDevice; import java.awt.GraphicsEnvironment; import java.awt.Rectangle; GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); String boundsString = ""; for (GraphicsDevice gd : ge.getScreenDevices()) { Rectangle bounds = gd.getDefaultConfiguration().getBounds(); boundsString += bounds.x.intValue() + " " + bounds.y.intValue() + " " + bounds.width.intValue() + " " + bounds.height.intValue() + "\n" } return boundsString; and it return plain data 0 0 1920 1080 -1680 0 1680 1050 Maybe this will help someone else in the future, you have 2 options, you just have to extract the data you want from the result. JF
  14. @john renfrew This is going in the right direction! In your case the retina display, I may be wrong put it's not something like @2x in the Apple docs? so the pixel is 1/2 of the resolution so your 5120 x 2880 return in fact 2560x1440 My Monitor #1 is 1920 x 1080 Monitor #2 (left) is 1680 x 1050 The result is gs[0] = java.awt.Rectangle[x=0,y=0,width=1920,height=1080] gs[1] = java.awt.Rectangle[x=-1680,y=0,width=1680,height=1050] So monitor 1 sets at 0,0 1920x1080 and monitor 2 (left) is the screen resolution 1680 x 1050, since it's on the left side is -1680,0 On the right I get gs[1] = java.awt.Rectangle[x=1920,y=0,width=1680,height=1050] So for me, this code is working, if I try with gs[2] and I don't have a 3rd monitor I get Groovy Script failed:2 I added a variable to set the monitor number "ScreenNo" and the Groovy now look like this import java.awt.GraphicsConfiguration import java.awt.GraphicsEnvironment int x = Integer.parseInt(ScreenNo); ge = GraphicsEnvironment.getLocalGraphicsEnvironment() gs = ge.getScreenDevices() gd = gs[x] gc = gd.getConfigurations() return gc[0].getBounds() and after some cleaning, the code requires is import java.awt.GraphicsEnvironment int x = Integer.parseInt(ScreenNo); return GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()[x].getConfigurations()[0].getBounds() I can now run a script with a loop that will go from 0 until the plugin return ERROR and get into variables the info and with a custom function get this the data out of this result "java.awt.Rectangle[x=0,y=0,width=1920,height=1080]" Thanks John, you just made my day
  15. @Josh Ormond The command line is not working, it's telling me that I have only one monitor connected. I played around that command line tool, but I only get one monitor, one set of resolution ?!? I have tried other way, I might investigate that path and find another command line tool, but if not Win standard, I will have the install that tool in every PC... not the best practice in deploying a solution. @john renfrew The Groovy part is to set up a ScriptMaster plugin that will return the information into a variable and with that info I will script conditions to do what I need. So if I have 2 monitors, the solution will open the second window. If the 2nd monitor is L or R I will get the current FM function to send the new window in the right location. I once found a Groovy code that was supposed to do that (didn't save the URL !) but I recall copy/past in the demo file of scriptmaster but the script was not working, error running/compiling... Thanks,
×
×
  • Create New...

Important Information

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