More fun with enumerated dropdowns - Binding to table

Hi All,
I'm having some trouble with enumerated dropdowns.
My context is as follows:
node DATA 1...1
---> node FLIGHTS 0...N
   -->CARRID etc from SFLIGHTS
--->DDL (element type string)
I have successfully tried to add a simple dropdown with the following code on the component controller:
method wddoinit .
    data lo_nd_data type ref to if_wd_context_node.
    data lo_el_data type ref to if_wd_context_element.
    data ls_data type wd_this->element_data.
    data lv_ddl like ls_data-ddl.
    data node_info type ref to if_wd_context_node_info.
    data vals type table of  wdr_context_attr_value.
    data: s_element type wdr_context_attr_value.
    data: str type string.
*   navigate from <CONTEXT> to <DATA> via lead selection
    lo_nd_data = wd_context->get_child_node( name = wd_this->wdctx_data ).
*   get element via lead selection
    lo_el_data = lo_nd_data->get_element(  ).
    lo_el_data->get_static_attributes(
      importing
        static_attributes = ls_data ).
*      get node info
    call method lo_nd_data->get_node_info
      receiving
        node_info = node_info.
     do 25 times.
       str = sy-index.
       condense str no-gaps.
       s_element-text = str.
       s_element-value = str.
       append s_element to vals.
    enddo.
*    Set Value_sets to node_info
     call method node_info->set_attribute_value_set
      exporting
        name      = 'DDL'
        value_set = vals
endmethod.
This works fine, however now I am trying the same thing with a field from the SFLIGHTS table.
I want to display a table of the retrieved SFLIGHTS but a field as a dropdown with valid entries from the database. I have added the following code to the view.
method WDDOINIT .
    data lo_nd_data type ref to if_wd_context_node.
    data lo_nd_flights type ref to if_wd_context_node.
    data lo_el_flights type ref to if_wd_context_element.
    data ls_flights type wd_this->element_flights.
    data gt_flights type table of sflights.
    select * from sflights into table gt_flights.
*   navigate from <CONTEXT> to <DATA> via lead selection
    lo_nd_data = wd_context->get_child_node( name = wd_this->wdctx_data ).
*   navigate from <DATA> to <FLIGHTS> via lead selection
    lo_nd_flights = lo_nd_data->get_child_node( name = wd_this->wdctx_flights ).
    lo_nd_flights->bind_table( gt_flights ).
       types: begin of ty_carrname,
     carrname type s_carrname,
     end of ty_carrname.
   data: gt_carrname type table of ty_carrname.
   select distinct carrname
      from sflights
      into table gt_carrname.
     data lv_carrname like ls_flights-carrname.
     data node_info type ref to if_wd_context_node_info.
     data vals type table of  wdr_context_attr_value.
     data: s_element type wdr_context_attr_value.
     data: str type string.
      lo_nd_flights->get_static_attributes(
      importing
        static_attributes = ls_flights ).
      call method lo_nd_flights->get_node_info
      receiving
        node_info = node_info.
     field-symbols: <carrname> like line of gt_carrname.
     loop at gt_carrname assigning <carrname>.
       str = <carrname>-carrname.
       s_element-text = str.
       s_element-value = str.
       append s_element to vals.
     endloop.
     call method node_info->set_attribute_value_set
      exporting
        name      = 'CARRNAME'
        value_set = vals.
endmethod.
I can display all the entries with a repeating subform but when I bind the CARRNAME to an enumerated dropdown I get an ADS rendering error:
WebDynpro Exception: The ADS call has failed. You can find information about the cause in the error.pdf on the application server
I have looked in the Error PDF but it is blank.
Does anyone have any suggestions on what is goign wrong or how to diagnose the problem.
I am assuming you can have a data element that has a 0..N cardinality (i.e a table element) and is also of type enumerated dropdown.
I'm guessing this is something to do with cardinality but I have no way to find out.
Thanks,
Gregor

I have looked in the defaultTrace file and found the following errors:
1.  A pdf document with 0 pages.
    Return Status: Render Failure
    Output Trace returned: <?xml version="1.0" encoding="UTF-8"?>
