DataGrid Data and Behaviour Modification

stop();
import fl.events.DataGridEvent;
function endEditHandler(evtObj)
trace(DataGrid_Main.getItemAt(evtObj.rowIndex)[evtObj.columnIndex]);
DataGrid_Main.addColumn("SSN");
DataGrid_Main.addColumn("First Name");
DataGrid_Main.addColumn("Last Name");
DataGrid_Main.addEventListener(DataGridEvent.ITEM_EDIT_END, endEditHandler);
DataGrid_Main.addItem({});
I have the above AS code. If I edit the row that I add, I get an 'undefined' for the value that I've just entered. Is there any way to get the value that I've just entered?
Also, where can I find a guide for re-programming the behaviour of a DataGrid? For example, if I only have 2 editable columns out of say 7 and after editing the first editable column, I want the cell editor to shift across to the next editable column instead of the next row. Or if the second editable column is edited then the cell editor will drop to the next row in the first editable column. Is there a guide somewhere for that sort of re-programming?

my error.  use:
stop();
import fl.events.DataGridEvent;
function endEditHandler(evtObj)
trace(DataGrid_Main.getItemAt(evtObj.rowIndex)["SSN"]);
// or
trace(DataGrid_Main.getItemAt(evtObj.rowIndex).SSN);
DataGrid_Main.addColumn("SSN");
DataGrid_Main.addColumn("First Name");
DataGrid_Main.addColumn("Last Name");
DataGrid_Main.addEventListener(DataGridEvent.ITEM_EDIT_END, endEditHandler);
DataGrid_Main.addItem({});

