How to change datagrid contents?

Okay it is easy to follow the tutorials and populate a
datagrid like:
<mx:DataGrid id="dgmain">
<mx:columns>
<mx:DataGridColumn headerText="header1" dataField="col1"
/>
<mx:DataGridColumn headerText="header1" dataField="col2"
/>
<mx:DataGridColumn headerText="header1" dataField="col3"
/>
</mx:columns>
<mx:ArrayCollection id="arrcol">
<mx:Array id="arr1">
<mx:Object col1="cell 11" col2="cell12" col3="cell 13"
/>
<mx:Object col1="cell 21" col2="cell22" col3="cell 23"
/>
</mx:Array>
</mx:ArrayCollection>
</mx:DataGrid>
But how do you update a cell value, for instance cell in row
1 coulumn 2 where i want to replace "cell12" with "new value" ?
Another thing: i want to get data from a sql-server by using
a webservice or something so perhaps there is another more easy way
to populate and update a datagrid or accordion?

Your underlying array collection (that will be the
dataprovider for the grid)
should be declared with the bindable metatdata tag
[Bindable]
private var mydata:ArrayCollection
Now Flex we do all the data binding you need.
Now you can make the datagrid editable, or more likely
capture the click or change events in the grid, get the selected
row, poputate a editor panel (again using data binding so Flex will
do all the work).
For example, suppose you have a collection of Employee
Objects:
[Bindable]
private var employees:ArrayCollection;
[Bindable]
private var selectedEmployee:Employee