<log>
   <m mid="29184" tid="10064.4896" sev="f" d="2008-11-12T15:20:01.722Z">Malformed SOM expression: $record.sap-vhlist.FLIGHTS\\.DATA[*]\\.CARRNAME.item[*]</m></log>
Has anybody else used the enumerated dropdown element bound to dynamic data?
I am using the latest releases and the "Specify Item Values" on the Object->Binding tab is filled in with what looks correct ($record.sap-vhlist.FLIGHTS\.Data etc) but greyed out.
Thanks

Similar Messages

  • More Fun with NULLs and Empty Strings

    Greetings,
    I ran across this behavior recently and thought I'd share with the forum. I'm running 10.2.0.2. Note the difference in behavior between passing and explicit NULL in the parameter vice passing an empty string (''):
    CREATE OR REPLACE PROCEDURE NULL_ES_TEST(PARAM1 IN VARCHAR2) IS
    VAR1 CHAR(1);
    BEGIN
    IF PARAM1 IS NULL THEN
    DBMS_OUTPUT.PUT_LINE('PARAM1 IS NULL');
    END IF;
    VAR1 := PARAM1;
    IF VAR1 IS NULL THEN
    DBMS_OUTPUT.PUT_LINE('VAR1 IS NULL');
    ELSE
    DBMS_OUTPUT.PUT_LINE('VAR1 IS NOT NULL');
    END IF;
    DBMS_OUTPUT.PUT_LINE('THE LENGTH OF VAR1 IS '||TO_CHAR(LENGTH(VAR1)));
    END NULL_ES_TEST;
    EXEC NULL_ES_TEST(PARAM1 => '');
    PARAM1 IS NULL
    VAR1 IS NOT NULL
    THE LENGTH OF VAR1 IS 1
    (var1 now holds a single space)
    EXEC NULL_ES_TEST(PARAM1 => NULL);
    PARAM1 IS NULL
    VAR1 IS NULL
    THE LENGTH OF VAR1 IS
    Any Comments or Insights are welcome.
    Sincerely,
    Dale Ward

    Well somethings not as expected (tested on 10.2.0.3)
    Even if you default the parameter to '', it treats null and '' differently.
    SQL> ed
    Wrote file afiedt.buf
      1  CREATE OR REPLACE PROCEDURE NULL_ES_TEST(PARAM1 IN VARCHAR2 := '') IS
      2    VAR1 CHAR(1);
      3  BEGIN
      4    IF PARAM1 IS NULL THEN
      5      DBMS_OUTPUT.PUT_LINE('PARAM1 IS NULL');
      6    END IF;
      7    VAR1 := PARAM1;
      8    IF VAR1 IS NULL THEN
      9      DBMS_OUTPUT.PUT_LINE('VAR1 IS NULL');
    10    ELSE
    11      DBMS_OUTPUT.PUT_LINE('VAR1 IS NOT NULL');
    12    END IF;
    13    DBMS_OUTPUT.PUT_LINE('THE LENGTH OF VAR1 IS '||TO_CHAR(LENGTH(VAR1)));
    14* END NULL_ES_TEST;
    SQL> /
    Procedure created.
    SQL> exec null_es_test(null);
    PARAM1 IS NULL
    VAR1 IS NULL
    THE LENGTH OF VAR1 IS
    PL/SQL procedure successfully completed.
    SQL> exec null_es_test('');
    PARAM1 IS NULL
    VAR1 IS NOT NULL
    THE LENGTH OF VAR1 IS 1
    PL/SQL procedure successfully completed.
    SQL>

  • More fun with templates

    Okay, so I'm trying to modify a region template and I can't get it to work. I've tried using custom CSS in my HTML Header, I've tried actually adding a line to the CSS include file on the server - I can't get anything to work. Firebug shows that as soon as I change the class on the RegionHeader, I am relegated to default &lt;hd&gt; formatting.
    I'm trying to use template 17 and all I want to change is the size of the font from Large to Normal.
    Here's the base css from the template:
    .t17RegionHeader{font-family: arial, helvetica, sans-serif;font-size:large;
    color:#aaa;text-align:left;border-bottom:1px solid #CCC;
    font-weight:bold;padding:2px 8px;white-space:nowrap;}Here's what I want:
    .t17RegionHeaderNorm{font-family: arial, helvetica, sans-serif;font-size:normal;
    color:#aaa;text-align:left;border-bottom:1px solid #CCC;
    font-weight:bold;padding:2px 8px;white-space:nowrap;}And yes, this is a copy of the original region template. I have four or five regions on the page, so I just changed one of them to use the new region template until I get it right. This probably has something to do with inheritance, but I don't have a clue how to override it. Your help is greatly appreciated.

    Hi blarman74,
    When you copy the report region, why not do something like:
    In your report region template you have the following template definition (this is what I have, on APEX 4 - I guess you are one 3.2.x so it's a little different?):
    <div class="rounded-corner-region" id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES#>
      <div class="rc-gray-top"><div class="rc-gray-top-r">
        <div class="rc-title normal-header">#TITLE#</div>
        <div class="rc-buttons">#CLOSE##PREVIOUS##NEXT##DELETE##EDIT##CHANGE##CREATE##CREATE2##EXPAND##COPY##HELP#</div>
      </div></div>
      <div class="rc-body"><div class="rc-body-r"><div class="rc-content-main">#BODY#<div class="clear"></div></div></div></div>
      <div class="rc-bottom"><div class="rc-bottom-r"></div></div>
    </div> You'll notice in the div's surrounding the #TITLE# I added another class called normal-header. So then in your page header, or css - wherever you put it, Add the following:
    .normal-header {
      font-size: normal !important;
    }Well you could probably add !important to the .t17RegionHeaderNorm font-size rule, but wasn't sure exactly how you've done so thought it better to describe the above. And the way I have described, it saves copying all the extra css rules.
    Ta,
    Trent
    Edited by: tr3nton on Oct 2, 2010 11:40 AM
    As a side note, I was just looking at your profile - I don't know if you want to bother, but you may want to add http:// to the URL of your homepage, as it's reading it as a relative link to the oracle site, so pointing to: http://forums.oracle.com/forums/www.transystemsllc.com which obviously isn't a real site.

  • More Fun With CSS - (omg its difficult)

    First I want to say thank you to everyone that has been helping learn css and all the power that it has.
    Now this is a two part question.
    Part 1.
    (div.header-shadow)
    I have a div tag that I inserted a very important image into.  The image includes som text that I thought I would be able to place hotspots over and make links out of them.  Well you guessed it I am unable to place hotspots over the text on the image.
    Part 2.
    (div.about-column1 and div.about-column)
    I have a second area that has two columns in it what I would like to do is make the two columns into a single column that uses all of the space but only for this one page. Well when I try to delete one column and extend the width of the remaining column the change takes place on every page that I have setup with the two column theme.
    Now to make sure things are clear I am working from a prebuilt template and trying to make modifications to it so that it fits my needs.
    and here is the css if needed
    body {
        background-image: url(images/main-bg.jpg);
        background-repeat: repeat-x;
        background-color: #040404;
        margin: 0;
        padding: 0;
        font-size: 11px;
        color: #CCC;
        font-family: Arial, Helvetica, sans-serif;
    img {
        border-top-style: none;
        border-right-style: none;
        border-bottom-style: none;
        border-left-style: none;
    #container {
        width: 1000px;
        margin: 0 auto;
    .top-logo {
        height: 91px;
        padding: 0 0 0 27px;
        width: 263px;
        float: left;
        margin: 0 0 29px 0;
    .header {
        height: 305px;
        width: 849px;
        margin: 0 0 0 76px;
        background-image: url(images/main_img.png);
        background-repeat: no-repeat;
        padding: 36px 0 0 0;
    .header-corner {
        background-image: url(images/header-corner.gif);
        width: 11px;
        height: 269px;
        float: right;
    .header-content {
        margin: 0px;
        padding: 29px 0 0 10px;
        float: left;
        color: #333;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 11px;
        text-align: center;
        width: 488px;
    .header-shadow {
        background-image: url(images/header-shadow.gif);
        height: 39px;
        width: 849px;
    .button-go {
        float: right;
        margin: 10px 0 0 0;
    #content {
        margin: 0 0 30px 0;
        padding: 20px 20px 0 45px;
    .about-column1 h1 {
        font-family: Headache;
        font-size: 28px;
        color: #FFF;
        font-weight: normal;
        letter-spacing: -1px;
        margin: 0 0 20px 0;
        padding: 0px;
    .footer-content {
        width: 955px;
        margin: 0 auto;
        padding: 15px 0 0 45px;
    .footer-copyright {
        float: left;
        padding: 13px 0 0 0;
    .footer-icon {
        float: left;
    .content-img {
        margin: 0 10px 20px 0;
        padding: 0px;
        width: 110px;
        float: left;
    .footer-icon ul {
        margin: 0;
        padding: 0;
        list-style-type: none;
    .footer-icon li {
        margin: 0px;
        padding: 0 2px 0 0;
        display: inline;
    .content-column {
        width: 270px;
        margin: 0 55px 0 0;
        float: left;
    .content-column01 {
        width: 265px;
        margin: 0 0px 0 0;
        float: left;
    .content-column h1 {
        font-family: Headache;
        font-size: 28px;
        color: #FFF;
        font-weight: normal;
        letter-spacing: -1px;
        margin: 0 0 20px 0;
        padding: 0px;
    .content-column01 h1 {
        font-family: Headache;
        font-size: 28px;
        color: #FFF;
        font-weight: normal;
        letter-spacing: -1px;
        margin: 0 0 20px 0;
        padding: 0px;
    .about-column {
        float: right;
        width: 418px;
    .about-column h1 {
        font-family: Headache;
        font-size: 28px;
        color: #FFF;
        font-weight: normal;
        letter-spacing: -1px;
        margin: 0 0 20px 0;
        padding: 0px;
    .about-column1 {
        float: left;
        width: 400px;
    .about-column1 ul {
        list-style-type: none;
        margin: 0px;
        padding: 0;
        background-image: url(images/icon-arrow.gif);
        background-repeat: no-repeat;
        background-position: left 3px;
    .about-column1 li {
        background-image: url(images/icon-arrow.gif);
        background-repeat: no-repeat;
        background-position: left 5px;
        padding: 0 0 0 14px;
        line-height: 18px;
    .about-pix {
        margin: 0 10px 0 0;
        padding: 0px;
        float: left;
        height: 134px;
        width: 241px;
    .header-txt {
        background-image: url(images/header-bg.gif);
        height: 269px;
        background-repeat: repeat-x;
        margin: 0px 0 0 332px;
    .clearboth {
        clear: both;
    .top-nav {
        width: 595px;
        float: right;
        margin: 36px 0 0 0;
    .top-nav ul  {
        margin: 0px;
        padding: 0px;
    .top-nav li  {
        display: inline;
        margin: 0px;
        padding: 0px;
        list-style-type: none;
    .footer {
        background-image: url(images/footer-bg.gif);
        height: 95px;
    .txt-link {
        font-family: Headache;
        font-size: 12px;
        font-weight: normal;
        color: #FFF;
    h1 {
        font-family: Headache;
        font-size: 28px;
        color: #FFF;
        font-weight: normal;
        letter-spacing: -1px;
        margin: 0 0 20px 0;
        padding: 0px;
    .contact-img {
        float: left;
        height: 137px;
        width: 140px;
        margin: 0 20px 0 0;
    .txt-blank {
        color: #000;
    .contact-column {
        float: left;
        width: 750px;
    .contact-column ul {
        margin: 0px;
        padding: 0px;
        list-style-type: none;
    .form{
        padding: o;
        margin: 0;
    div.fieldwrapper{ /*field row DIV (includes two columns- Styled label column and 'thefield' column)*/
        width: 400px; /*width of form rows*/
        overflow: hidden;
        padding: 0;
        margin: 0;
        height: auto;
    div.fieldwrapper label.styled{ /* label elements that should be styled (left column within fieldwrapper DIV) */
        float: left;
        width: 80px;
        margin-right: 15px; /*spacing with right column*/
    div.thefield ul {
        margin: 0px;
        padding: 0px;
    div.thefield li {
        display: inline;
        list-style-type: none;
        margin: 0px;
        padding: 0 6px 0 0;
    div.fieldwrapper div.thefield{ /* DIV that wraps around the actual form fields (right column within fieldwrapper DIV) */
        float: left;
        margin-bottom: 10px; /* space following the field */
    div.fieldwrapper div.thefield input[type="text"]{ /* style for INPUT type="text" fields. Has no effect in IE7 or below! */
        width: 230px;
    div.fieldwrapper div.thefield textarea{ /* style for TEXTAREA fields. */
        width: 229px;
        height: 100px;
    div.fieldwrapper div.thebig textarea {
        width: 400px;
        height: 100px;
    div.buttonsdiv{ /*div that wraps around the submit/reset buttons*/
        width: 379px;
        text-align: left;
    .contact-column li {
        background-image: url(images/icon-arrow.gif);
        background-repeat: no-repeat;
        background-position: left 5px;
        padding: 0 0 0 14px;
        line-height: 18px;
    Thanks for the help

    Thanks i did not even pay attention to the fact that the img was in the background even though it says so right in the css, to close to the project.  The style sheet was what I was thinking, but what I should have asked is "How do should the style sheet for what I want to do with the columns be written?" This is what I should have asked. I know I should start it with something like:
    <style type="text/css">
        --------------------------and after this is where it gets fuzzy or nonexsistent--------------------------------------
    because is it the div#container, or div#content, or the div.about-column1 or div.about-column that this style sheet is to be written for, I have no idea?
    So if someone could show me how this style sheet should be written I would be greatful.  

  • How to bind internal table values with RootUIElement(Table) from select Que

    Hello Friends,
           In my view Layout,there r two Input fields ,Submit button and Table... My concept is when user posting values in two input fields and clicking submit button means the result(more than one values) should be displayed in Table...
         I written coding also but i dont know to bind internal table values with Table... My code as follows,
    method onactionsearch .
       data:
         Node_Node_Flight                    type ref to If_Wd_Context_Node,
         Elem_Node_Flight                    type ref to If_Wd_Context_Element,
         Stru_Node_Flight                    type If_View1=>Element_Node_Flight ,
         itab TYPE STANDARD TABLE OF sflight.
    navigate from <CONTEXT> to <NODE_FLIGHT> via lead selection
       Node_Node_Flight = wd_Context->get_Child_Node( Name = IF_VIEW1=>wdctx_Node_Flight ).
    @TODO handle not set lead selection
       if ( Node_Node_Flight is initial ).
       endif.
    get element via lead selection
       Elem_Node_Flight = Node_Node_Flight->get_Element(  ).
    @TODO handle not set lead selection
       if ( Elem_Node_Flight is initial ).
       endif.
    alternative access  via index
    Elem_Node_Flight = Node_Node_Flight->get_Element( Index = 1 ).
    @TODO handle non existant child
    if ( Elem_Node_Flight is initial ).
    endif.
    get all declared attributes
       Elem_Node_Flight->get_Static_Attributes(
         importing
           Static_Attributes = Stru_Node_Flight ).
    select * from sflight into CORRESPONDING FIELDS OF TABLE itab
      WHERE carrid = Stru_Node_Flight-carrid and connid = Stru_Node_Flight-connid.
    Node_Node_Flight->bind_table( new_items = itab ).
    endmethod.
    Plz reply me asap...!

    Hi,
    What I understood from your coding is...
    * navigate from <CONTEXT> to <NODE_FLIGHT> via lead selection
    Node_Node_Flight = wd_Context->get_Child_Node( Name = IF_VIEW1=>wdctx_Node_Flight ).
    You are reading values from the above node and binding the values to the same node.Am i right?
    Did you take seperate context node for your input fields or binded the above context to the fields.If not then read the context attribute values which are binded to the carrid and connid then pass these values to select query.
    One more thing is select cardinality 1..n for node NODE_FLIGHT since you are displaying more than one record.
    Go through the some basic tutorials.Search in sdn you will it get.Already there is a tutorial in sdn which explains exactly what do you require.
    Go throgh this link
    Web Dynpro for ABAP: Tutorials for Beginners
    Web Dynpro for ABAP: Tutorials for Beginners [original link is broken]
    Edited by: suman kumar chinnam on Mar 26, 2009 10:50 AM

  • Dropdown Binding with WSDL

    Hi all,
    I am trying to populate values in  dropdown using WSDL data connection.I bind Item with data connection field in object palette , i put item text = $ and item value =  $ . What else i need to do to populate field value in drop down dynamically .
    Points are sure .
    Thanks in advance
    Anukool

    I changed WSDL file , i replaced table with exporting parameter and used table type and regenerated WSDL and map with dropdown it is working fine now .

  • Dynamic tables with XML schema binding

    Hello,
    I'm currently fighting a strange issue dealing with a complex dynamic form. This form contains multiple dynamic tables to which the user may add new lines or delete lines that are no longer needed. This is being implemented using the instanceManager and works just fine.
    However, if I try to bind XML based data to this table, it looks like if rows added by the instance manager are always bound to the same record (they all contain identical values). The XML schema is correct, the issue also happens with sample XML data files.
    This seems to have something to do with the programatically added lines, but I have run out of ideas ... Can anyone provide some pointers?
    Thanks a million,
    Steffen.

    Thanks for the reply, Paul.
    I have the question about the schema,
    say i have a table like this:
    Item | Cost
    A   | 10.3
    B   | 21.1
    Total| 31.4
    and my schema is:
    so when I bind the table row should it be $.ItemTable[*].Item ?

  • Issue with Data binding in Table with Parameters

    When we bind the table rows with parameter 'select', the data is not displayed in the table. Check the snippix file created for this issue: url: http://veui5infra.dhcp.wdf.sap.corp:8080/snippix/#70874
    But the same parameter works with the odata service:
    http://10.66.186.12:8000/OnlineShoppingAnalysis/Services/Analysis_Date_Range.xsodata/Sales_Periodwise?$select=Product_Name,Quantity
    Credentials:
    user: System
    Password: Abcd1234

    I'm not able to access your service,so I can't test it.
    You could try to do a read operation on your model and add the result to a new JSON model which you can bind on to your table:
    var sServiceUrl ="http://services.odata.org/Northwind/Northwind.svc";   
    var oModel = new sap.ui.model.odata.ODataModel(sServiceUrl); 
    var oModelJson = new sap.ui.model.json.JSONModel(); 
    oModel.read("/Customers", null,  {select: "Product_Name,Quantity"} , true, function(oData, oResponse){
            oModelJson.setData(oData.results); 
      sap.ui.getCore().setModel(oModelJson, "Model"); 
        },function(){
            alert("Read failed");});
    OpenUI5 SDK - Demo Kit
    Documentation/AdvancedTopics/DataBinding/ODataWrite – SAPUI5 Wiki (TIP CORE User Interface)   
    Kind regards,
    Wouter

  • How to bind ADF table with a collection of elements using backing bean.

    Hi Experts,
    My JDev version is 11.1.1.6.0.
    I need to bind ADF table with a collection of elements using backing bean.
    My backing bean consists of 6 lists of strings, where each list represents a column of table. How can I populate the entries of table with these lists.
    Thanks
    Gopi

    Hi,
    Create an object representing the row (setter/getter). Then have a list of these objects. Drag and drop the table and point its value to the list and the type to the row object
    Frank

  • External Content Type (BCS) with a dropdown column choices from a different table

    I want to create an ECT with Create/Update method using SPD.
    The dropdown choices should be also from another table in the database.
    How can I achieve this?
    ----------------------- Sharepoint Newbie

    Hi,
    It is not supported to create External Content Type with a dropdown column by OOTB. 
    For a workaround, you can use Custom Field Controls and jQuery to add
    Drop Down List to External List Form.
    Please take a look at this article
    SP 2010: Customizing the forms for External Lists (BCS) in SharePoint 2010 by using Custom Field Controls and jQuery
    Reference:
    https://social.technet.microsoft.com/Forums/office/en-US/61ffb8a0-af16-4104-94f9-255ea1b8bdf0/dropdown-from-external-content-type?forum=sharepointcustomizationprevious
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Table with XSD binding merge tables data

    Hi All,
    Case 1 : If i bind the table to XSD,and create a few table. After save  the form and re-open the pdf, all the table data are merged.
    Case 2 : If i remove the table binding and create tables., after save  the form and re-open the pdf, then the tables are not merged.
    but, i need to have the table binding as later i will used that to  capture data from the pdf.
    If anyone have any suggestion ,  please  advice.
    The Dinamic PDF Form
    Data entry into the  2 table
    After Save and Re-Open the form ( The table data are merged )

    Hi,
    I could not use both solution because I've two list (two data model) from different source, when the jsf page is generated it generated the correct number of column and output text but when I try to retrieve the component output text for example the 1 row and the second output text I got a null pointer exception because the column only have 1 child and not the full elements that we can see at html rendering.
    There is no solution for getting the full list of components before the page is generated ? because findComponent recursivly called doesn't found what I want.

  • Issue with using Dropdown in Adobe forms

    Hi Gurus,
    I am facing an issue with dropdown values after binding with a field in a table,
    The first value in the dropdown is getting replaced by the selected value in dropdown in interactive adobe form.
    Has any one come across this issue. Please guide me.
    Regards,
    Prakash.

    Hi Prakash,
    Do not use Data Binding tab to bind the Drop down,
    Select Specify Item Values
    There in binding tab specify binding and there are few more options to specify Item Text and Item Value.
    Please find the below screenshot for the same.
    Thanks & regards,
    Rajkamal.

  • Data population in a dropdown inside a Table in WebDynpro Java

    Hi All ,
    I have a table inside which there is a dropdown in a ZCI Form. I am using enumerated dropdown list.
    The issue is binding of this dropdown is not woking as it works for normal dropdown.
    I am getting pdfdocumentcreation exception if trying to bind this dropdown using dynamic binding.
    Anybody help me out to solve this issue.
    regards
    Ravindra

    Hi,
      Refer the below link you will get useful information
    Dropdownlist to display r3 table
    Re: DropdownList box to display R/3 table
    see this link for when to use DropDownByIndex (DDI) vs DDK (DropDownByKey) and how populate data from R/3.
    Re: webdynpro populating dropdown values programmatically
    create context value attribute and bind to drop down by key
    not getting value from DropDownByKey
    Dynamically adding values to dropdown by key thread
    Dynamicaly adding values to DropDownByKey
    Dropdown by key
    dynamic DropDownByKey
    http://help.sap.com/saphelp_nw04/helpdata/en/4a/8613e41629344194e4f40393740d51/content.htm
    Regards,
    Saraswathi.
    Pls reward points for useful info
    Message was edited by: Saraswathi D

  • Binding in Table

    Hi,
    The requirement is that there is a table and there is a column named 'status' in the table. If the value of the staus is 'PASS' then
    Pass should be highlighted in that row and if the value of the staus is 'FAIL' then Fail should not be highlighted.
    The table has been created. The binding has been done. I checked the property of the 'status column' in the table. there is a property named 'Design'. If I set it to 'header3' it gets highlighted and if I set it to 'Standard' it is normal.
    So, I bound this property to context attribute which is of type 'WDUI_TEXT_VIEW_DESIGN'.
    I am setting this attribute value to 03 (value for header3) when it is 'pass' and setting it to 09 (value for standard) when it is fail.
    But I am facing problem. In the first loop of the table let's say the status is pass then as per my coding the design is getting set
    to 03 (Highlighted). Then in the 2nd loop lets say it is fail I am setting design to 09(standard).
    But with this it is overwriting it and the design for this row is getting set to 09(standard). All the values of the status column is coming standard(normal not highlighted).
    So, Basically it is always depending on the last loop.
    Please help.

    A context node by name tablenode have name, status as its attributes. In addition to these 2 coloms there is one more attribute of type WDUI_TEXT_VIEW_DESIGN under same node by name design. Create binding of your table with node. and bind the textview of which you want to control design.
    use following code
    data: wd_node type ref to if_wd_context_node,
            lt_tablenode type wd_this->elements_tablenode,
            wa_tablenode type wd_this->element_tablenode.
      wd_node = wd_context->get_child_node( name = 'TABLENODE' ).
    Here get value in lt_tablenode by select query or by any other means
    loop at lt_tablenode into wa_tablenode.
        if wa_tablenode-status eq 'pass'
          wa_tablenode-design = '03'.
        else.
          wa_tablenode-design = '09'.
        endif.
        modify lt_tablenode from wa_tablenode transporting design.
      endloop.
      wd_node->bind_table( new_items = lt_tablenode ).
    I hope it helps.
    Regards,
    Rohit

  • Closing a Enumerated DropDown List in Adobe form

    I have an adobe form where we used Enumerated Drop down Lists for search helps. The problem is right now we dont have option to close the Enumerated DropDown List. It closes when we select a value or sometimes if we try "ESC" key. But we want to have a "Close"/"X" button like in normal search help.
    Letme know if there is any solution or an Alternate way to close the Enumerated Drop Down List from Adobe Form by just hitting a close/X button. Each value help has over 500 values, so we cannot use normal dropdowns, letme know if any other suggestions.
    Edited by: Phani Rajesh Mullapudi on Jun 21, 2010 8:14 PM

    Hello Arafat,
    I am using a drop down list in Adobe Interactive Form for Web Dynpro ABAP.
    The form is of ZCI type layout and the form interface is of XML schema-based interface type and the XML schema source is set to "Generated".
    I have included the following code in WDDOINIT method of the view:
    data: handle1 type ref to if_wd_context_node,
    begin of zstruct,
    zktokd type kna1-ktokd,
    end of zstruct,
    zitab type table of zsttxecr.
    handle1 = wd_context->get_child_node( name = 'DATA.NODE1' ).
    select ktokd from kna1 into corresponding fields of zstruct.
    append zstruct to zitab.
    endselect.
    handle1->bind_table( new_items = zitab ).
    In the Adobe Form Designer, i have binded the node NODE1 to the enumerated drop down list from native web dynpro library. Still the drop down box is not getting populated.
    Please let me know what is missing.
    Thanks and Regards.

Maybe you are looking for

  • Rental movie has no sound

    I have rented several movies from the itunes store on my apple tv gen1 and it always has sound issues you will be watching and then the sound will cut out this has happened everytime and has done it about 4-8 times per movie. It has now cut out compl

  • Interest rates in payment term

    Hi Gurus, We have one requirement to create a payment term like this "Payment due within 30 days and 1% interest per month".  How can we set interest rates in OBB8 transaction? Regards, P Gomatheeswaran

  • Idoc processing - determine Basic Type in Program

    Hi Forums, I would like to determine the Basic type that is being processed by at the time of my Idoc creation. the function module I am using is being called by shipping document as well as delivery documents. I would like my code only to be execute

  • When transferring HR data from ECC to CRM via change pointers

    When transferring HR data from ECC to CRM via change pointers ,certain data is getting earsed in CRM paricularly the last name and first name of BUT000 Do you have any idea why this could be happening Thanks in advance

  • XML Nested Element HELP

    HELP. I am having problems creating this XML schema in CVI. In particular, the creation of <chassis> and <slot> tags throws an error.  ie. <chassis1> does not start the container, </chassis1> starts the container and there is no subsequent closing el