- Jun 6, 2020
- 11,576
- 4,480
Ola
I've been wondering why my validation has not been working whilst my form actually has values. The record is read as a map record. So for example, Femication Required Yes = 0, the rest the same methodology. My validation is global, it gets the map values, gets the default values and if a default value is blank, there is an error.
On further scrutiny, if the original value is 0 for a key and you execute a getdefault on it, its returned as blank. I need to use .getdefault for my app to work. The assumption is that the value in a map can be anything and of unknown data type.
Reproduction
B4X:
I've been wondering why my validation has not been working whilst my form actually has values. The record is read as a map record. So for example, Femication Required Yes = 0, the rest the same methodology. My validation is global, it gets the map values, gets the default values and if a default value is blank, there is an error.
برای دیدن تصاویر باید ثبت نام کنید
On further scrutiny, if the original value is 0 for a key and you execute a getdefault on it, its returned as blank. I need to use .getdefault for my app to work. The assumption is that the value in a map can be anything and of unknown data type.
Reproduction
B4X:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید