cancel
Showing results for 
Search instead for 
Did you mean: 

How to filter Choose from list object rows?

Former Member
0 Kudos

Hi everyone,

I'd like to show Choose from list window using SBO 2005 PL07, Actually I want to show the Active Account of G/L Account, I set the CFL object to one column as following:

oCFLCreationParams.ObjectType = SAPbouiCOM.BoLinkedObject.lf_GLAccounts

oCFLCreationParams.UniqueID = "CFL"

oCFL = oCFLs.Add(oCFLCreationParams)

Who knows how to set Choose From list object only show Active Account and do not show Title Account.

Thanks for your help!

Kathy

View Entire Topic
Former Member
0 Kudos

Hi Kathy,

I think this should work after you've added your choose from list as in your post above.

            Dim oCons As SAPbouiCOM.Conditions
            Dim oCon As SAPbouiCOM.Condition
            oCons = oCFL.GetConditions()
            oCon = oCons.Add()
            oCon.Alias = "Postable"
            oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
            oCon.CondVal = "Y"
            oCFL.SetConditions(oCons)

Hope it helps,

Adele

<i>Message was edited by: Adele le Roux

See now that Louis basically said the same

I'm a bit slow this early in the morning ;)</i>

Former Member
0 Kudos

Thank you Louis and Adele,

It's just the right way to solve my problem.