BSP Programming: BSP Element Expressions (BEEs)

Hi,
Alex reported a difficulty with
BSP Programming: BSP Element Expressions (BEEs)
/people/brian.mckellar/blog/2003/10/30/bsp-programming-bsp-element-expressions-bees
back in March.
Since I also set up the example contained in that paper recently, and since I permitted myself to add in some lines of code with which it works well, I give those lines here:
1) the bee call:
<%
if bee is bound.
%>
<bsp:bee bee="<%= bee %>" />
<%
endif.
%>
2) in the xml part of onInputProcessing:
2.1)
data: xml_errors type TIXMLTERR.
2.2)
append <xml_parm> to xml_parms.
also seemed a good idea.
I hope this is useful.
Best regards
David Lawn

Oops ... I dont need the append statement of course (because I have insert .. assigning). Sorry about that.

Similar Messages

  • BSP Element Expressions XML Parameters : ABAP Question

    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

    This post has now been answered in the BSP forum.
    Best regards
    David Lawn

  • BEE(BSP Element Expression)

    Hi Forums,
        What is the use of BEE and where do we use it ? can any body explain with the help of example.
         Documents with example will really helpful.
    Thanks in advance.
    Regards,
    Ravi.

    Hi,
    Did you check /people/brian.mckellar/blog/2003/10/30/bsp-programming-bsp-element-expressions-bees
    Eddy

  • 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

  • BSP Element Expressions

    Hi,
       I am practicing on BSP Element Expressions and i have gone through the weblog by Brain McKellar. I am trying the same example given in the weblog but i am getting an exception at the statement 
    <bsp:bee bee = "<%= bee%>" /> in the layout.
        I have not instantiated but i have declared it as an page attribute as given in the weblog.
        Why am i getting an error? any help is highly appriciated.
    Regards,
    Azaz.

    You have to instantiate the bee before you use it. otherwise the bee is not bound or is null so u'll get exception. The right way is to check the bee before you use it i.e.
    change the html layout code this way.
    <% if bee is bound. %>
    <bsp:bee bee = "<%= bee%>" />
    <% endif. %>
    This is the first step. This way even if you don't instantiate the bee, u'll not get any exception or crash.
    Second point is using the bee if instantiated properly.
    Instantiation of bee is compulsory if you want to use it.
    Do the instantiation anywhere where u think its correct. you can do it in OnInitialization handler or in inputProcessing etc. In the blog it is done in the OnInputProcessing.
    As I said earlier, the fixes to make that code work properly are mentioned at the bottom of the blog.
    Regards,
    Kumar

  • 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

  • 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

  • FixedHeaders atribute in configTable bsp-element

    Hi!
    The task is make column headers of bp search results table fixed when scrolling.
    E.g.
    Component BP_HEAD_SEARCH displays BP search results in view MainSearchResult.
    In view-layot html-page of this view i find bsp-element configTable calling.
    This bsp-element have an attribute fixedHeaders with default value "False".
    Description for this attribute says "Whether headers should be fixed when scrolling".
    I try to pass "True" in to fixedHeaders attribute, but it doesn't changed anything in UI logic -
    scroll work as ussual.
    Anyboy know how to use this attribute?
    Regards,
    Marat.

    Hello, Marat.
    I think that this parameter works only if you have vertical scrollbar in the table. Because it cann't handle the vertical scrolling in "parent" frame.

  • 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.

  • 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

  • How do I install camera raw 6.6 in a winzip program to Elements 9?

    How do I install camera raw 6.6 in a winzip program to Elements 9?  I have Windows 7.

    See the instructions on this page:
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=5316
    Ken

  • I have ordered to buy the program Photoshop Elements mistake, and I want to cancel the request and re-ordering program Lightroom5 please!

    I have ordered to buy the program Photoshop Elements mistake, and I want to cancel the request and re-ordering program Lightroom5 please!

    Please see Return, cancel, or exchange an Adobe order -
    http://helpx.adobe.com/x-productkb/policy-pricing/return-cancel-or-change-order.html
    Cancel your membership or subscription | Creative Cloud
    https://helpx.adobe.com/x-productkb/policy-pricing/cancel-membership-subscription.html

  • My Program (Premier Elements 13 - which I am using to teach one of my students) keeps crashing

    My Program (Premier Elements 13 - which I am using to teach one of my students) keeps crashing every time I try using the Adobe Font that I obtained (Metallophile Sp8 Light) from my Adobe CC Fonts Typekit... please can you help me?

    There is a dedicated forum for Premiere Elements:
    Premiere Elements
    You'll get better answers there.

  • Program text elements

    Hi there,
    I have a requirement to find all the text elements used in  Z Programs.
    I am looking for the table name that stores the Program Text elements (SE38 text elements + selection text).
    Can anybody help me in finding the table name....
    Thanks in advance.
    Regards,
    Sukhbir.

    Hai sukhbir singh  ,
    T52CT Table contains the all the Text Elements.
    Hope you can have all the Text Elements.
    Reward points if it helps.
    Regds,
    Rama.Pammi

  • I am a subscriber of Adobe Creative Cloud, - but I don't see the program Photoshop Elements?

    I am a subscriber of Adobe Creative Cloud, - but I don't see the program Photoshop Elements?
    Where can I find it?

    Hi Haneadino,
    Photoshop Elements is not a part of Creative Cloud. You can download the trial version of Photoshop Elements 12 from the below link.
    http://www.adobe.com/cfusion/tdrc/index.cfm?product=photoshop_elements&loc=us
    Thank you for posting on Adobe Forums.

Maybe you are looking for

  • When using firefox and each time I open a new tab I end up with a split screen and it is annoying. How so I fix it.

    I open firefox. Go to website then where there is a + sign I open a new tab. A new tab comes up but then splits the screen into two with a new tab in the middle and I end up with 3 small split screens in the one instead of 3 separate tabs.because it

  • Oracle 10.2.0.4: Incredible value of MBRC

    I'm running Oracle on HP-UX with 32k db_block. Gathered system stats many times (monthly), but when I relaxed, it gather MBRC=200 as seen in log below: 25.12.09 14:16:08 -- CPUSPEED 1053 25.12.09 14:16:08 -- CPUSPEEDNW 898.2221077042 25.12.09 14:16:0

  • SQL Query - Max Date - Group By

    Please see SQL below - this code is counting customers and grouping by their tenure since activation However the table FACT_TRANS I am linking to contains multiple transactions for different dates and I only want to select the latest date. How can I

  • Error in run EJB

    I deploy EJB in OC4J successfull but when I run it has an error: 07/03/02 14:25:41 java.lang.NullPointerException: domain was null 07/03/02 14:25:41 at com.evermind.server.rmi.RMIServer.addNode(RMIServer.j ava:847) 07/03/02 14:25:41 at com.evermind.s

  • The reason is Invalid UTF8 encoding..

    Hi there, I get this message when I call an xsqlpage with <copy> <from expression="ora:processXSQL('InsertMessage.xsql', bpws:getVariableData("TerugBericht","payload"))"> </from> <to variable="QueueMessage" part="payload"/> </copy> the content of Ter