Dynamic Table UI Element with different data type for each cell

Hi Experts,
I have a problem with a dynamic Table UI Element in Web Dynpro ABAP. I have the following coding:
METHOD set_col_row .
  TYPE-POOLS: icon.
  DATA:
    lv_node         TYPE REF TO if_wd_context_node,
    lv_node_info    TYPE REF TO if_wd_context_node_info,
    lv_element      TYPE REF TO if_wd_context_element,
    lt_attributes   TYPE wdr_context_attr_info_map,
    lv_table        TYPE REF TO cl_wd_table,
    lv_table_column TYPE REF TO cl_wd_table_column,
    lv_text_view    TYPE REF TO cl_wd_text_view,
    lv_image TYPE REF TO cl_wd_image,
    lv_text_edit TYPE REF TO cl_wd_text_edit,
    lv_header       TYPE REF TO cl_wd_caption,
    attribute       LIKE LINE OF lt_attributes,
    lv_index       TYPE string,
    lv_cur_row         TYPE i,
    path            TYPE string,
    lv_value           TYPE string,
    attr_name       TYPE string,
    l_trc_point_id  TYPE string,
    l_num_cols      TYPE string,
    l_num_rows      TYPE string,
    lv_text         TYPE string,
    lv_index2 TYPE i,
    lr_ress_selections TYPE REF TO /its/di_2_cpr_ress_selections,
    lt_comp_tab TYPE cl_abap_structdescr=>component_table,
    ls_comp_tab LIKE LINE OF lt_comp_tab,
    lv_count TYPE i,
    lv_col_count TYPE i,
    lv_col_count_read TYPE i,
    lv_index_read TYPE i,
    lv_num_cols_minus_1 TYPE i,
    lv_bind_lv_value TYPE string,
    wd_standard_cell TYPE REF TO cl_wd_table_standard_cell,
    lv_data_count TYPE i,
    lv_data_count_str TYPE string,
    wd_table_column TYPE REF TO cl_wd_table_column,
    lv_column_id TYPE string.
  FIELD-SYMBOLS:
     TYPE ANY.
Instanz der Klasse /ITS/DI_2_CPR_RESS_SELECTIONS
  lr_ress_selections = /its/di_2_cpr_ress_selections=>factory( ).
  ASSIGN lr_ress_selections->gr_table->* TO gt_comp_tab.
  ls_comp_tab-name = 'SUMME'.
APPEND ls_comp_tab TO lt_comp_tab.
ls_comp_tab-name = 'CELL_VARIANT'.
  APPEND ls_comp_tab TO lt_comp_tab.
  CLEAR ls_comp_tab.
  l_num_rows = num_rows + 1.
  CONDENSE l_num_rows.
  l_num_cols = num_columns + 1.
  CONDENSE l_num_cols.
UI-Element 'TABLE'
  lv_table ?= wd_this->m_view->get_element( 'TBL_TABLE' ).
  lv_table->remove_all_columns( ).
Kontext-Knoten 'TABLE'
  lv_node = wd_context->get_child_node( 'TABLE' ).
  lv_node_info = lv_node->get_node_info( ).
  lv_node_info->remove_dynamic_attributes( ).
  attribute-type_name = 'STRING'.
  lv_num_cols_minus_1 = num_columns - 1.
Für jede Spalte einmal tun
  DO lv_num_cols_minus_1 TIMES.
    lv_index = sy-index + 1.
    CONDENSE lv_index.
    lv_table_column = cl_wd_table_column=>new_table_column( ).
    lv_column_id = lv_table_column->id.
Spaltenüberschriften setzen
    IF lv_index EQ 1. "Beim ersten Durchlauf --> erste Spalte = "Ressourcen"
      lv_text = text-010.
      sy-index = 0.
    ELSE. "Danach für jede weitere Spalte eine Zeile aus der gt_comp_tab nehmen
      lv_index_read = lv_index - 1.
      READ TABLE lt_comp_tab INDEX lv_index_read INTO ls_comp_tab.
      lv_text = ls_comp_tab-name.
      lv_header = cl_wd_caption=>new_caption( text = lv_text ).
      lv_table_column->set_header( lv_header ).
    ENDIF.
    CONCATENATE 'TABLE.A' lv_index INTO path.
    lv_text_view = cl_wd_text_view=>new_text_view( bind_text = path ).
    lv_table_column->set_table_cell_editor( lv_text_view ).
    lv_table_column->bind_selected_cell_variant( 'TABLE.CELL_VARIANT' ).
    lv_table->add_column( lv_table_column ).
    wd_table_column ?= wd_this->m_view->get_element( lv_column_id ).