Similar Messages

  • File window not updating modif. dates – and mysterious parallel universe discovered

    The day started innocently enough when I tried to edit some <meta> content on a site I'm building and then saved my work. Little did I know...
    DW's "File" window refused to update the "Modified" column of the files I worked on.  Open and closing the files shows that my changes have been recognized and incorporated into the HTML, and the files show up with correct modification dates in Finder (I'm on a Mac). They just won't change date in DW.
    When I upload the modified-but-not-redated-in-DreamWeaver files to my remote site, they appear with the incorrect dates on the server, but a text comparison in DW shows that my local and remote files are synched.
    Now for the truly weird part: when I run the site in Safari (after flushing its cache), a Source check shows the old code is still operational.  (I also changed the titles of the pages in question to quickly confirm which version was being displayed. This check shows the old title displayed.)
    Here's the site address:  http://www.bearriverbooks.com/index.html
    Now for the truly, truly wierd part.  I have a parallel site ( http://www.queen-of-the-northern-mines.com/index.html ) which contains copies of the bearriverbooks.com files. These files, too, show the wrong modification dates in DW's "Files" window and on the remote server – but they display correctly. Anyone who wants to check can compare page titles, which are longer in the later pages with correct code.
    I checked the remote site addresses in the "Manage Sites..." center.  I have not crossed my wires there (though I can smell a few arcing badly in my brain.).
    The players:  2.8 GHz Intel Core i5 27" iMac running Mac OSX 10.6.7  /  Dreamweaver CS5 v.11.0 Build 4964
    Thanks in advance,
    Richard Hurley
    Grass Valley MultiMedia

    I am having the same issue on a Mac 3.4Ghz i7 running Mac OS 10.7.  I have Dreamweaver CS 5.5 v.11.5 Build 5344.
    I have a linux webserver, running ProFTPD v.1.3.1
    Both my mac and my linux server are set to the correct date and time.
    And ls on the linux servers tells me the files have the correct modified date and time, but this is getting lost in translation to dreamweaver when I view the remove server in the File tab.
    Any help appreciated.

  • Project Server 2010 - Modification date and name of the person who made the last change in the project

    Hello everybody
    I'm with a doubt.
    I got in the business
    environment Project Server 2010 and
    would like to get the publication date,modification
    date and name
    of the person who made
    the last change in
    the project. It is possible
    to doby the native
    resources or is
    there any query in
    SQL Server to perform a
    query of this information.
    Thank you.
    Obrigado por contactar o fórum Microsoft Technet!

    Hi Hezequias,
    You can get the ProjectModifiedDate column in MSP_EPMProject_userView in the Reporting DB where you can
    get the data based on the projectUID. 
    The "last saved" date in the draft DB (be aware that querying in the draft DB is not supported by MS).
    For the "last modified by", I think it is not stored in any place.
    But you can develop custom code upon publishing the project (Event BeforePublish), writing the current
    date and username automatically into a custom enterprise field.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • How to insert data into datagrid dynamically and also programatically with data and column names being retrived from a xml file..

    iam not able to insert data into datagrid corresponding to the column names..as iam inserting both data and column names programatically..ie iam not able to co relate the data with the column names.plzzz help me asap

    A DataGrid is row-based rather than cell-based with each row
    corresponding to an item in an underlying collection (specified in the
    dataProvider property). In order to add data to a DataGrid you
    manipulate the underlying collection, rather than the grid directly.
    Based on the limited description of your problem I would imagine you
    would need to create dynamic objects with property names that correspond
    to the dataFields of your dynamically created datagrid columns.
    So if you had created columns with dataFields "alpha", "beta" and
    "gamma" on your datagrid, you could create an item in your grid by
    adding the following object to your dataProvider:
    var gridItem : Object = new Object();
    gridItem.alpha = "alphaValue";
    gridItem.beta = "betaValue";
    gridItem.gamma = "gammaValue";

  • How to capture file modification date and time over the web

    HI!
    I am creating a web based application and I am using webutil package for al lot of my work being that I ma working with renamin,deleting and uploading files for a users machine to the database. There is one functionality thing that I have to do in this application that webutil does not take care of and that is capturing the modification date and time from a file on the users machine. Please help me capture the date and time of a file on the users machine.
    Thanks!

    Since webutil allows you to write file on client PC directory, then you first create a directive file, then host that directive file. the directive file content is just the command lines when you manually do it on PC.
    Refer the ideas--just the ideas not the same built-ins in this URL:
    Hyperlink in forms

  • Aperture was not able to adjust the date and time of the master file "2008-06-22 at 14-41-14.jpg" because it has a format that does not permit date modification.

    I can't seem to find a way to update the date/time of a master file. There is a format issue but I can't seem to figure out how to correct it.
    Aperture was not able to adjust the date and time of the master file “2008-06-22 at 14-41-14.jpg” because it has a format that does not permit date modification.

    Can you post an ipconfig /all from the server and the DC?
    Robert Pearman SBS MVP
    itauthority.co.uk |
    Title(Required)
    Facebook |
    Twitter |
    Linked in |
    Google+

  • How to find the Date and Time of Modification of Column in aTable?

    Hi all,
    Do  you know how to find the Date and Time of Addition of Column to a Particular Table?.
    I know however, How to find the modification time of the Table. Using the below Query :
    Select Object_Name, to_Char(Last_DDL_TIME, 'DD-Mon-YYYY HH24:MI:SS') Last_DDL from User_Objects where Object_Type = 'TABLE';
    Object_Name
    Last_DDL
    Employee
    20-Aug-2013 09:23:03
    I wanted to know the Creation or Modification Date and Timestamp of all columns of Employee Table?. Is it possible at all. If possible, How to get it?.
    Regards,
    Bhaskar M

    I agree with you on that. Since its a development enviornment I can remove the column but that not my point here.
    My whole purpose it to know whether we get the Column's Creation or Modification DateTime.

  • After editing file in ACR 8.6 (Mac) , the file (NEF and XMP) modification dates are not updated

    With both my Mac's, reset Photoshop C  (2014) to previous version 2014.0. Now find that after editing file in ACR 8.6 (Mac) , the file (NEF and XMP) modification dates are not updated. Reloaded camera raw, etc., but still find modification dates are not updated, either using Finder or using Bridge to view dates. Editing other files, PSD, DNG, TIFF, etc., are updated and the information is correctly displayed.

    Ok, not entirely sure what I did but it's now working (Bizarre!). The only thing I did was 'eject' the ACR 8.6 .dmg file from the finder side bar and restart PS CC, so that may have been where I was going wrong all along!
    However, I now have another issue in that there is no preview of the shot in Finder on my iMac when I highlight the NEF file. I assume this is simply because Apple haven't yet released an update for the new D810 NEF files and so the computer doesn't know what it's looking at?!?
    If anyone has any other ideas though, then I'm more than willing to listen.
    Thanks again.

  • System Preferences can't set date and time and other odd behaviour

    I have a 2008 Macbook Air, which is beginning to show signs of age, but now appears to have taken on a terminal problem.  I can't set the date and time in the system preferences, even when connected to the internet - the pane just comes up as faded out and I am unable to do anything. The problem started after I accidentally allowed the battery to run down without having shut down the computer and it automatically assumed a date of 1 Jan 2001. I am unable to perform any updates on the machine until the issue is resolved, according to software update.
    Other strange things that have happened are that the trackpad no longer responds to the 'tap to click' function or 'two finger' click. In system preferences, I cannot edit energy saver, network (advanced) or account settings - attempting to do so brings up more faded panels or an error message after failure to load.
    Has anyone seen similiar behaviour on their mac or have suggestions as how I might resolve the problem?
    Thanks!

    If this is recent, what has changed since the last time D&T worked correctly?
    I see that your Question has languished for some period of time without response. You have posted your issue in Using Apple Support Communities whose topic is 'How to use this forum software's interface, features and/or how to find what you wish'. It is a relatively low traffic and inappropriate forum for your problem. I will ask our Hosts to move it to " Using iPhone " where it may get a more rapid response from your fellow users.
    ÇÇÇ

  • How to format date and currency datafield in a Datagrid

    Hy folks
    I am getting my data from a web service (against a SQL server)
    After that convert the data in an ArrayCollection and
    Finally I use the ArrayCollection in a Datagrid ussing somethig like :
    <mx:collumns >
    <mx:DataGridcolumn datafield="EnvoiceDate" />
    <mx:DataGridcolumn datafield="EnvoiceValue" />
    How can I format a date tipe datafield in a Datagrid.
    I need to display da date in an format like  DD/MM/YYYY   ex     12/10/2009.
    I also need to display da number like 1345.87   as  1.345,87
    thanks in advance

    Binoy,
    create fields that refer to DATS and TIMS data types
    Thanks
    Bala Duvvuri
    Edited by: Bala Duvvuri on Aug 5, 2010 10:28 PM

  • To display "modified" by and "modifed date" and the end of every sharepoint page

    Hi there,
    I want to display
    "modified" by and "modifed date" and the end of every sharepoint page and I have as many as 2000 pages
    I have the code for it as below which I have placed in my master page
    <SharePointWebControls:DateTimeField FieldName="Modified" EnableViewState="true" Visible="true" runat="server" ControlMode="Display"/>by
    <SharePointWebControls:UserField FieldName="Modified By" Visible="true" runat="server" ControlMode="Display"/>
    The problem is I am not understanding under which div should I place it to be able to see it at the end of the page.
    Please suggest.

    Hi,
    According to your description, my understanding is that you want to insert the two fields at the end of the page by inserting the corresponding controls into the master
    page.
    The figure below will show how to insert code into master page:
    At the end of the page, it will be:
    Thanks,
    Dean Wang

  • Lightroom changes file date and time

    When I imported a large number of images to Lightroom, keeping the files in their original location, the dates and times of the files were updated. This is a bit of a pain because it means that about 4000 files will now be backed up again to the online backup service I use. Why does LR change the filedate when all it's doing is importing to the library?

    > Alexander wrote: I believe you have set the option to "Automatically write changes into XMP" and are working with non-raw files (jpeg, tiff or dng)? In this case it is the expected behaviour as LR will write any metadata changes right into the files, thus changing the modification date of the image files.
    Either uncheck the above mentioned preference setting or beg Adobe to bring us back xmp side car files for jpeg, tiff and dng.
    No, I'm not stalking you :)
    The following applies to Macintosh OS X, 10.4.8. I don't know if the same happens with Windows.
    I had a similar problem when editing some JPEG file from my Fuji F30. When I would Export the metadata the 'Modified' date of the file changed as expected. However, for certain files, the 'Created' date also changed. I opened a case with Adobe, sent them a description of the problem and some sample files. The Technical Support person reproduced the behavior and passed the information to Engineering.
    Yes, Adobe, give us XMP files for all files.

  • DataGrid ItemRender and font family

    i am writing a custom data grid ItemRender that, for every
    cell, displays a numeric value. Additionally, if the xml data
    structure defines an attribute for a given row, it is supposed to
    display a colored arrow in the same cell.
    Reading the data and determining if to display the arrow, and
    the color of the arrow work fine. I am trying to embed the
    windgings font to display the arrow, that way I can set the color
    programatically. As I said, reading the data works fine, the
    coloring of the 'arrow' works fine. My problem is I cannot change
    the fontFamily of any label in the item renderer. Even the entire
    renderer itself. Below is my code, followed by several other things
    I have tried. Thanks for the help.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:HBox xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="100%" height="100%"
    implements="mx.controls.listClasses.IDropInListItemRenderer"
    horizontalScrollPolicy="off" verticalScrollPolicy="off">
    <mx:Style>
    @font-face
    src: local("wingdings");
    fontFamily: myArrowFont;
    font-anti-alias-type: advanced;
    font-weight: bold;
    .arrowStyle
    fontFamily: myArrowFont;
    font-weight: bold;
    font-size: 12;
    </mx:Style>
    <mx:Script>
    <![CDATA[
    import mx.controls.listClasses.BaseListData;
    import mx.controls.dataGridClasses.DataGridListData;
    protected var _listData:DataGridListData;
    public function get listData():BaseListData
    return _listData;
    public function set listData(value:BaseListData):void
    _listData = DataGridListData(value);
    invalidateProperties();
    override public function set data(value:Object):void
    super.data = value;
    cellArrow.setStyle('color',value[_listData.dataField].@color);
    switch(value[_listData.dataField][email protected]())
    case 'up':
    cellArrow.text = 'é';
    break;
    case 'down':
    cellArrow.text = 'ê';
    break;
    case 'equal':
    cellArrow.text = 'd';
    break;
    default:
    cellArrow.text = '';
    break;
    cellText.text = value[_listData.dataField];
    ]]>
    </mx:Script>
    <mx:Label id="cellText" text=""/>
    <mx:Spacer width="100%"/>
    <mx:Label id="cellArrow" styleName="arrowStyle"
    text=""/>
    </mx:HBox>
    I have tried using <mx:Label id="cellArrow"
    fontFamily='myArrowFont'/>
    I have set the fontFamily='myArrowFont' in the base HBox tag
    as well, and it doesn't change the font of either the cellArrow or
    cellText label.
    I have also used
    cellArrow.setStyle('fontFamily','myArrowFont') in the override set
    data method.
    I have written the same component in ActionScript
    implementing the same functionality.
    The cellArrow label's text and color are set correctly to the
    data, however I cannot get the font to change to windgings.
    I have tried setting the DataGridColumn fontFamily to the
    wingdings font, and all it does is change the header text of the
    column, not any of the rows.
    The actual datagrid is created entirely in actionscript,
    because it is part of a control that will build a datagrid with X
    number of columns, defined in a data structure. That code works
    fine as well, and is below, incase it helps.
    //_dataP is an XMLList from an httpservice or web service
    that defines our grids
    var colsX:XMLList = _dataP..column; //get an xmllist of our
    columns
    var len:int = colsX.length(); //and store the length
    var cols:Array = new Array(); //create an empty array to hold
    each column
    var col:DataGridColumn; //a data grid column reference
    for(var i:int = 0; i < len; i++)
    col = new DataGridColumn(); //create a new column
    col.headerText = colsX
    .@text; //set the header text
    col.dataField = colsX.@field; //and data field
    col.itemRenderer = new ClassFactory(quadBoxItemRenderer);
    cols.push(col); //add it to the array
    _grid.columns = cols; //set our columns array as the columns
    of the grid
    var rows:XMLList = _dataP..row;
    _grid.rowCount = (rows.length() == 0) ? 1 : rows.length();
    _grid.dataProvider = rows; //and give it the list of rows
    _grid.percentWidth = 100;
    _gridBox.addChild(_grid);
    any help is vastly appreciated. Thanks.

    Disregard my question - I've unfortunately failed to check the font-family string as submitted by the server and it turned out to still have a colon character in front of it...
    I guess I've spent a few too many nights working on this making me susceptible to tiredness and a strangely blank mind...
    My apologies,
    Rogier

  • Pricing date and billing date in va01 transaction

    Dear all,
    step 1:   we have sales order of order type IEL1 in our sap system
    step 2: then we do have order type IELB which is called billing request . this is created in va01 transaction against IEL1 sales order type. now here billing document is created.
    at the time creation of billing request (order type IELB) we get data flown in from sales order of type (IEL1).
    now my requirement is that pricing date and billing date needs to be today's date and not the past date which was in sales order.
    please help me in getting current date at the time billing request.
    what is exit or modification i have to do.
    if not clear please let me know.
    thanks
    krishna

    hi,
    in va01 i create a sales order of type IEL1 and as well order type IELB.
    now in our process we create sales order of type IEL1.
    then we create billing request of type IELB with reference to order of type IEL1.
    finally we create invoice in transaction code vf01 against order type IELB.
    THIS is the process we are following.
    thanks
    krishna

  • How do I maintain data and selection in a SWF after AutoDetach() is called?

    To date, the behaviour of my Flex panel has been based on the old CS4 sample, which stroked boxes using a thickness value specified in a combobox. Now I need to change the behaviour, but I'm not sure how to go about it.
    At the moment the SWF file is loaded on an xxxxUIPanelSelectionObserver::AutoAttach() and unloaded on the AutoDetach(). I also have code in these functions that attaches to and from subjects in the model plug-in. xxxxUIPanelSelectionObserver is derived from ActiveSelectionObserver.
    When the user collapses/minimizes the UI panel (for example into the sidebar on the RHS), AutoDetach() gets called and consequently the SWF file is unloaded and detaches observers from subjects. Consequently any data I passed to the SWF and any selections made are lost. When the user expands the UI panel, AutoAttach is called, the SWF is reloaded and observers are reattached to subjects.
    This is no good for me. When I collapse the panel I need the SWF to remain loaded and for it to be updated when any changes occur to subjects in the model plug-in.
    One approach would be to do a one time only SWF load/observer attach in xxxxUIPanelSelectionObserver::AutoAttach() and remove code from AutoDetach. But this doesn't sound safe to me and likely to lead to a boss/resource leak somewhere down the line.
    Another would be to store all data and selection information in the C++ UI plug-in and pass that into the SWF when it gets reloaded. But this means duplication of information (especially the selection information).
    The other way would be to alter when AutoAttach() and AutoDetach() get called - ideally I don't want AutoDetach to occur until the application closes. But I have no idea how that could be done.
    Any ideas on how to resolve this would be appreciated.
    Thanks in advance,
    APMABC

    I've spotted two functions - AttachToSelectionSubject() and DetachFromSelectionSubject(). They take ISubject* as an argument.
    Given the desciptions, it sounds like it allows the developer to have more control over when AutoAttach and AutoDetach get called, but as there are no examples of them in use, I'm not sure how tio exploit them.

Maybe you are looking for