cancel
Showing results for 
Search instead for 
Did you mean: 

hi all visible false udf in marketing document

Former Member
0 Kudos

hi all,

i want to visible false udf in the marketing document.but field not show in the forms object.

how is possible.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI,

Did u bind the UDF with the EditText or any other control on form.

If u didnot then u ll not see it on form,then why do u want to hide it.

I think u are giving the UDF name instead of the Item ID.

oForm.Items.Item("ItemID").visible= false; ' ItemID-this should be item id not UDF name in backend.

Former Member
0 Kudos

thanks for replpy

actually i want to add one udf in marketing document that is UIN(Unique identification number) for particular user.Any one can add documnet which have UIN .IF UIN is corrct the he can add document but for using browse option user can see the UIN number of other . i want to hide UIN udf when user Browse (next ,previous,last,first)option.

Regards

Rajkumar Gupta

Former Member
0 Kudos

on click of the corresponding browse menus you can hide the UID text field.

Make it visible false.

if(pVal.MenuID=="1290")

{

oForm.Items.Item("UID").visible = False;

}

Former Member
0 Kudos

thanks for replr

i done but using

SBO_Application.Forms.GetForm(-142, 1).Items.Item("CboCF")

we can access udf using - sign with form uid.

Answers (1)

Answers (1)

Former Member
0 Kudos

Open the Screen which has the UDF and make the UDF Visible

Goto Tools -> User Defined Fields -> Settings. Here you can make it visible or Invisisble.

Former Member
0 Kudos

thanks to relpy

i want to do through coding

former_member191896
Active Participant
0 Kudos

Hi Rajkumar,

You can set an item to invisible as follows. Note that if the item is in fucus, you cannot set it to False.


Item item = form.Items.Item("UID");
item.visible = false;

HTH

Aravind

Former Member
0 Kudos

thanks to replr but i haven't got udf in the active form event.

If pVal.FormType = "142" Then 'Purchase Order Form

If pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD And BubbleEvent = True And FLAG = False Then

oFormAPOrder = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)

'Form = SBO_Application.Forms.ActiveForm

Dim oItem As SAPbouiCOM.Item

oItem = oForm.Items.Item("U_UIN")

oItem.Visible = False

end if

end if

i read in forum that u have to catch form with -142 then u get the udf of the form.

but i tried my problem not solved.

Regards

Rajkumar

Former Member
0 Kudos

Hi Rajkumar,

Once you add the udf in Marketing documents then that udf treated as system item.

so you cannot make system item visible false.you can make user item on the user defined form visible true or false.

One more option you have on Main Form add the Edittext and bind it with udf on form load event.you can make that edittext visible true and false.

Regards,

Mahendra

Former Member
0 Kudos

Hi,

If ur not able to make it invisible then u can move it out of the form.

Dim oItem As SAPbouiCOM.Item
oItem = oForm.Items.Item("U_UIN")
oItem.Left = 500 ' Etc u can use large values so that the item will be outside the form and invisible to the user.

Hope it helps,

Vasu Natari.

Former Member
0 Kudos

thanks ti reply but my problem not solved yet.

I WANT TO VISIBLE FALSE UDF IF ANY BODY HAVE CODE TO PLEASE POST IT.