5 Replies Latest reply on Nov 16, 2015 9:00 AM by fred@kca-inc.com

    GetLayoutObjectAttribute for a Chart doesn't work with WebDirect

    KimTran

      Summary

      GetLayoutObjectAttribute for a Chart doesn't work with WebDirect

      Product

      FileMaker Pro

      Version

      Advanced 13

      Operating system version

      Mac OS 10.9.4

      Description of the issue

      The GetLayoutObjectAttribute command for charts do not work when using WebDirect.

      I tried to use a script to copy a chart to a container field using this command and although it works in FM Pro, when accessed in WebDirect the value turns up empty.

      Steps to reproduce the problem

      Create a chart on a layout with a defined object name and a container field.
      Using a button, add the following script:

      Set Field [ container_name ; GetLayoutObjectAttribute( "chart_obj" ; "content")]
      Commit Records/Requests [No dialog]

      Test the button to see if an image of the chart is saved in the container when using WebDirect.

      Expected result

      The container will be filled with an image of the chart object.

      Actual result

      The container is empty. If there was a previous value saved in the container, it will also be empty.