3 Replies Latest reply on Aug 11, 2013 8:55 AM by PSI

    Export Field Contents FM Go

    PSI

      I have a pdf in a container field. I export and load it into a global container for viewing. This works fine on the desktop but FM go Pops up a 'FIles On Device' window with no file showing...

       

      here is the script...

      Set Variable [ $Path; Value: "filemac:" & Get ( TemporaryPath ) & GetAsText ( Exams|IJ_PeviousStudies::ExamReportPDF ) - this references the field where the pdf is stored

      Set Variable [ $Path; Value: "imagemac:" & Get ( TemporaryPath ) & GetAsText ( Exams|IJ_PeviousStudies::ExamReportPDF ) - this references the field where the pdf is stored

      Export Field Contents [ Exa,s|IJ_PreviousStudies::ExamReportPDF; "$Path"]

      go to layout - laout with the display container

      go to field [PatientInfo::zExamPreviewCTR]

      Insert PDF["$PathImage"]

       

      thanks in advance...

      John Morina

      Pueblo Systems, Inc.

      CCQ-FM, Inc.

        • 1. Re: Export Field Contents FM Go
          RubenVanDenBoogaard

          Hi John,

           

          Here are some thoughts,

           

          You try to insert a variable $PathImage that has not been declared before. . .

           

          Why don't you set the global PatientInfo::zExamPreviewCTR field directly from the s|IJ_PreviousStudies::ExamReportPDF field, that should save you from

          exporting and importing.

           

          On IOS you get different results if you use the temp folder or the documents folder.

           

          and last I would not use the "filemac:" or "imagemac:" in the path, it should work fine without them.

           

          Hope that helps,

           

          Best regards,

           

          Ruben van den Boogaard

          Infomatics Software

          ruben@infomatics.nl

          • 2. Re: Export Field Contents FM Go
            Stephen Huston

            Why not use a Set Field script step to set the target field with the content of the source field, bypassing the need for any external file process? As long as they are both containers, it should work.

            • 3. Re: Export Field Contents FM Go
              PSI

              Ruben & Stephen,

               

              Sorry for the delay...

               

              There are platform behavior issues here. On Windows or FM GO, in order to get the container to display the pdf, so it can be read, it has to be inserted. just setting the global container from the stored field you only see an icon. so the script works fine on Windows but on FM GO it displays the pdf but it isn't interactive. there are no PDF controls and it stretches it wide.

               

              John