0 Replies Latest reply on Dec 30, 2009 6:10 AM by CadizVanery

    How to modify a pod in dashboard component?

    CadizVanery

      Hi

       

      I am new to flex and programming in general. So please do forgive me if I do not express my query clearly or with the right info.

       

      I am trying to build an application to show case photographs and one of the components I am using is the Dashboard built by WASI and can be seen here. It has several pods but I would like to have one of the pods load up with my own default position, width and height yet still retain the characteristics of minimizing, maximizing & drag and drop. Other than through the pods.xml file, I do not know how to modify (or which other file I should modify for that matter) so that when the application loads, it always starts with the particular pod at my desired height (top to bottom), width (about 1/4 of screen real estate) and position (left side of the screen)

       

      Below is the pods.xml file and attached is the project zip file.

       

      <?xml version="1.0" encoding="utf-8"?>
      <!--
      Used to specify the pod content in the dashboard sample app.
      To keep the implementation straightforward, all of the data is
      stored in this file rather than a database or separate XML files.
      -->
      <views>
          <!--
              <view> - Represents a tab.
                  id - Must be unique so state can be saved properly.
                  label - The label of the tab.
                  <pod>
                      id - Must be unique per view so state can be saved properly.
                      type - Type of pod content. Valid values are chart, pieChart, form and list. "chart" and "pieChart" each have drill downs to one level.
                             "chart" is a fixed drill down to 30 days in a month.
                             "pieChart" is a fixed drill down to four geographical regions.
                      title - The title of the pod.
                      dataSource - The xml to load for the pod.
                      selectedViewIndex - Sets the default content view for pod content with a view stack.
                      valueField - For chart pods, the field from the xml data to use for displaying the value. This field should be numeric.
                      categoryField - For chart pods, the field from the xml data to use for displaying the category.
                      dataTipUnitLabel - Rollover label used for displaying the units.
                                         Label is delimited by "*" and places the first value before the unit and the second value after the unit. Ex: $50M.
                      dataTipLabelField - Rollover label field used for PieCharts.
                      labels - For form pods, used to label the fields.
                      dataFields - For form pods, used to assign the data fields to the form fields.
                                   The second field should always be a date expressed in milliseconds since the epoch.
          -->
          <view
              id="view0"
              label="Sales">
              <pod
                  id="pod00"
                  type="chart"
                  title="Yearly Revenue"
                  dataSource="data/revenue.xml"
                  selectedViewIndex="1"
                  valueField="value"
                  categoryField="month"
                  dataTipUnitLabel="$*M"
                  dataTipLabelField="month"/>
              <pod
                  id="pod06"
                  type="pieChart"
                  title="Revenue by Region"
                  dataSource="data/revenue_by_region.xml"
                  valueField="value"
                  categoryField="region"
                  dataTipUnitLabel="$*M"
                  dataTipLabelField="region"/>
              <pod
                  id="pod01"
                  type="chart"
                  title="Yearly Profit"
                  dataSource="data/profit.xml"
                  valueField="value"
                  categoryField="month"
                  dataTipUnitLabel="$*M"
                  dataTipLabelField="month"/>
              <pod
                  id="pod02"
                  type="form"
                  title="To Do"
                  dataSource="data/tasks.xml"
                  labels="Name,Date,Description"
                  dataFields="name,date,description" />
              <pod
                  id="pod03"
                  type="list"
                  title="Company News"
                  dataSource="data/news.xml" />
              <pod
                  id="pod04"
                  type="form"
                  title="Sales Pipeline"
                  dataSource="data/pipeline.xml"
                  selectedViewIndex="1"
                  labels="Name,Date,Description"
                  dataFields="name,date,description" />
              <pod
                  id="pod05"
                  type="chart"
                  title="Projected Revenue"
                  dataSource="data/projected_revenue.xml"
                  valueField="value"
                  categoryField="month"
                  dataTipUnitLabel="$*M"
                  dataTipLabelField="month"/>
          </view>

       

       

      Thank you very much for any help you may provide.

       

      Best regards

       

      Vanery