Untitled

 avatar
unknown
javascript
6 months ago
1.1 kB
1
Indexable
var id = apex.item("P87114_COD_EMPLEADO").getValue();
var codigo_modulo = apex.item("P87114_CODIGO_MODULO").getValue();
var id_empleado = apex.item("P87114_ID_EMPLEADO").getValue();
var tipo_documento = apex.item("P87114_TIPO_DOCUMENTO").getValue();
var table_name = apex.item("P87114_TABLE_NAME").getValue();
var dpi = apex.item("P87114_DPI").getValue();

var url = `f?p=87999:87123:&APP_SESSION.::NO:87123:P87123_COD_EMPLEADO,P87123_CODIGO_MODULO,P87123_ID_EMPLEADO,P87123_ID_TIPOS_DOCUMENTO,P87123_TABLE_NAME,P87123_DPI,:${id},${codigo_modulo},${id_empleado},${tipo_documento},${table_name},${dpi}`;
    apex.server.process("GET_MODAL_URL_SCRIPT", {
        x01: url
    }, {
        success: function(pData) {
            if (pData.success === true) {
                apex.navigation.redirect(pData.url);
            } else {
                console.log("FALSE");
            }
        },
        error: function(request, status, error) {
            console.log("status---" + status + " error----" + error);
        }
    });
Editor is loading...
Leave a Comment