Jump to content

George from Pittsburgh

Members
  • Posts

    36
  • Joined

  • Last visited

Everything posted by George from Pittsburgh

  1. Old Hand, Thanks for your response; however I can't quite get it. Go to Record [First] Set Variable [$FieldValue; Value: GetField (GetScriptParameter)] Set Variable [$Where;Value:Get(TemporaryPath) & "my.pdf"] Export Field Contents[ What do I put here as a field or how do I make the container field, the active field? ; "$Where"; Automatically Open] I can also get the field contents with; Set Variable [$FieldContents; Value: GetNthRecord ($FieldValue; 1)] I can't see how to pass the ScriptParameter to the Export Contents portion of the script. Further help will be appreciated. George
  2. Thank You Oldhand; it works wonderfully. In an effort to make the script dynamic, I created a field "gContainer" and set it = Get(Scriptparameter). I then set the Field Contents to "gContainer". However, the export step gives me a file error - Couldn't open the file. Any thoughts?
  3. My question is very simple. How, (step by step), do I embed a file into a container field. I don't wish a reference since the reference is dropped if I move the files. Thank you in advance. Perhaps I am not being clear. After the insert with no reference I can see an icon of the file, but how does the user open the file?
  4. I'm so close. Using the following file paths, with Content Area List.pdf on the desktop and $$ScriptParameter = Content Area List; the attachment works for the second option, but not the first. file:$$ScriptParameter &."pdf" file:Content Area List.pdf It must be syntax, but I can't seem to get it right. None of theses work. file:& Get(DesktopPath) & ($$ScriptParameter) & ".pdf" file: & ($$ScriptParameter) & ".pdf" file: & $$ScriptParameter & ".pdf" file:& Get(DesktopPath) & $$ScriptParameter & ".pdf"
  5. Addendum: I placed the pdf file on the desktop and then ran the email portion to no avail.
  6. sd, Thanks; I made the correction. file: Get(ScriptParameter) & ".pdf" However, it still won't make the attachment I want. Is it because at that point in the script a file - file: Get(ScriptParameter) & ".pdf" does not exist on the desk top. Should I have the script place the file on the desktop first and then let the mail portion execute? Or am I totally misunderstanding the mailing function?
  7. It worked wonderfully! Thank you. My problem now comes when I try to declare the path to attach the pdf file for emailing. I tried file:"Get (ScriptParameter) & .pdf" but this is not a path to an existing file. Any thoughts? A solution will make my script fully dynamic.
  8. Set Variable [$path; Value "file;" & Get(DesktopPath) & "Name.pdf" Save Records as PDF [Restore; Append: No dialog; "$path"; Records being browsed] I would like to replace "Name" with a Parameter or calculated expression. Any thoughts?
  9. For some reason a "Go to Object" script step when the object is a named portal does not execute. I can move to other objects on the layout, i.e. tabs. What am I missing? Thanks for any help
  10. What specific improvements are in DDR in FMP 9? Is is approaching BaseElements, i.e., identifying unreferenced elements?
  11. Thanks for your note. I have found the solution. See attached.
  12. Fenton, Sorry about sending a double of the layout. The global field that you pointed out is a remnant from an earlier attempted solution. The "Constrain Find" did the trick. See attached. Thanks for your help.
  13. I need a workaround for GTRR. I begin in a layout showing courses in a portal. I click on a course button and execute a script which sets local variables for the Content Area ID and Course ID. I then go to a Course layout which shows objectives in a portal, find the selected course, find the rest of the courses in the content area of the course and although I have the desired subset of courses showing in the course portal and the selected course highlighted, I do not have the related objectives in the objectives portal. To get them I must click on the highlighted course which executes a script to find the related records. The problem is although I see the desired course highlighted, the second "find" defaulted the filtered portal to the first record in the set. See attached and see subsequent posts. Thank you for any help
  14. Ender, Oh me of little faith! You are right it works beautifully. Happy Fourth.
  15. Is anyone out there currently designing in AutoNavigator by David Kachel? I would like to share notes.
  16. Normanicus, Thank you for your thoughts. The first script worked as advertised. I could indeed use it to open new windows; however, my solution will contain probably dozens of help layouts, pre-designed and available to the user. Thus I looked closely at your second script for removing windows. I created a field to hold the help layout names and set the gWindowList to those values in a new first line of your script. I ran the script with my debugger on and noted that for some reason the last value in the gWindowList was not set to "" and the loop was not exited. Set Field [gWindow List; Layout Names ] Loop Set Variable [ $Last Help Window; Leftwords ( Tests::gWindow List; 2) ] Close Window [ Name: #Last Help Window ] Set Variable [ $Last Help Window; Value:$Last Help Window & "¶" ] Set Field [ Tests::gWindow List; Substitute ( Tests::gWindow List; #Last Help Window; "") ] Exit Loop if [ Word Count ( Tests::gWindow List < 1 ] I don't understand the purpose of "  " in the script. Including it caused the script to fail. When excluding it, the script didn't close and take out the last value in gWindow List. To further complicate matters, if a user opened the same window more than once, the script , if working would only take out one copy; gWindow List by design having only one listing for each embedded help window. I could, perhaps, some how use PatternCount to alert the user not to leave any help windows open, but not only is it inelegant, I can't take the chance the user would always comply. I am in a quandry! Thanks for your interest and asssistance. George
  17. I am using Auto Navigator written by David Kachel. The shutdown script makes note of the last layout and it can't be any unclosed help window. Therefore, I must locate and close all help windows before the AN shutdown script executes. I have tried a loop to close help windows by naming them all "Help"; however, the script closes my base window and fouls up the AN navigating mechanism. I need to just pickoff the help windows prior to quitting FMP. I can't figure out how to identify them and close them.
  18. In my solution I have "Help" buttons which open new windows and, hopefully, enlighten the user. My problem is that I need to locate and close any "help" windows which may still be open prior to Quitting FMP from my base window.
  19. In answer to my own query, if I make a field a button and attach the script; If Field A <>" Show Custom Dialogue ["No re-entry allowed."] exit script else Go to Field A End if it works fine except if the field repeats. I can't apply the script to other than the first value and then with what seem to be unpredictable results. Any thoughts?
  20. I need to protect certain fields from being overwritten once data has been added. This is for a solution where certain medical information must not be alerted, once entered. Any thoughts?
  21. I thank you and school nurses in Pennsylvania thank you. It works beautifully. It is as elegant as elegant gets.
  22. I have attached an FMP table as you suggested. I need a more detailed explanation if you would. Thank you. BMI.fp7.zip
  23. Yes I didbut didn't think I could fashion an equation that I could use. Any ideas?
×
×
  • Create New...

Important Information

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