cancel
Showing results for 
Search instead for 
Did you mean: 

Set user defined item to invisible

Former Member
0 Kudos

Hi all.

I want to set user defined item to invisible but it doesn't work.Here is my code:

Dim form As SAPbouiCOM.Form

Dim sFormType As String

Dim formCount As Integer

Dim sboUDFform As SAPbouiCOM.Form

If (pVal.FormTypeEx = "-940") And pVal.BeforeAction = True Then

If pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD Then

form = SBOApplication.Forms.Item(pVal.FormUID)

sFormType = "-940"

formCount = 1

sboUDFform = SBOApplication.Forms.GetForm(sFormType, formCount)

sboUDFform.Items.Item("U_Dimension1").Visible = False 'Set ComboBox Item to invisible

End If

End If

Anyone can help me.Thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

with your form opened.

in your sap menu, go to Tools >>Customization Tools >> Settings, there you 'll find a window to set the field

Edited by: Danilo Acceto on Mar 30, 2009 8:29 PM

Edited by: Danilo Acceto on Mar 30, 2009 8:30 PM

Former Member
0 Kudos

Thanks Danilo.

If possible I want to set it by coding.Do you know any sample to set it.

Former Member
0 Kudos

Hello,

By using ColumnsPreferences, we can access the column-settings which are available in the formsettings window, but not the UDF-settings which are given in Tools->Customisation Tools>Settings.

Even though they are saved in the same table they are accessed differently so this is missing functionality.

Cheers,

Lisa

Former Member
0 Kudos

Lisa is right.We cant set the UDF at Tool setting.And we have to set one by one for each voucher.It's too much trouble so I want to set it by coding.

Former Member
0 Kudos

Hi,

You can customize the UDF form and can restrict as you required.

The UDF form have the same id as the real form with - sign.

like if the form id is 142 then respective UDF form's ID ll be -142

Now, You can create a class for this and do the customizations.

Instead of visible =fall, try on click bubble Event = false;

Former Member
0 Kudos

Hi,

Do you want to hide combobox on Tackon form(Opposite UDF Form of a SAP Form) ?

Can you tell me the purpose, so that i can tell you some suggestion.

Former Member
0 Kudos

To Hepil.

Could you give me some samples.

To Anuj.

Yes,I want to hide combobox as I want only to use combobox

in some vouchers,and at stock transfer I dont want to use it.

Former Member
0 Kudos

Hi

Write you code in constructor. I mean after load the form write you code for invisible.