cancel
Showing results for 
Search instead for 
Did you mean: 

define category for User defined field ??

Former Member
0 Kudos

Hi

I have added some UDF on Sales Order. i have also added one valid value on the takeon form top right combo.....What i want is as i select this new value in combo other UDF will show otherwise not ???? Throgh e learniong i came to know that the <b>related entries is donr in CUDC table</b>. but unable to understand the database structure for this functionality. Plz help ....

With Regards

Pankaj Pant

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Pankaj

As I understand your question you would want to catch the ComboSelect Event in the ItemEvent routine and either show or hide the field bassed on that.

Example (VB.Net)


Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
dim cb as SAPbouiCOM.ComboBox
dim form as SAPbouiCOM.Form
select case pval.EventType
  case et_ComboSelect
    form = ' a handle to the form '  
    cb = form.items.item(pval.ItemUID).specific
    if cb.selected.value = something
      form.items.item("Name of field to show").visible = true
    else
      form.items.item("Name of field to show").visible = false
    endif 
  end select
end sub

Hope this helps

Best regards

Jesper Carstensen

Answers (0)