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

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

Recommended Posts

  • Newbies
Posted

Hy

How can a find request be done with the php API which allows the following query:

"give all records where the field User is xxx an the Status is not released (there are other status like "in work" , "in test" , "accepted" etc)"

Any suggestion ?

Posted

In FM you would Find with 2 requests: Find User = xxx, New Request, Status = Not Released Omit.

Another way is a Find, then a constrain. Same thing really.

You could call this script from PHP. Jonathan Stark's Blog

Posted


$req = $DB->newFindRequest('layout');

$req->addFindCriterion("userField","xxx");



$req2 = $DB->newFindRequest('layout');

$req2->addFindCriterion("status","released");

$req2->setOmit(true);



$find = $DB->newCompoundFindCommand('layout');

$find->add(1,$req);

$find->add(2,$req2);

$find_result = $find->execute();

This topic is 5532 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.