FCLT#87099 AiAi foutmelding bij meldingen zoeken in tabel bewerken
svn path=/Website/branches/v2024.3/; revision=67549
This commit is contained in:
@@ -129,14 +129,15 @@ function model_generic(table, autfunction)
|
||||
model.nrfields++;
|
||||
var field = { dbs: oRs.Fields("column_name").Value,
|
||||
label: oRs.Fields("column_name").Value,
|
||||
typ: "varchar"
|
||||
typ: "varchar",
|
||||
ora_type: oRs("data_type").Value
|
||||
};
|
||||
var ora_type = oRs("data_type").Value;
|
||||
|
||||
var ora_length = oRs("data_length").Value;
|
||||
var ora_precision = oRs("data_precision").Value;
|
||||
var ora_scale = oRs("data_scale").Value;
|
||||
|
||||
switch (ora_type)
|
||||
switch (field.ora_type)
|
||||
{
|
||||
case 'NUMBER':
|
||||
field.typ = 'number';
|
||||
@@ -207,9 +208,10 @@ function model_generic(table, autfunction)
|
||||
case "CLOB":
|
||||
case "LONG":
|
||||
field.typ = 'memo';
|
||||
field.istyp = 'memo';
|
||||
break;
|
||||
default: // als je hier komt is je view mogelijk niet valid of niet gecompileerd
|
||||
abort_with_warning("Unknown Oracle type '{0}' for field '{1}.{2}'".format(ora_type, table, field.dbs));
|
||||
abort_with_warning("Unknown Oracle type '{0}' for field '{1}.{2}'".format(field.ora_type, table, field.dbs));
|
||||
}
|
||||
|
||||
var fld = oRs.Fields("column_name").Value;
|
||||
@@ -238,7 +240,7 @@ function model_generic(table, autfunction)
|
||||
fld = "name";
|
||||
hasName = true;
|
||||
}
|
||||
if (!hasName && fld.match(/(_omschrijving|_oms|_remark)$/))
|
||||
if (!hasName && field.ora_type != 'CLOB' && fld.match(/(_omschrijving|_oms|_remark)$/))
|
||||
{
|
||||
fld = "name";
|
||||
hasName = true;
|
||||
|
||||
Reference in New Issue
Block a user