Dynamic Tabs with Dynamic Grids

Ask a Question related to Coldfusion Flash Integration, Design and Development.

  1. #1

    Default Dynamic Tabs with Dynamic Grids

    Hello all,

    I have what is probably a simple problem for you but not for this CF
    Neewbie.

    I am creating a tab form that has sub tabs, this part works no problem, and
    on the sub tab I need to display a cfgrid.

    Problem is when I make this dynamic, ie the parent tab gets it's name from a
    query and the sub tab(s) for that specific parent tab get it's/their name(s)
    from a query etc.

    I place a cfgrid statement in the middle of this and my flash form fails to
    load, I have heard that my problem is that my cfgrid has the same name for
    multiple instances and this cannot be.

    Ok then how do I make the name of the grid dynamic.I have tried to change
    the name to a variable by adding the pound signs inside the double quotes
    where the variable is equal to an id pulled from a query that populates the
    grid.

    Any suggestions here? I have very little hair left and what is left is
    turning gray!!

    Thanks for any help

    Jim


    Jim Schell Guest

  2. Similar Questions and Discussions

    1. dynamic drop downlists in an editable dynamic datagrid.
      How would we address a situation where we have to put dynamic drop downlists in an editable dynamic datagrid. So the scenario is to populate a...
    2. ANN: Learn to go dynamic with WebAssist Dynamic Site 101
      If you're a Dreamweaver Web designer looking to expand your skill set - and your earning potential - make the leap to dynamic Web sites with WA...
    3. dynamic menu system going to dynamic page
      please can someone help me - im at the end of my tether! ive got an access db. Its got a list of words that is to be a menu system stored in it....
    4. DYNAMIC Dropdown. How to stick on non dynamic choice?
      Environment: DreamweaverMX 2004, ASP, VBScript, mySQL I have a dropdown which is populated dynamically from a mySQL database plus a hand entered...
    5. Dynamic text box within dynamic movie clip
      I'm having a similar problem. On mine I noticed that although the text doesn't show and the border doesn't show, the cursor changes appropriately...
  3. #2

    Default Re: Dynamic Tabs with Dynamic Grids

    Forgot to add my template code:

    Here it is:


    <cfform format="flash">

    <!--- Query for Parent tabs --->
    <cfquery name = "GetParentTab" dataSource = "rules">
    SELECT RMSTab
    from Rules
    group by rmstab
    </cfquery>

    <cfformgroup type="tabnavigator" query="GetParentTab">

    <cfloop query="GetParentTab">

    <cfformgroup type="page" label="#GetParentTab.RMSTab#">

    <!--- Query for Sub tabs --->
    <cfquery name = "GetChildTab" dataSource = "rules">
    SELECT RMSSubTab
    from Rules
    where RMSTab = '#GetParentTab.RMSTab#'
    group by rmssubtab
    </cfquery>

    <cfformgroup type="tabnavigator" query="GetChildTab">

    <cfloop query="GetChildTab">
    <cfset VarGridName="#GetParentTab.RMSTab#"&"#GetChildTab. RMSSubTab#">
    <cfformgroup type="page" label="#GetChildTab.RMSSubTab#">



    <!--- Query for Rules --->
    <cfquery name="GetRules" datasource="rules">
    Select RuleFileName, RuleID
    from Rules
    where RMSSubTab ='#GetChildTab.RMSSubTab#'
    </cfquery>

    <cfloop query="Getrules">



    <!--- With the following three lines commented out the template work but
    the grid does not work and I get a blank screen --->
    <cfgrid name= "#GetRules.RuleID#" query="getrules" format="flash">
    <!--- <cfgridcolumn name="RuleFileName" header="Rule">
    --->
    <cfgridrow data="RuleFileName">
    </cfgrid>

    </cfloop>


    </cfformgroup>
    </cfloop>
    </cfformgroup>


    </cfformgroup>
    </cfloop>
    </cfformgroup>
    </cfform>

    "Jim Schell" <Jschell66@nospam.comcast.net> wrote in message
    news:ccudnTqF86fVFsDbnZ2dnUVZ_t6qnZ2d@comcast.com. ..
    > Hello all,
    >
    > I have what is probably a simple problem for you but not for this CF
    > Neewbie.
    >
    > I am creating a tab form that has sub tabs, this part works no problem,
    > and on the sub tab I need to display a cfgrid.
    >
    > Problem is when I make this dynamic, ie the parent tab gets it's name from
    > a query and the sub tab(s) for that specific parent tab get it's/their
    > name(s) from a query etc.
    >
    > I place a cfgrid statement in the middle of this and my flash form fails
    > to load, I have heard that my problem is that my cfgrid has the same name
    > for multiple instances and this cannot be.
    >
    > Ok then how do I make the name of the grid dynamic.I have tried to change
    > the name to a variable by adding the pound signs inside the double quotes
    > where the variable is equal to an id pulled from a query that populates
    > the grid.
    >
    > Any suggestions here? I have very little hair left and what is left is
    > turning gray!!
    >
    > Thanks for any help
    >
    > Jim
    >

    Jim Schell Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139