Skip to Content
avatar image
Former Member

Can I use choose_icon?

Dear friends:

As we know that choose_icon is a button image,

and if you click the choose_icon,then a list

about the edit item will list a form,

easy to choose a row and fill the edit item.

My question is that how can I use choose_icon

in my udo form ?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Apr 20, 2006 at 10:00 AM

    if the list is about system object, you need to define the ChooseFromListUID property of the button object.

    Have a look at SAP sample 17.ChooseFromList

    Sebastien

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 20, 2006 at 09:32 PM

    Hi Andrew,

    There are 2 parts to this. As Sebastien has already mentioned, the functionality to trigger the opening of the search window is the ChooseFromList object (new object in SDK in 2005A). Normally, you'll actually have 2 ChooseFromList objects for a field so the user can perform a lookup by clicking the button or pressing tab. The example that Sebastien has given demonstrates this.

    To make the button look like the standard choose_icon button in SAP you can create your form in code or (preferably) create a .srf file and add the button using code similar to the following:

    <item AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" enabled="1" font_size="0" forecolor="-1" from_pane="0" height="16" left="165" linkto="" right_just="0" supp_zeros="0" tab_order="0" text_style="0" to_pane="0" top="12" type="4" uid="myButton" visible="1" width="16"><AutoManagedAttribute/><specific image="CHOOSE_ICON"/></item>

    You may be able to add this button from within Screen Painter, I've never tried...

    Hope this helps,

    Owen

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Owen,

      I'm appreciated about your response.

      It sounds like that this function only available

      for SDK 2005.As your solution says the choose_icon

      can be added with XML or screen painter,both way

      can work well.

      Now my problem is my B1 version is 2004B patch 60,

      and SDK is also this version.Is it that I need to

      upgrade B1 to 2005B(Can I get it),or I can't use

      this function?

      Best regard