Similar Messages

  • How to change the "content created" date/time in FCPX?

    Since I've had problems importing my whole iMovie event library into FCPX I decided to run some tests with importing individual files (part of iMovie events and originally imported from camera into iMovie). Some of them for some reason got the wrong "content created" date/time in them while in iMovie they have the right date/time set. Does anybody have an idea on how to change the "content created" timestamp?

    I had a bunch of DV files that imported stamped with the file modification date and time.  I did not find a way to change it in FCPX. With FCPX not running, I used A Better Finder Attributes to modify the creation and modification dates of the files in the event folder. FCPX reconnected to them but the event still showed the old range of dates so I created a new event and moved the clips to it. Maybe ther is a beter way but that is how I did it.

  • How to change the Content-Transfer-Encoding for the fmddataa.fmd from base

    Dear all,
       When I using this SO_DOCUMENT_REPOSITORY_MANAGERto send email,I find the fmddata.fmd  file have been changed  to binary file attachment. I don't hope so.any one have good idea to avoid this case occur?
      Can you tell me how to change the Content-Transfer-Encoding for the fmddata.fmd from base64 to quoted-printable.  The quoted-printable is the Content-Transfer-Encoding for text file with extension .txt
    Best Regards,
    Merry

    Thank you

  • How to change table content ...

    Hi All,
    Pl. give us soltution for the following :
    1. How to change table content of standard table ?
        (eg. mara content not from MM02.).
    2. How to add field in standard table ?
    waiting reply.
    Yusuf

    Hi  Yusuf,
    Modifying a standard table through a program using SQL statements is highly risky. However if u wish to do it programatically and not through MM02, you have the option of using BAPIs.
    Goto transaction BAPI and through the application hirarchy, goto Material Management section. There i am sure u will find some BAPIs to modify material master and they are the most stable mode of update programatically.
    Hope this helps.
    Regards,
    Aditya

  • On opening up toast to burn its telling me that the tv standard is set to ntsc but all of my content is in pal format. how to change the content to ntsc seeing i am using final cut 10.

    on opening up toast to burn its telling me that the tv standard is set to ntsc but all of my content is in pal format. how to change the content to ntsc seeing i am using final cut 10.

    Select the Project in the Browser.  Go to the Info section of the Inspector.  Click the Modify Settings button.  For  Video Properties, change the Format from PAL to NTSC.  Export again, you'll be fine.

  • How to change the content in request at approval stage

    Dear experts,
    We have a requirement like following:
    Frist, User submits a new account request, the field "Position" is set to cerntain value, eg. sales support
    Then, Manager should have the capbility to change the content in field "Position", such as changeing sales support to sales manager, when he approves the request.
    However, it seems that only very few fields can be changed after request submition.
    How could we configure AC to let the managers can change the content in request at approval stage?
    Thanks a lot!

    Tang,
    In the stage for the Manager set the "Change Request" to 'Yes'.  This will open up a few fields for you, including user group, role validity dates, etc.  I do not believe this will open up position though.

  • How to change BI Content InfoObject (move Lowercase letter mark) and transp

    Hello,
    1. Do you know how to change the business content infoObject by moving the mark "lowercase letter" for the characteristic (no master data) so that i can transport it in PROD.
    When i tried to change it, the message i recieve is, that i have to delete the SID table. And when i want to delete the SID table, i reciéve the message that, the table content data, and that the data in the table have first to be deleted. And also, i cannot delete data in the SID table.
    Actually, and by trying to resolve the problem, i see that the infoObject is NOW on "REVISED",....
    2. Normally, i have to change the infoObject by removing the "lowercase letter Mark", so that by the activation, it can be transferred to a transport order i created in Solution manager PROD. But the infopackage and transformation and datasource i created before did not, give a posssibility to save this in the transport order.
    3. How can i change the activated Business Content infoObject (now on REVISED) and transfer it to the transport order i created in Solution manager Prod. For example, i created a logical system in SPRO and could transfer it to the transport order, but in RSA1, by creating the objects, no dialog to transfer the Z-Bi created objects in transport ORDER is displayed.
    My most important problem here is the change for the INFOOBJECT, save the change in transport order, and transport it in productiv.
    4. One more question, is to know what happen with old request data in PROD infocube, after i transport the change infoObject in PROD?
    Do you know how to resolve the problem?
    Kind regards and many thank for helping
    Arnaud

    Hi,
    Did you try Delete Master Data on the right click of your Infoobject? Since your infoobject is already loaded with data, it does not allow you to change the definition. You need to delete data completely from the infoobject and change the lower case letter.
    You can only transport the Active version but not revised version.
    Try deleting tables in SE14 t-code.
    Regards,
    Suman

  • How to change the content of GTC (terms and conditions) for Partner

    Hi all,
         We are using R/3 version of ISA B2B site. while creating order thru Shopping Basket we have requirement that We need to provide GTC (General Terms and Condions) for the Partner (View GTC link ).  Right now some default text is displayed in that window (text text text ext text text text text text like that). we need to change this.
    where i can change this text and enter our own terms and conditions.
    Please help me to resolve this,
    thanks in advance
    siva kumar

    Hi Siva,
    the GTC is shown in the JSP b2c/order/terms_and_conditions.jsp. If you have a look at the file, you will find the following code:
    <isa:translate key="b2c.order.termsAndConds.txt.dmy"/>
    The translate tag will render the language dependant text for the resource key "b2c.order.termsAndConds.txt.dmy". To change the content that is shown you can change the resource text or create your own resource key in the corresponding resource file. The resource files are located in the src-folder of the web application DC.
    Best Regards,
    Peter Kraus
    SAP Web Channel Consultant
    http://www.leonardo-it.com

  • How to change Portal Content by date?

    Dear Colleagues,
    We have the following requirement, a user must be able to change the content (news, the content of iviews, other info) of the portal start page(a custom developed framework page for the external portal) by selecting a date in the calendar.
    If you have any ideas or you've already worked on such a solution, please share your thoughts.
    Sincerely,

    Venkatesan
    Please do the following step by step.
    1. Logon as administrator to your portal.
    2. Go to Content Administration. In the option portal content right click to get the option New -> Iview.
    3. Select the option SAP Web dynpro Iview in the list of Iviews and give the respective properties.
    Is your WD component fetching data from backend. If yes create system before creating the Iview. To create system search for "Portal Integration of the Web Dynpro Application" on help.sap.com and you will get the exact steps.
    Do assign points if this helps.
    Please award points if this helps.

  • How to Change label content in a sequence ?

    OverView: I am using VS 2012 , WPF and C#.
    I have got 60 radio buttons in 20 groups. 3 radio button per group name(out of 60 radiobuttons, only 20 can be checked at a time).
    Radiobuttons are C, NC,NA in each groupname.
    I have 20 labels in other form which i intend to link with radiobuttons having name only NC. for example, Label_1 content will only change when NC is checked else it's by default empty. 
    Problem:
    I can change the content of the label using if and else. BUT problem is:
    For example:
    Label names are Label_1 to Label_20. I have arranged them in a line from Label_1 to Label_20. Every label is connected to NC radiobuttons. When user checks only three NC's then it just changes the content of the three labels which is good as per requirement
    but as each label is connected to a certain radiobutton, vacant ugly spaces are created which is not the requirement. 
    Question:
    I want to know is there any kind of loop or something that if only 5 radiobuttons are NC then the first five label content should change ? I know that i linked the labels with radiobuttons thats why they change. but there should be a way to generally change
    the content of the label. some loop or something. Plz help.
    Why i require all this:
    Basically, Nc means non-compliant. so at the end of the application, i want to give the user the list of all non-compliant factors.

    I'm not sure I understand exactly what you're doing here, but I have a somewhat different approach I think I would probably use.
    I'd make a usercontrol which I used for each question.
    Add 2 public dependency properties:
    Label text
    Selected option
    Arrange the label and 3 radio buttons in the usercontrol to suit the requirement - probably using a grid.
    As a radio button is checked/unchecked change the value of selected option DP.  As the DP changes, set the appropriate radio button.
    I could then new up one of these things, set the label and add it to an itemscontrol or listbox.
    ( I guess I'd also need some sort of spacer kind of control to group them maybe.)
    If I wanted to know which questions are a particular option I could just iterate the items and check the selected option dependency property. I could do that using linq.
    If I wanted to update some collection of data I could bind those properties or iterate again.
    Hope that helps.
    Technet articles: Uneventful MVVM;
    All my Technet Articles

  • How to change the content of the URL on the fly.

    Hi,
    I am creating a label for sold items. To create this, I've created a html template which fills the data dynamically.
    In Silverlight,
    System.Windows.Browser.HtmlPage.Window.Navigate(someUri, "_blank");
    is the way to open html files.
    My requirement is before navigating to the page, I want to replace the data in the file. and when we navigate, it should show the modified content. So that I can print the label.
    The steps are:
    Read the template file
    Replace the values (Don't save)
    Navigate to the page with modified content.
    Please advice me to get this functionality.
    Thanks,
    Tahnks & Regards Kiran Chinthakuntla

    You can save data to a cookie and navigate to a html page which reads from that cookie to display it's contents.
    http://stackoverflow.com/questions/12183572/how-to-use-javascript-to-fill-a-form-on-another-page/12183659#12183659
    http://stackoverflow.com/questions/5639346/shortest-function-for-reading-a-cookie-in-javascript
    Your process is silverlight > cookie
    Navigate to page which is served from your server.
    page reads cookie and fills itself.
    Other options.
    You can actually do xsl transforms from javascript within the page to build html.
    Or you could pass the data as query strings, but that's a bit rubbish as the user sees them.
    There was a similar question a while back you might want to search for. 
    I found a link which demonstrates live update between two web pages via cookie.
    You could change the cookie dynamically in silverlight and that is reflected in the web pages.
    I don't think that's your requirement here but....
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • How to change inner content of HTML tag using HTMLDocument?

    I want to change the inner content of an HTML tag from a HTMLDocument. The tag is like
    <span id ="id1">Replace me</span>.
    So I want to change the text "Replace me" inside the span tag and replace it with an other text.
    I can get the span element using
    HTMLDocument.getElement("id1")
    I have tried many things with the Element instance i got from getElement. But I find no way to change the inner content of the HTML element. Any ideas?

    If I use JDK 1.5 the SPAN tag works, so I checked the core of the problem which is inserting HTML code in an HTML tag.
    setInnerHTML works fine for block tags like DIV but not if the tag is a leaf element like the SPAN tag. I have tried to use the following code for leaf elements:
    Element elem = m_htmlDocument.getElement(id);
    int nStartOffest = elem.getStartOffset();
    int nEndOffset = elem.getEndOffset();
    int nLength = nEndOffset - nStartOffest;
    m_htmlDocument.replace(nStartOffest, nLength, html, elem.getAttributes());
    This works, but only if the new HTML string does not contain HTML tags like a link <href..... >. If the string contains HTML tags the replace method masks all characters like < or >. So the link is not shown as link in the HTML page but as HTML text.
    The next thing I have tried is using
    m_htmlDocument.setOuterHTML(elem, html);
    This works too but it replaces the whole original HTML element like the SPAN tag.
    So there is still the question how to insert HTML text into a leaf Element in a HTMLDocument.

  • When UI is required,how to change UI content bgcolor style by css skin

    when UI attribute required="true",there will be an '*' in front of the UI,1in addition,i want to change this UI content bgcolor style by css skin,How to achieve this?

    You could do something similar to setting the inlineStyle attribute of the UI content whose background color you want to change.
    inlineStyle='#{(bindings.TreeBindingName.hints.RequiredAttributeName.mandatory) ? "#C8C8C8" : ""}'

  • How to change the content of a cell in an ALV-List?

    Hi,
    knows anybody a way to change the cell-content in an ALV-List?
    In my case, I want to give the user the posibility to click on a pecific cell
    in the list and change in an edit-mode or similar else!?
    Thanks for your ideas!

    Get the existing field catalog using the method cl_gui_alv_grid->get_frontend_fieldcatalog. Change the edit property in the field catalog and refresh it using the method cl_gui_alv_grid->set_frontend_fieldcatalog.
    Hope this helps.
    Regards,
    Nithya

  • How to change the content dynamically by date wise

    Hi,
    In my application, i have a survey module.
    In that i have to change the question by every week, which iam getting
    from the Database.
    Iam using java,and mysql DB, framework struts.
    How can i update the question for every week ??
    What is the procedure to attain it.
    Give me suggestions and tips to startup.
    Thanks,
    Mohan

    The cron command would do that on Linux and Solaris. On Windows, use a similar command.

Maybe you are looking for

  • How to open Fuji X-1E  RAF files in CS5? I have Camera RAW 6.7

    According to what I've seen on the Adobe website Camera RAW 6.7 in CS5 should be able to open the files from my Fuji but it isn't. Photoshop says all the components are up to date. Any ideas how I can get it to work? Thanks Tony

  • Outlook Connector and shared calendar

    Hi. Looking for some help troubleshooting an issue with shared calendar functionality from Outlook using the Connector. All server bits are JES-R2. Connector version is 6.0.129. Connector is working for the most part, but when I try to subscribe to a

  • Apple TV 3 audio signal goes off after each song?

    My Sony receiver has to reaquire the audio signal from the ATV 3 at the beginning of each song when streaming songs from the Mac. This causes a fraction of the beginning of each song to be missing. Very irritating. There is a clicking noise at the en

  • Get hit count of a page or a dashboard (usage tracking)

    hi, experts, I found that I can get the query count (using count(*)) from usage tracking. but is it possible to get the hit count on a particular tab page or on a particular dashboard? not the query count on a page or a dashboard. thank you very much

  • Is jsp:plugin supported in weblogic 5.1 or 6.0?

    I tried to compile %WEBLOGIC_ROOT%\examples\applets\phonebook12.jsp in WLS5.1.The generated servlet class(using a java decompiler to generate a source code or using anotepad to view the class file directly) still has <jsp:plugin> tag in it.jspc does