Sachinkl
Member
Hi,
I have written the following code in the find button of a find browse form.
Set Selection Append Flag(FC Grid, <Yes>)
Set Selection(FC Grid, F4211, LNTY, <Equal To>, PO szLineType1_LNTY, <And>)
Set Selection(FC Grid, F4211, LNTY, <Equal To>, PO szLineType2_LNTY, <Or>)
There is a Form Control for Order Number. When I give a specific Order Number and hit find, this order number is getting appended to just the first line type. When I looked at the debuglog it's behaving the following way
(Order Number and PO Line Type1) or (PO Line Type2) but it should behave (Order Number) and (PO Line Type1 or PO Line Type2).
Is there anything that I am missing here.
I know a work around for this, to include all the FC values in the select statement, but there are 10 Line types coming from the PO and 10 FC values which will make 500 lines of code in find button.
I can do this way too but I just want to make sure why the FC values are not getting appended properly to the Selection that is given in the find button.
Filter option's for the Order Number are also checked properly.
Thanks,
Sachin.
I have written the following code in the find button of a find browse form.
Set Selection Append Flag(FC Grid, <Yes>)
Set Selection(FC Grid, F4211, LNTY, <Equal To>, PO szLineType1_LNTY, <And>)
Set Selection(FC Grid, F4211, LNTY, <Equal To>, PO szLineType2_LNTY, <Or>)
There is a Form Control for Order Number. When I give a specific Order Number and hit find, this order number is getting appended to just the first line type. When I looked at the debuglog it's behaving the following way
(Order Number and PO Line Type1) or (PO Line Type2) but it should behave (Order Number) and (PO Line Type1 or PO Line Type2).
Is there anything that I am missing here.
I know a work around for this, to include all the FC values in the select statement, but there are 10 Line types coming from the PO and 10 FC values which will make 500 lines of code in find button.
I can do this way too but I just want to make sure why the FC values are not getting appended properly to the Selection that is given in the find button.
Filter option's for the Order Number are also checked properly.
Thanks,
Sachin.