B4J Question ABMButton detect menu return_id

codie01

Active Member
Licensed User
Longtime User
Hi All,

I have created an ABMbutton with menu items as follows :

Create abmbutton:
    Dim section1aButton0 As ABMButton
    section1aButton0.InitializeFlat(page,"section1aButton0","","","LOCATION : All Locations","v3Button0")
    section1aButton0.HTMLAddClass("smallradius")
    section1aButton0.Size = ABM.BUTTONSIZE_LARGE
    section1aButton0.DropdownShowBelow = True
    section1aButton0.SetBorder(ABM.COLOR_WHITE,ABM.INTENSITY_DARKEN4,1,ABM.BORDER_SOLID)
    section1aButton0.UseFullCellWidth = True
    
    section1aButton0.AddMenuItem("ALL","All Locations")
    For myLoop = 0 To myComboList.Size-1
        Dim thisName As String = myComboList.GetKeyAt(myLoop)
        Dim thisLine As String = thisName
        
        section1aButton0.AddMenuItem(thisName,thisLine)
    Next

The button displays correctly, however the Sub returns the button object not the return_id. The following is the Sub Routine for the event.

sub event:
Sub section1aButton0_Clicked(Value As String)
    Log("LOCATION CLICKED : " & Value)
End Sub

Does anyone know the correct Sub event to get the menuItem return name.

Thanks
 
Top