Making htmlb:listbox bindable by new BSP-Element

Hi,
I tried to built a new bsp element which renders a listbox and where the table attribute is bindable.
So far I declared the element listBoxBindable in my own BSP-Extension with the same atrributes as htmlb:listBox.
For Element content I marked 'empty'.
For More Options I marked 'User defined Validation' and 'No return of PAGE DONE...'.
In element-handler-class I copied the methods IF_BSP_ELEMENT~COMPILE_TIME_IS_VALID
IF_BSP_ELEMENT~RUNTIME_IS_VALID
from HTMLB:ListBox.
method if_bsp_element~do_at_beginning.
  resolve_model_binding( ).
  data: listbox type ref to cl_htmlb_listbox.
  listbox ?= cl_htmlb_listbox=>factory(
            id                          = me->id
            backgroundcolor             = me->backgroundcolor
            disabled                    = me->disabled
            encode                      = me->encode
            multiple                    = me->multiple
            nameofbackgroundcolorcolumn = me->nameofbackgroundcolorcolumn
            nameofkeycolumn             = me->nameofkeycolumn
            nameoftextcolorcolumn       = me->nameoftextcolorcolumn
            nameofvaluecolumn           = me->nameofvaluecolumn
            selection                   = me->selection
            selections                  = me->selections
            size                        = me->size
            table                       = me->table
            textcolor                   = me->textcolor
            width                       = me->width ).
  rc = co_element_done.
endmethod.
method resolve_model_binding.
  data: model_name type string.
* table
  if _table is not initial.
    call method cl_bsp_model=>if_bsp_model_util~split_binding_expression
      exporting
        binding_expression = _table
      importing
        attribute_path     = m_table_path
        model_name         = model_name.
    m_table_model  = m_page_context->get_model( model_name ).
    table = m_table_model->get_attribute_data_ref( attribute_path = m_table_path ).
  endif.
endmethod.
<b>Unfortunately nothing is rendered - anybody an idea where I forgot something?</b>
Thx in advance!

Just off the top of my head, I would say you are missing the rendering loop for the listbox.
Add the following after the method call to cl_htmlb_listbox=>factory.
    while m_page_context->element_process( element = listbox ) = co_element_continue.
    endwhile. "End Listbox Render

