AnsweredAssumed Answered

var URI issue, Permission Denied

Question asked by user17311 on Sep 10, 2018
Latest reply on Sep 10, 2018 by user17311

I have Borrowed some code from an AddressLookup module which uses the Google API.

 

On implementing it into my database I am trying to copy it into the database rather than have as an external source.

But have an issue that has gotten me stuck. Think it is something to do with the following bit of code.

 

<script type="text/javascript">

function storeData() {

 

    // Set up base URI. You need to modify host-ip, database name and script name

    var uri = 'fmp://$/LawnManagerV1e.fmp12?script=Private.GoogleSearchResult';

 

    // Add form fields as parameters to the URI. These will be $variables in your FileMaker script

 

When the Script run's it get to a point in which it comes up with a " Your access privileges do not allow you to perform this action"

 

The script was running up to i changed this

  var uri = 'fmp://$/Externaldatabasename.fmp12?script=Private.GoogleSearchResult';

 

to this

  var uri = 'fmp://$/LawnManagerV1e.fmp12?script=Private.GoogleSearchResult';

 

Thanks in advance.

Outcomes