How to create a dynamic radiobutton in webdynpro dynamically

HI,
I want to create radiobutton in webdynpro dynamically.But this button in not enabled.Code:-
     IWDNodeInfo info =wdContext.getNodeInfo().addChild("RadioBUttonDymanicNode",null,true,false,true,false,false,true,null,null,null);
     IWDRadioButton rb = (IWDRadioButton)view.createElement(IWDRadioButton.class,null);
     String testAtt = "testAtt";
     info.addAttribute ("testAtt","ddic:com.sap.dictionary.string");
     rb.bindSelectedKey("RadioBUttonDymanicNode." + testAtt);
     rb.bindKeyToSelect("aa");
     rb.setEnabled(true);
     theTransContainer1.addChild(rb);
Please suggest me how to make it enable.
Regards
-Sandip

Hi Sandip,
Try this code inside the wdModifyView(),
if (firstTime)
        IWDRadioButtonGroupByKey radioButtonGroup =(IWDRadioButtonGroupByKey)
        view.createElement(IWDRadioButtonGroupByKey.class, "MyRadioButtonGroupByKey");
        radioButtonGroup.bindSelectedKey(<attributeName>);
        radioButtonGroup.setEnabled(true);
        IWDTransparentContainer container=(IWDTransparentContainer)
        view.getElement("RootUIElementContainer");
        container.addChild(radioButtonGroup);
Regards
Kishan