*****************Test Cell Variant*************************************************
    IF lv_index GT 1.
      LOOP AT .
          IF sy-tabix EQ lv_cur_row.
          Name zuweisen
            ASSIGN COMPONENT 'NAME' OF STRUCTURE .
          Zuweisen ob Blatt oder nicht
            lv_element->set_attribute( name = 'NAME' value = lv_value ).
            ASSIGN COMPONENT 'IS_LEAF' OF STRUCTURE set_attribute( name = attr_name value = lv_value ).
          ENDIF.
    ENDLOOP.
Now my problem is, that I need for every ROW of my table UI Element a different cell editor. I know how to change it for the column. But is not my issue. I want to have images (traffic lights red and green) in some rows. The other rows should have numbers. The coding works, so that I have all the data at the right place in my table, only the images are shown as a string, because the cells of these rows have the cell editor Text_View. I tried something with cell variants (with cl_wd_table_standard_cell), but it was not possible for me to get a cell variant "image" in these cells/rows were I need it. 
I hope you understand my problem and now what to do here.
Thanks a lot in advance.
Best Regards,
Ingmar

Hi Experts, I have a problem with a dynamic Table UI Element in Web Dynpro ABAP. I have the following coding: METHOD set_col_row . TYPE-POOLS: icon. DATA: lv_node TYPE REF TO if_wd_context_node, lv_node_info TYPE REF TO if_wd_context_node_info, lv_element TYPE REF TO if_wd_context_element, lt_attributes TYPE wdr_context_attr_info_map, lv_table TYPE REF TO cl_wd_table, lv_table_column TYPE REF TO cl_wd_table_column, lv_text_view TYPE REF TO cl_wd_text_view, lv_image TYPE REF TO cl_wd_image, lv_text_edit TYPE REF TO cl_wd_text_edit, lv_header TYPE REF TO cl_wd_caption, attribute LIKE LINE OF lt_attributes, lv_index TYPE string, lv_cur_row TYPE i, path TYPE string, lv_value TYPE string, attr_name TYPE string, l_trc_point_id TYPE string, l_num_cols TYPE string, l_num_rows TYPE string, lv_text TYPE string, lv_index2 TYPE i, lr_ress_selections TYPE REF TO /its/di_2_cpr_ress_selections, lt_comp_tab TYPE cl_abap_structdescr=>component_table, ls_comp_tab LIKE LINE OF lt_comp_tab, lv_count TYPE i, lv_col_count TYPE i, lv_col_count_read TYPE i, lv_index_read TYPE i, lv_num_cols_minus_1 TYPE i, lv_bind_lv_value TYPE string, wd_standard_cell TYPE REF TO cl_wd_table_standard_cell, lv_data_count TYPE i, lv_data_count_str TYPE string, wd_table_column TYPE REF TO cl_wd_table_column, lv_column_id TYPE string. FIELD-SYMBOLS:  LIKE LINE OF lt_attributes,  TYPE ANY TABLE,  TYPE ANY,  TYPE ANY,  TYPE ANY. * Instanz der Klasse /ITS/DI_2_CPR_RESS_SELECTIONS lr_ress_selections = /its/di_2_cpr_ress_selections=>factory( ). ASSIGN lr_ress_selections->gr_table->* TO . lt_comp_tab = lr_ress_selections->gt_comp_tab. ls_comp_tab-name = 'SUMME'. * APPEND ls_comp_tab TO lt_comp_tab. * ls_comp_tab-name = 'CELL_VARIANT'. APPEND ls_comp_tab TO lt_comp_tab. CLEAR ls_comp_tab. l_num_rows = num_rows + 1. CONDENSE l_num_rows. l_num_cols = num_columns + 1. CONDENSE l_num_cols. * UI-Element 'TABLE' lv_table ?= wd_this->m_view->get_element( 'TBL_TABLE' ). lv_table->remove_all_columns( ). * Kontext-Knoten 'TABLE' lv_node = wd_context->get_child_node( 'TABLE' ). lv_node_info = lv_node->get_node_info( ). lv_node_info->remove_dynamic_attributes( ). attribute-type_name = 'STRING'. lv_num_cols_minus_1 = num_columns - 1. * Für jede Spalte einmal tun DO lv_num_cols_minus_1 TIMES. lv_index = sy-index + 1. CONDENSE lv_index. lv_table_column = cl_wd_table_column=>new_table_column( ). lv_column_id = lv_table_column->id. * Spaltenüberschriften setzen IF lv_index EQ 1. "Beim ersten Durchlauf --> erste Spalte = "Ressourcen" lv_text = text-010. sy-index = 0. ELSE. "Danach für jede weitere Spalte eine Zeile aus der gt_comp_tab nehmen lv_index_read = lv_index - 1. READ TABLE lt_comp_tab INDEX lv_index_read INTO ls_comp_tab. lv_text = ls_comp_tab-name. lv_header = cl_wd_caption=>new_caption( text = lv_text ). lv_table_column->set_header( lv_header ). ENDIF. CONCATENATE 'TABLE.A' lv_index INTO path. lv_text_view = cl_wd_text_view=>new_text_view( bind_text = path ). lv_table_column->set_table_cell_editor( lv_text_view ). lv_table_column->bind_selected_cell_variant( 'TABLE.CELL_VARIANT' ). lv_table->add_column( lv_table_column ). wd_table_column ?= wd_this->m_view->get_element( lv_column_id ). ******************Test Cell Variant************************************************** IF lv_index GT 1. LOOP AT  ASSIGNING . ASSIGN COMPONENT 'TYPE' OF STRUCTURE  TO . ADD 1 TO lv_data_count. lv_data_count_str = lv_data_count. CONCATENATE 'A' lv_index lv_data_count_str INTO path. wd_standard_cell = cl_wd_table_standard_cell=>new_table_standard_cell( view = wd_this->m_view variant_key = 'FLDATE' ). IF  = '01' OR  = '04'. lv_image = cl_wd_image=>new_image( bind_source = path view = wd_this->m_view ). wd_standard_cell->set_editor( lv_image ). wd_standard_cell->set_cell_design( '01' ). ELSE. lv_text_view = cl_wd_text_view=>new_text_view( bind_text = path view = wd_this->m_view ). wd_standard_cell->set_editor( lv_text_view ). wd_standard_cell->set_cell_design( '02' ). ENDIF. wd_table_column->add_cell_variant( wd_standard_cell ). ENDLOOP. ENDIF. ************************************************************************************* CONCATENATE 'A' lv_index INTO attribute-name. lv_node_info->add_attribute( attribute ). ENDDO. DO num_rows TIMES." Für jede Zeile einmal tun lv_cur_row = sy-index. lv_element = lv_node->create_element( ). lv_node->bind_element( new_item = lv_element set_initial_elements = abap_false ). DO l_num_cols TIMES. ADD 1 TO lv_col_count. IF lv_count LT 1. LOOP AT  ASSIGNING . IF sy-tabix EQ lv_cur_row. * Name zuweisen ASSIGN COMPONENT 'NAME' OF STRUCTURE  TO . "NAME lv_value = . * Zuweisen ob Blatt oder nicht lv_element->set_attribute( name = 'NAME' value = lv_value ). ASSIGN COMPONENT 'IS_LEAF' OF STRUCTURE  TO . "NAME lv_value = . lv_element->set_attribute( name = 'IS_LEAF' value = lv_value ). ENDIF. ENDLOOP. ENDIF. IF lv_count GT 0. lv_col_count_read = lv_col_count - 1. lv_index = sy-index. LOOP AT  ASSIGNING . IF sy-tabix EQ lv_cur_row. CLEAR ls_comp_tab. READ TABLE lt_comp_tab INDEX lv_col_count_read INTO ls_comp_tab. ASSIGN COMPONENT ls_comp_tab-name OF STRUCTURE  TO . lv_value = . CONDENSE lv_index. CONCATENATE 'A' lv_index INTO attr_name. lv_element->set_attribute( name = attr_name value = lv_value ). ENDIF. ENDLOOP. ENDIF. lv_count = lv_count + 1. ENDDO. CLEAR lv_col_count. CLEAR lv_count. ENDDO. ENDMETHOD. I definied my table in Layout Tab of the View and create here in thos method dynamicly my columns. lv_table_column = cl_wd_table_column=>new_table_column( ). . . lv_table->add_column( lv_table_column ). In  I have my data that should be shown later in my table. So I create for each row in this fieldsymbol in a loop: lv_element = lv_node->create_element( ). lv_node->bind_element( new_item = lv_element set_initial_elements = abap_false ). Later I fill every cell in my table with a different value with this loop: LOOP AT  ASSIGNING . IF sy-tabix EQ lv_cur_row. CLEAR ls_comp_tab. READ TABLE lt_comp_tab INDEX lv_col_count_read INTO ls_comp_tab. ASSIGN COMPONENT ls_comp_tab-name OF STRUCTURE  TO . lv_value = . CONDENSE lv_index. CONCATENATE 'A' lv_index INTO attr_name. lv_element->set_attribute( name = attr_name value = lv_value ). ENDIF. ENDLOOP. Now my problem is, that I need for every ROW of my table UI Element a different cell editor. I know how to change it for the column. But is not my issue. I want to have images (traffic lights red and green) in some rows. The other rows should have numbers. The coding works, so that I have all the data at the right place in my table, only the images are shown as a string, because the cells of these rows have the cell editor Text_View. I tried something with cell variants (with cl_wd_table_standard_cell), but it was not possible for me to get a cell variant "image" in these cells/rows were I need it. I hope you understand my problem and now what to do here. Thanks a lot in advance. Best Regards, Ingmar

