How to set Data Selection (A and B and (C or D))?

kai zhou

Member
I try to set user selection by using system function at the initial section. But I'm not sure it's correct or not.

Use Data Selection from (RS Main)
Set Selection Append Flag (Yes)
Set User Selection (A AND)
Set User Selection (B AND)
Set User Selection (C AND)
Set User Selection (A OR)
Set User Selection (B AND)
Set User Selection (D AND)

Anyone knows? Please help! Thanks!
 
Set User Selection (A AND)
Set User Selection (B AND)
Set User Selection (C OR)
Set User Selection (A AND
Set User Selection (B AND)
Set User Selection (D AND)
This should be it!!
Let me know for anything more.

Cheers,
Neelesh Bhatt
 
Hi khai zhou,

If you don't write your required selection logic in a logic form using parenthesis, then we can not check your solution.

1.) The operand should be <None> in the first SetUserSelection row after SetSelectionAppendFlag row.

2.) You code will produce the following:

( Main ) AND ( ( A AND B AND C ) OR ( A AND B AND D ))

Is this, what do you want?

3.) NOTE: UseDataSelectionFrom won't get the selection from Main section, which was set with SeUserSelection system function call(s) in the InitializeSection event of Main section.

Regards,

Zoltán
 
[ QUOTE ]
I agree with Zoltan. What is it you are trying to achieve?

[/ QUOTE ]

What I try to do is:

I have two sections, one main and one custom. They are based on the same business view. I want to pass the user selection of Main section to the custom section. It's like:

(( Main ) AND ( ( A AND B AND C )) OR ((Main) AND ( A AND B AND D )))

So I write the following code in the initial section of the custom section:

Use Data Selection from (RS Main)
Set Selection Append Flag (Yes)
Set User Selection (A AND)
Set User Selection (B AND)
Set User Selection (C AND)
Set User Selection (A OR)
Set User Selection (B AND)
Set User Selection (D AND)

But if Use Data Selection from (RS Main) won't work, is there any way to get the User Selection (Input by User) from one section and pass to another section (Same Business View)? Please help and thanks a million!
 
Hi kai zhou,

If I didn't forget yet my slight Bool Algebra knowldge, then your required formula
(( Main ) AND ( ( A AND B AND C )) OR ((Main) AND ( A AND B AND D )))
IS IDENTICAL WITH the formula
( Main ) AND ( ( A AND B AND C ) OR ( A AND B AND D ))
what I written to you in my previous answr.

So, your original code is right, except that the AND in the first SetUserSelection is needless and better to use NONE.

Regards,

Zoltán
 
Back
Top