Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8712

Re: Pre and Post query - get variable value from Pre query

$
0
0

Leslaw

 

Once again, thanks for replying.

 

I understand that we can't restrict a characteristic with two variables and I got around this issue

by having the Pre-Query determine (via Customer Exit) which employees had the Qualifications selected as mandatory. The Post_query then returns all the pre-query employees who have the Optional Qualifications.

 

So the pre-query select ALL employees that have ALL of he Mandatory Qualifications.  The Post-Query uses these employees (replacement path) and then filters qualifications based on values in the Optional Qualifications variable.   This works fine, but I want the system to append the Mandatory Quals to the Optional quals list.

 

Scenarios

 

Optional Qualifications excluding Mandatory Qualifications

 

If I enter Mandatory Qual as 'A' and 'B', with Optional Qual as 'C', system returns all employees

who have both 'A' and 'B' qualifications to th post-query, then filters and returns a result set with all employees who have the optional qualification 'C' only.

 

Optional Qualificaiton including Mandatory Qualifications

 

If I enter Mandatory Qual as 'A' and 'B', with Optional Quals as 'A' and 'B' and 'C', final result

set is ALL employees who have both 'A' and 'B" and 'C' if they have the 'C" qualification.

 

e.g.

Employee        A     B    C

1                      Y     Y    N

2                      Y     Y    Y

3                      Y     Y    Y

 

Must have A and B, add record if they have C.

 

This works well, BUT, the users do not want to have to copy the Mandatory Qualification variable values (A/B) into the Optional variable values,  and then add the 'C'.  We want the user to populate the Mandatory Quals with A/B and the Optional Quals with 'C', BUT, I need the system to append the A and B to the optional quals so we get all data, not just the employees with 'C' qualification.

 

Regards and thanks,


Gerry


Viewing all articles
Browse latest Browse all 8712

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>