cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JD Daniels ...@datatrio.com>
Subject Re:[SOLVED] [WOODY] - How to bind a repeater from other widget (or add filled in repeaters from another source )
Date Thu, 01 Apr 2004 19:12:07 GMT
Awesome Thank You *Very* Much for the help Joerg. I have been sitting on 
this for weeks delaying it until the end of the project :)

Final working function is:

    model.inventory.onAddRow = function(row) {

    var pipelineUtil = 
cocoon.createObject(Packages.org.apache.cocoon.components.flow.util.PipelineUtil);
    var document = 
pipelineUtil.processToDOM("nde-load-InventoryItem?id=" + 
model.inventoryId.value, null);
    var rootNode = document.getFirstChild();
    var child = rootNode.getFirstChild();

    do {
    if (child.getNodeName().equals("description")) {
    print("found description: " + child.getFirstChild().getNodeValue());
        row.description.value =child.getFirstChild().getNodeValue();
        break;
    }
    child = child.getNextSibling();
    } while (child);


        row.location.value = "<Location>";
    }

JD


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message