How to bind simple type to a table column

Hi All,
I have created a simple type in Dictionary. With some Key and value pair. I want to bind this simple type to a table column.
Does any body have suggestion how can I do that?
Regards,
Maya.

Hi Maya,
There is another solution for ur Prblm.
Plz let me know if ur table is having any key,Value(desc) for that perticular dropdown.If it is ther means u can populate the dropdown By using this code.
1.ISimpleTypeModifiable objXX = null;
2.IModifiableSimpleValueSet objYYY = null;
objXX =      wdThis.wdGetAPI().getContext().getModifiableTypeOf("ctx_ConveyanceType");
objYYY =                objSimpleTypeConveyanceTypeData.getSVServices().getModifiableSimpleValueSet();
3.Get the size of that Table and get the Key and Value Descriptions.
4.Finally set it to DropDown
ex:objYYY .put(key,ValueDesc);
One more thing u need to create one string attribute for that Dropdown lik:ctx_strXX,type is string.
Populate this dropdown using above Code.
This method is applicable only for table coontains Key,Value for that Dropdown.
Let me know if u hav any doubts,
Regards,
Lavanya.G

Similar Messages

  • How to bind a icon in the table column

    Hi All
        I have to bind a icon in a table column.

    Choose a table cell editor for that column that is able to display an icon, e.g. Caption, Image, LinkToAction
    Create a context attribute "iconURL" under the data source node of the table.
    Bind the corresponding property of the table cell editor, e.g. Image.source, to this attribute.
    At runtime, the data source node will have elements. Element at index i will be displayed in table row i.
    Set the "iconURL" attribute of each node element to the icon URL to be displayed in the table row.
    You can use the predefined icons by using an URL of the form "~sapicons/<icon_filename>", or you can put your icons inside folder src/mimes/components/<componentName> and use the filename as URL.
    Armin

  • How to bind JtextFields in Swing to Table fields in the database

    Can some one give the code of how to bind JtextFields in Swing to Table fields in the database
    Am really new to java programming and have interest in learning

    The standard JDK doesn't do this for you. If you search on Google, you may find some 3rd party packages that will do this.
    You need to create your own form add execute the appropriate SQL yourself. Read the tutorial on [url http://java.sun.com/docs/books/tutorial/]JDBC Database Access to get started.

  • How to use simple types for table column names ?

    Hi,
    can any one tell how to to use simple types for table column names?
    It is required in internationalizing of webdynpro applications.
    Regards,
    Rajesh

    Hi,
    1: define required column names in <SimpleType>
    2:use the following code to get those values
    3:bind 'text' property of Column headers to context attributes
    4:take a context attribute 'Value' as type of <SimpleType>
    5:set these values to context attributes
    IWDAttributeInfo objAttrInfo=wdContext.getNodeInfo().getAttribute(IPrivate<ViewName>View.IContextElement.VALUE);
    ISimpleTypeModifiable simple=objAttrInfo.getModifiableSimpleType();
    Map m=simple.getEnumerationTexts();
    Collection c=m.values();
    Iterator it=c.iterator();
    if(it.hasNext())
    wdContext.currentContextElement.set<att1>(it.next().toString);
    if(it.hasNext())
    wdContext.currentContextElement.set<att2>(it.next().toString);
    if(it.hasNext())
    wdContext.currentContextElement.set<att3>(it.next().toString);
    Regards
    LakshmiNarayana

  • How to bind the data from user table into user report

    Hi All,
      Please assist me to bind the data from user table into user report. I did create an user table with data and create a user report template (using Query Print Layout). How can I display my data into report format which I created before? Any sample program or document I can refer?
    Platform: SAPB1 2005A
    Add On Language: VB.Net 2003
    Thanks.
    rgds
    ERIC

    Hi Ibai,
      Thanks for your feed back. I give you an example.
    Let say now i wanna print employee list, so i will go
    1. Main Menu -> Reports -> HR -> Employee List
    2. Choose the Selection Criteria -> OK
    3. Matrix will display (Employee List)
    4. I can print the report click on print button
    5. Printing report
    My target
    1. Main Menu -> Eric_SubMenu -> Employee List
    2. Matrix will display (Employee List)
    3. Print button
    4. Print report
    My problem
    Now I would like to use my own report format. My own report format means I wanna add on my logo or do some customization within the employee report. So how I am going to do? I only able to display the employee list in matrix. How do I create a new report format and display it.
    Thanks.
    rgds
    ERIC

  • How to prevent simple type formatter from blocking UI

    Hello,
    I have a simple type which represents a time format linked to an input field. Now when I enter "9" it converts the number to "9:00", however when I enter something like this "977" it can't convert, reports an error via the Message Manager and then blocks the UI. I cannot trigger any linkToAction / button actions / etc. How can I avoid this? Unfortunately it doesn't even enter the onLinkToAction method.
    The J2EE-Engine release seems to be 7.01 SP4
    regards

    Hello,
    I have a simple type which represents a time format linked to an input field. Now when I enter "9" it converts the number to "9:00", however when I enter something like this "977" it can't convert, reports an error via the Message Manager and then blocks the UI. I cannot trigger any linkToAction / button actions / etc. How can I avoid this? Unfortunately it doesn't even enter the onLinkToAction method.
    The J2EE-Engine release seems to be 7.01 SP4
    regards

  • How to bind dynamic checkbox to a table

    Hi,
    I have a table that holds many fields. I put these fields on the screen dynamically.
    I would like to bind a checkbox to select a field row.
    I tried to bind the checkbox to the table but with no success. I keep getting the binding to the first element.
    Does anyone has an example?
    Thanks,
    Itay

    Hi P,
    here is my code:
      LOOP AT lt_available_items ASSIGNING <item>.
        ADD 1 TO lv_col.
        IF lv_col > lv_cell_per_col.
          lv_col = 1.
          ADD 1 TO lv_row.
          lv_new_line = 'X'.
        ENDIF.
    *   Add dynamic group
        CONCATENATE 'GROUP_' lv_col '_' lv_row INTO lv_str.
        lr_new_group = cl_wd_group=>new_group( id = lv_str view = view design = '02' ).
        IF lv_new_line = 'X'.
          CLEAR lv_new_line.
          cl_wd_matrix_head_data=>new_matrix_head_data( element = lr_new_group ).
        ELSE.
          cl_wd_matrix_data=>new_matrix_data( element = lr_new_group ).
        ENDIF.
        lr_new_group->set_width( '230' ).
        cl_wd_matrix_layout=>new_matrix_layout( container = lr_new_group ).
        lr_group->add_child( lr_new_group ).
    *   Left side container
        CONCATENATE 'CONT_L_' lv_col '_' lv_row INTO lv_str.
        lr_new_container = cl_wd_transparent_container=>new_transparent_container(
              id = lv_str view = view ).
        cl_wd_matrix_head_data=>new_matrix_head_data( element = lr_new_container ).
        cl_wd_matrix_layout=>new_matrix_layout( container = lr_new_container ).
        lr_new_group->add_child( lr_new_container ).
    *   Add checkbox
        CONCATENATE 'CHK_' lv_col '_' lv_row INTO lv_str.
        lr_checkbox = cl_wd_checkbox=>new_checkbox( view   = view
                                                    id     = lv_str ).
        lr_matrix_head = cl_wd_matrix_head_data=>new_matrix_head_data( element = lr_checkbox ).
        lr_checkbox->set_layout_data( lr_matrix_head ).
        lr_checkbox->bind_checked( 'AVAILBLE_ITEMS.SELECTED' ).
        lr_new_container->add_child( lr_checkbox ).
    endloop.
    my node is AVAILABLE_ITEMS and it has the attributes: SELECTED, MATNR, MAKTX...
    thanks,
    Itay

  • How to invisible perticular row of a table column?

    Hi All,
    I want to set invisible or blank in perticular row of table column.
    I have a table, contains 2 row in that , one of the column contains button. If i clik on this button(ex: 1st row button ) it add new row with different data, it contains button also in that column, but i want to invisible that button . I tried like this
    I create one attribute of type WDUI_VISIBILITY. and bind visible property of that column. and code in button action is..
         DATA lo_el_context TYPE REF TO if_wd_context_element.
       DATA ls_context TYPE wd_this->Element_context.
       DATA lv_visible TYPE wd_this->Element_context-visible.
    get element via lead selection
       lo_el_context = wd_context->get_element( ).
    get single attribute
       lo_el_context->set_attribute(
         EXPORTING
           name =  `VISIBLE`
           value = wdyn_ui_visibility_none ).
    But, All buttons are invisible here. i.e., in first 2 rows buttons also invisible. But i want to invisible 3 row button only. How to do this? It is possible?
    Thanks,
    Kris.

    Hi Sarbjeet,
    button1 - name1-marks.
    button2-sname1-marks.
    on click of button1 - output is ---name2-marks, if i click again on button getting name3-marks.
    if i click on button2 --- sname4-marks, but required output is  --- sname2-marks.
    if i click on button1 again o/p is -- name5-marks, but req is name4-marks.
    code :
      DATA lv_count LIKE ls_context-count.
      data count type char2.
    get element via lead selection
      lo_el_context = wd_context->get_element(  ).
    get single attribute
      lo_el_context->get_attribute(
        EXPORTING
          name =  `COUNT`
        IMPORTING
          value = count ).
    count = count + 1.
    lo_el_context->set_attribute(
        EXPORTING
          name =  `COUNT`
          value = count ).
      data: lr_node type ref to if_wd_context_node,
            ls_data type if_main_view=>element_node,
            lt_data type if_main_view=>elements_node.
    data indx type i.
          DATA lo_el TYPE REF TO if_wd_context_element.
          lr_node = wd_context->get_child_node( 'NODE' ).
          lo_el = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).
          indx = lo_el->get_index( ).
    if indx = 1.
         data seg type string value  'Nomenclature'.
    data count type char2.
      CONCATENATE seg count into seg.
      CONDENSE seg.
    ls_data-name = seg.
    ls_data-variant = 'NOBUTTON'.
    APPEND LS_DATA TO LT_dATA.
    LR_NODE->BIND_TABLE(
    NEW_ITEMS = LT_DATA
    SET_INITIAL_ELEMENTS = ABAP_false ).
    clear count.
    clear seg.
    endif.
    If indx = 2.
    clear count.
        data seg1 type string value  'Sub Nomenclature'.
      CONCATENATE seg1 count1 into seg1.
      CONDENSE seg1.
    ls_data-name = seg1.
    ls_data-variant = 'NOBUTTON'.
    APPEND LS_DATA TO LT_dATA.
    LR_NODE->BIND_TABLE(
    NEW_ITEMS = LT_DATA
    SET_INITIAL_ELEMENTS = ABAP_false ).
    clear count1.
    endif.
    Thanks,
    kris.
    Edited by: kissnas on Feb 1, 2011 7:05 AM

  • How to increase width of the complex table column in Agentry?

    I am using Agentry 6.0.38.1 client and Smart service manager 3.0 and Agentry 6.0.32 plugin, developing for Android client
    I increased no of characters for that complex table column in Agentry editor still its width is same in Android device.
    How can I increase the displayed width so that values in that column will not truncate?
    Tags edited by: Michael Appleby

    Hi Merten,
    I'm using Agentry Android client v6.1.4.179 (latest one). In Work Manager Add Component screen, Plant and Item ID fields's edit type is Complex table drop down and Complex table search respectively.
    Now we have requirement to fixed Column Width of this fields. Kindly let me know if there is any way to fix this. if than how?
    Thanks-
    Dipak Jotaneeya

  • How to add leading spaces to af:table column

    Hi,
    I'd like to display leading spaces in af:outputText located in table column. Value property is bound to backing bean property, where I add custom leading text.
    However, if I add , the & nbsp; text "& nbsp;" is displayed, not rendered by the browser. Any ideas?
    Regards
    Jernej
    Message was edited by:
    Jernej Kase
    Message was edited by:
    Jernej Kase

    Hi,
    since you didn't mention how you solved it, here is the approach i would have taken
    - use skinning to add padding. This way you don't have to mess with the display data
    Frank

  • How to get the F4 help for table columns ..

    Dear All,
    Here I have created table with cell editors of INPUT FIELD .
    And I would like to provide the f4 help for those columns .
    Here I have checked the node , which i have binded to the table, there input help mode is set to Automatic and search helps are also attached for that node .
    But in the table I am not getting the F4 help . Where as if i create the input fields invidually i am able to see the F4 help .
    But for table column I am unable to find..
    Help me regard this...
    Thanks & regards,
    Veerednra Nath

    Hi,
    In debugging , the I have seen the node info attributes list ( VALUE_HELP_ID and VALUE_HELP_MODE ) .
    For you understanding, Here I am giving the values which contains ,
    VALUE_HELP_ID contains the AUTO:VBUK
                                                    AUTO:VBUP
                                                    AUTO:MAT1
                                                    AUTO:H_T023
    and
    VALUE_HELP_MODE contains the  all Zeros for all the four attributes .
    Hope I have given correct inputs .
    Thanks & Regards,
    Veerendra Nath

  • How to bind data for a UDO table..on to MATRIX

    hi
    i have created a Master Data Table(Video) and also created UDO object...
    i designed a form with 2 controls as text boxes and a matrix with some coloums.........
    the functioality of the form is ..when i enter some values in those controls...it should get data from DB table and should be displayed in matrix on my form. based on condition what i have entered on form controls...
    i have done the same scenario successfully when i'm dealing with other controls like textboxes...by binding data to the controls from DB..
    But i dont know how to deal this scenario where i'm populating data to matrix from DB

    i have used DataTables as u said...but still i'm getting an Exception called " Public MEmber 'Data Table" on type IMatrix not found"
    this is following code i have written in my program...
    plz give me the solution.....and code...
    Try
                oitem = oform.Items.Item("7")
                omatrix = oitem.Specific
                ocolumns = omatrix.Columns
                oform.DataSources.DataTables.Add("[@VIDS]")
                '    odbdatasource = oform.DataSources.DBDataSources.Add("[@VIDS]")
                omatrix.DataTable = oform.DataSources.DataTables.Item("[@VIDS]")
                '// Ready Matrix to populate data
                omatrix.Clear()
                omatrix.AutoResizeColumns()
                '// Querying the DB Data source
                odbdatasource.Query()
                '// setting the user data source data
                omatrix.LoadFromDataSource()
                ocolumn = ocolumns.Item("V_5")
                ocolumn.DataBind.SetBound(True, "[@VIDS]", "Code")
                ocolumn = ocolumns.Item("V_4")
                ocolumn.DataBind.SetBound(True, "[@VIDS]", "Name")
                ocolumn = ocolumns.Item("V_3")
                ocolumn.DataBind.SetBound(True, "[@VIDS]", "U_CardCode")
                ocolumn = ocolumns.Item("V_2")
                ocolumn.DataBind.SetBound(True, "[@VIDS]", "U_ShelfNumber")
                ocolumn = ocolumns.Item("V_1")
                ocolumn.DataBind.SetBound(True, "[@VIDS]", "U_SPACENumber")
                ocolumn = ocolumns.Item("V_0")
                ocolumn.DataBind.SetBound(True, "[@VIDS]", "U_RentedAvailable")
            Catch ex As Exception
                SBO_Application.MessageBox(ErrorToString)
            End Try

  • How to bind chart type at run time

    Hi,
    I want to select chart type at run time using a drop down , i know the class name (CL_WD_BUSINESS_GRAPHICS) which
    has to be bind. but iam unable to bind the class.
    can any one help me.

    Hi,
    **... check view exists
    check me->if_salv_wd_view~r_view is bound.
    *... get wd root uie for adding graphic control uie
      data:
        lr_wd_root type ref to cl_wd_transparent_container.
      lr_wd_root ?= me->if_salv_wd_view~r_view->get_element( if_salv_wd_comp_table_ui=>c_uie_root ).
      check lr_wd_root is bound.
    *... use a group container
      data:
        lr_wd_group type ref to cl_wd_group.
      lr_wd_group ?= me->if_salv_wd_view~r_view->get_element( if_salv_wd_comp_table_ui=>c_uie_graphic_container ).
    *... if wd uie group container does not exist create group container
      if lr_wd_group is not bound.
        lr_wd_group = me->if_salv_wd_comp_table_ui~create_graphic_container( ).
      endif.
    *... get wd uie graphic
      value ?= me->if_salv_wd_view~r_view->get_element( if_salv_wd_comp_table_ui=>c_uie_graphic ).
    *... if wd uie graphic does not exist create graphic
      if value is not bound.
        data:
          l_source_category type string,
          l_source_series   type string,
          l_source_point    type string.
        concatenate if_salv_wd_comp_table_data=>c_name_node_graphic '.'
                    if_salv_wd_comp_table_data=>c_name_node_graphic_category
                    into l_source_category.
        concatenate if_salv_wd_comp_table_data=>c_name_node_graphic '.'
                    if_salv_wd_comp_table_data=>c_name_node_graphic_series
                    into l_source_series.
        concatenate if_salv_wd_comp_table_data=>c_name_node_graphic '.'
                    if_salv_wd_comp_table_data=>c_name_node_graphic_series '.'
                    if_salv_wd_comp_table_data=>c_name_node_graphic_point
                   into l_source_point.
        value = cl_wd_business_graphics=>new_business_graphics(
                  view                 = me->if_salv_wd_view~r_view
                  id                   = if_salv_wd_comp_table_ui=>c_uie_graphic
                  bind_category_source = l_source_category
                  bind_series_source   = l_source_series ).
        data:
          l_bind_value type string.
        data:
          lr_wd_category type ref to cl_wd_category.
        concatenate l_source_category '.' 'LABEL' into l_bind_value.
        lr_wd_category = cl_wd_category=>new_category(
                           view             = me->if_salv_wd_view~r_view
                           bind_description = l_bind_value
                           bind_tooltip     = l_bind_value ).
        value->set_category( lr_wd_category ).
        data:
          lr_wd_series type ref to cl_wd_series.
        concatenate l_source_series '.' 'LABEL' into l_bind_value.
        lr_wd_series = cl_wd_series=>new_series(
                         view              = me->if_salv_wd_view~r_view
                         bind_point_source = l_source_point
                         bind_label        = l_bind_value
                         bind_tooltip      = l_bind_value ).
        value->add_series( lr_wd_series ).
        data:
          lr_wd_point type ref to cl_wd_point.
        concatenate l_source_point '.' 'LABEL' into l_bind_value.
        lr_wd_point = cl_wd_point=>new_point(
                        view              = me->if_salv_wd_view~r_view
                        bind_value_source = l_source_point
                        bind_label        = l_bind_value
                        bind_tooltip      = l_bind_value ).
        lr_wd_series->set_point( lr_wd_point ).
        data:
          lr_wd_value type ref to cl_wd_numeric_value.
        concatenate l_source_point '.' 'VALUE' into l_bind_value.
        lr_wd_value = cl_wd_numeric_value=>new_numeric_value(
                        view       = me->if_salv_wd_view~r_view
                        bind_value = l_bind_value ).
        lr_wd_point->add_value( lr_wd_value ).
        me->if_salv_wd_comp_table_ui~add_child_to_container(
          r_container = lr_wd_group
          r_child     = value ).
      endif.

  • How to change the color of the table columns........

    Hi,
    I am new to the Jdeveloper and also for the adf components.Actually i am working with the project which has already designed.Now i have to change the look n feel.
    I want to change the color of the table colums.So could u tell me in which file i have to change and how.
    I put in the jdeveloper.css like this ......
    column.cell-number-band{
    color :Teal
    And in the adf-faces-config.xml i had only "oracle" type of skin.
    I have to finish the work tomarrow itself......
    So anybody helps me it will be greatfull me.

    Hi Frank,
    Thanks for the reply .I will try to create custom skin file.And one thing i tried to change the columns properties.I can see the changes on the Jdeveloper editor.But when i run on the server,I could't see the changes.....is there any way to change the column colors at run time????????
    I appreciate ur response......
    Thanks

  • How to add round image inside the table column? with different background color, column value should appear in the middle of the round portion.

    Hi
    This question is related to table component implementation.
    I want to display the column values inside the small round image with different colors and value should appear in the middle.

    Hi,
    >>1. how can i align Title(DCS Clinical Report-Technician wise) center of pdf report with image named:logo5.png immediately coming to it's right?.
    2. how do i add the given below row and it's data to my top my table in pdf report from c# windows forms using itextsharp?
    3.how to make my column headers in bold?<<
    I’m sorry for the issue that you are hitting now.
    This itextsharp is third party control, for this issue, I recommended to consult the control provider directly, I think they can give more precise troubleshooting.
    http://sourceforge.net/projects/itextsharp/
    Thanks for your understanding.
    Regards,
    Marvin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Unable to edit the Project details from PWA in Project server 2013

    I am Migrating the project from MS Project 2007 to MS Project 2013.In that i save the project as a file first in 2007 and then open that file in  MS Project 2013 And publish it.But in some Project when i am Trying to change the projects details from

  • Download issue in a portlet page

    Hi, We have the following download issue in the portlet: Download works in an expected way in a standalone application, but fails when trying to do the same from a portlet. 1. We have a blob column in a table (Oracle 10g db), and we have uploaded fil

  • Transparent Data Encryption clarification

    Hello All, {color:#993300}http://www.oracle.com/technology/deploy/security/database-security/transparent-data-encryption/tde_faq.html#A12010 Does the database memory (SGA) contain clear-text or encrypted data? With column-level TDE, encrypted data re

  • Recursive call with commit not written to redo log

    In my DBA training I was led to the belief that a commit caused the log writer to write the redo log buffer to the redo log file, but I find this is not true if the commit is inside recursive code. I believe this is intentional as a way off reducing

  • Installing SQL Server 2012 on Linux Ubuntu

    Hello, Can I install SQL Server 2012 on Linux Ubuntu?  So far I can only find downloads of ODBC for Red Hat.  Any ideas?