case 4372
This commit is contained in:
@@ -384,9 +384,18 @@ export default {
|
||||
// - CURRENT TIME, DATE, DATETIME are pretty specific but all use a datetime string so any value not datetime like should be nulled
|
||||
// - CURRENT NUMBER, CURRENCY are also pretty specific but easy to identify if not fully numeric and then sb nulled or attempt to convert then null if not
|
||||
|
||||
const ctrlType = this.$store.state.formCustomTemplate[this.formKey].find(
|
||||
z => z.dataKey == dataKey
|
||||
).type;
|
||||
//case 4372
|
||||
let ctrlType = null;
|
||||
if (this.keyStartWith != "") {
|
||||
ctrlType = this.$store.state.formCustomTemplate[this.formKey].find(
|
||||
z => z.dataKey == dataKey && z.fld.includes(this.keyStartWith)
|
||||
).type;
|
||||
} else {
|
||||
//single custom control form
|
||||
ctrlType = this.$store.state.formCustomTemplate[this.formKey].find(
|
||||
z => z.dataKey == dataKey
|
||||
).type;
|
||||
}
|
||||
|
||||
//First get current value for the data that came from the server
|
||||
let ret = cData[dataKey];
|
||||
|
||||
Reference in New Issue
Block a user