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

Similar Messages

  • Query column value as attribute for an element

    I want to select out a column to be an attribute for an element in my XML file. I know that if I use "@column_name" I will get an attribute but it will be for the row's element. In this case I don't want. In my example below I want a column called DATE_TYPE to be the attribute for the column DATE that is an element. How would I do this? If I select out @DATE_TYPE I get it as an attribute of the <element1> node.
    <element1>
    <element2>VALUE</element2>
    <date>2003-09-02</date>
    </element1>

    As Darrin said, it just matters which element is considered the "active" element.  So in your second example, you actually wrote to it a 3 and then a 1 (classic race condition).  You can set the active element with a property of the array (having trouble finding it at the moment).
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Is there a bug with firefox when supporting "aria-labelledby" attribute for span element?

    I use firefox 10.0.3, and using JAWS 13 to read the screen.
    I set the "aria-labelledby" attribute for the span, and only first element content was read even I set three 'id' for this attribute. This can work well under IE8.
    <pre>&lt;table role="grid" summary="Details table"&gt;
    &lt;tr&gt;
    &lt;td type="columnTitle"&gt;&lt;span tabIndex="0" role="gridcell"&gt;Date&lt;/span&gt;&lt;/td&gt;
    &lt;th id="_NS_hdr1" role="columnheader" type="columnTitle"&gt;&lt;span tabIndex="-1" role="columnheader"&gt;3/4&lt;/span&gt;&lt;/th&gt;
    &lt;th id="_NS_hdr2" role="columnheader" type="columnTitle"&gt;&lt;span tabIndex="-1" role="columnheader"&gt;3/11&lt;/span&gt;&lt;/th&gt;
    &lt;th id="_NS_hdr3" role="columnheader" type="columnTitle"&gt;&lt;span tabIndex="-1" role="columnheader"&gt;3/18&lt;/span&gt;&lt;/th&gt;
    &lt;th id="_NS_hdr4" role="columnheader" type="columnTitle"&gt;&lt;span tabIndex="-1" role="columnheader"&gt;3/25&lt;/span&gt;&lt;/th&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
    &lt;th id="_NS_hdr5" role="rowheader" type="columnTitle"&gt;&lt;span tabIndex="-1" role="rowheader"&gt;Count&lt;/span&gt;&lt;/th&gt;
    &lt;td headers="_NS_hdr1 _NS_hdr5" type="datavalue"&gt;
    &lt;span tabIndex="-1" id="_NS_N158B5CC0.1614A0C80" role="gridcell" aria-labelledby="_NS_hdr1 _NS_hdr5 _NS_N158B5CC0.1614A0C80"&gt;0&lt;/span&gt;
    &lt;/td&gt;
    &lt;td headers="_NS_hdr2 _NS_hdr5" type="datavalue"&gt;
    &lt;span tabIndex="-1" id="_NS_N158B5CC0.1614A1200" role="gridcell" aria-labelledby="_NS_hdr2 _NS_hdr5 _NS_N158B5CC0.1614A1200"&gt;75&lt;/span&gt;&lt;/td&gt;
    &lt;td headers="_NS_hdr3 _NS_hdr5" type="datavalue"&gt;
    &lt;span tabIndex="-1" id="_NS_N158B5CC0.1614A1780" role="gridcell" aria-labelledby="_NS_hdr3 _NS_hdr5 _NS_N158B5CC0.1614A1780"&gt;231&lt;/span&gt;
    &lt;/td&gt;
    &lt;td headers="_NS_hdr4 _NS_hdr5" type="datavalue"&gt;
    &lt;span tabIndex="-1" id="_NS_N158B5CC0.1614A1D00" role="gridcell" aria-labelledby="_NS_hdr4 _NS_hdr5 _NS_N158B5CC0.1614A1D00"&gt;81&lt;/span&gt;
    &lt;/td&gt;
    &lt;/tr&gt;
    &lt;/table&gt;</pre>

    Hi MacroZ,
    I understand your point. JAWS support different ways to navigate the page, such as use 'tab' key to navigate clickable items, or use 'Ctrl+Alt+arrow keys' to navigate the data table cells.
    I removed the 'gridcell' role from data cells and when I use 'Ctrl+Alt+arrow keys', it works well(I move to one cell, and it can read column title, then row title, then cell value). So it's acceptable because at least we have one way to read this data table :)
    There is one more thing I want to ask, I have one page that include one iframe, and the page inside the iframe has several hyper links, I start JAWS13, then use 'tab' key to navigate these links inside the iframe page, when I navigate to one link, I press 'enter' key to goto the new page, then I found all links in the new page do not work when I navigate to any of them and press 'enter' key(it can works well when using mouse click). Seems there's no problem under IE8, I'm not sure this issue comes from JAWS or firefox, so hope you can help to confirm on this, many thanks!

  • Multiple Attributes for an Element

    Hi,
    I am trying to create an XML Document with an Element having multiple
    attributes -
    <field name="dept">1</field>
    <field name="firstname">Barbara</field>
    <field name="lastname">Streisand</field>
    <field name="age">59</field>
    In my code I am trying something like this :-
    Element field2 = document.createElement("field");
    field2.setAttribute("name", "firstname");               
    rootElt.appendChild (field2);
    rootElt.appendChild(document.createTextNode (firstname));
    Any Advice !!
    -Thanks

    You didn't seem to have a problem, but you asked for advice. So here's my advice: Use meaningful element names.
    <Department>1</Department>
    <Firstname>Barbara</Firstname>
    <Lastname>Streisand</Lastname>
    <Age>59</Age>

  • Querying XML Column in SQL to get all attributes for a element

    I have data in a XML column that is formatted as such:
    <TestTemplate xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <MTouch TabKey="20" Priority="0">
    <MMouse MouseKey="21" Priority="0" /> </MTouch>
    <MTouch TabKey="11" Priority="1" />
    <MTouch TabKey="14" Priority="2" />
    <MTouch TabKey="17" Priority="3" />
    <MTouch TabKey="23" Priority="4">
    <MCategories CatKey="8" Priority="0" />
    <MMouse MouseKey="27" Priority="1" />
    <MMouse MouseKey="30" Priority="2" />
    <MMouse MouseKey="26" Priority="3" />
    <MCategories CatKey="9" Priority="4" />
    <MGroups GroupKey="3" Priority="5" />
    <MMouse MouseKey="28" Priority="6" />
    <MCategories CatKey="7" Priority="7" />
    <MMouse MouseKey="29" Priority="8" />
    </MTouch>
    <MTouch TabKey="6" Priority="5">
    </MTouch>
    </TestTemplate>
    In my query I am getting the following results :
    ElementName
    AttributeName
    TabKey
    CategoryKey
    MTouch
    MCategories
    6
    7
    MTouch
    MCategories
    6
    8
    MTouch
    MCategories
    6
    9
    MTouch
    MCategories
    11
    7
    MTouch
    MCategories
    11
    8
    MTouch
    MCategories
    11
    9
    MTouch
    MCategories
    14
    7
    MTouch
    MCategories
    14
    8
    MTouch
    MCategories
    14
    9
    MTouch
    MCategories
    17
    7
    MTouch
    MCategories
    17
    8
    MTouch
    MCategories
    17
    9
    MTouch
    MCategories
    20
    7
    MTouch
    MCategories
    20
    8
    MTouch
    MCategories
    20
    9
    MTouch
    MCategories
    23
    7
    MTouch
    MCategories
    23
    8
    MTouch
    MCategories
    23
    9
    This is my query:
    SELECT DISTINCT
    'MTouch' AS ElementName,
    'MCategories' AS AttributeName,
    n.y.value('@TabKey', 'int') AS TabKey,
    e.y.value('@CatKey', 'int') AS CategoryKey
    FROM TXML cross apply tablename.columnname.nodes('//TestTemplate//MTouch//MCategories') AS e(y)
    cross apply tablename.collumnname.nodes('//TestTemplate//MTouch') AS n(y)
    I would like my results to show only the catkey attribute value to show only for MTouch TabKey 23. I need help on how to write the query. Below is the result I am looking for. Notice the Categorykey column is null for all except where
    the Element Name of MTouch has a TabKey value of 23.
    ElementName
    AttributeName
    TabKey
    TouchPriority
    CategoryKey
    MTouch
    MCategories
    6
    5
    MTouch
    MCategories
    11
    1
    MTouch
    MCategories
    14
    2
    MTouch
    MCategories
    17
    3
    MTouch
    MCategories
    20
    0
    MTouch
    MCategories
    23
    4
    7
    MTouch
    MCategories
    23
    4
    8
    MTouch
    MCategories
    23
    4
    9
    Thanks in advance
     

    As per the this explanation
    I would like my results to show only the catkey attribute value to show only for MTouch TabKey 23
    it should be this
    select
    t.u.value('@TabKey[1]','int') AS tabKey,
    t.u.value('@Priority[1]','int') AS Priority,
    m.n.value('@CatKey[1]','int')
    from @x.nodes('/TestTemplate/MTouch')t(u)
    outer apply u.nodes('.[@TabKey="23"]/MCategories')m(n)
    ORDER BY 1,3
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • 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

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

  • Why to use htmlb elements in bsp applications

    Hi All,
       I have a doubt that why to use htmlb elements for implementing user interface in bsp applications .Implementing bsp application using htmlb is difficult than html because we have handle event triggering in oninputprocessing but this is not required in html.Can anybody help me out in understanding the advantages of htmlb over html. 
    Thanks in Advance......

    Dear Srilalitha
    Re: Why htmlb is prefered to normal html code ?
    Please go thorught this. This will surely help.
    Regards
    Vijay.M

  • How to set color for a tabstrip in BSP

    Hello all,
    Can anyone please let me know how to set color for a tabstripn in BSP?
    I am using the below syntax but it still gives me the default color.
    <htmlb:content design="design2003" >
      <htmlb:page title="test " >
        <htmlb:form>
    <htmlb:tabStrip id         = "TabStrip"
                          bodyHeight = "200"
                          bodyColor  = "red"
                          width      = "700" >
    </htmlb:tabStrip>
    </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    Thanks,
    Sandeep

    Hi...
    The below code is working fine for me...
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title="stg " >
        <htmlb:form>
          <htmlb:tabStrip width      = "430"
                          bodyColor  = "rgb(88,5,64)"
                          id         = "t1"
                          bodyHeight = "112" >
            <htmlb:tabStripItem id      = "t1"
                                index   = "1"
                                title   = "Sales"
                                tooltip = "My Tooltip for Tab 1" >
              <htmlb:textView text="Tab N 1" />
              <htmlb:tree id        = "treeReports"
                          showTitle = "true"
                          table2    = "<%= mt_nodes %>"
                          title     = "Menu"
                          width     = "100%" />
            </htmlb:tabStripItem>
            <htmlb:tabStripItem id      = "t2"
                                index   = "2"
                                title   = "Production"
                                tooltip = "My Tooltip for Tab 2" >
              <htmlb:textView text="Tab N 2" />
            </htmlb:tabStripItem>
          </htmlb:tabStrip>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>

  • 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

  • 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

  • No ICF authorization CHECK for executing /sap/bc/bsp/sap/hap_document

    In EP we are trying to access bsp
    and we are getting error ,User T000209 (client 350) has no ICF authorization CHECK for executing /sap/bc/bsp/sap/hap_document
    How to give authorization please help
    venkateswararao

    First Check is the ICF service is active using the SICF transaction.
    Then Check for the authorization objects SAP_HR_HAP_EMPLOYEE
    and SAP_HR_HAP_MANAGER.
    Add the above roles to your user , it should work

  • 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

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

Maybe you are looking for