Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5896 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

In FX, you could use

$PubFind -> AddDBParam('PubStatus', 'Killed', 'neq');




to find all records where PubStatus does not equal Killed. Adding a third parameter in the FM API like this:




$PubFind->addFindCriterion('PubStatus', 'Killed', 'neq');




produces an error. Then I tried:




$PubFind->addFindCriterion('PubStatus', 'Killed');

$PubFind->setOmit('TRUE');

mimicking the way you do it in FileMaker. That errors too. I guess the setOmit must be part of a compound find. I could build a compound find but that seems fussy for something so simple.

Posted

yep you have to do a compound find to set omit.

It has to do with how the cURL request to the XML server is formed. Basically they didn't set up an omit parm to pass to the request so the only way to pass it is via the query String, and that parm is only used by the compound find.

This topic is 5896 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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