Adding checkboxes dynamically

Hello!
Maybe sombebody could help me out with following problem: I' m creating a survey with Web Dynpro and have therefore to do some dynamic ui- & context creation.
My problem is the following: I' ve dynamically generated an context node & added some elements, which I now have to display as checkboxes.
How do I create the binding between the checkboxes & the context-structure? It seems easy with radiobuttons where there's one field receiving the selected value, but I could'nt use bindChecked()-method on one boolean-column of my 0:n-structure as there's an exception thrown saying "could'nt find child node ...".
Any help is more than appreciated!

Hi Christian,
I have to deal with surveys as well and had the same problem a couple of days ago. As a workaround I just created a new context attribute for each checkbox. For saving the results you can loop over every dynamically created attribute and therefore save the user input in an easy way.
else if (questionType.equals("Check Box")) {
for (int j=0; j < wdContext.nodeAnswerOptions().size(); j++) {
//name of check box consists of QuestionNr + 'Check Box' + CheckBoxNr (both+1 to equal displayed question nr)
IWDCheckBox checkBox = (IWDCheckBox)view.createElement(IWDCheckBox.class, "Q" + (i+1) + "Check Box" + (j+1));
checkBox.setText(wdContext.nodeAnswerOptions().getAnswerOptionsElementAt(j).getAnswer());
try {
IWDNodeInfo nodeInfo = wdContext.getNodeInfo();
nodeInfo.addAttribute("Q" + (i+1) + "Checked" + (j+1), "ddic:com.sap.dictionary.boolean");
catch (ContextException e) {
checkBox.bindChecked("Q" + (i+1) + "Checked" + (j+1));
questionGroup.addChild(checkBox);
As I mentioned before it's only a workaround and probably not the best solution. If you find a better way, please let me know.
Are you dealing with IWDDropDown elements as well? If so you could have a look at this thread.
Problems with dynamic IWDDropDownByIndex generation / context binding
Cheers,
Tom

Similar Messages

  • Adding column dynamically

    Hi all
    I have a requirement of adding the columns to a Classic Table at run time.. the number of columns are not fixed. the number of The data in there columns will be dispaled from the view initialized at run time.
    I tried searching out threads on adding column dynamically but didtn get one..
    pls help me out ..
    naveen

    Of course you can add columns dynamically, but this always needs to be from the same VO, a OA table cannot be based on more than one VO.
    So if it all the columns are from the same VO, why take the pain of adding and removing columns, why not just either render it or hide it.
    Thanks
    Tapash

  • Display checkbox dynamically

    hi,
    i am trying to generate list(checkbox) dynamically
    through query
    select classname from class where secid1=
    select secid from section
    where section.secname=:P7_SECNAMEX
    :p7_secnamex is a text which contain section name
    Through this though i am able to generate checkbox dynamically but i want every time a user enter new section name a new checkboxes should get create on new line without replacing previous one, in mycase it replaces the previous one.
    how can i do this,pls any one can help me out.

    Enough with this ..... link
    http://www.oracle.com/technology/products/database/htmldb/howtos/checkbox.html
    How many times do we have to see it in the forum....Enough.....
    Its so frustrating giving the same link time and time again...And the funny
    part is that most people's questions has nothing to do with that. But
    still some geniuses give the same link....I just feel so sorry for people
    who are struggling to get a answer and some idiots give the same link

  • Adding checkbox on screen dynamically

    Hi all,
    how can we add checkbox on to a screen dynamically. please send me some details.
    thanks,
    samm

    Hi Try this ..
    Let Us say u have a Check box on selection screen p_cbox , if user selects this u want Check box ( for selection ) to appear in the output list ..
    While Setting the layout parameters for the Output you can use :
    DATA  g_r_layo1      TYPE   lvc_s_layo ,
    FORM alv_layo1.
      g_r_layo1-grid_title    =  'SD Delivery Note(Printed)'.
      g_r_layo1-cwidth_opt  =  g_c_mark.
      g_r_layo1-zebra       =  g_c_mark.
      g_r_layo1-no_rowmark  =  space.
    IF ALready Printed Delivery to be printed
      IF p_cbox             =  'X'.
        g_r_layo1-sel_mode  =  g_c_selmode.
      ENDIF.
    ENDFORM.                    " alv_layo
    g_r_layo1-sel_mode   will get u the check box ..
    This works for classes ..
    Thanks .

  • To check the checkbox dynamically used in thmlb tag

    Hi all,
    I am new to crm 2007,
      I have added a thtmlb tab to create a checkbox. I am able to get checkbox event to get value of the check box and process. But when reopen the  view the check box should be checked  dynamically depending on the conditions.
                   how to make a check box checked dynamically.
    Thanks
    Hema

    Hi john,
    I have table control with fore fileds like this..
    'text box'-------'get button'.
    chkbox---item-material---qty
    box1--1abcde--
    10
    box2--2xyhnb--
    20
    Nothing is allow input value except chkbox.
    Values are coming by one text box above this table.
    Text box allow input value..
    if i click box1 ...that row will be selected and it takes to second screen.....
    But this box is not allowing to check...
    kaki
    Message was edited by: Kaki R
    Message was edited by: Kaki R

  • ALV Sorting Not Working after Adding Checkbox to ALV

    Hi All.
    I am currently doing an ALV report using REUSE_ALV_GRID_DISPLAY function. I am sorting the list by Employee Name and Personnel Area. It works fine where the personnel are field and employee name field are merger together for same personnel are and employee name. But afterwards I added a checkbox field to the internal table and the list outputs a checkbox for each line. Afer  putting the checkbox the list no long merges the same personnel are and employee name fields according to original sorting.
    Can anyone explain if there is a way to solve this?
    Thanks a lot.
    Lily

    yes there is a way. Just see this..
    There is no Straight forward solution. There is a work around.
    REPORT  ztest_check_box                         .
    TYPE-POOLS: slis,icon.
    DATA: BEGIN OF it_vbap OCCURS 0,
           vbeln LIKE vbap-vbeln,
           matnr LIKE vbap-matnr,
           posnr LIKE vbap-posnr,
           kunnr LIKE vbak-kunnr,
           kwmeng LIKE vbap-kwmeng,
           check TYPE c,
           id TYPE icon-id,
          END OF it_vbap.
    DATA: it_fieldcat  TYPE slis_t_fieldcat_alv.
    DATA:  x_fieldcat  TYPE slis_fieldcat_alv.
    DATA: it_sort TYPE slis_t_sortinfo_alv,
          x_sort TYPE slis_sortinfo_alv.
    SELECT vbak~vbeln
           vbak~kunnr
           vbap~posnr
           vbap~matnr
           vbap~kwmeng
           INTO CORRESPONDING FIELDS OF TABLE it_vbap
           FROM vbak JOIN vbap
           ON vbak~vbeln = vbap~vbeln.
    SORT it_vbap BY matnr.
    DELETE it_vbap WHERE matnr IS INITIAL.
    LOOP AT it_vbap.
      it_vbap-id = '@T9@'.
      MODIFY it_vbap.
    ENDLOOP.
    x_fieldcat-fieldname = 'ID'.
    x_fieldcat-seltext_l = 'CHECK'.
    x_fieldcat-outputlen = 4.
    x_fieldcat-icon  = 'X'.
    x_fieldcat-col_pos   = 1.
    x_fieldcat-hotspot  = 'X'.
    x_fieldcat-tabname   = 'IT_VBAP'.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    x_fieldcat-fieldname = 'MATNR'.
    x_fieldcat-seltext_l = 'MATNR'.
    x_fieldcat-col_pos   = 2.
    x_fieldcat-tabname   = 'IT_VBAP'.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    x_fieldcat-fieldname = 'KUNNR'.
    x_fieldcat-seltext_l = 'KUNNR'.
    x_fieldcat-col_pos   = 3.
    x_fieldcat-tabname   = 'IT_VBAP'.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    x_fieldcat-fieldname = 'VBELN'.
    x_fieldcat-seltext_l = 'VBELN'.
    x_fieldcat-col_pos   = 4.
    x_fieldcat-tabname   = 'IT_VBAP'.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    x_fieldcat-fieldname = 'POSNR'.
    x_fieldcat-seltext_l = 'POSNR'.
    x_fieldcat-col_pos   = 5.
    x_fieldcat-tabname   = 'IT_VBAP'.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    x_fieldcat-fieldname = 'KWMENG'.
    x_fieldcat-seltext_l = 'KWMENG'.
    x_fieldcat-col_pos   = 6.
    x_fieldcat-do_sum   = 'X'.
    x_fieldcat-tabname   = 'IT_VBAP'.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    x_sort-fieldname = 'MATNR'.
    x_sort-spos       = 1.
    x_sort-up = 'X'.
    x_sort-group = 'X'.
    x_sort-subtot = 'X'.
    APPEND x_sort TO it_sort.
    CLEAR x_sort.
    x_sort-fieldname = 'KUNNR'.
    x_sort-spos       = 2.
    x_sort-up = 'X'.
    APPEND x_sort TO it_sort.
    CLEAR x_sort.
    x_sort-fieldname = 'VBELN'.
    x_sort-spos       = 3.
    x_sort-up = 'X'.
    APPEND x_sort TO it_sort.
    CLEAR x_sort.
    *DATA:x_layout TYPE lvc_s_layo.
    *x_layout-box_fname = 'CHECK'.
    *x_layout-no_rowmark = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program = sy-repid
    *   is_layout          = x_layout
        i_callback_user_command = 'USER_COMMAND'
        it_fieldcat        = it_fieldcat
        it_sort            = it_sort
      TABLES
        t_outtab           = it_vbap[]
      EXCEPTIONS
        program_error      = 1
        OTHERS             = 2.
    IF sy-subrc ne 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    *&      Form  itab_user_command
    *       text
    *      -->WHATCOMM   text
    *      -->WHATROW    text
    FORM user_command USING whatcomm TYPE sy-ucomm selfield TYPE
    slis_selfield.
      IF selfield-fieldname = 'ID'.
        READ TABLE it_vbap INDEX selfield-tabindex.
        IF sy-subrc = 0.
          IF it_vbap-check = ''.
            it_vbap-id = '@R7@'.
            it_vbap-check = 'X'.
          ELSE.
            it_vbap-id = '@T9@'.
            it_vbap-check = ''.
          ENDIF.
          MODIFY it_vbap INDEX selfield-tabindex.
        ENDIF.
      ENDIF.
      selfield-refresh = 'X'.
    ENDFORM.                    "itab_user_command
    if you want to make the above code to work in lower versions then you have to do this..
    then maintain the ICON using the view V_ICON from SM30 add the New Entry.
    get the properties from the below screen shot.
    http://img404.imageshack.us/img404/3338/testig9.png

  • Adding a dynamic selection to a logical database query

    Hello,
    I would like to add a dynamic selection to a SQ02 Infoset using logical database SDF. I need the report to show only documents created at certain dates. I've added a selection field "CR_DATE" for BKPF-CPUDT to the Infoset and added the following code:
    SELECT * FROM BKPF
    WHERE BKPF-CPUDT IN CR_DATE.
    ENDSELECT.
    However, the report displays documents created on all kinds of dates regardless of the ones I've specified at the selection screen.
    I can only use SQ02 and SQ01. I don't have access to most other transactions such as SE36 nor have the authorization to edit the existing report transaction such as FAGLL03.
    Please, help.

    Hi John,
    Only certain table fields are allowed in dynamic selection, please see this sap note for detail :
    Sap Note 310886 - Line items: Dynamic selections ignored
    Permitted tables:
    SKA1: all fields
    SKB1: all fields
    BSIS: all fields
    So BKPF-CPUDT field is not allowed for dynamic selection.
    Regards
    Javed

  • Adding column dynamically in alv

    *& Report  ZSP_BSID
    REPORT  ZSP_BSID.
    TYPE-POOLS:SLIS.
    "type-pools:abap.
    TABLES: BSID.
       "CONSTANTS : lc_structure TYPE tabname VALUE  'ZSXX'.
    TYPES: BEGIN OF TY_bsid," OCCURS 0,
             bukrs TYPE bsid-bukrs,
             kunnr TYPE bsid-kunnr,
             monat TYPE bsid-monat,
             TEXT TYPE C,
            total type n,
        END OF TY_bsid.
           "monat like bsid-monat,
    *      jan  TYPE  bsid-monat,
    *       feb  TYPE  bsid-monat,
    *       mar  TYPE  bsid-monat,
    *       apr  TYPE bsid-monat,
    *       may  TYPE  bsid-monat,
    *       jun  TYPE  bsid-monat,
    *       jul  TYPE  bsid-monat,
    *       aug  TYPE  bsid-monat,
    *       sep  TYPE  bsid-monat,
    *      oct  TYPE  bsid-monat,
    *      nov  TYPE  bsid-monat,
    *      dec  TYPE bsid-monat,
    DATA: FCAT TYPE SLIS_FIELDCAT_ALV,
           IT_FCAT TYPE SLIS_T_FIELDCAT_ALV.
    DATA:  T_EVENT TYPE SLIS_T_EVENT,
       W_EVENT TYPE SLIS_ALV_EVENT.
    DATA: SORT TYPE SLIS_SORTINFO_ALV,
           IT_SORT TYPE SLIS_T_SORTINFO_ALV.
    DATA:  MONAT(2) TYPE c.
    "CALL SCREEN 2000.
    "DATA: FLAG.
    "data: lv_pos type i.
    DATA: IT_BSID TYPE TY_BSID OCCURS 0 with header line.
    "data: it_color TYPE TABLE OF lvc_s_scol.
    DATA: WA_BSID TYPE TY_bsid.
      SELECTION-SCREEN: BEGIN OF BLOCK A WITH FRAME TITLE B.
        SELECT-OPTIONS: CMP_CODE FOR BSID-BUKRS." OBLIGATORY.
        SELECT-OPTIONS: CUST_NME FOR BSID-KUNNR." OBLIGATORY.
        SELECT-OPTIONS: MONTH FOR BSID-MONAT.
        SELECTION-SCREEN: END OF BLOCK A.
    data: num1(2) type c,
           num2(2) type c.
           "monat type n.
         num1 = MONTH-low.
         num2 = MONTH-high.
      monat = num2 - num1(01) + 1.
    field-symbols: <it_bsid> type STANDARD TABLE.
        START-OF-SELECTION.
        PERFORM SELECT.
        PERFORM FIELDCAT.
        PERFORM DISPLAY.
        "PERFORM DISPLAY1.
       "perform format_field_catolog.
    "   PERFORM DISPLAY1.
    *&      Form  SELECT
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM SELECT.
       SELECT bukrs kunnr monat FROM BSID INTO TABLE IT_BSID
    *    WHERE BUKRS IN CMP_CODE AND
    *         kunnr IN CUST_NME and
              where monat eq MONTH.
    ENDFORM.
                        " SELECT
      "create DATA w_dref TYPE STANDARD TABLE OF (month).
    *ASSIGN w_dref->* to <it_bsid>.
    *SELECT * FROM (month) into table <it_bsid>.
    *&      Form  FIELDCAT
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form FIELDCAT .
    "do 12 times.
      " result = sy-index ** 12.
    fcat-col_pos       = '1'.
       fcat-tabname       = 'IT_BSID'.
       fcat-fieldname     = 'BUKRS'.
       fcat-seltext_m     = 'CUSTOMER NAME'.
       fcat-hotspot       =   'X'.
       fcat-emphasize    = 'C666'.
       APPEND FCAT TO it_fcat.
       CLEAR fcat.
       fcat-COL_POS = '2'.
    fcat-SELTEXT_L = 'COMPANY CODE'.
    fcat-FIELDNAME = 'KUNNR'.
      APPEND FCAT TO IT_FCAT.
       CLEAR  FCAT.
    "do 12 times.
      " result = sy-index ** 12.
      DO MONAT times.
       "RESULT = SY-INDEX ** 12.
    "WRITE:/ sy-index EQ RESULT.
       fcat-col_pos       = '3'.
       fcat-tabname       = 'IT_BSID'.
       fcat-fieldname     = 'MONAT'.
       fcat-seltext_m     = 'MONTH'.
         APPEND FCAT TO it_fcat.
       CLEAR fcat.
    enddo.
    *fcat-col_pos       = '4'.
    *  "fcat-tabname       = 'IT_BSID'.
    *  fcat-fieldname     = 'MONAT'.
    *  "FCAT-no_totalline  = 'X'.
    *  fcat-seltext_m     = 'TOTAL'.
    *  FCAT-DO_SUM        =  'X'.
    *  FCAT-NO_OUT       =  'X'.
    *"  fcat-hotspot       =   'X'.
    * " fcat-emphasize    = 'C666'.
    *  APPEND FCAT TO it_fcat.
    *  CLEAR fcat.
    *fcat-col_pos       = '4'.
    *  "fcat-tabname       = 'IT_BSID'.
    *  fcat-fieldname     = 'MONAT'.
    *  "FCAT-no_totalline  = 'X'.
    *  fcat-seltext_m     = 'TOTAL'.
    *  FCAT-DO_SUM        =  'X'.
    *  "FCAT-NO_OUT       =  'X'.
    *"  fcat-hotspot       =   'X'.
    * " fcat-emphasize    = 'C666'.
    *  APPEND FCAT TO it_fcat.
    *  CLEAR fcat.
    *SORT-fieldname = 'MONAT'.
    *SORT-SUBTOT  = 'X'.
    *APPEND SORT TO IT_SORT.
    *CLEAR SORT.
    endform.
                       " FIELDCAT
    *&      Form  DISPLAY
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form DISPLAY .
       CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
    *     I_INTERFACE_CHECK                 = ' '
    *     I_BYPASSING_BUFFER                = ' '
    *     I_BUFFER_ACTIVE                   = ' '
          I_CALLBACK_PROGRAM                = SY-REPID
    *     I_CALLBACK_PF_STATUS_SET          = ' '
    *     I_CALLBACK_USER_COMMAND           = ' '
    *     I_CALLBACK_TOP_OF_PAGE            = ' '
    *     I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
    *     I_CALLBACK_HTML_END_OF_LIST       = ' '
    *     I_STRUCTURE_NAME                  =
    *     I_BACKGROUND_ID                   = ' '
    *     I_GRID_TITLE                      =
    *     I_GRID_SETTINGS                   =
    *     IS_LAYOUT                         =
          IT_FIELDCAT                       = IT_FCAT
    *     IT_EXCLUDING                      =
    *     IT_SPECIAL_GROUPS                 =
          IT_SORT                           = IT_SORT
    *     IT_FILTER                         =
    *     IS_SEL_HIDE                       =
    "     I_DEFAULT                         = 'X'
    *     I_SAVE                            = ' '
    *     IS_VARIANT                        =
    "     IT_EVENTS                         = T_EVENT
    *     IT_EVENT_EXIT                     =
    *     IS_PRINT                          =
    *     IS_REPREP_ID                      =
    *     I_SCREEN_START_COLUMN             = 0
    *     I_SCREEN_START_LINE               = 0
    *     I_SCREEN_END_COLUMN               = 0
    *     I_SCREEN_END_LINE                 = 0
    *     I_HTML_HEIGHT_TOP                 = 0
    *     I_HTML_HEIGHT_END                 = 0
    *     IT_ALV_GRAPHICS                   =
    *     IT_HYPERLINK                      =
    *     IT_ADD_FIELDCAT                   =
    *     IT_EXCEPT_QINFO                   =
    *     IR_SALV_FULLSCREEN_ADAPTER        =
    *   IMPORTING
    *     E_EXIT_CAUSED_BY_CALLER           =
    *     ES_EXIT_CAUSED_BY_USER            =
         TABLES
           t_outtab                          = IT_BSID
    *   EXCEPTIONS
    *     PROGRAM_ERROR                     = 1
    *     OTHERS                            = 2
       IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.
    endform.                    " DISPLAY
    *&      Form  FORMAT_FIELD_CATOLOG
    *       text
    *  -->  p1        text
    *  <--  p2        text
    *form FORMAT_FIELD_CATOLOG .
    *  beg_month = listbox1.
    *end_month = listbox2 .
    *dO.
    *if beg_month gt end_month.
    *  exit.
    *ENdif.
    *enddo.
    *endform.                    " FORMAT_FIELD_CATOLOG
    *CALL FUNCTION 'HR_E_NUM_OF_DAYS_OF_MONTH'
    *  EXPORTING
    *    p_fecha              = SY-DATUM
    ** IMPORTING
    **   NUMBER_OF_DAYS       =
    *&      Form  DISPLAY1
    *       text
    *  -->  p1        text
    *  <--  p2        text
    *form DISPLAY1 .
    *CALL FUNCTION 'MONTH_PLUS_DETERMINE'
    *  EXPORTING
    *    months        = 12
    *    olddate       = SY-DATUM
    * IMPORTING
    *   NEWDATE       = RESULT.
    *endform.                    " DISPLAY1
    "DATA: T_OUTPUT TYPE REF TO DATA.
    "FIELD-SYMBOLS: &LTT_OUTPUT&GT TYPE TABLE.
    "Call Method CL_ALV_TABLE_CREATE->CREATE_DYNAMIC_TABLE
    "Exporting
    "IT_FIELDCATALOG = T_FIELDCAT
    "Importing
    "EP_TABLE = T_OUTPUT.
    "ASSIGN T_OUTPUT->* TO &LT;T_OUTPUT&GT;.
    "*&      Form  DISPLAY1
    "*       text
    "*  -->  p1        text
    "*  <--  p2        text
    "form DISPLAY1 .
    "CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    " EXPORTING
    "*   I_BUFFER_ACTIVE              =
    "   I_STRUCTURE_NAME             = sy-repid
    "*   I_CLIENT_NEVER_DISPLAY       = 'X'
    "*   I_BYPASSING_BUFFER           =
    "*   I_INTERNAL_TABNAME           =
    "  CHANGING
    "    ct_fieldcat                  = it_fcat
    "* EXCEPTIONS
    "*   INCONSISTENT_INTERFACE       = 1
    "*   PROGRAM_ERROR                = 2
    "*   OTHERS                       = 3
    "IF sy-subrc <> 0.
    "* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    "*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    "ENDIF.
    "endform.                    " DISPLAY1
    please check the code....

    Hi Suprit Patil,
    First you need to create table with   CL_ALV_TABLE_CREATE->CREATE_DYNAMIC_TABLE to assign value to field.
    Now logic is simple.
    Create fieldcat, add aditional field to fieldcat ( in your case months ), now create table with this fieldcat. You need to add your dynamic field to fieldcat manualy.
    select needed data to template table. now to assign field to created table you need to now fieldname.
    Here is the example : http://scn.sap.com/message/14468651#14468651
    and adding this example to assign sipecific field:
    FIELD-SYMBOLS  : <field> TYPE any.
    in your loop. assign your dynamic field like this : you need to know field name.
    ASSIGN COMPONENT 'FIELDNAME' OF STRUCTURE <fs_line> TO <field>.
    for example : fieldname = 'FEB'.
    ASSIGN COMPONENT 'FEB' OF STRUCTURE <fs_line> TO <field>.
    IF bsid-monat EQ '02'.
         <field> = bsid-wrbtr.
    ENDIF.
    Regards
    Tolga

  • Adding checkbox in Additional Tab of ME21N

    One requirement we need to do is to add checkbox in additional tab of the PO header. Is it advisable to add this field in this tab (standard) or we will just instead create a new tab in the PO header and then add the checkbox here. And then once this checkbox is ticked, we are going to assign 'X' to the field we've added in EKKO table. Kindly let us know your inputs on this. What is the better solution to this requirement? Thanks a lot!

    Hi Mariel,
    add a custom field in CI_EKKODB structure and create a screen variant using the transaction code SHD0 by maintaining the new field as checkbox.
    Satish

  • Adding a dynamic region/dataset after page loads

    I am trying to dynamicaly add a new spry driven select box
    after the page has loaded to allow n select boxes to be displayed.
    My initial spry select is as below and works fine.
    <div id="orgDiv">
    <div id="orgDiv0" spry:region="dsOrg[0]">
    <select id="selOrg0"
    onchange='_addOrg(this.options[this.selectedIndex].value);'>
    <option>--- Select --- </option>
    <option spry:repeat="dsOrg[0]"
    value="{CHILD_ID}">{STR_TEXT} </option>
    </select>
    </div>
    </div>
    The onchange for the select triggers a JS function to add a
    new spry region div and select box to the page. All fine so far,
    the only problem is I need to initialise the new spry region as it
    has been inserted after the initial Spry.Data.initRegions();
    Theinitial spry region renders correctly but the javascript
    added node (second one) hasn't been initialised by spry:
    <div id="orgDiv0" class="">
    <select id="selOrg0"
    onchange="_addOrg(this.options[this.selectedIndex].value);">
    <option>--- Select --- </option>
    <option value="2">Group PLC </option>
    <option value="3">GSD </option>
    <option value="4">Country </option>
    </select>
    </div>
    <div id="orgDiv1" spry:region="dsOrg[1]">
    <select id="selOrg1"
    onchange="_addOrg(this.options[this.selectedIndex].value);">
    <option>--- Select --- </option>
    <option value="{CHILD_ID}"
    spry:repeat="dsOrg[1]">{STR_TEXT} </option>
    </select>
    </div>
    If I call Spry.Data.initRegions(); it just zaps the contents
    of my dynamically added div:
    <div id="orgDiv1" class=""/>
    Not so good...
    Is there a way to use the API to initialiase a new spry
    region using a new dataset after the page has loaded?

    Are you getting the error in jdeveloper or in the envrionment? If you are getting the error in the environment verify whether the region is present in the MDS repository. You can use the exec jdr_utils.printdocument('/oracle/apps/ar/cusstd/localizationExt/webui/SiteTabsRN') for verifying. try adding the region to the project if you get the issue in Jdeveloper.

  • Adding a dynamic menu to a template

    Can somebody tell me what I'm doing wrong please?
    I have created a menu, I want to add it to a template (this template already has a dynamic menu which I added to it by the way, in case it's important to the answer).
    I have selected the Template and have it ready to edit or do whatever next to it.
    I thought the next step was to select "add modules to Template" and then I would get a panel appear on th right hand side with further options to select the menu I want and then go through the insert proceedure.
    But nothing happens when I click on "add modules to Template".
    I already have one menu on the page, I've done it once already, but for some reason it's not working any more. Or have I just completely forgotten what the correct steps are.
    Yes I have researched and googled but I keep getting answers that just tell me how to create a menu or modify a template, or something other than what I need to know.
    Cheers for any help.
    Grant

    Okaaaaaaaaaaaaaaaaaaaaaaaaaay. So now it's working.
    So if you experience the same problem, here's what happened and how I resolved the problem.
    I closed the browser, started up again and tried adding a menu to a page using "Add   modules to a web page" - it worked, but then BC still wouldn't let me have access to the "Add   modules to Templates" button a second time when I tried it with the template - just wouldn't work. So, I shut the browser again but this time loaded the template and tried adding the the module to the template using the button, and it worked.
    So I'm guessing that this is a bug that needs to be sorted Adobe?

  • No values in added dropdownlisy dynamic table

    Hello Guru's.
    I am working with livecycler 7.1 on a NW2004S. I have the following problem,any help is appreciated. I have a dynamic table with a dropdownbox binded to an R/3 table from transaction SFP. When I start the form the first entrie with the initial created dropdown box is correct filled with all the data. But when I extend the row with the addinstancemanager, there are suddenly no values anymore.
    The extra functionality in 7.1 is that you don't have to populate the values by scripting in JAVA, but now I am lost how to deal with this problem, is this a bug?
    Thanks
    Harrie
    Message was edited by:
            Harrie Prinsen
    Hi All,
    I managed to solve the problem by my self.
    I code the binding in JAVA because the "extra functionality"  does not work.
    Here is my coding, I noticed that it is important to understand the Interactive Forms XFA model. You can find it at the adobe site and it is refered in a blog of Juergen Hauser.
    var oItems = xfa.resolveNode("xfa.record.TABMATNR1");
    var nItemsLength = oItems.nodes.length;
    app.alert(nItemsLength);
    for (var nItemCount = 0; nItemCount < nItemsLength; nItemCount++) {
    Vervolgkeuzelijst2.addItem(oItems.nodes.item(nItemCount).DATA.MATNR.value);
    The main piece in the coding is that you create an object reference to a node in the form via :
    xfa.resolveNode. TABMATNR1 is a table and contains several rows. The underlying structure is data and three fields matnr maktx kwmeng.
    Regards Harrie

    Dear Harrie,
    we are facing serious problems using Adobe IFS and SFP.
    We have problems when saving rows that are dynamically added to the form.
    Seems to be a problem with the xsd schema.
    Furthermore, I cannot link an internal table to a dropdownlist, not even for 1 single item on the form.
    I assume you have a lot of experience using IFS, maybe you have some information on this?
    Thanks in advance,
    Yoeri Coessens

  • Adding Pages Dynamically

    I want to be able to add a Page dynamically to a Book.
    In the Portal JavaDocs, there is a method called addPage() which is part of
    the following class :-
    com.bea.netuix.servlets.controls.page.Book
    Problem is, this class doesn't seem to exist ?
    Anyone have any ideas on this ?
    Thanks

    Maybe I'm missing something but I was under the impression that a .Portal
    file is in fact a Desktop ?
    "Chris Jolley" <[email protected]> wrote in message
    news:[email protected]...
    >
    I assume you are using a desktop and not a .portal file...
    You can add a page to a book via two ways - depanding an what you want yououtcome
    to be
    If you are an Admin and want to add it to a book in the Library (outsidethe context
    of a desktop) and want it to effect all desktops that include this bookthen you
    want the follwoing method on BookDefinitionManager:
    * <p>Add a Navigable definition (BookDefinition or PageDefinition) toan
    existing BookDefinition.
    * @param customizationContext customization information such asprefered
    locales and desktopInstanceId
    * @param bookDefinitionId the book definition to add the navigableto.
    * @param navigableDefinitionId the definition id of the navigabledefintion
    from which to add.
    * @param position the position in the book (or menu) to insert thisnavigable
    (starts with 0)
    * @param alignment position the page from the left (top) or right(bottom)
    * @return the Navigable instance which was created.
    * @throws ObjectNotFoundException BookDefinitionId or theNavigableDefinitionId
    are bogus.
    * @throws NotEntitledException if the caller does not have therequired permissions
    to delete this object.
    * @throws IllegalDependencyException adding the Navigable to theBookDefinition
    would cause a recursive dependancy
    * @throws DuplicateObjectException if this navigable is already addedto
    this book
    * @see com.bea.netuix.application.view.BookView#ALIGNMENT_LEFT
    * @see com.bea.netuix.application.view.BookView#ALIGNMENT_RIGHT
    public NavigableInstance addNavigable(CustomizationContextcustomizationContext,
    BookDefinitionIdbookDefinitionId,
    NavigableDefinitionIdnavigableDefinitionId,
    int position,
    int alignment,
    boolean isDefault)
    throws RemoteException, ObjectNotFoundException,NotEntitledException,
    IllegalDependencyException, DuplicateObjectException;
    If you are and end user or and admin and want to effect only the acertain desktop
    then you want the following method on PortalCustomizationManager
    * <p>Create an new instance of a <code>NavigableView</code> (BookViewor PageView)
    from the supplied
    * NavigableDefinition object.</p>
    * @param desktopDefinitionId the desktop context to which this updateapplies.
    * @param bookInstanceId the book instance to add the navigable to.
    * @param navigableDefinitionId the navigable defintion id from whichto create
    the instance.
    * @param position the position in the book (or menu) to insert thisnavigable
    (starts with 0)
    * @param align position the page from the left (top) or right (bottom)
    * @return the NavigableView instance which was created.
    * @throws ObjectNotFoundException BookDefinitionId or theNavigableDefinition
    are bogus.
    * @throws IllegalDependencyException adding the Navigable to theBookInstance
    would cause a recursive dependancy
    * @throws MissingDataException missing vital data in theNavigableDefinition.
    * @throws NotEntitledException if the caller does not have therequired permissions
    to delete this object.
    public NavigableInstance addNavigable(CustomizationContextcustomizationContext,
    DesktopDefinitionId desktopDefinitionId,
    BookInstanceId bookInstanceId,
    NavigableDefinitionIdnavigableDefinitionId,
    int position,
    int align)
    throws RemoteException, ObjectNotFoundException,MissingDataException,
    NotEntitledException, IllegalDependencyException;
    Note: If you are and Admin and want to efffect all users try
    setting your visitormode to false on your CustomizationContext.
    customizationContext.setVisitorMode(false);
    Also: if you are doing this from a backing file and you want the change totake
    effect for that request you will need to do a redirect back to the portal,otherwise
    you wont see the change until the next request
    "Priya" <[email protected]> wrote:
    I want to be able to add a Page dynamically to a Book.
    In the Portal JavaDocs, there is a method called addPage() which is part
    of
    the following class :-
    com.bea.netuix.servlets.controls.page.Book
    Problem is, this class doesn't seem to exist ?
    Anyone have any ideas on this ?
    Thanks

  • Adding tabs dynamically at runtime for a tab navigator control

    Hi,
    Is it possible in flex builder 2 to dynamically add the tabs
    at runtime to the tab navigator control, if we can add plz tell the
    procedure to do that
    thanks in advance

    Given that you had a tab navigator declared in mxml like
    this:
    <mx:TabNavigator id="myTabber" selectedIndex="0">
    </mx:TabNavigator>
    you should just be able to call the addChild method, passing
    the child tab containers. So for example, in some ActionScript
    event handler:
    var newTab:Canvas = new Canvas();
    myTabber.addChild(newTab);
    bear in mind I haven't done this by adding tabs, but have
    done tons with adding controls to an application at runtime using
    this method (DataGrids, Grid, GridItems, etc...)
    Jason

  • Need to create checkboxes dynamically

    Hi all ,
    I need to craete checkboxes in jsp using htmlb dynamically
    also on click of a button , I want to send the values of the selected checkboxes to a function
    can somebdy help , I will be using htmlb controls

    Hi,
    The below link may help you
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/7d/9b0e41a346ef6fe10000000a1550b0/frameset.htm
    Regards
    Suresh Bachimanchi

Maybe you are looking for

  • Voice Control on Iphone 4

    I am loving my Iphone 4 but one thing is really bugging me. I have had both the first gen iphone and 3GS. I always used the 3gs through my venturi mini bluetooth car kit and it worked great. To let my hubby know I was near his work to pick him up eve

  • While activating Transfer rules....

    Hello BW gurus, I am extracting CO Transaction Data from SAP R/3 into BW. I replicated 0CO_OM_CCA_1 standard Data Source into BW and assigned BI Content 0CO_OM_CCA_1 Info Source . 1) In the Transfer rules , all the fields from Data Source got mapped

  • Adobe Photoshop Elements 11 People Recongnition

    So maybe I'm using this wrong or maybe this is just how it works.  I have about 5,000 photos, I imported them all into Photoshop Elements 11.  On the main screen, I click Add People and it starts going through all my photos,  but I seem to be getting

  • Deny traffic by vrf - acl?

    Hello, I have a service provider network with multiple public vrfs and some private vpns also.  We liked the design of this it seemed to keep the public routing completely separate from the core routing.  However it seems there is an awkward do to sh

  • Can i change the shape of the window in which websites appear

    web pages do not fit into the window when using firefox browser even when scrolling across