hg-snf

Custom Web Publishing ERROR 400 564

Discussion created by hg-snf on Feb 8, 2018
Latest reply on Feb 19, 2018 by user19752

Dear All,

i want to execute a script with the filemaker api (php). The script to use works fine in filemaker. All script steps are web publishing compatible. The page returns no error but also no result. I found the following error in the wpe.log.

 

the script call is:

 

if (  ( $_POST['getDocument'] ) ) {

 

     $scr = $fm->newPerformScriptCommand( $layout, 'STRING_REPLACE_API', $recId );

     $exe = $scr->execute();

 

}

 

the wpe.log:

 

ERROR 400 564 "/fmi/xml/fmresultset.xml?-db=db_user&-lay=user-cwp&-find&userLogin=&userPassword="

400Find criteria are empty

It seems that filemaker knows which record to use when the script is triggered, but the newPerformScriptCommand does not.

 

Any thoughts?

 

thank you for your attention,

Hendrik

Outcomes