<%@language = "javascript" %>
<% /*
    $Revision$
    $Id$

    File:           fac_srtnotificatie.asp

    Description:    fac_management aanroep van model_fac_srtnotificatie

    Context:

    Notes:
*/
%>
<!-- #include file="../scf/scaffolding.inc" -->
<!-- #include file="../api2/model_fac_srtnotificatie.inc" -->
<%
var this_model = new model_fac_srtnotificatie();

scaffolding(this_model,
    {
        "search": {
            "autosearch": true,
            "filters": [
                "name",
                "xmlnode"
            ]
        },
        "list": {
            "columns": [
                "id",
                "name"
            ]
        }
    });


function fill_srtnotificatie_LOV()
{
    var xmlnodeLOV = "";
    var sql = "SELECT distinct fac_srtnotificatie_xmlnode"
            + "     , NVL(fac_srtnotificatie_xmlnode,'<empty>') xmlnode_lov"
            + "  FROM fac_srtnotificatie"
            + " ORDER BY 1 NULLS FIRST";
    var oRs = Oracle.Execute(sql);
    while (!oRs.eof)
    {
        var xmlnode = oRs("fac_srtnotificatie_xmlnode").Value;
        xmlnodeLOV += (xmlnodeLOV?";":"") + xmlnode + ";" + oRs("xmlnode_lov").Value;
        oRs.moveNext();
    }
    oRs.Close();
    return xmlnodeLOV;
}
%>
