Skip to Content
author's profile photo Former Member
Former Member

How to set condition for my Choose From List

hi.. i have created a form where for a text box i have created ChooseFromList (CFL_2) with object type = 1 and it is working fine..when i click on choose from list it is opening all GL Accounts ...but i need to set a condition that only i should be able to get only Active Accounts but not the Title Accounts..

how to do this...

how to set the conditions whie accessing my CFL_2....

i tried this code..

If pVal.ItemUID = "19" Then '''' 19 is uid of my textbox

oCFLCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)

oCFL = SBO_Application.Forms.Item("CQ_AssetCategory").ChooseFromLists.Item("CFL_2")

''' oCFL = oCFLs.Add(oCFLCreationParams)

oCons = oCFL.GetConditions()

oCon = oCons.Add()

oCon.Alias = "ActType"

oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL

oCon.CondVal = "Active Accounts"

oCFL.SetConditions(oCons)

oCFLCreationParams.UniqueID = "CFL_2"

oCFL = oCFLs.Add(oCFLCreationParams)

oDBDataSource.SetValue("U_BalenceSheet_Acct", 0, oCFLEvent.SelectedObjects.GetValue(0, 0))

End If

plz provide me with code....

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 11, 2009 at 04:03 PM

    Hello,

    The correct is : Active Account marked in the database as Postable

    oCon = oCons.Add()
    oCon.Alias = "Postable"
    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
    oCon.CondVal = "Y"
    

    Regards,

    J.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.