Similar Messages

  • Bindable attribute for BSP elements in BSP extensions

    Hey all
      Can anyone explain what the 'Bindable' attribute in BSP elements, in BSP extensions, is for? It has no F1 help documentation and is not documented in the SAP library with the rest of the BSP element attributes.
    Many thanks
    Mark

    Which field is? Has translate value content to spanish for this field?.
    In SAP CRM UI, press F2 and tell me which is the field

  • E-Recruiting: New Text element on WebDynpro page of External candidate

    Hi,
    I have a requirement to add a new text element on the personal data tab of the candidate profile. I have tried this through application configuration method, but the existing Text elements are not sufficient to accomodate the text matter that i need to insert.
    I want some additional elements where they can accomodate my new text.
    Is there a possibility of doing this without making the compeonent a 'Z' one?
    Thanks,
    Suresh

    Hi Suresh,
    Yes there is one possibility to do this .After you accomodated the new text thru the component config and
    if you are still left with the text which needs to be added then create an enhancement and add an text element and bind it to the attribute just below the text element required and in the modify view method of the view bind the text to the attribute.
    All this has to be done thru enhancement in the std component.
    Thanks & Regards,
    Dipu.B

  • Create new sub-element (Service reference) SICF

    Hello Friends,
    I have created a new BSP extension.
    Now i want to add this into SICF...as a sub element...
    while trying to do this...it is throwing a error that "no authorization"...
    My user is having "SAP_ALL" profile too...
    Please help me, what are the other authorizations i need to do this...

    Hi Ramkumar,
    Have you found a solution for this problem? I'm facing the same message and can't activate my BSP now..
    Thanks,
    Hayo

  • How to display string which has BSP elements correctly?

    Hi,
       I have a string variable lv_text which content is:
    <htmlb:group height = "100%"
                         width  = "100%" >
              <htmlb:groupHeader>
                <xhtmlb:toolbar id="toolbar1" >
                  <xhtmlb:toolbarItem placement="LEFT" >
                    <htmlb:textView design = "HEADER3"
                                    text   = "AAAA"/>
                  </xhtmlb:toolbarItem>
                </xhtmlb:toolbar>
              </htmlb:groupHeader>
              <htmlb:groupBody>
                <%
      if gv_if_dis_message = 'X'.
                %>
                <%@include file="message.htm" %>
                <%
      Endif.
                %>
              </htmlb:groupBody>
            </htmlb:group>
        I want to use it in my BSP page and display the content correctly. Because it has some BSP elements, so now it can not be displayed correctly. How to solve this problem?
        Thanks a lot!

    you cannot do this way. what you can do is call the factory method of the htmlb:<tab> to get the element and render the element to a string and you can now use this string in your bsp page.
    Regards
    Raja

  • New BSP Extensions book

    I noticed that there is a new BSP book available from the SAP Press, BSP Extensions: How to Master Web Reporting with HTMLB by Frédéric Heinemann.  Has anyone had a chance to get a copy of this yet?  I'm wondering if the 95 page book is worth $85.00 (USD).

    Hello,
    I just bought the book. It is great for learning BSP Extensions.
    I noticed that a wiki page has been created on the book. Is it intended as a place for remarks, and suggestions.
    I am half way through the writing of the ZCCM web application on a WAS 6.4? (SAP_BASIS 700, SP11) and I have stumbled into a JScript error in some of the *.js files called up by the htmlb extension.
    The error is "childNodes.0.tagName is null or not an object".
    I found a SAP Note (949105) explaining how to correct a similar error in sapUrMapi_ie6.js
    After applying the note I still get the error. Has anyone played with that?
    Also, for those that are going to create the ZCCM application there is a typo page 39 in the 2005 english edition.
    wa_treenode-client should be
    wa_treenode-mandt
    wa_treenode-comment should be
    wa_treenode-remark
    i_comment should be
    i_remark.
    Claudio Ciardelli

  • Prevent rendering of inner BSP elements

    Hi all,
    does anyone know a possibility to prevent the rendering of the inner elements of a custom BSP element? I want to do something like this:
    <mat:elem hideInner="true">
      <htmlb:inputfield ... />
    </mat:elem>
    I would like to control from the <mat:elem/> whether or not the  <htmlb:inputfield/> is rendered....
    I know that I could use a simple <% if ... %>, but an element would be nicer
    Any help is appreciated,
    Matthias

    I would look at the BSP Element BSP:findAndReplace.  I looks like you could grab the inner content during the DO_AT_END using:
      data: content type string.
      content = m_out->get_content( ).
    I haven't tried it, but instead of changing a small part of the content, you could just wipe it out.

  • Htmlb:formLayout and htmlb:listBox problem

    Hi, i have a problem with the htmlb:formLayout and the htmlb:listBox. When I try to integrate a listbox element in the formLayout
    <hbj:formLayoutRow>
      <hbj:formLayoutCell ...>
        <hbj:listBox .......>
        </hbj:listBox>
      </hbj:formLayoutCell>
    </hbj:formLayoutRow>
    all subsequent row definitions are ignored.
    All the elements are rendered into the same row.
    Any idea how to come around this?
    Regards
    Edmund

    The difference between our two code snippets is, I am using the model as input for the listBox and you are using the listBoxItem. The rest seems to be fine, for me.
    But in my example the button is rendered into the same line into the next column.
    <hbj:documentHead title="Administration"/>
       <hbj:documentBody>
         <jsp:useBean id="RoomsBean" tzpe="com.mgi.portalDev.test.iView.helper.RoomsBean" scope="session"></jsp:useBean>
          <hbj:form id="ContactPersonsAdminForm">
            <hbj:formLayout id="form_rooms" debugMode="false" marginTop="0" marginBottom="0" marginRight="0" marginLeft="0">
              <hbj:formLayoutRow>
                <hbj:formLayoutCell align="center">
                  <hbj:label id="lRoomsListBox" labelFor="rooms" text='XXX'/>
                </hbj:formLayoutCell>
             </hbj:formLayoutRow>
               <hbj:formLayoutRow>
                 <hbj:formLayoutCell align="center" rowspan="10">
                   <hbj:listBox width="145" size="12"
                        id="rooms"
                        model="RoomsBean.model"
                           onSelect="selectRoom"
                           selection="1"/>
                    </hbj:formLayoutCell>
               </hbj:formLayoutRow>
                  <hbj:formLayoutRow>
              <hbj:formLayoutCell align="left">
                 <hbj:button id="delete_room" text='delete' design="STANDARD" disabled="true" onClick="deleteRoom"/>
                    </hbj:formLayoutCell>
               </hbj:formLayoutRow>
             </hbj:formLayout>
    Regards
    Edmund
    P.S.: How can you format your source code in this forum?

  • BSP Element Expressions XML Parameters

    Hi, can anyone please give me a tip or a small example of a use of parameters in XML BEE? They are defined in a BSP and then set there in the bee SET method of CL_BSP_BEE_XML. Brian McKellar gives an example in his Weblog /people/brian.mckellar/blog/2003/10/30/bsp-programming-bsp-element-expressions-bees but I have a different situation and dont understand what they might mean for me. Thanks for any information. Best regards David Lawn

    Hi Brian, thank you very much.
    In fact I have success with the tutorials you have given. I still have some difficulties but believe they can be overcome:
    1. I am in a method of the bsp application class. I have dumped the code into this method from a bsp page include fragment.
    2. Thus, in this method, I now have business logic abap determining which <htmlb elements are created and what values the variables of these elements have. Thus at runtime I pass to the bee a concatenated string like '<htmlb:textView id  ="' l_id_element_name ' text      = "' l_text 'design    = "' l_design '"' ... '/>'. I had figured I had, at runtime, no variables and so needed no parameters. In fact, I have had to find that if I do not code parameters then adding in a second piece of <htmlb code crashes the bee and I loose the browser display of the first one. If I parameterise the first and the second, then I have both. So thats clear. I have also found that bee string syntax is totally strict. I also looked at bee->m_dom dom_table in the debugger, together with the parameters, which helped me understand.
    I am adding in bits of the huge amount of business logic at a time to keep the bee string consistent.
    3. After setting the bee I pass it back to the view include that called my method (I have a nice ddic structure for that) and display the result as you do in your tutorial.
    4. The total result thus is that I no longer need business logic in my view includes and can create html from htmlb in the application class method, which is what I need. Thanks!
    4. My need: I firstly just need to get a form onto the browser as quickly as possible so that other project members can see it and plan. Performance is secondary at the moment. I am happy to use the xml bee.
    5. The bsp I work with has a strange structure, with a page with flow logic <bsp:goto-ing a controller which calls a view with many includes, one of which is mine (which also has includes). So your other suggestion, using views, will also be followed up as soon as I get my page up and visible.
    Kind regards David

  • Adding new data elements to Org Modeler.

    We are trying to add 4 fields to the org Modeler. However it is nowhere to be found like in the orgchart.
    Org Modeler 3.0 SP2
    PA0001, PA0008, HRP1005 and HRP1008. (also linking to the texts in T001P, so we will require a table inner join)

    Hi Wade,
    In order to get the fields in OrgModeler scenarios you need to make sure that your hierarchy data element in the Source OrgChart contains all fields that you want. For this I recommend creating a NakisaRFC function for the additional data, creating a data element for it and then creating a linked data element to link together the new data element and the existing hierarchy data element. There is no data center in OrgModeler so you will need to do this manually.
    Best regards,
    Luke

  • Am being prompted to enter security questions when making a purchase on my new IPad.  I don't believe I have ever setup security questions on my apple id.  How to I create new security questions?

    I am being prompted to enter security questions when making a purchase on my new IPad.  I don't believe I have ever setup security questions on my apple id.  I have tried logging into my apple id and have chosen the security and priviacy settings to set up security questions.  However I am prompted to enter answers to security questions and am told they don't match.  How to I create new security questions or reset them? 

    You need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (104011)

  • Open new BSP page

    Hi all,
    i am in ABAP report and i want to open new BSP page from the ABAP report
    becuse some time it is open the BSP page in the same session of SAP system.
    and also how i can maximize it automatically in the same way of (F11 key).
    is there any documents that describe and explain the signature of this method.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
    EXPORTING
           DOCUMENT      = 'XXXXXX .......'
         APPLICATION            = 'X'
         PARAMETER              =
         DEFAULT_DIRECTORY      =
         MAXIMIZED              =
         MINIMIZED              =
         SYNCHRONOUS            =
           OPERATION              = 'OPEN'
    EXCEPTIONS
            CNTL_ERROR             = 1.

    If you want to open the BSP in Browsers, you can call the FM CALL_BROWSER & pass your BSP appl URL. This will open the BSP from R/3.
    OR you can use the HTML viewer to call URL..
    Look at the below blog for the same.
    /people/thomas.jung3/blog/2004/08/26/updated-calling-a-bsp-application-from-a-sapgui-transaction
    Hope this will help you.
    <b>*Reward each useful answer</b>
    Raja T

  • Adding a new UI element in identity manager form

    I am using Oracle Identity Manager 9.1.0 on Windows 2003 SP2 with JBoss 403SP1.
    How can I add a new gui element in the form, something like a button.
    I want to customize the form being rendered so that I do my custom actions when a form is rendered.
    Plz help

    Strongly consider if you really need to do the modification as you will need to redo it every time you do an upgrade that includes a new war (most do).
    Best regards
    /M

  • How to add a new data element for existing table filed(Primary key field)

    Hi Experts,
    How to add a new data element for existing table field(Primary key field)
    For this filed ther is no foreign key relation ships and even check table.
    while activating table it is giving message like below.
    can you help any one to solve this and wil steps to add new dataelement for existing primary key filed of a table.
    Check table (NAMING SPACE/TABLE NAME(EX:/TC/VENDOR)) (username/19.02.10/03:29)           
    Primary key change not permitted for value table /TC/VENDOR
    Check on table  /TC/VENDOR resulted in errors              
    Thanks
    Ravi

    Hi,
    Easiest way is to download the table eg into an Excel table (if possible) or text table. Drop the table from the database. Build your table with the new key field. Build the database table again and fill it.
    You can do it also over the database into a new table. Drop the old one. Build the enhanced one and fill it. Afterwards drop your (temporary) table.
    Maybe there are other ways, but this works.
    Success,
    Rob

  • Creation of a new wbs elements to an already existing project

    1. i am using BAPI_BUS2054_CREATE_MULTI to create a new wbs element in an already existing project.When this is done then i am using BAPI_PS_PRECOMMIT and then bapi_transaction_commit
    so this creates the wbs element which i guess but only the element.
    2. Now i need to attach the networks to it which are there in BOM so i am taking all the network data from the table afko joining it with aufk.It is giving all the network data which was there attached prior to the project but the new one it is not showing.The query is
    SELECT afkoaufnr afkopronr aufkpspel aufkktext aufk~loekz
    INTO (afko-aufnr, afko-pronr, aufk-pspel, aufk-ktext, aufk-loekz)
    FROM  ( afko AS afko INNER JOIN aufk AS aufk ON aufkaufnr = afkoaufnr)
    WHERE afko~pronr = w_wbs_cur-psphi.
    3.Now i am comparing this data from above to the BOM data and take the difference of the networks which are to be created.
    But as the above query is not returning the new wbs so it is getting failed.

    i am already using this
      CALL FUNCTION 'CONVERSION_EXIT_KONPD_INPUT'
        EXPORTING
          input     = g_znpsdata_old-project_definition
        IMPORTING
          output    = w_wbs_cur-psphi
        EXCEPTIONS
          not_found = 1
          OTHERS    = 2.
    do i need to use the other one also

