You are viewing limited content. For full access, please sign in.

Question

Question

Feature Request: Ability to Specify AND/OR Logic for Lookup Condition

asked on January 27, 2014 Show version history

When creating a lookup rule and adding conditions, it would be helpful if we could specify, if multiple conditions exist, if AND or OR logic should be applied.

0 0

Answer

APPROVED ANSWER SELECTED ANSWER
replied on February 27, 2014

Thank you for the feature request! I've brought this to the rest of the Forms team; we'll consider it for a future release.

0 0

Replies

replied on January 27, 2014

Can you please elaborate on the used case? 

1 0
replied on September 19, 2019

I came across this post searching for the exact same thing as Blake.  Seeing as how it has been 5 1/2 years and still no AND/OR logic in lookups, it doesn't seem to be getting any love.  

 

Just in case it helps the cause at all, here is my use case:

We have many different types of leave plans but an employee can only have one.   I only want my form to return the information for whichever plan the employee has.  I would love to be able to specify something like:

When EmployeeID = HrID 

AND

When LeavePlan = 'SS06' OR 'SS08' OR 'SS07'

Then

AccrualField = AccrualRate

 

Maybe a feature that could be coming soon to a Laserfiche near you!

 

1 0
replied on January 27, 2014

We have a Form that teachers will be filling out that we have tied to a PowerSchool Oracle database. We then have the teacher select the following:

  1. What school they are from.
  2. Their name from a populated list
  3. What section they are selecting children from

 

When they select their name from the list it is performing a lookup based on the School ID that was selected as well as if the teachers Status = 1.

 

We have some hard coded fields for the Year, TermID1, TermID2, and Trimester. We would like to be able to also filter the list of teachers based on if the values in those fields also apply. The Year and Trimester values would need to use AND logic. The TermID1 and TermID 2 values would need to use OR logic.

 

We need a way to specify that logic when creating the conditions.

0 0
replied on January 28, 2014

Hi Blake,

 

Rather than handle this from the Forms end, it sounds as though it could also be handled on the Oracle end.  Forms 9.1 supports stored procedures, which you could use to create the "OR" logic behind the scenes.  You might want to check out the help files for more information about working with stored procedures.  If that won't work for you, please elaborate a bit on the use case, and I'll be happy to file a feature request for you.

0 0
replied on January 28, 2014

Stored procedures are not available for Oracle though. If it was available though, it would still be more user friendly to be able to select that logic through Forms because then a DBA wouldn't need to be involved.

0 0
replied on February 6, 2014

If the interface can resemble what the Field Rules uses where a user can specify "When (Any/All) of the following is true: ..." that would be ideal.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.