Reloading a datagrid with all its records

Hi,
Could someone please tell me how to reload all the records of
a datagrid without having to reload the entire page. I'm using an
XML file (e4x format) to populate a datagrid. Some rows of this
datagrid get deleted during runtime and at some point I would like
to be able to reload the datagrid with all its records. If you have
some code and detailed explanation (I'm a newbie) that would be
greatly appreciated. Thank you very much for your help.
Olivia

Hi Greg,
The XML file is called like this: <mx:XML id="DataTbl2"
format="e4x" source="DataTbl2.xml"/>
And used in the Datagrid as follow:
<mx:DataGrid id="impDG"
rowCount="{getLengthOfXmlArray2(DataTbl1..Option.(Imchecked ==
true))}" visible="true" dataProvider="{DataTbl2.Option}"
editable="false" x="24" y="134" width="611">
I tried impDG.dataProvider.refresh() and it doesn't work. I
also tried DataTbl2.Option.refresh(); and I get an error during
runtime: TypeError: Error #1006: value is not a function.
What do you mean by "collection". I'm not using any array
collection, just an xml file to populate the grid.
Thank you for your help,
Olivia

Similar Messages

  • How to print a dialog box with all its components ?

    Hi !
    I've written an application.It has a dialog box [JDialog] containing following components:
    1) 2 JLabels.
    1) A JTextField.
    3) A JTable with some values.
    4) A JProgressBar.
    5) A JButton.
    6) An animated gif image.
    I want to print the dialog box with all its components exactly as the are [ Except the button & animated gif ].
    Would anybody please help me?
    My Operating System: Windows XP

    The article over at http://java.sun.com/developer/technicalArticles/Printing/Java2DPrinting/ has some helpful information on printing Swing components.
    It suggests creating a subclass of the JComponent that you want to print, and have it implement Printable interface.
    So, something like (note, uncompiled / untested code alert) :
    import java.awt.Frame;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.HeadlessException;
    import java.awt.print.PageFormat;
    import java.awt.print.Printable;
    import javax.swing.JDialog;
    public class PrintableDialog extends JDialog implements Printable {
          * Or whichever constructor you need...
         public PrintableDialog(Frame owner, String title, boolean modal) throws HeadlessException {
              super(owner, title, modal);
          * Implementation of the Printable interface.
           public int print(Graphics g, PageFormat pf, int pageIndex) {
              if (pageIndex != 0) return NO_SUCH_PAGE;
              Graphics2D g2 = (Graphics2D) g;
              g2.translate(pf.getImageableX(), pf.getImageableY());
              getContentPane().paint(g2);
              return PAGE_EXISTS;
    }Cheers,
    John

  • Drill down  with all other records

    Hi, All
    how can I see all other records after drilling down but not only record wich i drilled into?
    i mean drilling like it works in Discoverer or in other words i'd like some records to be expanded and all other collapsed. Does anybody know whether it is possible?
    Thanks in advance
    Message was edited by:
    altimer

    NO, it's not, but anything requiring a major UI overhaul would require some parsing-wrapping with some server-side scripting (like you could wrap it around a php-script - but again - this is a long shot plus you'd have problems with support in case something goes awry). I've seen at someone's blog that such functionality might be released later. For now, the best thing to do would be designing your Dashboards around it. Also, have you looked at Siebel CRM? Because last time I checked - there was something like that there - and you can integrate BI to CRM (at least you could a few years ago).

  • Access Web Database - Select record and make report with all associated records

    Hey everyone,
    Right now I'm in the middle of trying to convert an Access client database to be web compatible and I'm running into some problems. For this question, I think I may need to explain a little bit about the database:
    The database I'm making is designed to store information about music rights for different songs. The users can input information about writers, producers, organizations, properties, businesses - which is stored all in different related tables. Then, when a
    user inputs a song, they choose which writers, produces, organizations, etc. are affiliated with that song. 
    What I'm trying to do is make a report where you can choose a writer from the list of all the writers and then produce a report with all of the songs by that writer. 
    I was able to do this in the Access client by making a report that, when opened would trigger (using the On Open event) a form to open where you would choose a writer from a combo box and then click a button. When the button was clicked, it would use the value
    in the combo box in a query, which would find all of the songs by that writer and then open up the report which would have the writer and all of their songs on it. 
    Because web reports don't have many event options and web queries are very limited, I have not found a way to make this report.
    Any help at all would be greatly appreciated!

    Hi,
    I found that you've cross post the quesion on our Answer forum, are you satisfiled the reply from there?
    http://answers.microsoft.com/en-us/office/forum/office_2010-access/web-database-select-record-and-make-report-with/04ce4e25-a964-4146-9a34-f9cb26bb0496
    Regards,
    George Zhao
    TechNet Community Support

  • Send RFQ to Vendor with all its Attached documents

    Hi,
    My requirement is to Develop Program which send(Email) RFQ data to Vendor along with all documents in attachment list of ME42.
    Standard solution: use ZENU output type but it do not send documents in attachment list.
    Your response is highly valuable.
    Thanks

    Hi Rajat,
    I think maybe you need to use tr-code "NACE".
    1. Choose Application "EA" (Purchasing RFQ)
    2.Click "Output types" or press "F5"
    3.Choose Output Types "NEU" (RFQ)
    4.Click "Processing routines" to check whether below red part are have forms.
    If not have, I think you may need to copy program "SAPFM06P" to a z* program and change the form name here as z* and add your PDF forms here.
    Regards

  • Deleting a program with all its files

    Does Mountain Lion delete all program-files when I delete only the program inside the application folder?

    If the application came with an uninstaller, use it.
    For the most part, just drag the application to the trash. Some applications come with uninstallers under "options" on the installer.
    The reason for this is that in Mac OS X most associated files are kept in the application package itself. If you choose any app then "control-click" on it, you can choose "Show package contents" from the contextual menu and you will see all the associated items.
    You can also do a Finder or Spotlight search for any other items but they will probably only be prefs which will do no harm and don't take up much room.
    These are ususally just plist files in Users/yourname/Library/Preferences . Also some apps will install files in Users/yourname/Library/Application Support.
    EDIT: (Note that in Lion and Montain Lion the user Library has been hidden. So go to your Finder "Go" menu hold the option key to choose "Library"
    Note: Some apps may also put a file in /Library/Startup Items or SystemPreferences >> Users & Groups >> Login items. (So, it worth a look here too)

  • How to download an asset from CQ with all its metadata

    Hi All,
    I am new to CQ and using CQ5.3 version. I am trying to download assets/pages from CQ using Content Zipper and upload file using Content Loader. Through Content Zipper, When I try to download only one image file from CQ, I am not able to download that particular image. Also If i download the whole node where image resides, then i am not able to finds its metadata.
    Am I missing something? Please Help.
    Thanks
    Rajarshi

    Hi Sham, Thanks for reply. My concern is slightly different.
    1) If i do any changes in images in DAM like cropping, CQ creates a new version of it and when I download any image from the link shown in your snapshot, i get the image from current version. But things get change when I do the same using content zipper. It download the image from its oldest version. How come the two modules for download things are different in the same product?
    2) Versions that gets created in DAM are not reflected when i check the same from content explorer. Same is for Content Zipper.
    Please help.
    Thanks

  • Count along with all the records (columns)

      CREATE TABLE "EMP"
       (     "EMPNO" NUMBER(4,0),
         "ENAME" VARCHAR2(10 BYTE),
         "JOB" VARCHAR2(9 BYTE),
         "MGR" NUMBER(4,0),
         "HIREDATE" DATE,
         "SAL" NUMBER(7,2),
         "COMM" NUMBER(7,2),
         "DEPTNO" NUMBER(2,0)
    Insert into EMP
       (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, DEPTNO)
    Values
       (1000, 'SMITH', 'CLERK', 7902, TO_DATE('12/17/1980 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 800, 20);
    Insert into EMP
       (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO)
    Values
       (1000, 'ALLEN', 'SALESMAN', 7698, TO_DATE('02/20/1981 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 1600, 300, 30);
    Insert into EMP
       (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO)
    Values
       (1000, 'WARD', 'SALESMAN', 7698, TO_DATE('02/22/1981 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 1250, 500, 30);
    Insert into EMP
       (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, DEPTNO)
    Values
       (7566, 'JONES', 'MANAGER', 7839, TO_DATE('04/02/1981 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2975, 20);
    Insert into EMP
       (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO)
    Values
       (7654, 'MARTIN', 'SALESMAN', 7698, TO_DATE('09/28/1981 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 1250, 1400, 30);
    Insert into EMP
       (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, DEPTNO)
    Values
       (7698, 'BLAKE', 'MANAGER', 7839, TO_DATE('05/01/1981 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2850, 30);
    Insert into EMP
       (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, DEPTNO)
    Values
       (7782, 'CLARK', 'MANAGER', 7839, TO_DATE('06/09/1981 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2450, 10);
    Insert into EMP
       (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, DEPTNO)
    Values
       (7788, 'SCOTT', 'ANALYST', 7566, TO_DATE('04/19/1987 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 3000, 20);
    Insert into EMP
       (EMPNO, ENAME, JOB, HIREDATE, SAL, DEPTNO)
    Values
       (7839, 'KING', 'PRESIDENT', TO_DATE('11/17/1981 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 5000, 10);
    Insert into EMP
       (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO)
    Values
       (7844, 'TURNER', 'SALESMAN', 7698, TO_DATE('09/08/1981 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 1500, 0, 30);
    Insert into EMP
       (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, DEPTNO)
    Values
       (7876, 'ADAMS', 'CLERK', 7788, TO_DATE('05/23/1987 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 1100, 20);
    Insert into EMP
       (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, DEPTNO)
    Values
       (7900, 'JAMES', 'CLERK', 7698, TO_DATE('12/03/1981 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 950, 30);
    Insert into EMP
       (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, DEPTNO)
    Values
       (7902, 'FORD', 'ANALYST', 7566, TO_DATE('12/03/1981 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 3000, 20);
    Insert into EMP
       (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, DEPTNO)
    Values
       (7934, 'MILLER', 'CLERK', 7782, TO_DATE('01/23/1982 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 1300, 10);
    COMMIT;On basic execution of this query
    select * from empwe get
    EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO.BUT I NEED THE DATA (columns) ALONG WITH THE COUNT OF THE RECORDS OF empno
    SOMETHING LIKE THIS
    COUNT EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO.On the whole i need count along with the entire data..
    Please advice

    Like this ?
    SQL> select count(*) OVER( ORDER BY EMPNO RANGE BETWEEN
      2                 UNBOUNDED PRECEDING AND CURRENT ROW) serial_no,
      3  ename,sal FROM EMP;
    SERIAL_NO ENAME                                      SAL
             1 SMITH                                      800
             2 ALLEN                                     1600
             3 WARD                                      1250
             4 JONES                                     2975
             5 MARTIN                                    1250
             6 BLAKE                                     2850
             7 CLARK                                     2450
             8 SCOTT                                     3000
             9 KING                                      5000
            10 TURNER                                    1500
            11 ADAMS                                     1100
    SERIAL_NO ENAME                                      SAL
            12 JAMES                                      950
            13 FORD                                      3000
            14 MILLER                                    1300
            15 999999                                     100
            16 ABCDEFGHIJKLMNOPQRSTUVWXYZAAAAAA           100
            17 MY#@ ' "ABC                                100
    17 rows selected.
    {code}
    Or
    {code}
    SQL> select count(*) OVER( ) tot_count,
      2  ename,sal FROM EMP;
    TOT_COUNT ENAME                                      SAL
            17 SMITH                                      800
            17 ALLEN                                     1600
            17 WARD                                      1250
            17 JONES                                     2975
            17 MARTIN                                    1250
            17 BLAKE                                     2850
            17 CLARK                                     2450
            17 SCOTT                                     3000
            17 KING                                      5000
            17 TURNER                                    1500
            17 ADAMS                                     1100
    TOT_COUNT ENAME                                      SAL
            17 JAMES                                      950
            17 FORD                                      3000
            17 MILLER                                    1300
            17 999999                                     100
            17 ABCDEFGHIJKLMNOPQRSTUVWXYZAAAAAA           100
            17 MY#@ ' "ABC                                100
    17 rows selected.

  • How to convert html table with all its css properties into excel , by javascript or jQuery

    hi,
    <script type="text/javascript">
    //working java script
    function CreateExcelSheet()
    var x = Table1.rows
    var xls = new ActiveXObject("Excel.Application")
    xls.Workbooks.Add
    for (i = 0; i < x.length; i++) {
    var y = x[i].cells
    for (j = 0; j < y.length; j++) {
    xls.Cells(i + 1, j + 1).Value = y[j].innerText
    } xls.visible = true
    function write_to_excel()
    str = "";
    debugger;
    var mytable = document.getElementsByTagName("table")[0];
    var rowCount = mytable.rows.length;
    var colCount = mytable.getElementsByTagName("tr")[0].getElementsByTagName("td").length;
    var ExcelApp = new ActiveXObject("Excel.Application");
    var ExcelSheet = new ActiveXObject("Excel.Sheet");
    debugger;
    ExcelSheet.Application.Visible = true;
    for (var i = 0; i < rowCount; i++)
    for (var j = 0; j < colCount; j++)
    str = mytable.getElementsByTagName("tr")[i].getElementsByTagName("td")[j].innerText;
    ExcelSheet.ActiveSheet.Cells(i + 1, j + 1).Value = str;
    //new funtion
    function ExportToExcel(mytblId) {
    debugger;
    var htmltable = document.getElementById('Table1');
    var html = htmltable.innerHTML;
    window.open('data:application/vnd.ms-excel,' + encodeURIComponent(html));
    //new funtion 2
    function write_to_excel2() {
    str = "";
    debugger;
    var mytable = document.getElementById("Table1");
    var rowCount = mytable.rows.length;
    var colCount = mytable.getElementsByTagName("tr")[0].getElementsByTagName("th").length;
    var ExcelApp = new ActiveXObject("Excel.Application");
    var ExcelSheet = new ActiveXObject("Excel.Sheet");
    //ExcelSheet.Application.Visible = true;
    for (var i = 0; i < rowCount; i++)
    for (var j = 0; j < colCount; j++)
    debugger;
    // if (i == 0) {
    // str = mytable.getElementsByTagName("tr")[i].getElementsByTagName("th")[j].innerText;
    str = mytable.getElementsByTagName("tr")[i].getElementsByTagName("td")[j].innerText;
    ExcelSheet.ActiveSheet.Cells(i + 1, j + 1).Value = str;
    ExcelSheet.autofit;
    ExcelSheet.Application.Visible = true;
    DisplayAlerts = true;
    CollectGarbage();
    //csss
    function excelExportHtml(Table1, css1)
    debugger;
    if (css1) {
    var styles = [];
    //grab all styles defined on the page
    $("style").each(function(index, domEle) {
    styles.push($(domEle).html());
    //grab all styles referenced by stylesheet links on the page
    var ajaxCalls = [];
    $("[rel=stylesheet]").each(function() {
    ajaxCalls.push($.get(this.href, '', function(data) {
    styles.push(data);
    return $.when.apply(null, ajaxCalls)
    .then(function() {
    return "<html><style type='text/css'>" + styles.join("\n") + "</style>\n" + table.outerHTML + "</html>";
    else {
    return $.when({ owcHtml: Table1.outerHTML })
    .then(function(result) {
    return "<html>" + result.owcHtml + "</html>";
    //new
    function ExportToExcel() {
    $(document).ready(function() {
    $("#btnExport").click(function(e) {
    window.open('data:application/vnd.ms-excel,' + $('#Table1').html());
    alert("jhhklhhklhklh");
    //new
    $(document).ready(function() {
    debugger;
    $("[id$=myButtonControlID]").click(function(e) {
    window.open('data:application/vnd.ms-excel,' + $('div[id$=divTableDataHolder]').html());
    e.preventDefault();
    alert("k");
    function excel()
    {debugger;
    var tableToExcel = (function() {
    var uri = 'data:application/vnd.ms-excel;base64,'
    , template = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--></head><body><table>{table}</table></body></html>'
    , base64 = function(s) { return window.btoa(unescape(encodeURIComponent(s))) }
    , format = function(s, c) { return s.replace(/{(\w+)}/g, function(m, p) { return c[p]; }) }
    return function(table, name) {
    if (!table.nodeType) table = document.getElementById(table)
    var ctx = { worksheet: name || 'Worksheet', table: table.innerHTML }
    window.location.href = uri + base64(format(template, ctx))
    </script>
    i have tried all the above java script and jquery to convert an html table to excel, data are exporting correctly but i want that css of the table should also implent to excel thats not happening,even the property defined inside td and tr aare not implementing
    in excel

    Hi avinashk89,
    Welcome to post in MSDN forums.
    This is not the right forum for your question. Please post in
    ASP.NET forums where you could get better support.
    Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I have a trial of CS6 Master Collection that has ran out and I bought a CS6 Production Pro do I have to uninstall Master collection first with all its scripts or can I just put the license in for Production Pro activating only those programes?

    The question is in the topic sorry.

    Suite licensing is specific and unlike with single programs just inputting the serial number won't cut it. You will have to uninstall the Master Collection and then install the Production Premium package.
    Mylenium

  • How to save a project with all its content?

    Hello,
    I am looking for a feature inside CS5 Premiere which would do something similar to pack in InDesign that not only saves the project file but packs all links into one folder.
    Thanks in advance
    Wiktor

    Thank you very much for your quick response!

  • Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the rows? Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the records?
    Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    The Oracle documentation has a good overview of the options available
    Generating XML Data from the Database
    Without knowing your version, I just picked 11.2, so you made need to look for that chapter in the documentation for your version to find applicable information.
    You can also find some information in XML DB FAQ

  • Remove Company Code with all the Employees in it from r/3?

    Hi i have a bit unusual requirement.
    i want to know how can i Remove a Company Code with all its assigned Employees completely from a system(r/3) ?
    can this be possible at all? if yes then please also mentions what can be the side effects of this action.

    Jack,
    You will have to follow reverse engineering....
    As Sikandar Guru Mentioned.....identify all the PERNRs for mass deletion....
    Secondly I believe, that you want to Delete the Company Code.....check with Finance Folks.......If they have no issues, you can delete the co. code with TCODE EC01... but this will not delete the Relationships to Personnel area...etc.
    There may be custom Features, Reports or programs functioning based on Co. Code.......
    So, in a way....its not feasible..neither wise to attempt deletion of Co. Code....
    S_PHO_48000106 is the TCode for Mass Deletion.
    Good Luck !!!
    Kumarpal Jain.
    Edited by: Kumarpal Jain on Oct 26, 2009 3:20 PM

  • How to provision an app for all users with all dependencies?

    I have created an app package with VS that I want to provision for all users of a target system using
    DISM /Online /Add-ProvisionedAppxPackage /FolderPath:".\%package%" /SkipLicense
    The path contains the content of the *Test folders VS creates when creating store packages. However DISM expects a ".main" file in this folder to work (0xc1570102).
    What's the correct way to provision an app with all its dependency packages? (Using the PackagePath option?)

    After some further testing in Profile Manager I found that adding the applescript to items that open at logon seems to work. No need for the plist, unless of course I decide not to use Profile Manager at all.

  • How can I copy a file with all attributes

    Is there a way within Java to copy a file, with all its file attributes?
    I have seen a number of custom methods posted on these forums for copying the contents of a file to a new file with the same name in another location. The problem is that these methods don't copy the file attributes, particularly the creation date.
    If there is no way to do this in Java, is there a way to have Java execute an operating system command, such as "COPY" or to access the O/S to change the file attributes?
    Thanks for any help you can provide.

    This is how runtime executes a batch file.
    try {
      Process p = Runtime.getRuntime().exec("cmd /c start c:\\batfile.bat");
      p.waitFor();
    } catch (Exception e) {
        System.out.println(e.toString());
    }

Maybe you are looking for

  • LCD TV as monitor for Mac?

    Hi has anyone tried this? If you are going to sit 6 to 10ft from the screen wouldnt a 1360x 760 32" monitor look similar to a 17" 1360x760 monitor up close? any views appreciated Tommy banana

  • ITunes Library on Multiple iPods?

    Can one iTunes library supply multiple iPods? If I have an iTunes library on my computer, and I have already put that music on my iPod, can I put that same library on a second iPod, without affecting the viability of the library ? If so, will I still

  • How to create node

    Hi, I am doing one file to file scenario. My file structure will be like this. MT_FILE ->FILE     ->LINE01         -> FIELD 1         -> FIELD 2         -> FIELD 3         -> FIELD 4. IF all the fields are containing values then its working fine. if

  • Creating I Movie from Keynote Slides

    I'm trying to create an iMovie from slides I created in Keynote - I created them in 1920 by 1080 pixels.  When I import them to iMovie - through I photo - they are fuzzy  when I try to use them.  I want to use I movie because I want to use video's as

  • Outgoing cheque payment through FPY1

    Hi Experts, When i tried to post the outgoing cheque payment through FPY1, system posted the entry. But it was not generating the cheque. My doubt is how can we generate the cheque in FICA. If it is not in FICA then it will be in FI-AP. Can anyone pl