Maybe you are looking for

  • How can I get Windows Internet explorer on my MacBook air?

    I have several websites that I need to use for my new job that have not been tested for Mac. I don't want to have to buy a PC laptop, so I was wondering if there is a tried and true way to get windows Internet explorer on my MacBook air.

  • Gcc problem

    I posted this on the Tiger forums and was told to try here instead..: "Right so I installed the developer tools. Wrote a very simple c prog and tried to compile it. Problem is that it doesn't find the standerd header files (stdio.h in my case). I did

  • Does FCP X check for Duplicate Imports?

    When importing video from iPhone 5 does FCP check to see if the video has already been imported?

  • Row Level Security using BO SDK - Dynamic Group and Criteria (where clauses)

    To the Universe Gurus out there: I have a rather daunting task of implementing a Row Level Security on a number of tables within our project using BO XI R2 SP2 with SQLServer 2005. Given the nature of the requirements around this (listed below), I am

  • HCM Fusion createWorker (WebService) whats the Effective Start Date format ?

    Hi Folks I am using HCM Fusion WorkerServices exposed via web services, and trying to add a worker and getting error (via Java Exception) HRC-HRC_DE_SRV_ESD_EED_NOT_SET. I understand that HCM Fusion webservice might  a wrapper around People Soft (I c