Similar Messages

  • Same Input name with different data type cause the reflection exception

    I have a proxy contains couple RFCs. Two RFCs contain an argument named IN_COMPANY_CODE with data type of ZTRE_FX_BUKRSTable. Another RFC contains the same argument name of IN_COMPANY_CODE but hold different data type (String). All RFCs are in the same proxy. Complie and build the application with no issue.
    But when I ran the RFC, it generates the reflection exception below:
    Method SAPProxy1.Z_F_Tre_R_Pre_Trade_Fx can not be reflected. --> There was an error reflecting 'In_Company_Code'. > The XML element named 'IN_5fCOMPANY_--5fCODE' from namespace '' references distinct types System.String and MSTRFOREX.ZTRE_FX_BUKRSTable. Use XML attributes to specify another XML name or namespace for the element or types.
    I realize the conflict introduced by the same name with difference data type. But I would like to know if this is fixable as a bug or if there is any best practice and/or some manual intervention to make it work.

    Please install fix from OSS note 506603. After this, right-click .sapwsdl file and select "Run custom tool".

  • Dynamic ORDER BY clause - Possible different data types...

    I have a lexical parameter in my ORDER BY clause:
    ORDER BY &P_ORDER_BY
    My problem is that I have to designate this parameter as either a date, character or number, but the user defined column being ordered by could be any one of these. When I designate the parameter as a character type, and a number data type column is chosen, it orders by that value, but it orders it as though it were a character field, referencing the initial digit and not the overall numeric value. If I choose a number parameter type, and a character value is chosen, I get an invalid number error, and so on.
    Anyone have any ideas how I can do this?

    Okay, now we're on the right track. The lexical parameter I'm using allows the user to choose from a list of the columns being retrieved in the SELECT statement, so it will always be one that's in there, as you said. Now, since I don't know which one it's going to be, I can't just make all but one of them 'None' for the break order, BUT, what I intended to do was to add a column to the SELECT statement that would always return the column they chose, and I could put the break order on that column, leaving all the rest 'None'. However, in the past, this has created 2 problems for me.
    1.) As I mentioned in the first post, the column being returned could have a data type of character, number or date, but the parameter must be designated as only one of these. So, if the user chooses to order by a column having a value with a data type other than what the parameter is designated to be, then I get errors, it doesn't order correctly, etc...
    2.) This is the strange, but anytime I've marked all but one column as 'None' for the Break Order, my child data doesn't always stay with the parent. For example, the report is on an IT request database. The 'group fields' consist of data elements that are demographic info.of a request (requester, date requested, description, etc...), and the details for each request list out the comments that have been made in the system for that request. The problem I'm seeing when I set the break orders this way is that each request displays not only its own comments, but it lists out comments for other requests as well, and there doesn't seem to be any logic to which request's comments it lists in addition to its own, it just lists as many as will fit on the page...I don't know if I explained that very well, but that's what's happening.
    Does any of that make sense? Any ideas?

  • Open Item interest calculation with different exchange rate for each line

    Dear All
    We have a short term loan facility with our Bank. We take short term loan with bank on different terms and condition. Now user has requirement to have different interest rate for each open items depending on the posting date or any other condition. I think in SAP for one bank account only one rate is applicate for validity from date.
    Can someone share his/her experience if got the same requirement from user
    Thanks and Best Regards
    Farhan Qaiser

    Dear Ashwin,
    As of overdue days are concerned there is no standard functionality available whereas there is for amount.
    Better solution is that you get an ABAPer create your own functional module. That will help you in better way.

  • P.O. with different Tax codes for each line item.

    Hi
    I would like to know how the IV has been done for the P.O. with differnt tax codes for each line item. Since in MIRO at header level we can select only one tax code.

    Hi
    Raju,
    It means we can post only one invoice at time i.e.for line item same taxcode is there.
    e.g. If line item 10 has tax code A1, 20 has A2 then on header i can only select either A1 or A2 tax code & post invoice of that line item.

  • Search help for custome field with different data type

    Hi Friends,
    I have Created a  custom table in which i have created a field is
    ZMATLONG which stores material number.
    Now the data element is zdmat which is of char 40..
    Now i want to give search help for this field ZMATLONG..
    I have tried many ways giving search help to this field
    a) i Tried to attach the standard search help of MATNR ie : MAT1 but its showing me data type inconsistancy
    b) i created a zsearch help and in the selection method i have used database table mara , again here iam getting the same error data type inconsistancy...
    Now how can i give the search help like matnr field to my custom field ZMATLONG...
    How can i do it..?
    Thanks in Advance..
    Regards
    Kumar

    Hi,
    MATNR ahs length 18 and ZMATLONG has length 40.So due to this u cannot use MAT1 search help.
    best way would be cope MAT1 into Z search help. Then in the search help parameter change the data element of field
    MATNR as ZMATLONG.
    Now if you assign Z search help to ZMATLONG  it will work.
    I tried this its working fine.
    Shanmugavel Chandrasekaran

  • CalendarUI element showing different date format for different locations

    Hi,
    I have an input field with date calendar in my webdynpro Java form . User can select date from this calendar and fill the input field. For this I have used input field  in my layout and have binded this with one context attribute of type date. Say name of this field is requiredByDate
    Now when I build and deploy my code, I can see the the required By date field and user is able to select date values from the calendar button next to the input field. The format of the date selected is mm/dd/yyyy.
    However , when a user tests this application from other location say Malaysia, for him the format is coming as dd/mm/yyyy after selecting the date from the calendar.
    Just want to know ,is there is difference in date format for differnt locations ? For India, when you select the date its showing mm/dd/yyyy and for Malayisa its showing dd/mm/yyyy.
    Is there anything we can do by changing our system settings like timezone or dateformat in system settings.
    I am using standard UI element and binding it with context element of type date.
    Need your advice or help on this..
    Thanks and regards,
    Sai

    Hi,
    go to
    [http://help.sap.com/saphelp_nw04/helpdata/en/f4/d95664da179b4db731e21c2e470b72/frameset.htm|http://help.sap.com/saphelp_nw04/helpdata/en/f4/d95664da179b4db731e21c2e470b72/frameset.htm]
    It describes the fallback sequence followed by the Web Dynpro for Java Runtime in order to determine the current session locale.
    Regards
    Matteo

  • Get the values from a table comparing fields of different data types

    Hi Experts,
    I want to fetch AFVC-AUFPL and AFVC- APLZL by passing WBS element from a ztable.
    select aufpl aplzl
      from  afvc
      into TABLE gt_afvc
      FOR ALL ENTRIES IN gt_boq
      where projn = gt_boq-posid.
    AFVC-PROJN - NUMC 8  (WBC ELEMENT)
    ZTABLE-POSID - CHAR24 (WBC ELEMENT)
    How to get aufpl and aplzl by comparing those 2?
    Regards
    Mani

    WBS element does have an conversion routine at the domain level. So sometimes you work with one format (8 digits) and sometimes with 24 digits.
    You use FMs
    CONVERSION_EXIT_ABPSP_INPUT
    CONVERSION_EXIT_ABPSP_OUTPUT
    to convert between values. Do your conversion before your select and do not forget to use a large enough data element for the field, which gets the 24-digits long value of the field.

  • How to Create a Table in Oracle with XML data type.

    Dear ALL,
    What are the requirements for creating a table with xml datatype in Oracle: The steps would help very much to know the scripting of the table and how to query and either insert/update and remove data from that table.
    Any help, direction, advise would be highly appreciated.
    Thanks.

    Reffer to this Note.243554.1.
    In a nut shell you will need to run catqm.sql

  • Expressions with different data types

    hello
    I have an animated clock and a line on a chart that I want to animate together--hopefully all tied with expressions, to make easing across them very *easy*
    I've got the big hand and little hand of the clock linked up (pick-wipped rotation and multiplied * 12) but I'm wondering if I can do something similar for the line on the chart (in this case I'm animating the line with stroke>generate, but I'm open to suggestions)
    thanks!
    LML

    The type is decimal, the precision 16 and scale is 12.
     select SQL_VARIANT_PROPERTY(CAST(10 AS decimal(5,1)) / CAST(140 AS int),'BaseType') as Type
    ,SQL_VARIANT_PROPERTY(CAST(10 AS decimal(5,1)) / CAST(140 AS int),'Precision') as Precision
    ,SQL_VARIANT_PROPERTY(CAST(10 AS decimal(5,1)) / CAST(140 AS int),'Scale') as Scale
    The calculation for determining the scale of the result can be found here: 
    https://msdn.microsoft.com/en-AU/library/ms190476.aspx
    Basically it is max(6, s1 + p2 + 1) where s1 is the scale of the numerator and p2 is the precision of the denominator. 
    In your case max(6,1+10+1) = 12
    That said - it isn't something I ever worry about - you should always be casting your values to what is required to ensure a reliable result. 
    HTH. 
    Cheers
    LucasF

  • Tree and Table UI element with same data source (context)

    Hello,
    I am trying to build an application which shows an tree and an table UI which shows additional information to the selected tree node. (like Windows Explorer)
    I am using an context like this:
    Class - - - - - - - - --  (Mapped  value Node)
    - SubClass - - - - -  (Recursion Node)
    - id - - - - - - - - -- - -(Value attribute)
    - name - - - - - - - - -(Value attribute)
    For the tree I am unsing this event handler  
         public void onActionClassNodeSelected(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, de.aequitas.sap.wd.java.easyclass.wdp.IPrivateEasyClassView.IClassElement element )
    wdModifyView contains this:
    public static void wdDoModifyView(IPrivateEasyClassView wdThis, IPrivateEasyClassView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
        //@@begin wdDoModifyView
         IWDTable pictureTable = (IWDTable) view.getElement("PictureTable");
        if(firstTime)
             IWDTreeNodeType node = (IWDTreeNodeType) view.getElement("TreeNodeType");
             node.mappingOfOnLoadChildren().addSourceMapping("path", "element");
             node.mappingOfOnAction().addSourceMapping("path", "element");
    I think I could use now
    pictureTable.bindDataSource()
    , but do not know where to get the needed parameter.
    Thank You
    Bernd

    >
    Bernd Herbold wrote:
    > Hello,
    >
    > I am trying to build an application which shows an tree and an table UI which shows additional information to the selected tree node. (like Windows Explorer)
    >
    > I am using an context like this:
    > Class - - - - - - - - --  (Mapped  value Node)
    >  - SubClass - - - - -  (Recursion Node)
    >  - id - - - - - - - - -- - -(Value attribute)
    >  - name - - - - - - - - -(Value attribute)
    >  .
    >  .
    >  
    > For the tree I am unsing this event handler  
    >
         public void onActionClassNodeSelected(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, de.aequitas.sap.wd.java.easyclass.wdp.IPrivateEasyClassView.IClassElement element )
    >  
    > wdModifyView contains this:
    >
    >  
    public static void wdDoModifyView(IPrivateEasyClassView wdThis, IPrivateEasyClassView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
    >   {
    >     //@@begin wdDoModifyView
    >      IWDTable pictureTable = (IWDTable) view.getElement("PictureTable");
    >     if(firstTime)
    >     {
    >          IWDTreeNodeType node = (IWDTreeNodeType) view.getElement("TreeNodeType");
    >          node.mappingOfOnLoadChildren().addSourceMapping("path", "element");
    >          node.mappingOfOnAction().addSourceMapping("path", "element");
    >     }
    >
    > I think I could use now
    pictureTable.bindDataSource()
    , but do not know where to get the needed parameter.
    >
    > Thank You
    > Bernd
    Hi,
    Following is the code to do this
    //Your existing code
    IWDTable pictureTable = (IWDTable) view.getElement("PictureTable");
    //use the following code for binding
    IWDNodeInfo nodeInfo = wdContext.nodeClass().getNodeInfo();// Assuming class Node is bound to table.
    pictureTable.bindDataSource(nodeInfo);
    Regards
    Ayyapparaj

  • Is there a way to automatically change tabs with different times set for each tab?

    I found a few add-ons that will automatically change tabs based on a configurable time. But all the tabs use the same time setting. What I need is the ability to have tabs displayed for different amounts of time. Ex, Tab 1 for 30 seconds, Tab 2 for 10 seconds, Tab 3 and 4 for 5 seconds. Ideally, I will have the ability to modify these settings as the amount of tabs and the content will change a couple times a week.
    Currently I'm using Tab Slideshow with each tab displayed for 15 seconds. But it sounds like Tab Rotate and Auto Toggle Tabs essentially do the same. If there is already a solution that would be great but if not is there someone available for hire to help modify one of the existing add-ons? Thank you in advance for your time.
    John

    Currently Firefox don't have any options like that.
    You can ask the Addon developers
    *http://addons.mozilla.org/

  • Ho to Comapre with Number Data Type

    hi
    My reqt is to do validation in ValidateEntity Method.
    How to compare the with Number Data type:
    For ex: Number a = gatAbc();
    If(a>10)
    throw new oaExcption...
    But while comapring i got compiler Error
    Error(218,17): method >(oracle.jbo.domain.Number, int) not found in class abc.oracle.apps.per.irc.pqr.schema.server.XxabcEOImpl
    So plz tell me how to compare the integer value with Number data type
    Thanx

    Check with float. It will work definitely.
    float number = Float.parseFloat(HrsPerDay); //HrsPerDay is a String and I am converting it to float
    if(( number <= 0) || (number >= 21))
                            throw new OAAttrValException(OAAttrValException.TYP_VIEW_OBJECT,
                                              "xxCopyResourceVO1",
                                              rowi.getKey(),
                                              "NoOfCopies",
                                              rowi.getAttribute("NoOfCopies"),
                                              "PA",
                                              "xx_xx_COPY_POSITIVE_NUM");
                       }Here in this code i am also checking that the Hours cannot be less then 0 and greater than 20.
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Creating a multi series line chart with different data providers

    I have 3 data providers of the same structure i.e ArrayCollection of DataElement and want to use them to create a multiseries line chart. I do not have just 1 dataProvider that can be used but 3 different data providers of the same structure that i want to use each for different series.
    [Bindable] private var orangeSales : ArrayCollection =
                    new ArrayCollection(
                        [ { sales: 101000, month: new Date( '01/01/2008' ) },
                            { sales: 960000, month: new Date( '02/01/2008' ) },
                            { sales: 475000, month: new Date( '03/01/2008' ) },
                            { sales: 425000, month: new Date( '04/01/2008' ) }
                [Bindable] private var appleSales : ArrayCollection =
                    new ArrayCollection(
                        [ { sales: 991000, month: new Date( '01/01/2008' ) },
                            { sales: 140000, month: new Date( '02/01/2008' ) },
                            { sales: 565000, month: new Date( '03/01/2008' ) },
                            { sales: 255000, month: new Date( '04/01/2008' ) }
                [Bindable] private var bananaSales : ArrayCollection =
                    new ArrayCollection(
                        [ { sales: 891000, month: new Date( '01/01/2008' ) },
                            { sales: 147560, month: new Date( '02/01/2008' ) },
                            { sales: 295000, month: new Date( '03/01/2008' ) },
                            { sales: 574000, month: new Date( '04/01/2008' ) }
    I want to create a line chart with orangeSales, appleSales and bananaSales as three different lines on the chart for different dates specified.
    <mx:ColumnChart showDataTips="true" >
            <mx:horizontalAxis>
                <mx:CategoryAxis
                    dataProvider="{orangeSales}"
                    categoryField="month"
                    />
            </mx:horizontalAxis>
            <mx:series>
                <mx:LineSeries displayName="OrangeSales" yField="sales" xField="month" dataProvider="{orangeSales}"/>
                <mx:LineSeries displayName="AppleSales" yField="sales" xField="month" dataProvider="{appleSales}"/>
                <mx:LineSeries displayName="BananaSales" yField="sales" xField="month" dataProvider="{bananaSales}"/>
            </mx:series>
    </mx:ColumnChart>
    Please help!

    Sorry for the confusion. Actually I must be doing some thing wrong like using ColumnChart to display a line chart or something like that.
    I have now realized that a multi series line chart can be built by having a different data provider for each of the LineSeries object.
    So the code below would create a multi series line graph :
    [Bindable] private var orangeSales : ArrayCollection =
                    new ArrayCollection(
                        [ { sales: 101000, month: new Date( '01/01/2008' ) },
                            { sales: 960000, month: new Date( '02/01/2008' ) },
                            { sales: 475000, month: new Date( '03/01/2008' ) },
                            { sales: 425000, month: new Date( '04/01/2008' ) }
                [Bindable] private var appleSales : ArrayCollection =
                    new ArrayCollection(
                        [ { sales: 991000, month: new Date( '01/01/2008' ) },
                            { sales: 140000, month: new Date( '02/01/2008' ) },
                            { sales: 565000, month: new Date( '03/01/2008' ) },
                            { sales: 255000, month: new Date( '04/01/2008' ) }
                [Bindable] private var bananaSales : ArrayCollection =
                    new ArrayCollection(
                        [ { sales: 891000, month: new Date( '01/01/2008' ) },
                            { sales: 147560, month: new Date( '02/01/2008' ) },
                            { sales: 295000, month: new Date( '03/01/2008' ) },
                            { sales: 574000, month: new Date( '04/01/2008' ) }
    I want to create a line chart with orangeSales, appleSales and bananaSales as three different lines on the chart for different dates specified.
    <mx:ColumnChart showDataTips="true" >
            <mx:horizontalAxis>
                <mx:CategoryAxis
                    dataProvider="{orangeSales}"
                    categoryField="month"
                    />
            </mx:horizontalAxis>
            <mx:series>
                <mx:LineSeries displayName="OrangeSales" yField="sales" xField="month" dataProvider="{orangeSales}"/>
                <mx:LineSeries displayName="AppleSales" yField="sales" xField="month" dataProvider="{appleSales}"/>
                <mx:LineSeries displayName="BananaSales" yField="sales" xField="month" dataProvider="{bananaSales}"/>
            </mx:series>
    </mx:ColumnChart>

  • LV data types for C++ DLL

    I have created a DLL in VC++ that someone in my organization needs to call from LabView. The declarations for my exported functions are like this example:
    extern "C" __declspec(dllexport)int DLL_Funct(int portnum, char str_data[33], unsigned char csn[4]);
    The function above passes an integer and a null terminated 32 char string and gets back a 4 byte uchar value.
    The LV programmer is having trouble getting my DLL functions to work. I suspect it has to do with different data types or byte alignment or something like that.
    I have zero experience with LV. Can someone please tell me what the equivalent function declaration should be in LV and whatever else I should tell my associate that might help make his code work?
    Thanks.
    Dave
    DRC

    Do you know what the LabVIEW programmer is doing? The "str_data" string parameter should be of Type "string" in the parameters list for the Call Library Function Node setup. The "csn" can be passed as an array of unsigned 8-bit integers.

Maybe you are looking for

  • Blue question mark instead of my picture message. Can anyone help?

    I've recently restored my iPhone 4S and going back through my old messages none of the pictures can be opened. It's replaced with a blue question mark.  Can anyone help?

  • DV7 w/ Beats.. sound compression?

    I just purchased a DV7 with Beats audio, and audio quality was one of my motives for choosing this device. Audio through the headphone jack is respectable. Very strong output. Audio through the internal speakers and subwoofer? Absolutely disappointin

  • I tried to connect to iTunes and only get a plug logo on iPad

    Ok, I got an iPad--my dad got it in a random drawing at work, but he gave it to me to "play"" with. Now, the problem is: 1. The first day, I connected it to the wi-fi network in my home. 2. It connected properly. I was able to use the iPad to access

  • Where is user/library in Mavericks?

    Where is user/library in Mavericks? I only have the HD/ library or system/library. User/library is gone and I desperately need the firefox bookmark file that was in there. Thanks!

  • How are other Apple users managing their ever growing iPhoto library's?

    I have an iPhoto library that goes back quite a few years.  I have in excess of 10,000 pictures in iPhoto that add up over 30gigs of pictures.  I use an external hard drive to run time capsule to back up my computer.  I have a few questions and was w