DataGrid dynamically with a Repeater

Hello,
I would like to create a DataGrid component that is created
dynamically with the help of a Repeater array.
I gave up my first approach using directly a
<mx:Repeater> tag within the DataGridColumns:
Code:
<mx:DataGrid ..>
<mx:columns>
<mx:Repeater id="rp" datProv="{data}"...>
<mx:DataGridColumn dataField="{rp.currentItem.dataField}"
.... />
</mx:Repeater>
</mx:columns>
</mx:DataGrid>
This kind of recurive structure isn't allowed.
then I tried to resolve my problem by using an ActionScript
generator, but because of a lack of example code, I don't know
what's wrong with it:
Code:
<mx:DataGrid xmlns:mx="
http://www.adobe.com/2006/mxml"
columns="{repeaterArray}" initialize="initApp()"...>
<mx:Script>
<![CDATA[
import mx.controls.dataGridClasses.DataGridColumn;
public function initApp():void {
repeaterArray = new Array();
for (var c:Number = 0;c < ids.length;c++) {
var newObj:DataGridColumn = new DataGridColumn(null);
newObj.dataField = String(ids[c]);
newObj.headerText = String(headers[c]);
newObj.width = Number(widths[c]);
repeaterArray.push(newObj);
]]></mx:Script>
</mx:DataGrid>
ids, headers, width are passed arrays with needed Strings,
bzw. Numbers. It doesn't work although there is neither an compiler
nor a debug error.
I also dunno if I should use the initialize or
creationComplete - event or another one?
Does anybody know how I use the Repeater in this case
correctly or build a working ActionScript generator?
Thank you.

I just forgot:
this.columns = repeaterArray;
Jesus Christ.

Similar Messages

  • Dynamic DDL in repeatable area is empty

    I have a drop-down list (in a repeatable area) that is populated dynamically with script.  This is fine for the first instance but any additional instances appear empty.  I am using a repeater grid in the form guide.
    Can anyone please advise how to get all instances (existing and new) to populate.
    Thank you.

    Hi,
    If the dropdowns are populated based on a value of another object in the form, rather than having the script in that object pushing the list items FORWARD to the dropdown, you could have the script in the preOpen event of the dropdown LOOKING BACK at the value in the object.
    If you want to stick with your script, then you would need to put it in a loop to go through all of the repeating instances to populate each of the dropdowns in turn.
    Otherwise I would need some more info to work on.
    N.

  • Dynamic / re-sizing repeatable background

    I need a dynamic / re-sizing repeatable background. It's a
    200,200,200 to 255,255,255 gradient so I don't care about
    distortion. I can't rationalize with the boss he wants it full
    screen gradient no matter the resolution and he's driving me nuts.
    Thanks,
    Bill
    Edit:
    Here's my code:
    <style type="text/css">
    <!--
    body {
    background-image:
    url(/images/NBG%20Shared/Silver_Gradient_Background.gif);
    background-repeat: repeat;
    -->
    </style>
    The background doesn't even show up when I preview it. I've
    searched every help forum I can find on this and all are about
    non-repeating backgrounds not showing up.

    1. Don't use spaces in your filenames
    1b. Backgrounds normally repeat, so it's not necessary to
    restate that -
    > background-repeat: repeat;
    2. Rush your boss to the mental institution
    3. This is not a resolution issue, it's a browser viewport
    size issue
    4. Rush your boss to the loony bin
    5. To do this, you'd have to -
    a. load the page
    b. sniff the available space with client-side javascript
    c. send the results back to the server so that a script there
    can
    dynamically resize the image to be used
    d. fetch the image and page again
    e. finally display it with the resized image
    It's completely nuts....
    This is why they say that bosses are like seagulls - they fly
    in, crap on
    everything, and then fly away.
    > The background doesn't even show up when I preview it.
    No doubt it's because you have used a root relative link to
    the background
    image, but do not have preview with temp files enabled in
    your preferences.
    The only way you can see images linked with root relative
    links in a preview
    is with temp files enabled.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "William Rickert" <[email protected]> wrote
    in message
    news:[email protected]...
    >I need a dynamic / re-sizing repeatable background. It's
    a 200,200,200 to
    > 255,255,255 gradient so I don't care about distortion. I
    can't rationalize
    > with
    > the boss he wants it full screen gradient no matter the
    resolution and
    > he's
    > driving me nuts.
    >
    > Thanks,
    > Bill
    >
    > Edit:
    >
    > Here's my code:
    >
    > <style type="text/css">
    > <!--
    > body {
    > background-image:
    >
    url(/images/NBG%20Shared/Silver_Gradient_Background.gif);
    > background-repeat: repeat;
    > }
    > -->
    > </style>
    >
    > The background doesn't even show up when I preview it.
    I've searched every
    > help forum I can find on this and all are about
    non-repeating backgrounds
    > not
    > showing up.
    >

  • Cross tab with multiple repeating columns

    Hi All,
    I'm developing a cross tab report.. my sample xml file is
    <?xml version="1.0" encoding="UTF-8"?>
    <ROWSET>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Call - Back Office</DD_CODE>
    <NOTE_DATE>12</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Call - Back Office</DD_CODE>
    <NOTE_DATE>11</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Call - Back Office</DD_CODE>
    <NOTE_DATE>14</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Call - Back Office</DD_CODE>
    <NOTE_DATE>112</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Call - Monitoring</DD_CODE>
    <NOTE_DATE>121</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Call - Monitoring</DD_CODE>
    <NOTE_DATE>122</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Call - Monitoring</DD_CODE>
    <NOTE_DATE>131</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Call - Monitoring</DD_CODE>
    <NOTE_DATE>111</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Site Visit - Back Office</DD_CODE>
    <NOTE_DATE>11</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Site Visit - Back Office</DD_CODE>
    <NOTE_DATE>143</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Site Visit - Back Office</DD_CODE>
    <NOTE_DATE>122</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Site Visit - Back Office</DD_CODE>
    <NOTE_DATE>111</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Site Visit - Monitoring</DD_CODE>
    <NOTE_DATE>1432</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Site Visit - Monitoring</DD_CODE>
    <NOTE_DATE>112</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Site Visit - Monitoring</DD_CODE>
    <NOTE_DATE>121</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Site Visit - Monitoring</DD_CODE>
    <NOTE_DATE>123</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Visit - WDE Office</DD_CODE>
    <NOTE_DATE>123</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Visit - WDE Office</DD_CODE>
    <NOTE_DATE>1321</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Visit - WDE Office</DD_CODE>
    <NOTE_DATE>1312</NOTE_DATE>
    </ROW>
    <ROW>
    <NAME>Product</NAME>
    <DATE>2008-05-01T00:00:00.000-05:00</DATE>
    <TYPE_CODE></TYPE_CODE>
    <MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
    <DD_CODE>Visit - WDE Office</DD_CODE>
    <NOTE_DATE>211</NOTE_DATE>
    </ROW>
    </ROWSET>
    If I use the cross tab wizard ...I'm get the following output..
    -------------Call - Back Office-------Call - Monitoring-------Site Visit - Back Office-------Site Visit -Monitoring-----Visit - WDE Office
    product              12                      121                       11                                    1432                   123
    but I'm looking for output like...
    -------------Call - Back Office-----Call - Monitoring------Site Visit - Back Office------Site Visit -Monitoring-------Visit - WDE Office
    product-------12 11 14 112-----------121 122 131 111----------11 143 122 111------------------1432 112 121 123 ---------123 1321 1312 211The numbers under each column are dynamic ..I might be getting 2,3,4..(In this case all are four)...I looked at the below link but it had static 2 repeating columns..but in my case the repeating columns are unknown...
    http://winrichman.blogspot.com/2008/09/crosstab-with-multiple-repeating.html
    Is is possible to build a cross tab like that..?
    Thanks in Advance..

    Hi..
    Thanks alot for your time..
    can I e-mail you my actual xml file..? becuase if there are multiple rows(multiple <?NAME?>)...the column headers(DD_CODE) are repeating for every row(<?NAME?>)..also is it possible to get each NOTE_DATE in a cell(here all the NOTE_DATE are displaying in a table)....
    present output...
    -------------Call - Back Office-----Call - Monitoring------Site Visit - Back Office------Site Visit -Monitoring-------Visit - WDE Office
    product-------12 11 14 112-----------121 122 131 111----------11 143 122 111------------------1432 112 121 123 ---------123 1321 1312 211
    -------------Call - Back Office-----Call - Monitoring------Site Visit - Back Office------Site Visit -Monitoring-------Visit - WDE Office
    product1-------11 15 13 12-----------00 111 132 444----------12 434 123 171------------------1832 162 221 124 ---------143 1231 1311 241
    looking for output like..
    -------------Call - Back Office-----Call - Monitoring------Site Visit - Back Office------Site Visit -Monitoring-------Visit - WDE Office
    product-------12 11 14 112-----------121 122 131 111----------11 143 122 111------------------1432 112 121 123 ---------123 1321 1312 211
    product1-------11 15 13 12-----------00 111 132 444----------12 434 123 171------------------1832 162 221 124 ---------143 1231 1311 241Thanks in Advance...

  • Clear DataGrid dynamically

    HI All,
    I have a requirement wherein I need to clear the datagrid
    dynamically based on some condition or on a button click.
    Is there some way to do that?Pls help me with sample code if
    possible.
    Thanks in advance.

    Use removeAll()
    http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/listclasses/DataProvider.html
    Tracy

  • How to select column dynamically with sharepoint list as data source in ssrs report

    Hi all,
    I am creating reports from SharePoint list but i have requirements to select the column name dynamically with SharePoint list as data source. I didn't find any way of doing this.. 
    Can anyone help me to resolve this issue..
    There is no way of specifying column name dynamically here in data set query
    <RSSharePointList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <ListName>test list</ListName>
      <ViewFields>
        <FieldRef Name="ID" />
        <FieldRef Name="ContentType" />
        <FieldRef Name="Title" />
        <FieldRef Name="Modified" />
        <FieldRef Name="Created" />
        <FieldRef Name="Author" />
        <FieldRef Name="Editor" />
        <FieldRef Name="_UIVersionString" />
        <FieldRef Name="Attachments" />
        <FieldRef Name="Edit" />
        <FieldRef Name="LinkTitleNoMenu" />
        <FieldRef Name="LinkTitle" />
        <FieldRef Name="DocIcon" />
        <FieldRef Name="ItemChildCount" />
        <FieldRef Name="FolderChildCount" />
        <FieldRef Name="test_x0020_date" />
        <FieldRef Name="title2" />
      </ViewFields>
    </RSSharePointList>

    Hi MNRSPDev,
    Sorry for the delay.
    According to the current description, I understand that you want to specify column name in dataset query designer dynamically when using SharePoint list data source.
    Based on my research, this is not supported by default. As a workaround, you can use XML data source. The XML content can be embedded directly within the query. This lets you use the expression capabilities within the processing engine to build queries and
    data dynamically within the report. And it can be used for retrieving XML data directly from an external data source, passing it using parameters, and embedding it within the query.
    Reference:
    http://www.codeproject.com/Articles/56817/Dynamic-Reports-with-Reporting-Services
    Hope this helps.
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • Sidebar stuck at bottom of page with last repeatable section--help

    I'm new to webpage creating. Here's my situation---I have a content section and then a sidebar on the right. The content section is repeatable. No matter what I do, the sidebar always aligns with the last repeatable section, meaning that it's often at the bottom of the page. The sidebar code looks like this---
            <div id="sidebar">
                <ul>
                        <h2>Primary Texts</h2>
                        <p><a href="primarytextsonline.html">Primary Texts Online</a></p>
                        <p><a href="manuscripts.html">Manuscript Resources</a></p>
                </ul>
            </div>
            <!-- end #sidebar -->
    In case it matters, the code right before this dealing with the repeatable content section is:
              <!-- TemplateEndEditable --></div>
            </div>
            <div class="post">
              <div class="entry">
                <div class="entry-bgtop">
                  <div class="entry-bgbtm"></div>
                </div>
              </div>
              </div>
            <div class="post"> </div>
            <div style="clear: both;"></div>
            </div>
        <!-- TemplateEndRepeat -->
    All I want is for my sidebar to appear at the top, in line with the first chunk of text/content and stay there.

    Full style sheet:
    Design by Free CSS Templates
    http://www.freecsstemplates.org
    Released for free under a Creative Commons Attribution 2.5 License
    body {
        margin: 0;
        padding: 0;
        background: #1B120B;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
        color: #787878;
    h1, h2, h3 {
        margin: 0;
        padding: 10;
        font-family: Georgia, "Times New Roman", Times, serif;
        font-weight: normal;
        color: #CCCCCC;
    h1 {
        font-size: 2em;
        color: #CCCCCC;
    h2 {
        font-size: 1.8em;
        padding-top: 0px;
        padding-right: 0px;
        padding-bottom: 0px;
        padding-left: 0px;
    h3 {
        font-size: 1.6em;
    p, ul, ol {
        margin-top: 0;
        line-height: 150%;
    ul, ol {
    a {
        text-decoration: none;
        color: #CCCCCC;
    a:hover {
    #wrapper {
        margin: 0 auto;
        padding: 0;
        background: url(images/img05.jpg) repeat-x left top;
    /* Header */
    #header-wrapper {
    #header {
        width: 960px;
        height: 100px;
        margin: 0 auto;
        background: url(images/img02.jpg) no-repeat left top;
    /* Logo */
    #logo {
        float: left;
        height: 240px;
        margin: 0;
        padding: 0px;
        color: #FFFFFF;
    #logo h1, #logo p {
        margin: 0;
        padding: 0;
    #logo h1 {
        float: left;
        padding-left: 25px;
        letter-spacing: -1px;
        text-transform: lowercase;
        font-size: 2.6em;
    #logo p {
        float: left;
        margin: 0;
        padding: 12px 0 0 10px;
        font: normal 14px Georgia, "Times New Roman", Times, serif;
        font-style: italic;
    #logo a {
        border: none;
        background: none;
        text-decoration: none;
        color: #FFFFFF;
    /* Search */
    #search {
        float: right;
        width: 279px;
        height: 110px;
        padding: 0;
    #search form {
        height: 41px;
        margin: 0;
        padding: 10px 0 0 30px;
    #search fieldset {
        margin: 0;
        padding: 0;
        border: none;
    #search-text {
        width: 195px;
        padding: 6px 10px;
        border: 1px #4C4842 solid;
        background: none;
        text-transform: lowercase;
        font: normal 11px Arial, Helvetica, sans-serif;
        color: #808080;
    #search-submit {
        display: none;
    /* Menu */
    #menu {
        width: 960px;
        height: 40px;
        margin: 0 auto;
        padding: 0;
        background: url(images/img03.jpg) repeat-x left top;
    #menu ul {
        margin: 0;
        padding: 0px 0px 0px 25px;
        list-style: none;
        line-height: normal;
    #menu li {
        float: left;
    #menu a {
        display: block;
        height: 18px;
        margin-right: 3px;
        padding: 12px 40px 0px 40px;
        background: url(images/img06.jpg) no-repeat right 10px;
        text-decoration: none;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
        font-weight: normal;
        color: #FFFFFF;
        border: none;
    #menu a:hover, #menu .current_page_item a {
    #menu .current_page_item a {
        padding-left: 0;
    #menu a:hover {
        text-decoration: underline;
    /* Page */
    #page {
        width: 960px;
        margin: 0 auto;
        padding: 0;
        background: url(images/img04.jpg) repeat-y left top;
    #page-bgtop {
    #page-bgbtm {
        padding-top: 0px;
        padding-right: 20px;
        padding-bottom: 0px;
        padding-left: 20px;
    /* Content */
    #content {
        float: left;
        width: 640px;
        padding: 0;
    .post {
    .post .title {
        height: 38px;
        letter-spacing: -0.5px;
        color: #181818;
        padding-top: 10px;
        padding-right: 0;
        padding-bottom: 0;
        padding-left: 20px;
    .post .title a {
        color: #181818;
        border: none;
    .post .meta {
        margin-top: -10px;
        padding-bottom: 0px;
        padding-left: 20px;
        text-align: left;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 11px;
        font-style: italic;
    .post .meta a {
    .post .entry {
        text-align: justify;
        margin-bottom: 25px;
        padding-top: 0px;
        padding-right: 20px;
        padding-bottom: 0px;
        padding-left: 20px;
    .links {
        display: block;
        width: 130px;
        margin: 20px 0px;
        padding: 5px;
        background: #A03128;
        border-left: 20px solid #1B120B;
        text-align: center;
        text-transform: uppercase;
        font-size: 10px;
        color: #FFFFFF;
    /* Sidebar */
    #sidebar {
        float: right;
        width: 250px;
        padding: 10px 0px 0px 0px;
        color: #787878;
    #sidebar ul {
        margin: 0;
        padding: 0;
        list-style: none;
    #sidebar li {
        margin: 0;
        padding: 0;
    #sidebar li ul {
        margin: 0px 15px;
        padding-bottom: 30px;
    #sidebar li li {
        line-height: 35px;
        border-bottom: 1px dashed #D1D1D1;
        padding-left: 15px;
    #sidebar li li span {
        display: block;
        margin-top: -20px;
        padding: 0;
        font-size: 11px;
        font-style: italic;
    #sidebar h2 {
        height: 38px;
        padding: 12px 0 0 15px;
        letter-spacing: -.5px;
        color: #181818;
    #sidebar p {
        margin: 0 0px;
        padding: 0px 20px 20px 20px;
        text-align: justify;
    #sidebar a {
        border: none;
        color: #B94E0E;
    #sidebar a:hover {
        text-decoration: underline;
    /* Calendar */
    #calendar {
    #calendar_wrap {
        padding: 20px;
    #calendar table {
        width: 100%;
    #calendar tbody td {
        text-align: center;
    #calendar #next {
        text-align: right;
    /* Footer */
    #footer-wrapper {
        width: 100%;
        background: #231202;
    #footer {
        width: 960px;
        height: 100px;
        margin: 0 auto;
        padding: 0px 0 15px 0;
        font-family: Arial, Helvetica, sans-serif;
    #footer p {
        margin: 0;
        padding-top: 40px;
        line-height: normal;
        font-size: 9px;
        text-transform: uppercase;
        text-align: center;
        color: #FFFFFF;
    #footer a {
        color: #FFDBD9;

  • Load JDBC-Driver dynamically with JarClassLoader

    Hey!
    I have a problem loading JDBC drivers dynamically with a JarClassLoader:
    Code:
    public class URLLoaderTest {
      public static void main(String[] args) {
      try {
        URL[] urlList = {new File("D:\\jbuilder5\\SQLServerJDBC\\lib\\mssqlserver.jar").toURL(),
                         new File("D:\\jbuilder5\\SQLServerJDBC\\lib\\msbase.jar").toURL(),
                         new File("D:\\jbuilder5\\SQLServerJDBC\\lib\\msutil.jar").toURL()};
        ClassLoader classLoader = new URLClassLoader(urlList);
        Class c = Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver",true,classLoader);
        Object d = c.newInstance();
        DriverManager.registerDriver((Driver)d);
        // DriverManager.getDrivers()    Enumeration is empty
        Connection conn = DriverManager.getConnection("jdbc:microsoft:sqlserver://Server:1433","test","test");
        DatabaseMetaData meta = conn.getMetaData();
        System.out.println("JDBC driver version is " + meta.getDriverVersion());
      catch (Exception e) {System.out.println(e.getMessage());}
    }Problem:
    Till the DriverManager registraton everything is ok.
    The registerDriver Method throws no exception but if I call DriverManager.getDrivers() after calling the registerDriver Method an empty Enumeration is returned.
    So the driver is not loaded and DriverManager.getConnection throws an Exception (no suitable driver).
    If I include the driver jars into the Classpath everything is running (but that isn't what I want to do).
    Is there a solution for this problem? Maybe it is possible to load the data into the AppClassLoader??!!
    Thanx in advance.

    Found a solution!
    For everyone who is interested:
    public class URLLoaderTest {
      public static void main(String[] args) {
      try {
        URL[] urlList = {new File("D:\\jbuilder5\\SQLServerJDBC\\lib\\mssqlserver.jar").toURL(),
                         new File("D:\\jbuilder5\\SQLServerJDBC\\lib\\msbase.jar").toURL(),
                         new File("D:\\jbuilder5\\SQLServerJDBC\\lib\\msutil.jar").toURL()};
        ClassLoader classLoader = new URLClassLoader(urlList);
        Class c = Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver",true,classLoader);
        Object d = c.newInstance();
        Driver driver = (Driver)d;
        Properties prop = new Properties();
        prop.setProperty("user","test");
        prop.setProperty("password" ,"test");
        Connection conn = driver.connect("jdbc:microsoft:sqlserver://test:1433",prop);
        System.out.println("JDBC driver version is " + meta.getDriverVersion());
      catch (Exception e) {System.out.println(e.getMessage());}
    }

  • Is possible to take the Infopath form with two repeat section in one SharePoint list

    Is possible to take the Infopath form  with two repeat section in one Sharepoint list 
    Take two repeat section and put them one bellow to other one in a SP list.
    The motive is that the first repeat section is based in account own by the requestor and the second repeat section is when the requestor is doing backup time for some one else where need to log the amount of time that spend in the peer account.
    I have basic logic in the form when requestor said Are you doing backup for some else? and press YES it is be able to use the second repeat section.
     Le me know how much pain full is going tobe or not..
    –Q1: Is possible to do this ?  With codeless or not
    –Q2:What steps I need to do to accomplish this?  feasible or not
    the following picture give a better idea of what I am looking to accomplish:
    CRISTINA&amp;amp MICROSOFT Forum

    Hi,
    Thank you for your question. I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience. Thank you for your understanding and support.
    Thanks,
    Linda Li
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • DataGrid itemrenderer with switch statement

    Hi,
    I have datagrid control with this columns
    <mx:DataGrid id="dgvParagraphs" >
        <mx:columns>
            <mx:DataGridColumn dataField="type" headerText="Type"/>
            <mx:DataGridColumn dataField="title" headerText="Title"/>
            <mx:DataGridColumn dataField="content" visible="false"/>
        </mx:columns>
    </mx:DataGrid>
    Under type column I have values from 1 to 6. Each number presents type of content. I have icons for each type. I would like to show icon instead of just number. I know this can be done using itemrenderes but I don't know how to accomplish this.

    If this post answers your question or helps, please mark it as such.
    Greg Lafrance
    www.ChikaraDev.com
    Flex Development and Support Services
    You might see issues with this code during scrolling, as DataGrid recycles itemRenderers, but in that case the icon information must be in the data.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
      <mx:Script>
        <![CDATA[
          public function getImageSource(item:Object):String{
            var retVal:String;
            switch(uint(item.type)){
              case 1:
                retVal = "black.png";
                break;
              case 2:
                retVal = "blue.png";
                break;
              case 3:
                retVal = "gray.png";
                break;
              case 4:
                retVal = "green.png";
                break;
              case 5:
                retVal = "purple.png";
                break;
              case 6:
                retVal = "red.png";
                break;
            trace(retVal);
            return retVal;
        ]]>
      </mx:Script>
      <mx:DataGrid id="dgvParagraphs" dataProvider="{dataXML..item}">
        <mx:columns>
          <mx:DataGridColumn dataField="type" headerText="Type" width="50">
            <mx:itemRenderer>
              <mx:Component>
                <mx:Image source="{outerDocument.getImageSource(data)}" horizontalAlign="center"/>
              </mx:Component>
            </mx:itemRenderer>
          </mx:DataGridColumn>
          <mx:DataGridColumn dataField="title" headerText="Title" width="100"/>
          <mx:DataGridColumn dataField="content" visible="false"/>
        </mx:columns>
      </mx:DataGrid>
      <mx:XML id="dataXML" xmlns="">
        <data>
          <item>
            <type>2</type>
            <title>My Title 1</title>
            <content>Content 1</content>       
          </item>
          <item>
            <type>5</type>
            <title>My Title 2</title>
            <content>Content 2</content>
          </item>
          <item>
            <type>3</type>
            <title>My Title 3</title>
            <content>Content 3</content>
          </item>
          <item>
            <type>1</type>
            <title>My Title 4</title>
            <content>Content 4</content>
          </item>
          <item>
            <type>4</type>
            <title>My Title 5</title>
            <content>Content 5</content>
          </item>
          <item>
            <type>6</type>
            <title>My Title 6</title>
            <content>Content 6</content>
          </item>
          <item>
            <type>2</type>
            <title>My Title 7</title>
            <content>Content 7</content>
          </item>
          <item>
            <type>1</type>
            <title>My Title 8</title>
            <content>Content 8</content>
          </item>
          <item>
            <type>4</type>
            <title>My Title 9</title>
            <content>Content 9</content>
          </item>
          <item>
            <type>5</type>
            <title>My Title 10</title>
            <content>Content 10</content>
          </item>
          <item>
            <type>2</type>
            <title>My Title 11</title>
            <content>Content 11</content>
          </item>
        </data>
      </mx:XML>
    </mx:Application>

  • Calculate accurate datagrid height with variableRowHeight and without any empty row

    hi ,
    how can i calculate accurate datagrid height with variableRowHeight="true" and without getting any empty row.
    Currently i am calculating datagrid height on updateComplete event of datagrid as follows:
    public function onUpdateComplete() : void
    this.datagrid.headerHeight=50;
    datagrid.height= datagrid.measureHeightOfItems(0, this.datagrid.dataprovider.length)+this.datagrid.headerHeight;
    with following datagrid properties:
    <mx:DataGrid 
    dataProvider="{dataArrayCollection}" width="100%" rowCount="{dataArrayCollection.length}"
    id="datagrid" updateComplete="onUpdateComplete()" paddingLeft="0" paddingRight="0" paddingTop="0" paddingBottom="0"
    fontSize="12" wordWrap="true" variableRowHeight="true" verticalScrollPolicy="off" >
    With this approach the issue is, i am getting scrollbar on datagrid's container. I want scrollbar for datagrid instead of its container so that i can have only rows to be scrollable and not the header. Also, if i set verticalScrollPolicy of datagrid as "auto", i get empty rows.
    So,is there any way to have datagrid with following properties:
    variable row height
    no empty rows
    word wrap for headers as well as for rows
    Scrollbar for grid i.e. header should remain fix ,only rows should be scrollable
    no horizontal scrollbar
    TIA

    http://blogs.adobe.com/aharui/2010/10/mx-datagrid-list-and-variablerowheight
    .html

  • Fixed length outer table with nested repeating group inner table.

    I had to re-create a PDF using tables in an RTF template. It has a fixed 1 page width. However, one of the rows in the template has a nested table with a repeating group. I set the width of the outer table row width to 2". However when I have repeating groups it makes the outer row grow wider than the 2" inches. The option to un-select "automatically resize to fit contents" is grayed out.
    Is there a way to keep the outer table width fixed with an inner repeating group?
    Thanks.
    --Johnnie
    Edited by: Vortex13 on Jun 13, 2012 11:15 AM

    Hi Borris,
    Found the following in the Oracle Documentation under: Oracle8i Application Developer's Guide - Object-Relational Features Release 2 (8.1.6)
    2 Managing Oracle Objects / Using Collections / Collection Unnesting
    URL: http://www.znow.com/sales/oracle/appdev.816/a76976/adobjmng.htm#1002885
    Oracle8i also supports the following syntax to produce outer-join results:
    SELECT d.*, e.* FROM depts d, TABLE(d.emps)(+) e;
    The (+) indicates that the dependent join between DEPTS and D.EMPS should be NULL-augmented. That is, there > will be rows of DEPTS in the output for which D.EMPS is NULL or empty, with NULL values for columns
    corresponding to D.EMPS.

  • SetFocus dynamic with string

    Hi,
    in an adobe form the Focus can be set with xfa.host.setFocus("Formfield").  In this case 'Formfield' is a hardcoded form field.
    Is it also possible to set the focus dynamic with a string, which contains the fieldname?
    e.g.
    myField = myNode.value;
    var hochkomma = '"';
    var Formfield = hochkomma.concat(myField);
    var Formfield = Formfield.concat(hochkomma);
    xfa.host.setFocus(Formfield);
    But this code doesn't work. Where's the problem?
    Thx!

    Hi Andreas,
    try to put Formfield between "", that is :
    xfa.host.setFocus("Formfield");
    And Formfield has to be the same as the name field, be careful respecting upper/lower case.
    Regards.

  • I'm having trouble with the repeat function on iTunes 11.

    I'm having trouble with the repeat function on iTunes 11.  The buttons are there but will not allow me to repeat an album when selected under artist from remote app on iPhone.  I have downloaded the update for the remote app but the repeat function now repeats all albums under that artist name.  Selecting the album directly under albums works but is not as easly to access.  Any thoughts?

    Sorry, downgrading is not supported.

  • Can anyone help me with a repeating pattern that is staggered?

    Can anyone help me with a repeating pattern that is staggered and must be aligned perfectly while staggered. Is there a way to do this? I keep staggering it by eyeball and need it to be accurate and each row is offset.
    My art board is 19.25x11.50 I have a repeating logo and name underneath (hard to see) I am setting this up for a print design to go onto tissue paper for insert into a shoe box. Any help is greatly appreciated?
    Thanks,

    Option drag your object horizontally to make a copy or use Move and copy if you need a precise increment. The hit Cmd+D a few times to make duplicates with the same spacing.
    Hit Enter again and make a note of the increment on a piece of paper. Cancel.
    Select everything and use the same increment, now in a vertical direction, to make 2 further copies.
    Take the middle row and move it horizontally by half of the increment. This means that the circles in the middle row are positioned horizontally half way between those in the other two rows.
    Draw your defining rectangle so that its corners are on the centres of those 4 circles. (This gives you its right size but you may possibly need to move it a bit.) Send it to the back of your stack.
    Drag those 8 circles and the rectangle to your Swatches panel.
    (If you’re on Windows read Ctrl instead of Cmd and Alt instead of Option.)

Maybe you are looking for