Format columns of Datagrid to TimeFormat

Hello I have a data grid which I populated dynamically using
array.
I have 1 of the column (its header is mytime).
But the time is displayed as : Thu Jan 1 20:03
I want my time format to be as such : 20:03 AM/PM
Please help me how can I format the whole column of a
datagrid.
Thx

<mx:Script>
<![CDATA[
import mx.controls.dataGridClasses.DataGridColumn;
import mx.formatters.NumberFormatter;
import mx.formatters.DateFormatter;
protected function MyRenderer(row:Object,
column:DataGridColumn):String{
return nf.format(row[column.dataField ]);
protected function dateFormat(dateItem:Object,
column:DataGridColumn):String
return publishDate.format(dateItem[column.dataField]);
]]>
</mx:Script>
<mx:Style source="style.css" />
<mx:DateFormatter id="publishDate"
formatString="MM/DD/YYYY JJ:NN:SS" />
<mx:NumberFormatter id="nf"
precision="2"
rounding="up"
decimalSeparatorTo="."
thousandsSeparatorTo=","
useThousandsSeparator="true"
useNegativeSign="true"/>

Similar Messages

  • How to validate a whole column of DataGrid

    I want to validate a whole column of DataGrid using
    Validator.
    How to do that?

    Thanks. It works! Prima!
    It's a little bit difficult for me to write and understand the English terms correctly, cause I am German.
    I did not recognize, that I had to go to the Library Module!
    Here I repeat Rikk's way in German:
    Im Bibliothek-Modul
    Rasteransicht
    Bilder selektieren
    Im Menufeld Ad-hoc Entwicklung:
    Freistellungsfaktor einstellen: 16:9

  • Mysterious formatting columns table

    Hi all,
    i don't post a problem, but a curiosity. I'm managing a Oracle BI environment developed by others, so many aspects are unknown for me. I've observed that if i make an Answers request dragging and dropping any columns from my subject area, any of them are still formatted. In detail, if i drag and drop a column that contains double values it is formatted, otherwise if (from same table) i drag and drop a column that contains integer values it isn't formatted. All columns have same class "TableHdg".
    I ask me, where is specified this behaviour? In css style? But how a css style can distinguish between a double and integer values to decide how formatting columns?
    Thanks
    Giancarlo
    Edited by: 832596 on 15-apr-2011 3.47

    Hi,
    thanks for your reply. I've formatted hundreds of tables but i've never noted these options. Incredible!!!!!!!!!. Can you tell me, when i click on "Save as the system-wide for this data type" (for example), where Oracle BI saves formatting options? In a css file? What?
    Thanks
    Giancarlo

  • Erase columns in DataGrid

    greets, long time without doubts
    my question is:
    i have 2 DataGrids the first one has one fixed column , the second one has 4 fixed columns
    i use a button to convert the rows of the DataGrid 1 in columns, then if i delete a row in the DataGrid 1 it must delete the corresponding column in the DataGrid 2
    how i can delete the columns of DataGrid 2 in that way???

    If you want to delete the content of the column, you must work on the DataGrid's dataProvider.
    If you want to remove the column, you can use :
    var columnsCollection    :ArrayCollection = new ArrayCollection( yourDataGrid.columns );
    columnsCollection.removeItemAt( columnsCollection.getItemIndex( youDataGridColumn ) );
    yourDataGrid.columns = columnsCollection.toArray();

  • How to hide blank columns in datagrid?

    Hi,
    I have a datagrid nicely populated with data.
    But I have some colums which are blank (the columns have a
    Header but the rest of its rows are blank).
    I want to hide these columns so that users can't see them.
    Note that the blank columns are not fixed. Sometimes it can
    be that a column is blank but at other times it can be filled.
    So I cannot use... "<... visible=false>
    I need to loop thru the columns and then hide the blank
    columns.
    Anyone has an idea how to code for this loop.
    Thx

    Well..from what i know, the datagrid supports the syntax to
    allow for you to specify the columns explicitly through the
    DataGridColumn. Done like this
    <mx:datagrid>
    <mx:columns>
    <mxdatagridcolumn datafield = "Column 1 name" ..>
    <mxdatagridcolumn datafield = "" ..>
    <mxdatagridcolumn datafield = "" ..>
    </mx:columns>
    </mx:datagrid>
    why dont you specify the columns you want using this. that
    way, if there is no data in the colums, that column just wont show.
    Hope i am understanding you right when you say hide blank
    columns

  • Format numbers in datagrid as fractions?

    I'd like to have a custom formatter to take numbers displayed
    in a column of my DG as fractions (e.g. 0.5 as 1/2).
    I had tried this in the past, modifying an existing
    formatter. And while I got it to work with text fields, I couldn't
    get it to work in a datagrid. I'm sure I must be missing something
    obvious...
    This code works:
    <comp:FractionFormatter id="makeFraction"
    myNumber="{0}"/>
    <mx:TextInput id="myTI"/>
    <mx:TextArea text="Formatted string is
    {makeFraction.format(myTI.text)}"/>
    But this does not:
    <mx:DataGridColumn dataField="{makeFraction.format(data)}"
    headerText="Amount" width="40"/>
    My formatter:
    quote:
    package myComponents
    //Import base Formatter class
    import mx.formatters.Formatter
    public class FractionFormatter extends Formatter {
    // Declare the variable to hold the pattern string.
    public var myNumber:String;
    // Constructor
    public function FractionFormatter() {
    // Override format().
    override public function format(value:Object):String {
    //Validate value - it must be a nonzero length string.
    if(value.length == 0) {
    // Return empty string and error message for zero-length
    string.
    error="Zero Length String";
    return ""
    //If the value is valid, format the string.
    switch (myNumber) {
    case ".25" :
    return "1/4";
    break;
    case ".5":
    return "1/2";
    break;
    case ".75":
    return "3/4";
    break;
    case "1":
    return "1";
    break;
    case "1.25":
    return "1 1/4";
    break;
    default :
    // If formatString is not "upper" or "lower",
    // return empty string and set the error message.
    error="Invalid Format String";
    return "";

    Actually, the fact that it's a string works for me here,
    since my custom formatter expects a string.
    That's the one last thing I'm confused about. Following the
    example I got from a book, I made my formatter. And it was the
    place I got the "myNumber" thing. So how would I modify my
    FractionFormatter.as to eliminated the need to pass the string from
    the main file (if I understand correctly):
    package myComponents
    //Import base Formatter class
    import mx.formatters.Formatter
    public class FractionFormatter extends Formatter {
    // Declare the variable to hold the pattern string.
    public var myNumber:String;
    // Constructor
    public function FractionFormatter() {
    // Call base class constructor.
    super();
    // Override format().
    override public function format(value:Object):String {
    //Validate value - it must be a nonzero length string.
    if(value.length == 0) {
    // Return empty string and error message for zero-length
    string.
    error="Zero Length String";
    return ""
    //If the value is valid, format the string.
    switch (myNumber) {
    case ".25" :
    return "1/4";
    break;
    case ".5":
    return "1/2";
    break;
    case ".75":
    return "3/4";
    break;
    case "1":
    return "1";
    break;
    case "1.25":
    return "1 1/4";
    break;
    default :
    // If formatString is not "upper" or "lower",
    // return empty string and set the error message.
    error="Invalid Format String";
    return "";
    }

  • Group by month/year from DATE FORMAT column

    Hi Chaps,
    I have a recordset that pulls data from a database, then presents the data in a table. The data is grouped by 'projid', repeated for every 'projid', with a show/hide control, to show all the 'jobid's' relating to that particular 'projid'
    This is what I have so far:
    Code:
    SELECT             
    tbl_projects.projid,
    tbl_projects.projtitle,
    tbl_projects.projdue, DATE_FORMAT(tbl_projects.projdue, '%%d/%%m/%%Y') as projdue_format,
    tbl_projects.projtype, 
    tbl_projects.projinvtype,
    tbl_projects.FK_custid,
    tbl_projects.projcompletedate
    tbl_languaget.langtname,
    tbl_doctype.doctypename,
    tbl_jobs.jobid,
    tbl_jobs.FK_projid,              
    tbl_jobs.jobname,              
    tbl_jobs.FK_langid,              
    tbl_jobs.jobpages,              
    tbl_jobs.jobshipped,
    tbl_jobs.jobinvsent,   
    tbl_jobs.jobtranslatorcharge,    
    'tbl_jobs' as fromtable,
    tbl_customers.custid,
    FROM tbl_projects  
    INNER JOIN tbl_jobs              
    ON tbl_projects.projid=tbl_jobs.FK_projid  
    INNER JOIN tbl_languaget              
    ON tbl_languaget.langtid=tbl_jobs.FK_langid  
    INNER JOIN tbl_customers              
    ON tbl_customers.custid=tbl_projects.FK_custid
    INNER JOIN tbl_costs
    ON tbl_costs.FK_custid=tbl_customers.custid 
    INNER JOIN tbl_doctype
    ON tbl_doctype.doctypeid=tbl_jobs.FK_doctypeid
    WHERE tbl_projects.projstatus='Complete'        
    AND tbl_projects.projinvtype='Costing Sheet'
    AND langtname!='TH'
    AND langtname!='ID'
    AND langtname!='KO'
    AND langtname!='JP'
    AND jobinvsent='y'
    AND FK_custid = %s
    ORDER BY projid ASC", GetSQLValueString($colname_rsInvPending, "int");
    $rsInvPending = mysql_query($query_rsInvPending, $conndb2) or die(mysql_error());
    //$row_rsInvPending = mysql_fetch_assoc($rsInvPending);
    $totalRows_rsInvPending = mysql_num_rows($rsInvPending);
    Code:
    // REPEAT - FOR EVERY PROJECT
      <?php
      $previousProject = '';
      if ($totalRows_rsInvPending > 0) {
      // Show if recordset not empty
        while ($row_rsInvPending = mysql_fetch_assoc($rsInvPending)) {
          if ($previousProject != $row_rsInvPending['projid']) {
          // for every Project, show the Project ID
      ?>
    Code:
    // SHOW/HIDE CONTROL
        <tr>
        <td colspan="9" class="highlight"><span class="blueBold"><a href="#" onclick="toggle2('proj1<?php echo $row_rsInvPending['projid'] ?>', this)"><img src="../../Images/plus.gif" border="0" /></a> <?php echo $row_rsInvPending['projid'] ?> - </a></span><span class="blueNOTBold"><em><?php echo $row_rsInvPending['projtitle'] ?></em></span></td>
        </tr>
    Code:
    // SHOW/HIDE
        <?php $previousProject = $row_rsInvPending['projid']; } ?>
        <tr class="proj1<?php echo $row_rsInvPending['projid'] ?>" style="display:none">
        <td>column 1</td>
        <td>column 2</td>
    What I want, is to put in another grouped by stage, where the 'projid's' themselves are in a show/hide region, grouped by 'projcompletedate' (year/month). 'projcompletedate' is in DATE format, but how to I get PHP/SQL to take the month and year and then group them correctly?

    Hi David, I'm not sure if I've got this right, would you mind looking at my latest code?:
    <table border="0" cellpadding="0" cellspacing="0" id="tblinvoice">
        <tr>
          <th>Job Title</th>
          <th>Type</th>
          <th>Language</th>
          <th>Translator</th>
          <th>Total</th>
          <th>Full</th>
          <th>Fuzzy</th>
          <th>Proof</th>
          <th>Full Price</th>
          <th>Discount Price</th>
          <th>Document Format</th>
          <th>Pages</th>
          <th>Typesetting Cost</th>
          <th>EN Proofreading Cost</th>
          <th>Total</th>
          <th>Translator Charge</th>
          <th>Profit</th>
          <th>Profit Percentage</th>
        </tr>
        <?php
          $previousMonth = '';
          if ($totalRows_rsInvPending > 0) {
          // Show if recordset not empty
          do ($row_rsInvPending = mysql_fetch_assoc($rsInvPending)) {
          if ($previousMonth != $row_rsInvPending['themonth']) {
          // for every Month, show the Month Name
       ?>
        <tr>
          <td colspan="18" class="highlight"><?php echo $row_rsInvPending['theyear'] ?> - <?php echo $row_rsInvPending['themonth'] ?></td>
        </tr>
        <?php $previousMonth = $row_rsInvPending['themonth']; } ?>
        <?php
          $previousProject = '';
          if ($totalRows_rsInvPending > 0) {
          // Show if recordset not empty
          while ($row_rsInvPending = mysql_fetch_assoc($rsInvPending)) {
          if ($previousProject != $row_rsInvPending['projid']) {
          // for every Project, show the Project ID
       ?>
       <tr>
        <td colspan="18" class="highlight"><span class="blueBold"><a href="#" onclick="toggle2('proj1<?php echo $row_rsInvPending['projid'] ?>', this)"><img src="../../Images/plus.gif" border="0" /></a> <?php echo $row_rsInvPending['projid'] ?> - </a></span><span class="blueNOTBold"><em><?php echo $row_rsInvPending['projtitle'] ?></em></span></td>
        </tr>
        <?php $previousProject = $row_rsInvPending['projid']; } ?>
        <tr class="proj1<?php echo $row_rsInvPending['projid'] ?>" style="display:none">
            <td><?php echo $row_rsInvPending['jobname']; ?></td>
            <td><?php echo $row_rsInvPending['projtype']; ?></td>
            <td><?php echo $row_rsInvPending['langtname']; ?></td>
            <td><?php echo $row_rsInvPending['translator']; ?></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
          </tr>
          <?php } while ($row_rsInvPending = mysql_fetch_assoc($rsInvPending)); ?>
          <?php } // Show if recordset not empty ?>

  • How to hide column of DataGrid

    I am making a web part in which I am using System.Web.UI.WebControls.DataGrid control.
    It's AutoGenerateColumns property is set to TRUE.
    I am trying to hide a column at run time. I have written the following code on this controls ItemCreated event but it only works if I e.Item.Cells[0] and it doesn't work for any other value for e.g. e.Item.Cells[1] and e.Item.Cells[6].
    There are 9 columns in my DataGrid control.
    Code
    protected void grd1_ItemCreated(object sender, DataGridItemEventArgs e)
    { e.Item.Cells[0].Visible = false; //works fine
    e.Item.Cells[1].Visible = false; //gives error e.Item.Cells[2].Visible = false; //gives error
    Error
    Specified argument was out of the range of valid values.
    Parameter name: index
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    How to hide a particular column?

    Hi Frank,
    You can try something similar to the below in 'RowCreated' event Instead
    protected void gridView_RowCreated(object sender, GridViewRowEventArgs e)
    e.Row.Cells[1].visible =false;
    OR I would say hiding column is not something that is to be done at row level, so you can hide columns outside any of the grid view event after binding.
    e.g.
    gridview1.columns[1].visible=false;
    I am using DataGrid control in which there is no RowCreated event.
    I have tried second approach but it also doesn't work.

  • Rearrange column in Datagrid in Flex

    Hi, i am retrieving data from database using arraycollection to fill in the datagrid with dynamic column header, and the columns are arranger alphabatically depend on the column header title, for my case i want to rearrange the columns depend on specific order, i created another function to rearrange the columns, and its working fine for the first page load but when i change the dropdown entries i get all the columns rearranged but without data only the first column contain data which is [EngName]
    the following is my code
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init()" layout="vertical"  width="70%" backgroundAlpha="1" backgroundColor="white" xmlns:local="*">
    <mx:WebService id="wsExec" wsdl="http://wfsvc-test/ExecSummaryReport.asmx?WSDL" useProxy="false" showBusyCursor="true">
    <mx:operation name="GetExecSummary2" result="handleExecSummaryResult(event)" fault="handleFault(event)"/>
    </mx:WebService>
    <mx:WebService id="wsAdmin" wsdl="http://wfsvc-test/Admin.asmx?wsdl" useProxy="false" showBusyCursor="true">
    <mx:operation name="SelectDirectorates" result="handleDir(event)" fault="handleFault(event)"/>
    <mx:operation name="SelectSections" result="handleSec(event)" fault="handleFault(event)"/>
    </mx:WebService>
    <mx:Script>
    <![CDATA[
    import mx.controls.dataGridClasses.DataGridColumn;
    import mx.messaging.AbstractConsumer;
    import mx.collections.ArrayCollection;
    import mx.controls.Alert;
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    [Bindable]
    private var gridData:ArrayCollection;
    [Bindable]
    private var dirData:ArrayCollection;
    [Bindable]
    private var secData:ArrayCollection;
    private function init():void
      wsAdmin.SelectDirectorates();
      var today:Date = new Date();
      today.setDate(1);
      dtFrom.selectedDate =today;
      dtTo.selectedDate = new Date();
    private function handleExecSummaryResult(event:ResultEvent):void
      for each(var objTbl:Object in event.result.Tables)
       gridData = objTbl.Rows as ArrayCollection;
      dg.dataProvider = gridData;
      var columns:Array = dg.columns.sort(orderColumns);
      dg.columns = columns;
      dg.visible = true;
    private function orderColumns(a:DataGridColumn, b:DataGridColumn):int{
       if (a.headerText == "EngName" || b.headerText == "EngName"){
              return -1;
       }else if (a.headerText < b.headerText){
              return -1;
       }else if (a.headerText > b.headerText){
               return 1;
      } else {
        return 0;
    private function handleDir(event:ResultEvent):void
      var dirArr:Array = new Array();
      var defaultItem:Object = new Object();
      defaultItem['data'] = '00';
      defaultItem['label'] = '-- Select Directorate --';
      dirArr.push(defaultItem);
      for each(var objTbl:Object in event.result.Tables)
       for each(var objRow:Object in objTbl.Rows)
        var obj:Object = new Object();
        obj['label'] = objRow['EngDir'];
        obj['data'] = objRow['DirCode'];
        dirArr.push(obj);
      dirData = new ArrayCollection(dirArr);
    private function handleSec(event:ResultEvent):void
      var secArr:Array = new Array();
      var defaultItem:Object = new Object();
      defaultItem['data'] = '00';
      defaultItem['label'] = '-- Select Section --';
      secArr.push(defaultItem);
      for each(var objTbl:Object in event.result.Tables)
       for each(var objRow:Object in objTbl.Rows)
       var obj:Object = new Object();
       obj['label'] = objRow['EngSec'];
       obj['data'] = objRow['SecCode'];
       secArr.push(obj);
      secData = new ArrayCollection(secArr);
    private function handleFault(event:FaultEvent):void
      Alert.show(event+'');
    ]]>
    </mx:Script>
    <mx:Label width="100%" textAlign="center" text="Executive Summary Report" fontSize="24"/>
    <mx:HBox width="100%">
    <mx:HBox width="100%" horizontalAlign="right" verticalAlign="middle" >
    </mx:HBox>
    </mx:HBox>
    <mx:HBox width="100%">
      <mx:Label text="Search: From"/>
      <mx:DateField id="dtFrom" name="n1" formatString="DD/MM/YYYY"/>
      <mx:Label text=" To "/>
      <mx:DateField id="dtTo" name="n1" formatString="DD/MM/YYYY"/>
      <mx:Label text="   Directorate:"/>
      <mx:ComboBox id="ddlDir" dataProvider="{dirData}" width="170">
       <mx:change>
        <![CDATA[
         wsAdmin.SelectSections(ddlDir.selectedItem['data'].toString());
        ]]>
       </mx:change>
      </mx:ComboBox>
      <mx:Label text=" Section:"/>
      <mx:ComboBox id="ddlSec" dataProvider="{secData}" width="170"/>
      <mx:Label text="Status: "/>
       <mx:CheckBox id="chkCompleted" label="Completed" selected="true">
        <mx:click>
         <![CDATA[
          chkCompleted.selected = true;
          chkInProgress.selected = false;
         ]]>
        </mx:click>
       </mx:CheckBox>
       <mx:CheckBox id="chkInProgress" label="In Progress">
        <mx:click>
         <![CDATA[
          chkCompleted.selected = false;
          chkInProgress.selected = true;
         ]]>
        </mx:click>
       </mx:CheckBox>
      <mx:Button label="Show Report">
       <mx:click>
        <![CDATA[
         if(ddlDir.selectedIndex<1 || ddlSec.selectedIndex<1)
          Alert.show('Please select a Directorate & Section');
         }else
          wsExec.GetExecSummary2(ddlDir.selectedItem['data'],ddlSec.selectedItem['data'],chkInProgr ess.selected,dtFrom.selectedDate,dtTo.selectedDate);
        ]]>
       </mx:click>
      </mx:Button>
    </mx:HBox>
    <mx:DataGrid id="dg" width="100%" rowCount="12"  visible="false"/>
    </mx:Application>

    I'm suspicous about how it can return -1 for both A.headerText and
    b.headerText == "EngName"

  • Dynamic columns in datagrid

    Hi,
    I have a datagrid with a dataprovider.
    And,I am trying to set the number of columns and column
    headerText values of that Datagrid based on the values from an
    array.
    Any suggestions on how we can do this or does anybody has
    already worked on this?
    Those suggestions would of very great help to me.

    Assume that your colum information is contained in the Array
    columnInfo which is not your dataProvider. Assume "dg" is the ID of
    your DataGrid control.
    var columns:Array = new Array(); // this will hold the
    DataGridColumns
    for(var c:int=0; c < columnInfo.length; c++) {
    var col:DataGridColumn = new DataGridColumn();
    col.headerText = columnInfo[c].headerText; // or whatever
    holds the header text
    col.dataField = columnInfo[c].dataField; // or what holds the
    name of the field in the dataProvider
    columns.push(col);
    dg.columns = columns; // columns now added to the
    DataGrid.

  • Format Column Header in Crosstab Query in Crystal Reports for Enterprise

    Hi
    I am using Crystal reports for Enterprise and I would like to format the Column header of a crosstab query one block of colour say light blue.  However I cannot select the header in isolation to the rest of the cross tab.  All I can select is either column text boxes, which doesnu2019t look good formatted as a different colour to the background of the crosstab.  Or I can only select either entire column or the entire row, which kind of defeats the object of formatting just the column header itself.  Is there a way to isolate the column headers so I can format just the header, as the report is looking extremely bland all in white?
    Many Thanks in advance
    Regards
    Neil

    Alright, here's what you need to do:
    1) RIght-click one of the Column Headers and select 'Format Result Object Element' > Appearance > click on the formula button (fx) beside 'Fill' and use this code:
    if currentrowindex < 0 then crBlue
    You wanted light blue right? So, the rgb value for light blue or sky blue would be 135-206-250. So, you can change the color by modifying the formula like this:
    if currentrowindex < 0 then color(135,206,250)
    If this is not the exact blue you're after, just google!
    Hope this helps!
    -Abhilash

  • Format column in query

    Hello,
    Can someone teach me how to format the column in the query result so that all columns could fit in one row?
    This is my query:
    select b.studio_first_name || ' ' ||b.studio_last_name "Actor's Studio Name",
    to_char(b.date_of_birth, 'dd Month yyyy') "Date of Birth",
    b.real_first_name || ' ' || b.real_middle_name || ' ' || b.real_last_name "Real Name"
    from star_actor a, star_actor b
    where a.studio_first_name = 'Bill'
    and a.studio_last_name = 'Paxton'
    and to_char(b.date_of_birth, 'mon') = to_char(a.date_of_birth, 'mon')
    and b.studio_last_name != 'Paxton'
    order by b.date_of_birth;
    and this is the result:
    Actor's Studio Name Date of Birth
    Real Name
    Lisa Eilbacher 05 May 1957
    Lisa Eilbacher
    Eddie Murphy 03 May 1961
    Eddie Regan Murphy
    Cate Blanchett 14 May 1969
    Catherine Elise Blanchett
    Drew Barrymore 22 May 1975
    Drew Blyth Barrymore
    The real name could not fit in the same row as the studio name and date of birth. how can I decrease the size of actor's studio name and real name? anyone?
    thank you for your help

    or use a TRIM()
    select Trim(b.studio_first_name || ' ' ||b.studio_last_name) "Actor's Studio Name",
           to_char(b.date_of_birth, 'dd Month yyyy') "Date of Birth",
           Trim(b.real_first_name || ' ' || b.real_middle_name || ' ' || b.real_last_name) "Real Name"
      from star_actor a, star_actor b
    where a.studio_first_name = 'Bill'
       and a.studio_last_name = 'Paxton'
       and to_char(b.date_of_birth, 'mon') = to_char(a.date_of_birth, 'mon')
       and b.studio_last_name != 'Paxton'
    order by b.date_of_birth;

  • Apply custom repeat formatting, column deletion, and sorts?

    I download a .csv sales report file weekly.  Is there a way to create and apply a pre-determined/custom formatting, deletion of columns, and "sorts?"
    The .csv data contains the same fields/headers on each week.  Then every week I go through and delete the columns that I don't need and sort the data on the same criteria.  Is there a way to save these steps and apply them with each new report I open?
    It would be the equivant in Photoshop, of "recording" "actions" and "playing" them on opened files.

    There is no way to rtecord actions but if you describe exactly what you need, I may try to write a script doing the trick.
    The most efficient scheme would be to send to my mailbox an exemple of the csv file (ten rows would be sufficient) and the Numbers document which you want to get starting from this source.
    Click my blue name to get my address.
    Yvan KOENIG (VALLAURIS, France) mercredi 24 août 2011 21:29:19
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Click event for single column in DataGrid

    I can add an event listener to a DataGrid of type
    ListEvent.ITEM_CLICK, which is triggered when the user clicks any
    part of an entire row in a DataGrid. I want to trigger a click
    event for just one column. I only want to run a function when the
    user clicks in just the first column of the DataGrid, and not run
    trigger the event if they click in any other column. Any help would
    be much appreciated.

    Accessing the event.target returns the entire DataGrid, not
    the DataGridColum. Any way to get just the DataGrid column?

  • Aligning a Column in DataGrid

    I have a DataGrid that shows product information. And one
    column is a 'Price' and the client wants JUST that 'Price' column
    to be aligned to the right.
    Is this possible? if yes, then any example?
    Thanks,

    You can also set the lockedColumnCount property in the mx:DataGrid as well:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
        <mx:DataGrid id="dg3" lockedColumnCount="1" horizontalScrollPolicy="auto" width="300">
            <mx:dataProvider>
                <mx:ArrayCollection>
                    <mx:Object c1="1" c2="one" c3="ONE" c4="OnE" c5="The quick brown" />
                    <mx:Object c1="2" c2="two" c3="TWO" c4="tWo" c5="Fox jumps over" />
                    <mx:Object c1="3" c2="three" c3="THREE" c4="ThReE" c5="The lazy dog" />
                </mx:ArrayCollection>
            </mx:dataProvider>
        </mx:DataGrid>
    </mx:Application>
    Peter

Maybe you are looking for

  • Moving iPhoto library to external hard disk

    I am attempting to move my iPhoto library to my new external hard disk. Moving the pictures is not the problem, it is telling iPhoto where the new library is located. I dont have leopard yet so I dont have iPhoto '08. I looked up how to move my libra

  • E52 screen display

    the display on my nokia exceeds the screen, and even if I reduced the size of icons, I find the same problem, such as on the Welcome screen I only see dd / mm / y ... in place of dd / mm / yyyy. please help me ! Solved! Go to Solution.

  • Database prepared statements Flooding

    Hi Friends, Need your help to fix this prolonging problem in one of our applications. We observe that the following queries are declared as prepared statements but have dynamic value ROWID in each. SELECT ROWID, C. * FROM Table1 C WHERE C.VENDORLOGIN

  • HT1386 how i can back up only my photos from my iphone4s

    I would like to know how i can back up only my photos from my iphone 4s to a computer with itunes where I don't have my  library

  • Faces data missing; how to recover?

    About 2 months ago, I verified my back-ups, wiped my drive, and did a fresh install of everything on my MacBook Pro. Many problems were solved, and all was well -- including with my iPhoto library -- until today. Although I don't access Faces often,