- Tracy Lamb
- PowerBuilder
- Thursday, 27 June 2024 09:54 PM UTC
Hi all,
I have a dw control on a tabpage with a user event, ue_create_form. On the dw object itself ( datawindow painter ) none of the columns has a validation rule, validation message, or initial value.
Here's the code for ue_create_form:
this.InsertRow(0)
this.SetItem(1,"workorder", il_FormID)
this.SetItem(1,"estimate_date", ldt_now)
this.SetItem( 1, "repair_tech", gi_EmployeeID )
this.SetItem(1,"create_user",sqlca.logid)
this.SetItem(1,"create_date",ldt_now)
this.Update(TRUE,TRUE)
this.SetColumn("estimate_date")
this.SetFocus()
itab_lab.of_set_form_status(this, FORM_NOT_FINISHED)
The first time the form is created, I keep getting a validation message, "Value required for this item". I do use PFC2022, but of_setReqColumn is never called in either the dw control or it's ancestor. If I delete the form, then re-create it, I don't get the message.
It's not a big problem, but it's annoying because I clearly set the value for each column in the ue_create_form event.
I looked in the help file and found something about validation rules and extended properties. However, I couldn't figure out how to get to the extended properties. Directions seem clear, but I still couldn't find it to see if I have any validation rules defined for either the dw object or a column in the dw object.
Any suggestions would be appreciated. Using PB2022 R3 and PFC2022.
~~~Tracy
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.