Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


comment last won the day on January 19

comment had the most liked content!

Community Reputation

1,457 Excellent

About comment

  • Rank

Profile Information

  • Gender
    Not Telling

Platform Environment

  • OS Platform
  • OS Version

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. You can see what's in the container field easily by looking at the result of GetContainerAttribute() in Data Viewer or a calculation field. However, I think at this point it is clear that something is malfunctioning on your system. It could be a bad installation or there's something extra that interferes with the Adobe Reader embedded in the FMPA application. Try the advice offered here, and if that doesn't help, try re-installing.
  2. When you say you cannot insert a PDF in Record 2 - what exactly does that mean? Is the menu option greyed out, or is it enabled and you just don't see a result of the action?
  3. Why do you think that would help? I have Adobe Reader installed on my Mac and I experience no such problem. I believe those two fields are one and the same field. If you changed the large one to be interactive, that should be the only difference between them (apart from the reduce/enlarge format). So it would seem that you are able to insert a PDF into an interactive field, but you're unable to interact with it.
  4. I am somewhat confused, because first you said you could not insert a PDF in my file - but later you said: I know for sure that the container in my file is interactive, so that doesn't add up. I am also not sure what do you see in the container, if you can't see the PDF. Do you see an icon and /or the file name? I don't like recommending it, but if my file doesn't work as expected on your system, then there's something wrong with your system. Do you have any plugins installed?
  5. There is only one script in the file. It is attached to the button under the container field. You did not answer my question about your application version.
  6. comment

    Cannot get a simple SUM

    ID is not listed as a reserved word in the documentation, and I encountered no problems using it as a field name without quoting it: Could you provide a description of the fields referenced in the calculation? Or even better, upload a small demo file, so we can reproduce the problem.
  7. Please try the attached file: 1. Are you able to see and interact with the PDF file in the 1st record? 2. Are you able to insert a PDF in the 2nd record, using any of the following methods: Selecting Insert > PDF… from the menu; Right-clicking in the field and selecting Insert PDF… Using the provided script. Also, did you update your FMPA to the latest version (17.0.4)? InteractiveContainer.fmp12.zip
  8. It can be a problem if you're counting the records for some purpose - e.g. how many answers on a quiz. I am also not a fan of redundant records, so I'd rather not create a record unless it has some data. But once it has been created, it's a question of how much effort is it to get rid of it versus what is the harm in keeping it. I have seen many developers pre-create a full set of records in these situations without giving it a second thought.
  9. If it is important to not have empty records in the values table, then you should attack this on two fronts: In terms of data integrity, you should validate the field as not empty so that the user will be forced to either enter a value or delete the record; In terms of user interface, you can make the user experience smoother by either showing a custom dialog presenting the choices, or just have a script trigger automatically delete the underlying record upon detecting that the field is empty - without requiring any action from the user.
  10. Try = If ( Get (ScriptParameter) = "Digital" ; "LINE_ITEMS_Digital" ; "SomeOtherLayout" ) Note that this will break if you rename your layouts.
  11. comment


    The answer is no. The object name must be hard-coded. Once again, it would be better to ask about your real goal, not about the way you think is best to accomplish it - see: http://xyproblem.info/
  12. I think you mean global fields? You would include them in the export (so that they would appear in every record) and use them outside the <xsl:for-each select="fmp:RESULTSET/fmp:ROW">...</xsl:for-each> block. To get the value of such field, use: <xsl:value-of select="fmp:RESULTSET/fmp:ROW[1]/fmp:COL[x]/fmp:DATA"/> where x is the number of the field in the field export order. I have them in my stylesheet: &#10; is a line feed character. If you need a carriage return, use: &#13;
  13. comment

    execute stroke

    What would be the purpose of such function? You have been asked what are you trying to accomplish, but you did not answer.
  14. There are quite a few examples posted here, mostly by Fenton and by me. To get you started, have a look at the attached demo: XML demo.zip Note that field names can be changed without breaking the export, but the field export order must be preserved.
  15. comment

    execute stroke

    There s no such thing as "to trigger enter key" or any other key. You can only trigger a script. The script can perform various actions, including calling other scripts. It can enter a carriage return character into a field (which is the equivalent of user pressing the Enter key while the cursor is in a text field). A script cannot press buttons (which is what the Enter key does when a button is selected).

Important Information

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