3.2.0

Load xml table, waiting to finish, load final grid

I have a question. Since the program doesn't wait until the XML table is finished loading, how can I make it? I want to do this...

1. Load an invisible table with some dropdown choices in an SQL database

2. once that finishes loading, populate the data into a dropdown box

3. then finally, load the actually main grid, with the dropdown boxes in them.

Right now I have everything loading, (both tables) and the user clicks a button, and it populates the dropdown boxes, and then you can start editing the grid, but I want this to be done automaticly.

Load the table, wait, populate the dropdown box once the table is loaded, load the final grid.
David
September 23,
bump
Dennis
September 27,
Anyone have any direction to point me in?
Dennis
September 28,
Try overwriting table.response method so that it wait until you do your stuff.
Maybe this will help you:
http://www.activewidgets.com/messages/892-1.htm
luxorin
September 29,
There is what I have so far
<!-- Gathering Codes for drop down boxes -->
<script>
    var tableOrder = new Active.XML.Table;
    var tableReason = new Active.XML.Table;
    var tableComp = new Active.XML.Table;

    tableOrder.setRows("//root/OrderStatusCodes");
    tableReason.setRows("//root/ReasonCodes");
    tableComp.setRows("//root/Competitors");

    tableOrder.setURL("http://*****/Get_Codes.xml");

    var _response = tableOrder.response;
    tableOrder.response = function(xml)
    {
        _response.call(this, xml);
        tableReason.setXML(xml);
        tableComp.setXML(xml);
    }

    tableOrder.request();
</script>


I'm not sure how you say, wait here until done.. Would I just check of an EOF?
Dennis
September 30,
Sorry for the delay.
Yes, i tried to suggest that something like this might work.. it worked for me.
You could also try using grid.getDataModel.isReady() to find out when your first table has finished loading
October 5,
Actually my partner at work, found out what to do. Thanks to Alex ofcourse.

http://www.activewidgets.com/messages/892-4.htm
Dennis
October 5,

This topic is archived.

See also:


Back to support forum