Nested Components - c.CheckBox inside a C.Table ?

Can one nest components ?
For e.g.  a c.Table has a row added to it  using addRow(). Now a c-component like c.CheckBox has to be added to a cell.

Hi Varun,
As far as i have explored, the nesting is not possible. You can add only text & image elements within the table component. However a workaround could be that u place images of check & uncheck instead. And flip them as in when clicked. Hope this is useful.
regards,
Kunal Kotak

Similar Messages

  • How to unSelect checkBoxes inside a buttonBar

    Hello!
    I've been a Flex developer for several months now and have made some great strides.  However, I've ran across a problem that requires some help from the Pros.
    I'm using Flash Builder 4.5 Premium.
    Scenerio:
    I have a buttonBar whose dataProvider is an mx:viewStack supplied by Spark NavigatorContent.  I have checkBoxes inside each of the NavigatorContent instances.  The checkBoxes turn content on and off.  Works great.
    Problem:
    When you select a different button in the buttonBar the selected content from the previuos button still displays.
    Question:
    How do I get the selected content from the previous button to not display? I'm not sure how to do this. 
    Bonus:
    If someone can tell me how to handle the checkBox eventHandler more efficiently that would be awesome!  Because right now I currently have an eventHandler function for each check box (like 18).  Since I'm still grean, so I figured I'd get everything working before trying to streamline this.  Or perhaps (I'm havina an epiphany) I need to add something to this code to unSelect the checkBox once the button has changed?  Not sure and confused. 
    Thanks for the help!
    Joe
    App Code:  If it's too much I appologize - I did leave out some.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:esri="http://www.esri.com/2008/ags"
                   xmlns:mx="library://ns.adobe.com/flex/mx"
                   pageTitle="Aloha Existing Conditions"
                   initialize="initApp(event)">
        <fx:Style source="alohaExistingCond.css"/>
        <fx:Script>
            <![CDATA[
                import com.esri.ags.Graphic;
                import com.esri.ags.components.Editor;
                import com.esri.ags.components.Legend;
                import com.esri.ags.events.FeatureLayerEvent;
                import com.esri.ags.events.LayerEvent;
                import com.esri.ags.geometry.MapPoint;
                import com.esri.ags.layers.ArcGISDynamicMapServiceLayer;
                import com.esri.ags.layers.DynamicMapServiceLayer;
                import com.esri.ags.layers.TiledMapServiceLayer;
                import com.esri.ags.layers.supportClasses.LayerInfo;
                import com.esri.ags.layers.supportClasses.LayerLegendInfo;
                import com.esri.ags.layers.supportClasses.LegendItemInfo;
                import com.esri.ags.tasks.supportClasses.AddressCandidate;
                import flash.events.Event;
                import flashx.textLayout.events.UpdateCompleteEvent;
                import mx.containers.TitleWindow;
                import mx.controls.Alert;
                import mx.core.IFlexDisplayObject;
                import mx.events.FlexEvent;
                import mx.managers.PopUpManager;
                import mx.rpc.AsyncResponder;
                import spark.components.Panel;
                import spark.events.IndexChangeEvent;
                import splash1.SplashScreen1;
                public function initApp(event:FlexEvent):void
            //        showWindow();   
            //        viewMenu.addEventListener(IndexChangeEvent.CHANGING, bBarChangeHandler);
            //    public function bBarChangeHandler():void
                private var point1:Point = new Point();
                private function showWindow():void {
                    var login:SplashScreen1 = SplashScreen1(PopUpManager.createPopUp(this, SplashScreen1 , true));
                           PopUpManager.centerPopUp(login);
                public function turnonbasemap():void   
                    photo.visible = false;
                    basemap.visible = true;       
                public function turnonphoto():void
                    photo.visible = true;
                    basemap.visible = false;       
                public function bintBox(evt:MouseEvent):void
                    myLegend.visible = true;
                    if(CheckBox(evt.target).selected)
                    bikelaneMapServer.visible = true;
                else
                     bikelaneMapServer.visible = false;
                public function sintBox(evt:MouseEvent):void
                    sidewalkMapServer.visible = true;
                    if(CheckBox(evt.target).selected)
                    else
                        sidewalkMapServer.visible = false;   
                public function scomBox(evt:MouseEvent):void
                    sidewalkComments.visible = true;
                    if(CheckBox(evt.target).selected)
                    else
                        sidewalkComments.visible = false;   
                public function bcomBox(evt:MouseEvent):void
                    bikelaneComments.visible = true;
                    if(CheckBox(evt.target).selected)
                    else
                        bikelaneComments.visible = false;   
                public function opsBox(evt:MouseEvent):void
                    OPS.visible = true;
                    if(CheckBox(evt.target).selected)
                    else
                        OPS.visible = false;   
            ]]>   
        </fx:Script>
    <!-- Declaration are for Non-Visual Elements ~~~~~~~~~~~~~~~ -->
        <fx:Declarations>
            <esri:Locator id="locateTask"
                          url="http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_NA_10/GeocodeServer"/>
            <esri:SimpleMarkerSymbol id="mySymbol"
                                     alpha="0.5"
                                     color="0xFF0000"
                                     size="21"
                                     style="circle">
                <esri:SimpleLineSymbol width="2"/>
            </esri:SimpleMarkerSymbol>
        </fx:Declarations>
    <!-- Button Bar Window ~~~~~~~~~~~~~~~ -->
        <s:BorderContainer id="buttonBarContainer"
                           left="352" right="3" top="64" height="134"
                           borderWeight="2" cornerRadius="5">
            <s:Label text="Select an item below:"
                     x="10" y="10"/>
            <s:ButtonBar id="viewMenu" left="5" right="5" top="30" height="21"
                         dataProvider="{myViewStack}"
                         requireSelection="true"/>
                         <!-- change="changeSelection(event)" -->
                <s:Group id="layerGroup"
                         left="5" right="3" top="55" height="80">
                        <mx:ViewStack id="myViewStack" height="72">
                            <s:NavigatorContent id="planning" label="Planning">
                                <s:layout>
                                    <s:TileLayout paddingLeft="10" paddingRight="20"
                                                  orientation="columns" columnWidth="175"
                                                  requestedColumnCount="-1"/>
                                </s:layout>
                                <s:CheckBox id="bCommentCheckBox" 
                                label="Bike Lane Comment"
                                fontSize="14"
                                click="bcomBox(event)"/>
                                <s:CheckBox id="foo1"
                                            label="Foo 1"
                                            fontSize="14"/>
                                <s:CheckBox id="foo2" 
                                            label="Foo 2"
                                            fontSize="14"/>
                                <s:CheckBox id="foo3"
                                            label="Foo 3"
                                            fontSize="14"/>
                                <s:CheckBox id="foo4" 
                                            label="Foo 4"
                                            fontSize="14"/>
                            </s:NavigatorContent>
    <!--  trans tab  ~~~~~~~~~~~~~~-->                   
                            <s:NavigatorContent id="trans" label="Transportation">
                                <s:layout>
                                    <s:TileLayout columnWidth="175" orientation="columns"
                                                  paddingLeft="10" paddingRight="20"
                                                  requestedColumnCount="-1"/>
                                </s:layout>
                                <s:CheckBox id="sCommentCheckBox"
                                            label="Sidewalk Comments"
                                            fontSize="14"
                                            click="scomBox(event)"/>
                                <s:CheckBox id="sidewalkCheckBox"
                                            label="Sidewalk Inventory"
                                            fontSize="14"
                                            click="sintBox(event)"/>
                                <s:CheckBox id="bikelaneCheckBox" 
                                            label="Bike Lane Inventory"
                                            fontSize="14"
                                            click="bintBox(event)"/>
                            </s:NavigatorContent>
                            <s:NavigatorContent id="environ" label="Environmental">
                                <s:layout>
                                    <s:TileLayout paddingLeft="10" paddingRight="20"
                                                  orientation="columns" columnWidth="200"
                                                  requestedColumnCount="-1"/>
                                </s:layout>
                                <s:CheckBox id="opsCheckBox" 
                                            label="Watershed Enhancement"
                                            fontSize="14"
                                            click="opsBox(event)"/>
                                <s:CheckBox id="foo5"
                                            label="Foo 5"
                                            fontSize="14"/>
                                <s:CheckBox id="foo6" 
                                            label="Foo 7"
                                            fontSize="14"/>
                                <s:CheckBox id="foo8"
                                            label="Foo 8"
                                            fontSize="14"/>
                                <s:CheckBox id="foo9" 
                                            label="Foo 9"
                                            fontSize="14"/>
                                <s:CheckBox id="foo10"
                                            label="Foo 10"
                                            fontSize="14"/>
                                <s:CheckBox id="foo11" 
                                            label="Foo 11"
                                            fontSize="14"/>
                                <s:CheckBox id="foo12"
                                            label="Foo 12"
                                            fontSize="14"/>
                                <s:CheckBox id="foo13" 
                                            label="Foo 13"
                                            fontSize="14"/>
                                <s:CheckBox id="foo14" 
                                            label="Foo 14"
                                            fontSize="14"/>
                            </s:NavigatorContent>
                            <s:NavigatorContent id="housing" label="Housing/Social">
                                <s:layout>
                                    <s:TileLayout paddingLeft="10" paddingRight="20"
                                                  orientation="columns" columnWidth="175"
                                                  requestedColumnCount="-1"/>
                                </s:layout>
                                <s:Label text="Housing and Social Services Maps"/>
                            </s:NavigatorContent>
                            <s:NavigatorContent id="built" label="Built Environment">
                                <s:layout>
                                    <s:TileLayout paddingLeft="10" paddingRight="20"
                                                  orientation="columns" columnWidth="175"
                                                  requestedColumnCount="-1"/>
                                </s:layout>
                                <s:Label text="Built Environment Maps"/>
                            </s:NavigatorContent>
                            <s:NavigatorContent id="transit" label="Transit">
                                <s:layout>
                                    <s:TileLayout paddingLeft="10" paddingRight="20"
                                                  orientation="columns" columnWidth="175"
                                                  requestedColumnCount="-1"/>
                                </s:layout>
                                <s:Label text="Tansit Maps"/>
                            </s:NavigatorContent>
                        </mx:ViewStack>
                    <!--<s:Label id="selectionText"
                             x="10" y="60"/>  -->
                </s:Group>
        </s:BorderContainer>
    <!-- Legend Window ~~~~~~~~~~~~~~~ -->   
        <s:BorderContainer id="leContainer" left="3" top="140" bottom="3" width="347"
                           borderColor="#808080" borderWeight="2" cornerRadius="5" fontWeight="bold">
            <s:VGroup id="hGroup"
                      width="333"
                      height="500"
                      paddingBottom="11"
                      paddingLeft="5"
                      paddingRight="5"
                      paddingTop="10">
                <esri:Legend id="myLegend"
                             height="100%"
                             bottom="10"
                             width="330"
                             layers="{[ bikelaneMapServer, sidewalkMapServer, sidewalkComments, bikelaneComments, OPS ]}"
                             map="{myMap}"
                             respectCurrentMapScale="true"/>                 
            </s:VGroup>   
        </s:BorderContainer>   
    <!-- Map Window ~~~~~~~~~~~~~~~ -->       
        <s:BorderContainer id="mapBorder"
                           left="352" right="3" top="200" bottom="3"
                           borderColor="#808080"
                           borderWeight="2" cornerRadius="5">
            <esri:Map id="myMap" left="0" right="0" top="0" bottom="0" wrapAround180="true" logoVisible="false">
                <esri:extent>
                    <esri:Extent id="washco"
                                 xmin="7565269.4485383" ymin="657281.31999349" xmax="7607044.62214942" ymax="696603.368604601">   
                        <esri:SpatialReference wkid="2269"/>       
                    </esri:Extent>   
                </esri:extent>
                <esri:ArcGISTiledMapServiceLayer id="basemap"
                                                 url="http://......../Washco_primary_basemap_SP/MapServer"/>
                <esri:ArcGISTiledMapServiceLayer id="photo"
                                                 url="http://......../Orthos_2010_SP/MapServer"
                                                 visible="false"/>
                <esri:ArcGISDynamicMapServiceLayer id="bikelaneMapServer"
                                                   name=" "
                                                   visible="false"
                                                   url="http://........DOE_Bikelane/MapServer"/>
                <esri:ArcGISDynamicMapServiceLayer id="sidewalkMapServer"
                                                   name=" "
                                                   visible="false"
                                                   url="http://......../DOE_Sidewalk/MapServer"/>
                <esri:ArcGISDynamicMapServiceLayer id="OPS"
                                                   name=" "
                                                   visible="false"
                                                   url="http://........Watershed_Enhance/MapServer"/>   
                <esri:FeatureLayer id="sidewalkComments"
                                   mode="snapshot"
                                   visible="false"
                                   url="http://........./SidewalkComment/FeatureServer/0"/>
                <!--
                outFields="[Comment, entered]"
                -->
                <esri:FeatureLayer id="bikelaneComments"
                                   mode="snapshot"
                                   visible="false"
                                   url="http://......../FeatureServer/0"/>
                <!--
                outFields="[Comment, entered]"
                -->
                <esri:GraphicsLayer id="myGraphicsLayer"/>
            </esri:Map>
    </s:Application>

    Hi Kiran,
    U can use ItemRenderer to show button inside a cell of datagrid..!
    either inline ItemRenderer or external ItemRenderer as per your conveninent.
    sample:
    <mx:DataGrid>
    <mx:DataGridColumn headerText="Title" dataField="title">
                <mx:itemRenderer>
                    <mx:Component>
                            <mx:Button lable="Add" width="50" height="50"/>
                    </mx:Component>
                </mx:itemRenderer>
            </mx:DataGridColumn>
    </mx:DataGrid>
    Go Through this link : http://www.adobe.com/devnet/flex/articles/itemrenderers_pt1.html
    Thanks,
    Pradeep

  • Suggestions?  How to properly "nest" components/share code

    Hello,
    I have a situation with nested components like this:
    Application (STATE1)
    -----Component_A (STATE2)
    ----------Component_B (STATE2)  <--most of the action is here-->
    ---------------Component_C (STATE2)
    My main problem is that Component_C works fine by itself to control its own properties and methods, but I need it to also dynamically control some TextArea properties (such as visibility) in Component_B.  However, the objects in Component_B are not "know" by the code I use (AS file) to control Component_C.  I'm considering not using Component_C, and just integrating the rectangle/text/buttons box into Component_B, but this will "deModularize" my app which will have about 200 Component_Bs, thus causing me to re-create Component_C (about 200 times) as a object, rather than a component inside Component_B.
    Thanks for taking time to read this - I realize it is lengthy.
    Doug

    NEVER EVER EVER EVER use view classes as controllers or presenters of other view classes .  I've still got shrapnel in my leg from the last project where that was the main design theme.
    If you need to manage view classes you can make presenters, which have no knowledge of the view class.  It's very easy to do especially with Flex's databing (including two-way).  Or you may opt out for a controller, by adding an interface to the Component B/Component C tandem. That way if you do decide to make C part of B you don't break everything.

  • How to stored data after clicking checkbox in data base table

    REPORT  ZT                                      .
    TYPE-pools: slis.
    tables:mkpf,mseg,mard,COWB_COMP,ZTABLE.
    Types:BEGIN OF tp_data,
         mblnr LIKE mseg-mblnr,
         matnr LIKE mseg-matnr,
         werks LIKE mard-werks,
         lgort LIKE mard-lgort,
         lgpbe LIKE mard-lgpbe,
         charg LIKE mseg-charg,
         bwart LIKE mseg-bwart,
         budat LIKE mkpf-budat,
         menge LIKE mseg-menge,
         meins LIKE mseg-meins,
         kostl LIKE mseg-kostl,
         aufnr LIKE mseg-aufnr,
         rsnum LIKE mseg-rsnum,
         endkz like COWB_COMP-endkz,
    END OF tp_data,
    tp_tbl_data TYPE STANDARD TABLE OF tp_data.
    MODIFIED*******************
    DATA: WA TYPE TP_DATA.
    MODIFIED*******************
    *data: t_data like Y00_MM_ISSUE_DAT occurs 0 with header line.
    Constants
    Data objects (variable declarations and definitions)
    Report data to be shown.
    DATA: it_data TYPE STANDARD TABLE OF tp_data.
    MODIFIED*******************
    DATA : V_REPID LIKE SY-REPID.
    MODIFIED*******************
    Heading of the report.
    DATA: t_heading TYPE slis_t_listheader.
    *========================== Selection Screen
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS:smblnr FOR mseg-mblnr MODIF ID m1,
                  smatnr FOR mseg-matnr MODIF ID m2,
                  swerks FOR mard-werks MODIF ID m3,
                  slgort FOR mard-lgort MODIF ID m4,
                  slgpbe FOR mard-lgpbe MODIF ID m5,
                  scharg FOR mseg-charg MODIF ID m6,
                  sbwart FOR mseg-bwart MODIF ID m7,
                  skostl FOR mseg-kostl MODIF ID m8,
                  saufnr FOR mseg-aufnr MODIF ID m9,
                  srsnum FOR mseg-rsnum MODIF ID m10.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS:pre RADIOBUTTON GROUP radi USER-COMMAND ucomm DEFAULT 'X',
              pse RADIOBUTTON GROUP radi,
              bps RADIOBUTTON GROUP radi.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
    PARAMETER:layout TYPE i.
    SELECTION-SCREEN END OF BLOCK b3.
    MODIFIED*******************
    INITIALIZATION.
    V_REPID = sy-repid.
    MODIFIED*******************
    *=========================== Event Blocks
    AT selection-SCREEN.
    start-OF-selection.
    PERFORM get_data USING it_data.
    END-OF-selection.
    PERFORM build_alv USING it_data t_heading.
    *=========================== Subroutines
    *&      Form  get_data
          Gets the information to be shown in the report.
    FORM get_data USING t_data TYPE tp_tbl_data.
    SELECT msegmblnr msegmatnr mardwerks mardlgort mard~lgpbe
    msegcharg msegbwart mkpf~budat
       msegmenge  msegmeins msegkostl msegaufnr mseg~rsnum
    INTO CORRESPONDING FIELDS OF TABLE t_data
    FROM mseg
    JOIN mard ON mardmatnr EQ msegmatnr
                  JOIN mkpf ON msegmblnr EQ mkpfmblnr
                  WHERE mseg~matnr IN smatnr.
    ENDFORM.                    " get_data
    *&      Form  build_alv
          Builds and display the ALV Grid.
    FORM build_alv USING t_data TYPE tp_tbl_data
         t_heading  TYPE slis_t_listheader.
    ALV required data objects.
    DATA: w_title   TYPE lvc_title,
           w_comm    TYPE slis_formname,
           w_status  TYPE slis_formname,
           x_layout  TYPE slis_layout_alv,
           t_event    TYPE slis_t_event,
           t_fieldcat TYPE slis_t_fieldcat_alv,
           t_sort     TYPE slis_t_sortinfo_alv.
    REFRESH t_fieldcat.
    REFRESH t_event.
    REFRESH t_sort.
    CLEAR x_layout.
    CLEAR w_title.
    Field Catalog
    PERFORM set_fieldcat2 USING:
           1 'MBLNR' 'MBLNR' 'MSEG' space space space space space space
    space space space space space space t_fieldcat ,
           2 'MATNR' 'MATNR' 'MSEG' space space space space space space
    space space space space space space  t_fieldcat ,
           3 'WERKS' 'WERKS' 'MARD' space space space space space space
    space space space space space space  t_fieldcat,
           4 'LGORT' 'LGORT' 'MARD' space space space space space space
    space space space space space space t_fieldcat ,
           5 'LGPBE' 'LGPBE' 'MARD' space space space space space space
    space space space space space space t_fieldcat ,
           6 'CHARG' 'CHARG' 'MSEG' space space space space space space
    space space space space space space t_fieldcat ,
           7 'BWART' 'BWART' 'MSEG' space  space space space space space
    space space space space space space t_fieldcat,
           8 'BUDAT' 'BUDAT' 'MKPF' space  space space space space space
    space space space space space space t_fieldcat,
           9 'MENGE' 'MENGE' 'MSEG' space  space space space space space
    space space space space space space t_fieldcat,
           10 'MEINS' 'MEINS' 'MSEG' space  space space space space space
    space space space space space space t_fieldcat,
           11 'KOSTL' 'KOSTL' 'MSEG' space  space space space space space
    space space space space space space t_fieldcat,
           12 'AUFNR' 'AUFNR' 'MSEG' space  space space space space space
    space space space space space space t_fieldcat,
           13 'RSNUM' 'RSNUM' 'MSEG' space  space space space space space
    space space space space space space t_fieldcat,
       14 'ENDKZ' 'ENDKZ' 'COWB_COMP' space space 'select' 'Select this row' 'Sel' 'Select this row' space space space 'X' 'X' space t_fieldcat.
    Layout
    x_layout-zebra = 'X'.
    Top of page heading
    PERFORM set_top_page_heading USING t_heading t_event.
    Events
    PERFORM set_events USING t_event.
    GUI Status
    w_status = ''.
    User commands
    w_comm   = 'USER_COMMAND'.
    Order
    Example
    PERFORM set_order USING '<field>' 'IT_DATA' 'X' space space t_sort.
    PERFORM set_order USING 'MBLNR' 'IT_DATA' 'X' space 'X' t_sort.
    PERFORM set_order USING 'EBELN' 'IT_DATA' 'X' space 'X' t_sort.
    PERFORM set_order USING 'EBELP' 'IT_DATA' 'X' space space t_sort.
    Displays the ALV grid
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
       i_callback_program       = V_REPID
       it_fieldcat              = t_fieldcat
       is_layout                = x_layout
       it_sort                  = t_sort
       i_callback_pf_status_set = w_status
       i_callback_user_command  = w_comm
       i_save                   = 'X'
       it_events                = t_event
       i_grid_title             = w_title
    TABLES
       t_outtab                 = t_data
    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.                    " build_alv.
    *&      Form  set_top_page_heading
          Creates the report headings.
    FORM set_top_page_heading USING t_heading TYPE slis_t_listheader
         t_events  TYPE slis_t_event.
    DATA: x_heading TYPE slis_listheader,
           x_event   TYPE LINE OF slis_t_event.
    Report title
    CLEAR t_heading[].
    CLEAR x_heading.
    x_heading-typ = 'H'.
    x_heading-info = 'Reporte Prueba'(001).
    APPEND x_heading TO t_heading.
    Program name
    CLEAR x_heading.
    x_heading-typ = 'S'.
    x_heading-KEY = 'Program: '.
    x_heading-info = sy-repid.
    APPEND x_heading TO t_heading.
    User who is running the report
    CLEAR x_heading.
    x_heading-typ = 'S'.
    x_heading-KEY = 'User: '.
    x_heading-info = sy-uname.
    APPEND x_heading TO t_heading.
    Date of execution
    CLEAR x_heading.
    x_heading-typ = 'S'.
    x_heading-KEY = 'Date: '.
    WRITE sy-datum TO x_heading-info.
    APPEND x_heading TO t_heading.
    Time of execution
    CLEAR x_heading.
    x_heading-typ = 'S'.
    x_heading-KEY = 'Time: '.
    WRITE sy-uzeit TO x_heading-info.
    APPEND x_heading TO t_heading.
    Top of page event
    x_event-name = slis_ev_top_of_page.
    x_event-FORM = 'TOP_OF_PAGE'.
    APPEND x_event TO t_events.
    ENDFORM.
    *&      Form  set_events
          Sets the events for ALV.
          The TOP_OF_PAGE event is alredy being registered in
          the set_top_page_heading subroutine.
    FORM set_events USING t_events TYPE slis_t_event.
    DATA: x_event   TYPE LINE OF slis_t_event.
    Example
    clear x_event.
    x_event-name = .
    x_event-form = .
    append x_event to t_event.
    ENDFORM.
    *&      Form  set_order
          Adds an entry to the order table.
    FORM set_order USING p_fieldname p_tabname p_up p_down p_subtot
         t_sort TYPE slis_t_sortinfo_alv.
    DATA: x_sort TYPE slis_sortinfo_alv.
    CLEAR x_sort.
    x_sort-fieldname = p_fieldname.
    x_sort-tabname   = p_tabname.
    x_sort-UP = p_up.
    x_sort-down = p_down.
    x_sort-subtot = p_subtot.
    APPEND x_sort TO t_sort.
    ENDFORM.                    "set_order
    *&      Form  set_fieldcat2
          Adds an entry to the field catalog.
    FORM set_fieldcat2 USING p_colpos p_fieldname p_ref_fieldname
    p_ref_tabname
         p_outputlen p_noout
         p_seltext_m p_seltext_l p_seltext_s p_reptext_ddic p_ddictxt
         p_hotspot p_showasicon p_checkbox p_edit
         p_dosum
         t_fieldcat TYPE slis_t_fieldcat_alv.
    DATA: wa_fieldcat TYPE slis_fieldcat_alv.
    CLEAR wa_fieldcat.
    General settings
    wa_fieldcat-fieldname = p_fieldname.
    wa_fieldcat-col_pos = p_colpos.
    wa_fieldcat-no_out = p_noout.
    wa_fieldcat-HOTSPOT = p_hotspot.
    wa_fieldcat-CHECKBOX = p_checkbox.
    wa_fieldcat-ICON = p_showasicon.
    wa_fieldcat-do_sum = p_dosum.
    Set reference fieldname, tablenam and rollname.
    If p_ref_tabname is not given, the ref_fieldname given is a data
    *element.
    If p_ref_tabname is given, the ref_fieldname given is a field of a
    *table. In case ref_fieldname is not given, it is copied from the
    *fieldname.
    IF p_ref_tabname IS INITIAL.
       wa_fieldcat-rollname =   p_ref_fieldname.
    ELSE.
       wa_fieldcat-ref_tabname = p_ref_tabname.
       IF p_ref_fieldname EQ space.
         wa_fieldcat-ref_fieldname =   wa_fieldcat-fieldname.
       ELSE.
         wa_fieldcat-ref_fieldname =   p_ref_fieldname.
       ENDIF.
    ENDIF.
    Set output length.
    IF NOT p_outputlen IS INITIAL.
       wa_fieldcat-outputlen = p_outputlen.
    ENDIF.
    Set text headers.
    IF NOT p_seltext_m IS INITIAL.
       wa_fieldcat-seltext_m = p_seltext_m.
    ENDIF.
    IF NOT p_seltext_l IS INITIAL.
       wa_fieldcat-seltext_l = p_seltext_l.
    ENDIF.
    IF NOT p_seltext_s IS INITIAL.
       wa_fieldcat-seltext_s = p_seltext_s.
    ENDIF.
    IF NOT p_reptext_ddic IS INITIAL.
       wa_fieldcat-reptext_ddic = p_reptext_ddic.
    ENDIF.
    IF NOT p_ddictxt IS INITIAL.
       wa_fieldcat-ddictxt = p_ddictxt.
    ENDIF.
    Set as editable or not.
    IF NOT p_edit IS  INITIAL.
       wa_fieldcat-INPUT     = 'X'.
       wa_fieldcat-EDIT     = 'X'.
    ENDIF.
    APPEND wa_fieldcat TO t_fieldcat.
    ENDFORM.                   "set_fieldcat2
    *&      Form  top_of_page
          Called on top_of_page ALV event.
          Prints the heading.
    FORM top_of_page.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
         i_logo             = 'TRVPICTURE04'
       it_list_commentary = t_heading.
    ENDFORM.                    " alv_top_of_page
    *&      Form  user_command
          Called on user_command ALV event.
          Executes custom commands.
    FORM user_command USING r_ucomm     LIKE sy-ucomm
         rs_selfield TYPE slis_selfield.
    case sy-ucomm.
    WHEN '&DATA_SAVE'.
    LOOP AT IT_DATA INTO WA WHERE ENDKZ = 'X'.
       IF WA-ENDKZ = 'X'.
    *******MODIFIED*********************************
    U DELETE THIS CODE N USER UR INSERT CODE TO CHECK
    SY-MSGV1 = WA-MBLNR.                              " U CAN DELETE
    SY-MSGV2 = WA-MATNR.                              " U CAN DELETE
    MESSAGE ID 'BC_BOR' TYPE 'I' NUMBER '888'          " U CAN DELETE
            WITH SY-MSGV1 SY-MSGV2. " U CAN DELETE
    *******MODIFIED*********************************
       INSERT ZTABLE.
       ENDIF.
    endloop.
    ENDCASE.
    ENDFORM.                    "user_command
    this is my code, database will stored in fields only.data is empty,
    how to slove that one,send any sugestion.

    Hi Lakshmi,
           Can u explain briefly what is ur requirement. U mean to say that after clicking the checkbox in data base table or Screen?
    Regards,
      Jayaram...

  • Fetch the values from internal table inside an internal table (urgent!!)

    data : BEGIN OF PITB2_ZLINFO occurs 0,
             BEGDA LIKE SY-DATUM,
             ENDDA LIKE SY-DATUM,
             PABRJ(4) TYPE N,                       "Payroll Year
             PABRP(2) TYPE N,                       "Pay. Period
             ZL LIKE PC2BF OCCURS 0,
           END OF PITB2_ZLINFO.
    I have a internal table like this,
    How to Fetch the values from internal table inside an internal table.
    Kindly Help me on this..
    Regards,
    Ram.

    Hi,
    Try this....
    Loop at PITB2_ZLINF0.
    Loop at PITB2_ZLINF0-ZL.
    endloop.
    Endloop.
    Thanks...
    Preetham S

  • How to use one hash table inside another hash table

    Hi everyone,
    Any example of hash table inside another hash table.
    Can one here help me how to write one hash table inside another with repeating keys for the first hash table.
    Thanks,
    kanty.

    Do you mean you want the 'value' entries in a hash table to themselves be hash tables? Easy but this often indicates a design flaw.
    Hashtable<String,<Hashtable<String,Value>> fred = new Hashtable<String,<Hashtable<String,Value>> ();But what do you mean by "with repeating keys for the first hash table"?
    Edited by: sabre150 on Jul 2, 2010 10:11 PM
    Looks like you have already handled the declaration side in your other thread. I suspect you should be writing your own beans that hold the information and these beans would then be stored in a Map. The problem I have is that your description is too vague so I can't be certain.

  • How to delete the data inside a internal table?

    I got a internal table name g_itab1.
    currently my g_itab1 has a FNAME(50) component.
    Inside my component there is ADMINO, EYEAR, FIRSTNAME, LASTNAME and CONTACT.
    I want to clear away ADMINO, EYEAR, FIRSTNAME, LASTNAME and CONTACT inside my internal table.
    How do i clear it? i have tried using CLEAR g_itab1.
    It doesn't work.. the data are still inside.

    hi
                    DELETE TABLE itab WITH TABLE KEY k1 = v1 ... kn = vn.
    Example to delete all of the lines between 5 and 36 in a table of names where the entry begins with one of the letters 'A' to 'C'.
             DELETE  itab  FROM 5 TO 36 WHERE NAME CA 'ABC'.
    reward if useful
    regards
    sree

  • Command node inside the dynamic table

    Hi experts,
    I have a problem regarding on using a command node inside a dynamic table in main window.. I tried inserting a command node in the header of the table then when running my print program i will receive an exception = 2 which is internal error and when i tried to execute the smartform using its FM it will have an error saying 'No explicit page break possible in tables'. I also tried putting the command node in nodes MAIN AREA and FOOTER.
    Here's the question.
    How can i explicitly put page break while i'm looping in a table?
    higheest rewards if successful.
    thanks in advance.

    Use a command line node and put
    BREAK-POINT.
    in that node, save and activate.  I have only put such a node in the main section of a table but I don't see why you couldn't put one in the header or footer as well.
    Davis

  • Events/Selections in nested components

    Hi All,
    I'm having difficulty trying to understand how to pass events to nested components.
    I am working with the following hierarchy:
    JScrollPane contains JList which contains JScrollPane(s), each with a JList.
    Imagine a scrollable list of TV-program categories. Each category is itself a scrollable list of channels. I am able to scroll through the list of categories, but when I select a category, I'd like to be able to scroll through the list of channels.
    Any help would be appreciated.
    Thanks,
    Pete

    JScrollPane contains JList which contains JScrollPane(s), each with a JList.
    Imagine a scrollable list of TV-program categories. Each category is itself a scrollable list of channelsSounds more like a JTree to me.
    db

  • Getting some kind of iterator inside a data table

    Hi.
    Inside a data table, I want to get the current value of some kind of iterator so I can print it in front of each row.
    How to do this?
    Thanks.

    I see, you just want to add row numbers. Use HtmlDataTable#rowIndex(). That is definately not an Iterator by the way.
    Also see "Add row numbers" section of http://balusc.blogspot.com/2006/06/using-datatables.html

  • How to nest Checkbox inside Datacolumn

    Dear all,
    Usually we embed a checkbox in a list of row in table. How do
    I achieve this in Flex? Since in DataColumn I can not nest a
    Checkbox component. Any examples would be great.
    Thanks in advance.

    "thejavafreak" <[email protected]> wrote in
    message
    news:gf42mi$pcm$[email protected]..
    > Dear all,
    >
    > Usually we embed a checkbox in a list of row in table.
    How do I achieve
    > this
    > in Flex? Since in DataColumn I can not nest a Checkbox
    component. Any
    > examples
    > would be great.
    >
    > Thanks in advance.
    http://www.returnundefined.com/2006/11/creating-truly-reusable-renderers-with-classfactory

  • How to remove multiple components border inside a single table column cell

    Hi,
    I'm adding multiple components to a table cell. To provide a good layout I'm using the following component hierarchy in a table column - table-->groupPanel--> gridPanel-->staticText Components 1 ..2 ..3. Now when I do preview in browser or run the app, the table shows up fine, but textComponent s(1,2,3) in the column are each surrounded by a border (which is the width of gridPanel border). Is there a way to get rid of this border?
    This only occurs when you add multiple components in table cell, under gridpanel layout component.
    I've tried searching for a way to remove the grid pane layout component border but couldn't find any info. Used style class border setting to not set but that doesn't help either. I checked forums, tutorial, learning sections etc., but no success. Any help or direction is appreciated..
    Thanks
    -Vinod

    Hi ,
    Can you please post the query ..what u have tried ...
    SQL&gt; select sub from coa1;
    SUB
    XY
    XY
    XY
    XY
    XY
    HXY
    HXY
    HXY
    8 rows selected.
    SQL&gt; select obj from coa1;
    OBJ
    AM
    AM
    AM
    AK
    AK
    AK
    ATK
    ATK
    8 rows selected.
    SQL&gt; SELECT OBJ FROM COA1
    2 UNION ALL
    3 SELECT SUB FROM COA1;
    OBJ
    AM
    AM
    AM
    AK
    AK
    AK
    ATK
    ATK
    XY
    XY
    XY
    OBJ
    XY
    XY
    HXY
    HXY
    HXY
    16 rows selected.
    SQL&gt; insert into coa2 (obj)
    2 (
    3 SELECT OBJ FROM COA1
    4 UNION ALL
    5 SELECT SUB FROM COA1
    6 );
    16 rows created.
    SQL&gt; select * from coa2;
    OBJ SUB MCU DOC F
    AM
    AM
    AM
    AK
    AK
    AK
    ATK
    ATK
    XY
    XY
    XY
    OBJ SUB MCU DOC F
    XY
    XY
    HXY
    HXY
    HXY
    16 rows selected.
    SQL&gt;
    i tried the same it worked fine .....
    so u can combine select and insert statements .. you can get the required result.....!
    Thanks
    Ananda
    Edited by: Ananda on Feb 2, 2009 7:38 PM
    Edited by: Ananda on Feb 2, 2009 7:52 PM

  • Need help: checkbox or radiobutton in table cell

    So basically i am looking for code samples or links to where i can find an implementation of 2 or 3 radiobuttons or checkboxes in a table cell/column, so that for each row, i can have a selection of A, B or C for a particular string in the first column. I can create a table with one checkbox, but i cant figure out 2 or more inside the same cell.
    thanks :)

    The JTable tutorial has a section titled "Using a Combo Box as an Editor". Take a look at their example for how to do this.
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html

  • Nested Datatables and checkbox trouble

    Hi,
    i am having a datatable with 3 rows mapping to a column in the database table..now i have another datatable inside the previous datatable mapping to another column in the database.... i am able to fetch the values from the database and populate in the 2 datatables.my first datatable has one column and it is a component label.my second datatable has 4 columns..a select many checkboxes,a component label,and 2 text fields.
    Now the problem comes when i need to save the values that are being entered in the datatable..how do i get the values of the checkbox and the textfields and update in the database.and remember i need to get the values of all the components in both the datatables and update in the database...my JSP code and the backing bean codes are as follows.......pls help me with this problem
    JSP Code:
    <h:dataTable binding="#{AttributeSelection.uiTable2}" id="dataTable2" rowClasses="form"
    value="#{AttributeSelection.arrayDataModel}" var="currentRow1">
    <h:column binding="#{AttributeSelection.column5}" id="column5">
    <h:outputText binding="#{AttributeSelection.outputText1}" id="outputText1" value=""/>
    <f:facet name="header"/>
    <h:dataTable binding="#{AttributeSelection.uiTable1}" border="1" headerClass="form_bold"
    id="dataTable1" rowClasses="form" value="#{currentRow1['attributes']}" var="currentRow">
    <h:column binding="#{AttributeSelection.column1}" id="column1">
    <h:selectBooleanCheckbox binding="#{AttributeSelection.checkbox1}" id="checkbox1" value="#{currentRow.checkbox1}"/>
    <f:facet name="header"/>
    </h:column>
    <h:column binding="#{AttributeSelection.column2}" id="column2">
    <h:outputText binding="#{AttributeSelection.outputText3}" id="outputText3" value="#{currentRow['name']}"/>
    <f:facet name="header">
    <h:outputText binding="#{AttributeSelection.outputText4}" id="outputText4"
    style="height: 23px; width: 50%" styleClass="form_bold" value="#{currentRow1['category']}"/>
    </f:facet>
    </h:column>
    <h:column binding="#{AttributeSelection.column3}" id="column3">
    <h:inputText binding="#{AttributeSelection.textField1}" id="textField1"
    style="height: 24px; width: 65%" styleClass="input" value="#{currentRow['defaultMin']}"/>
    <f:facet name="header">
    <h:outputText binding="#{AttributeSelection.outputText8}" id="outputText8" value="Min"/>
    </f:facet>
    </h:column>
    <h:column binding="#{AttributeSelection.column4}" id="column4">
    <h:inputText binding="#{AttributeSelection.textField2}" id="textField2"
    style="height: 24px; width: 65%" styleClass="input" value="#{currentRow['defaultMax']}"/>
    <f:facet name="header">
    <h:outputText binding="#{AttributeSelection.outputText9}" id="outputText9" style="" value="Max"/>
    </f:facet>
    </h:column>
    </h:dataTable>
    </h:column>
    </h:dataTable>
    Backing Bean Code:
    * AttributeSelection1.java
    * Created on January 23, 2006, 10:46 AM
    * Copyright Sidharth_Mohan
    package tpalt;
    import com.equifax.ems.tpalt.order.dao.OrderDataDAO;
    import javax.faces.*;
    import com.sun.jsfcl.app.*;
    import javax.faces.component.html.*;
    import com.sun.jsfcl.data.*;
    import java.util.ArrayList;
    import javax.faces.component.*;
    import javax.faces.model.ArrayDataModel;
    import com.equifax.ems.tpalt.order.model.OrderAttribute;
    import com.equifax.ems.tpalt.order.model.OrderCategory;
    import com.sun.faces.el.MethodBindingImpl;
    import java.util.Iterator;
    import java.util.Map;
    import javax.faces.application.Application;
    import javax.faces.context.FacesContext;
    import javax.faces.el.MethodBinding;
    public class AttributeSelection extends AbstractPageBean {
    * Bean initialization.
    // </editor-fold>
    public AttributeSelection() {
    // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Initialization">
    try {
    } catch (Exception e) {
    log("AttributeSelection Initialization Failure", e);
    throw e instanceof javax.faces.FacesException ? (FacesException) e : new FacesException(e);
    // </editor-fold>
    // Additional user provided initialization code
    protected tpalt.ApplicationBean1 getApplicationBean1() {
    return (tpalt.ApplicationBean1)getBean("ApplicationBean1");
    protected tpalt.SessionBean1 getSessionBean1() {
    return (tpalt.SessionBean1)getBean("SessionBean1");
    // </editor-fold>
    * Bean cleanup.
    protected void afterRenderResponse() {
    }private int __placeholder;
    private HtmlForm form1 = new HtmlForm();
    public HtmlForm getForm1() {
    return form1;
    public void setForm1(HtmlForm hf) {
    this.form1 = hf;
    public UIData uiTable1 = new UIData();
    * Getter for property uiTable.
    * @return Value of property uiTable.
    public UIData getUiTable1() {
    return uiTable1;
    * Setter for property uiTable.
    * @param uiTable New value of property uiTable.
    public void setUiTable1(UIData uiTable1) {
    this.uiTable1 = uiTable1;
    private UIColumn column1 = new UIColumn();
    public UIColumn getColumn1() {
    return column1;
    public void setColumn1(UIColumn uic) {
    this.column1 = uic;
    private UIColumn column5 = new UIColumn();
    public UIColumn getColumn5() {
    return column5;
    public void setColumn5(UIColumn uic) {
    this.column5 = uic;
    private HtmlOutputText outputText1 = new HtmlOutputText();
    public HtmlOutputText getOutputText1() {
    return outputText1;
    public void setOutputText1(HtmlOutputText hot) {
    this.outputText1 = hot;
    public UIData uiTable2 = new UIData();
    * Getter for property uiTable.
    * @return Value of property uiTable.
    public UIData getUiTable2() {
    return uiTable2;
    * Setter for property uiTable.
    * @param uiTable New value of property uiTable.
    public void setUiTable2(UIData uiTable2) {
    this.uiTable2 = uiTable2;
    private ArrayDataModel arrayDataModel = new ArrayDataModel();
    public ArrayDataModel getArrayDataModel() {
    ArrayList orderList =new ArrayList();
    OrderDataDAO orderData =new OrderDataDAO();
    ArrayList orderCategories = new ArrayList();
    try
    orderList = (ArrayList) orderData.getAllAttributes();
    for (int i =0;i<orderList.size();i++)
    OrderAttribute or =(OrderAttribute)orderList.get(i);
    //or.setCheckbox1(true);
    String category = (String)or.getCategory();
    OrderCategory orderCategory = new OrderCategory();
    ArrayList attributesforCategory = new ArrayList();
    for (int j = i;j<orderList.size();j++){
    OrderAttribute ora =(OrderAttribute)orderList.get(j);
    if (category.equals(ora.getCategory())){
    attributesforCategory.add(ora);
    orderList.remove(j);
    j = i;
    orderCategory.setCategory(category);
    orderCategory.setAttributes(attributesforCategory);
    orderCategories.add(orderCategory);
    //dataTable2Model.setWrappedData(orderCategories);
    arrayDataModel = new ArrayDataModel(orderCategories.toArray());
    catch (Exception ex) {
    return arrayDataModel;
    public void setArrayDataModel(ArrayDataModel dtdm) {
    this.arrayDataModel = dtdm;
    private UIColumn column2 = new UIColumn();
    public UIColumn getColumn2() {
    return column2;
    public void setColumn2(UIColumn uic) {
    this.column2 = uic;
    private HtmlOutputText outputText3 = new HtmlOutputText();
    public HtmlOutputText getOutputText3() {
    return outputText3;
    public void setOutputText3(HtmlOutputText hot) {
    this.outputText3 = hot;
    private UIColumn column3 = new UIColumn();
    public UIColumn getColumn3() {
    return column3;
    public void setColumn3(UIColumn uic) {
    this.column3 = uic;
    private HtmlOutputText outputText4 = new HtmlOutputText();
    public HtmlOutputText getOutputText4() {
    return outputText4;
    public void setOutputText4(HtmlOutputText hot) {
    this.outputText4 = hot;
    private UIColumn column4 = new UIColumn();
    public UIColumn getColumn4() {
    return column4;
    public void setColumn4(UIColumn uic) {
    this.column4 = uic;
    private HtmlOutputText outputText8 = new HtmlOutputText();
    public HtmlOutputText getOutputText8() {
    return outputText8;
    public void setOutputText8(HtmlOutputText hot) {
    this.outputText8 = hot;
    private HtmlOutputText outputText9 = new HtmlOutputText();
    public HtmlOutputText getOutputText9() {
    return outputText9;
    public void setOutputText9(HtmlOutputText hot) {
    this.outputText9 = hot;
    public UIInput textField1 = new UIInput();
    public UIInput getTextField1() {
    return textField1;
    public void setTextField1(UIInput hit) {
    this.textField1 = hit;
    public UIInput textField2 = new UIInput();
    public UIInput getTextField2() {
    return textField2;
    public void setTextField2(UIInput hit) {
    this.textField2 = hit;
    public UISelectBoolean checkbox1 = new UISelectBoolean();
    public UISelectBoolean getCheckbox1() {
    return checkbox1;
    public void setCheckbox1(UISelectBoolean hsbc) {
    this.checkbox1 = hsbc;
    public String save_action() {
    try{
    java.lang.System.out.println("><<<<<<<<<<<<<<<Button Came><<<<<<<<<<<<<<<<<<>>>>>>>");
    java.lang.System.out.println("====================Welcome to the Button action======================");
    int firstIndex = uiTable2.getFirst();
    int rows = uiTable2.getRowCount();
    java.lang.System.out.println("----------------------FIRST INDEX-----------------------"+firstIndex);
    java.lang.System.out.println("----------------------ROWS-----------------------"+rows);
    ArrayList orderAttribs = orderCat.getAttributes();
    Iterator it = orderAttribs.iterator();
    while(it.hasNext())
    OrderAttribute currentAttribute = (OrderAttribute) it.next();
    java.lang.System.out.println("==================String Value===================" + currentAttribute.getCheckbox1());
    java.lang.System.out.println("==================String Value===================" + currentAttribute.getName());
    java.lang.System.out.println("==================String Value===================" + currentAttribute.getDefaultMin());
    java.lang.System.out.println("==================String Value===================" + currentAttribute.getDefaultMax());
    catch (Exception e) {
    e.printStackTrace();
    return "Test";
    private HtmlCommandButton save = new HtmlCommandButton();
    public HtmlCommandButton getSave() {
    return save;
    public void setSave(HtmlCommandButton hcb) {
    this.save = hcb;
    Please Reply me with this solution soon.............
    Thanx
    }

    Hi Tabitha,
    You have mentioned extraction of data from two database tables. Can those two tables be joined to put the data in one single table component?
    Cheers
    Giri

  • Nested Repeat Region (How to convert from table to list)

    Sorry, i am really no PHP hero :-(
    i created a menu with the "nested repeat region" wizzard. Now i want to change the HTML from TABLE to LIST.
    I thought i just need to delete <table>- and <td>-tags, replace <tr> with <ul> and that's it. (But ist's NOT!)
    This is my code:
    ------- START ----------------
    <ul id="nav">
          <?php do { ?>      
              <li><?php echo $row_master1waa_page_top['top_name']; ?></li>
            <?php
      if ($totalRows_master1waa_page_top>0) {
        $nested_query_detail2waa_page_sub = str_replace("123456789", $row_master1waa_page_top['id_top'], $query_detail2waa_page_sub);
        mysql_select_db($database_WAA);
        $detail2waa_page_sub = mysql_query($nested_query_detail2waa_page_sub, $WAA) or die(mysql_error());
        $row_detail2waa_page_sub = mysql_fetch_assoc($detail2waa_page_sub);
        $totalRows_detail2waa_page_sub = mysql_num_rows($detail2waa_page_sub);
        $nested_sw = false;
        if (isset($row_detail2waa_page_sub) && is_array($row_detail2waa_page_sub)) {
          do { //Nested repeat
    ?>
              <ul>
                <li>  <?php echo $row_detail2waa_page_sub['sub_head']; ?></li>
              </ul>
              <?php
          } while ($row_detail2waa_page_sub = mysql_fetch_assoc($detail2waa_page_sub)); //Nested move next
    ?>
            <?php } while ($row_master1waa_page_top = mysql_fetch_assoc($master1waa_page_top)); ?>
    </ul>  
    ------- END -----
    The problem is located in line 3. the result is a list like this:
    <ul id="nav">
         <li>xxx</li>
         <li>xxx</li>
              <ul>
                    <li>xxx</li>
                    <li>xxx</li>
              </ul>
         <li>xxx</li>
    </ul>
    Of course it will not work. I need the nested list inserted like this:
    <ul id="nav">
         <li>xxx</li>
         <li>xxx
              <ul>
                    <li>xxx</li>
                    <li>xxx</li>
              </ul>
          </li>
         <li>xxx</li>
    </ul>
    Can someone please help me changing my code to get this result?

    Hi,
    I had trouble replying. I may be of some assistance until one of the Guru's get on.
    The whole thing works on loops based inside do and while
    EX.
    <?php
              do{    //end php, use html
    ?>
    I can repeat anthing here in HTML!
    <?php } while ( /* some critera exist ex: i<5 */      ); ?>
    so, your 'options' tag or LI' tags should only exist inside the first loop, check your { }
    The entire LIST  would repeat if you add the UL tags inside the nested loop area
    You may find it easier to reaplace the table with div tags and then indent the sub or nested loop with a class
    I don't have time to test this but try this:
    <ul id="nav">
    <ul>
    <?php do { ?>      
      <li><?php echo $row_master1waa_page_top['top_name']; ?></li>
    <?php
      if ($totalRows_master1waa_page_top>0) {
        $nested_query_detail2waa_page_sub = str_replace("123456789", $row_master1waa_page_top['id_top'], $query_detail2waa_page_sub);
        mysql_select_db($database_WAA);
        $detail2waa_page_sub = mysql_query($nested_query_detail2waa_page_sub, $WAA) or die(mysql_error());
        $row_detail2waa_page_sub = mysql_fetch_assoc($detail2waa_page_sub);
        $totalRows_detail2waa_page_sub = mysql_num_rows($detail2waa_page_sub);
        $nested_sw = false;
        if (isset($row_detail2waa_page_sub) && is_array($row_detail2waa_page_sub)) { ?>
       <ul>
      <?php  do { //Nested repeat ?>   
                   <li>  <?php echo $row_detail2waa_page_sub['sub_head']; ?></li>
            <?php } while ($row_detail2waa_page_sub = mysql_fetch_assoc($detail2waa_page_sub)); //Nested move next ?>
        </ul>
    <?php 
    ?>
            <?php } while ($row_master1waa_page_top = mysql_fetch_assoc($master1waa_page_top)); ?>
    </ul>
    Hit me back if its close but wonky..
    J

Maybe you are looking for

  • How to print all images in each page

    hi this is indela. developing print option in flex. in a folder i have 100 images. when click on print its going only one images. but i want to send all images to printer without displaying. the no. of images change dynamically. please tell me how to

  • What kind of monitor should I get for my Macbook Pro Retina?

    I bought a Macbook Pro Retina to replace my old 2007 Macbook. When I hook my Retina up to my Acer 1080p LED Monitor, it does not display in full quality. I assume this is due to the size of the graphics card inside the laptop. My old macbook displaye

  • Good software for music creation (?)

    I'm interested in ametour music creation on linux. I sometimes record some stuff with guitar using jack server, ardour and tuxguitar with fluidsynth for drums. Can you recommend me any other good quality software connected with music creation (virtua

  • CS 3 not accepting valid Serial #

    I had to reinstall Acrobat 8 and used my original install disks. I was in fact able to get a working copy of Acrobat 8 Professional installed and working on my machine. However, in the process of this installation, ALL of my Creative Suite Applicatio

  • New password pattern verification

    Need to develop a class that will verify new passwords against specific patterns. Such as requiring mixed case, at least one numeric character, not having the same character twice, etc. Think Oracle... Anyone done this sort of thing? Not sure where t