Similar Messages

  • Procedure to how to create a pop up in webdynpro

    hi all,
      will anybody guide me the procedure to how to create a pop up in webdynpro application..plz as am new to it and i had requirement of creating pop up window in starting the application.
    thanks in advance.

    hi suman,
    thanks for ur reply.
    i want my pop up when i clk on button ok on my 1st view.
    so i included the code in the method of ONACTION OK.
    but am not able to display any sort of pop up.
    my code is
    DATA lo_nd_node TYPE REF TO if_wd_context_node.
          data: lr_popup type ref to if_wd_window,
            lr_view_controller type ref to if_wd_view_controller.
    data lo_window_manager type ref to if_wd_window_manager.
    data lo_api_component  type ref to if_wd_component.
    data lo_window         type ref to if_wd_window.
    lo_api_component  = wd_comp_controller->wd_get_api( ).
    lo_window_manager = lo_api_component->get_window_manager( ).
    lo_window         = lo_window_manager->create_window(
                       window_name            = 'WW_POP'
                      title                  = 'my first message'
                      close_in_any_case      = abap_true
                       message_display_mode   = if_wd_window=>co_msg_display_mode_selected
                      close_button           = abap_true
                       button_kind            = if_wd_window=>co_buttons_ok
                       message_type           = if_wd_window=>co_msg_type_none
                       default_button         = if_wd_window=>co_button_ok
    lo_window->open( ).
    will u help me out in this.

  • How to create user editable Crystal Report with dynamic dataset

    What I would like to achieve:
    A program loads a report in runtime updates list of database fields (possibly includes sample data), open report in "Crystal Reports 2011" (or 2008) where user customizes report and saves it. Later on the program loads the report, fills actualized data and displays it in .net report viewer.
    What I do:
    CrReport = New CrystalDecisions.CrystalReports.Engine.ReportDocument
    CrReport.Load(TemplateFilename)
    Dim Results As DataTable
    DataTable is filled from a database
    CrReport.SetDataSource(mResults)
    CrReport.SaveAs(NewReportPath, True)
    The NewReportPath is opened in the default program.
    What are the problems
    The report is open in preview mode (not in design).
    When the field is added to the report the designer asks for XML datasource on preview.

    The short answer is that it is not possible. I broke the question to other two: How to save a report that it opens without preview? and How to create user editable Crystal Report with dynamic dataset, where it is possible to find details. Key answer is Re: How to create an editable previewable report?

  • How to create a transparent table(z table) dynamically

    Hi,
    Can anyone explain me how to create a transparent table(z table) dynamically in the program.
    Any function module or suggestions welcome.

    Hi Mithun
                 we will not create transparent table in the program . you could do it by using native SQL in the ABAP Program . the sample is show in below .
    This is a sample that show how to connect to Database directly and can use the native SQL to select , create or delete table.
    PARAMETERS dbs TYPE dbcon-con_name default 'SDB'.
    DATA carrid_wa TYPE scarr-carrid.
    DATA lv_int  TYPE i.
    *Types
    data: begin of ty_equi,
    equipment(25) type c,
    SERIALENERGY(25) type c,
    end of ty_equi.
    *Internal Tables
    data it_equi like table of ty_equi.
    data wa_equi like line of it_equi.
    DATA dbtype TYPE dbcon_dbms.
    SELECT SINGLE dbms
           FROM dbcon
           INTO dbtype
           WHERE con_name = dbs.
    IF dbtype = 'ORA'.
      TRY.
          EXEC SQL.
            CONNECT TO :dbs
          ENDEXEC.
          IF sy-subrc <> 0.
            RAISE EXCEPTION TYPE cx_sy_native_sql_error.
          ENDIF.
          EXEC SQL.
            OPEN dbcur FOR
              SELECT
                     EQUIPMENT,
                     SERIALENERGY
                     FROM emd.meter
          ENDEXEC.
          DO.
            EXEC SQL.
              FETCH NEXT dbcur INTO :wa_EQUI
            ENDEXEC.
            IF sy-subrc <> 0.
              EXIT.
            ELSE.
              WRITE: /
              wa_equi-equipment,
              wa_equi-SERIALENERGY.
            ENDIF.
          ENDDO.
          EXEC SQL.
            CLOSE dbcur
          ENDEXEC.
          EXEC SQL.
            DISCONNECT :dbs
          ENDEXEC.
        CATCH cx_sy_native_sql_error.
          MESSAGE `Error in Native SQL.` TYPE 'I'.
      ENDTRY.
    ENDIF.
    Regards
    Wiboon

  • How to create the PDF file in WebDynpro?

    Hi.
           How to create PDF file in Webdynpro?
    I have one WD screen In there i have one File Download action. Once i click that it will open one PDF file which consisting of all details.
    Pls reply me.
    with regards,
    Gobintah.R

    Hi
    Check these links
    Re: Opening a PDF File from WebDynpro
    Re: Generating PDF file using FOP API in Web Dynpro
    http://help.sap.com/saphelp_nw04/helpdata/en/1a/ff773f12f14a18e10000000a114084/frameset.htm
    Thanks
    Edited by: Anup Bharti on Oct 16, 2008 11:51 AM

  • How to create report with Fixed Labels and Dynamic Columns

    I have static column labels in left side of report and field in 3 columns coming dynamically from 3 different command queries.
    Please let me know how to create it..Following is the sample data for report.

    Following is the sample report. Left side lables are fixed.
    I tried using pivot table functionality, earlier discussed in the forum.
    But they are creating huge no.of records. As it will turn the rows into columns.
    Is there any way to get this report done normally.?

  • How to create a Power Pivot Chart with Dynamic X-Axis (date time) similar to that in Performance monitor (Start-- Run-- Perfmon)?

    Hi,
    I want to create a Power Pivot Chart and a Power View chart in Power BI where the x-axis should be the current system date time axis and it's functionality should be similar to that in Perfmon.exe tool (Start-->Run-->Perfmon)?

    Hi Manjunath,
    Do you mean you want to programmatically create such a dynamic chart which has a X axis of time? If you just want to do this manually, please take a look at this document which is talking about how to create charts with Power BI:
    Charts and other visualizations in Power View
    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.

  • How to de-activate a button in webdynpro dynamically

    Hi Experts,
    How to de-activate a button and checkbox in webdynpro dynamically depending upon some condition.
    Thanks,

    hi
    to de-activate or disable a button, lets say u want to disable SAVE button once it is clicked...
    then in the method where u write code for SAVE button
    at the end:
      elem_btn_disable->set_attribute(
            EXPORTING
              name =  `DIS_SAVE`
              value = abap_false ).
    DIS_SAVE should be of type WDY_BOOLEAN in the context.
    abap_false means deactivating the button .
    if you want to HIDE a button, then type should be WDY_VISIBILITY  or WDY_UI_ELEMENT_VISIBLE
    & value = 1 .
    if you want to do this before screen loads, then do it in the INBOUND plug method of in tht WDDOINIT method.
    give points if helpful.
    rgds
    prateek

  • How to create a calender view in webdynpro java EP 7.0

    Hi ,
    I want to create a calender view in webdynpro,
    Requirments are
    1. it should be current month view
    2. Below each day i want to show office in-time and out-time in two cloumns(these values will be coming tru RFCs).
    ie
    1
    10am | 4pm
    Is this possible in webdynpro java EP 7.0 ?
    Please help me
    Thanks
    Kumar

    Hi Kumar,
    If you are using EP7.0, there is no calendar UI element in webdynpro development. There is only date navigator UI element. This is demonstrated in the below article.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c059344a-1930-2d10-6e8a-dcec5f94993e?quicklink=index&overridelayout=true
    Regards,
    Ganesh N

  • How to create a Registration page in WebDynpro java

    Hi All,
    How to create a registration page in Web Dynpro java.Whatever i enter in the field of registration page should be stored in the pcd..So plz help me???
    Message was edited by: suman sahu

    Hi Suman,
        I have a similar kind of requirement , please let me know if you have got the solution for this??
    Regards,
    Ravi.

  • How to create tables in Database when webdynpro project is deployed

    Hi
    I Created a project.in that i created stuctures using simpletypes.Based on structure  i created the Context,then created screens.Now how to create tables in database using this structures .Because i want to store the values in the database.Please help.this is very urgent.i will give good points
    thanks
    prasad

    Hi Prasad,
    You can write normal JDBC code in your controller.
    Check this Web Dynpro Java
    You can use the tool for generating the classes from your DB.Check this too
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/dfad6017-0301-0010-bdb8-a8b7d2006f36
    Best Regards, Anilkumar

  • How to create a structure statically in webdynpros

    hi experts,
    after creating structure when we run the structure the contents of the structure will be diplayed for the first time if we run once again the contents won't be displayed .
    how to create structure so that elements should be as it is

    hi experts,
    after creating structure when we run the structure the contents of the structure will be diplayed for the first time if we run once again the contents won't be displayed .
    how to create structure so that elements should be as it is

  • How to create a stored procedure in a dynamic schema

    Hi,
    I want to create a stored procedure in a dynamic shcema (schema name will be known at run time). Can any one guide me on this.
    I tried using define var1=schema1; and then in create or replace procedure &var1.porcName( ) but it is not working
    Thanks

    SQL> alter session set current_schema=<my schema>;
    Now create the stored procedure. It will be created in the session's current schema.

  • How to create an LOV based on a dynamic query

    Hi,
    Can someone tell me how to query a dynamic query for LOV. On my base page I have a dropdown-box (that will show the table names for searching) and is dynamically populated based on users access e.g. if user A logs in he may see 5 values (these values are basically table names) in a drop down if user B logs in he may see 10 values. I also have two input fields one field a user can enter value and the other field is read only and a torch icon for LOV so the user can search and select values that are populated in the input fields on the base page.
    How can I have my LOV that takes in a value selected in the dropdown and anyvalue entered in one of the input fields and search in the table selected in the dropdown box.
    Basically my LOV should do a search on the table and some search value passed when clicking on the torch icon. So a user can select any table-name in the drop down and my LOV should do a search only on the selected table. Once on the LOV Popup want to have a search field there but it only searched on the table selected in the dropdown on the based page. And the selected value on the LOV Popup page gets populated in fields on the base page.
    Any help is appreciated.
    Thanks

    Hi,
    I have created 4 SQL Based VO's with the following sqls
    SELECT header_id AS ID, to_char(order_number) AS NAME
      FROM oe_order_headers_all
    SELECT party_id AS ID, party_name AS NAME
      FROM hz_parties
    SELECT quote_header_id AS ID,
           (quote_number || CHR (45) || quote_version) AS NAME
      FROM aso_quote_headers
    SELECT sales_lead_id AS ID, to_char(lead_number) AS NAME
      FROM as_sales_leadsI created on LOVRegin and have the following 2 messagestyle items now what do I set in the ViewInstance and View Attribute fields
    srcid
    srcname
    Can you provide some sample code to set ViewUsage and whereclause that I need to put in the controller of LOVRegion.
    Thanks

  • How to create a long text in webdynpro for abap?

    Hi Experts,
                      I am new to Web Dynpro for ABAP, I have a requirement for Grievance workflow. For this we have developed a Webdynpro application which appears in portal. Here my issue is user wants to enter a long text on the screen and I have to save this text as standard text. Is it possible to create a text box which we can insert number of lines?
    If so can anybody please suggest me how to resolve this issue.
    Thank You.
    Ranganadh.

    hi ,
    u can use the TEXT EDIT UI element , procced like this :
    1 Right click on Root Element UI container , insert elemnt TEXT EDIT
    2 create a context attribute of type string or string_table
    3 bind value property of ur UI to this attribute
    4 u can get the values entered in the text UI by user , by get_attribute method
    press CNTRL + F7  , select the radio button read context node/attribute , select the corresponding attribute
    The attribute to be bound can be of type STRING or STRING_TABLE. With STRING_TABLE rows from TextEdit are stored as table rows. A line break is always stored as a line feed in a STRING (CL_ABAP_CHAR_UTILITIES=>NEWLINE, ASCII decimal 10). The Web Dynpro framework carries out the conversion for the client platform.
    Note that a string to be displayed in TextEdit, must only use a line feed as a line break.
    refer this online help :
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/06/45ee412e5e6324e10000000a1550b0/content.htm
    regards,
    amit

Maybe you are looking for

  • F-44 vendor open item clearing

    Hi , 1. in our org. the emplyees are paid perdiem advance for onsite travel and treated as Vendors and settled the travel advance account 2. we are using f-44 to clear the vendor open items, it is not happening system error saying section code is man

  • Positioning of Flash Objects

    Because of the recent changes to IE i have had to embed flash into my html using Java script..... <script type="text/javascript" src="flashobject.js"></script> <div id="flashcontent"> This text is replaced by the Flash movie. </div> <script type="tex

  • White screen when boot up

    hi, my macbook doesn't boot up it comes with a white screen and that's it . what to do ??/

  • Windows AIR application hang

    Hi. We've been testeing out our app on a few machines.  It uses some native code, so it was exported as an exe installer from flash builder.  We've installed it on a handful of machines successfully, but ran into a problem today.  The installer hangs

  • Conf file added to /etc/apache2/sites get overwritten

    So I need to make some modification and additions to virtual host to support svn. The module are running and and I added my needed changes to a <Location "/svn"> block. Everything works great. Until I make any other changes is the Server Admin to the