describe method
- How-to
- Tom Mangano
- PowerBuilder
- Tuesday, 10 August 2021 09:36 PM UTC
PB 2019 build 2170
dw user object inherited from an ancestor dw user object
in the dw painter, edit tab, for column customer_id, i've checked required
in the ancestor user object
i call a function that loops through the column names to determine if they are required
for lp = 1 to col_count
// we need the name to start
ls_describe = '#' + string( ll_loopCounter ) + '.name'
ls_columnName = This.Describe( ls_describe )
// is it a required column?
of_columns_required_check2( ls_columnName, ref ls_required ) as it's written in ancestor object
// this is an example of syntax in PB Help
// setting = dw1.Describe("emp_name.Edit.AutoHScroll")
// is it a required column?
// it has to be checked in the dw painter
ls_describe = as_columnName + '.Edit.Required'
as_required = This.Describe( ls_describe )
// per the doc's expecting yes or no
as_required = lower( as_required )
// as_required = "?" is what's returned. per previous experience ? means error / doesn't exist
// tried this for testing
as_required = This.Object.customer_id.Edit.Required
// as_required = "?"
Return
...
screen shots with errors
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.