Newbies Matthias Flury Posted October 3, 2009 Newbies Posted October 3, 2009 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 ?
bcooney Posted October 3, 2009 Posted October 3, 2009 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
Genx Posted October 3, 2009 Posted October 3, 2009 $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();
Recommended Posts
This topic is 5787 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 accountSign in
Already have an account? Sign in here.
Sign In Now