- This topic has 2 replies, 2 voices, and was last updated 7 years, 9 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Integrated Application Platform
Integrated Application Platform › Forums › General › Default date ParamSelect
Controller
{
New()
{
super(.layout())
.Data.Set(Record()) // otherwise rules don’t work
.browse = .Data.Vert.Browse
.browse.SetReadOnly(true)
.data = .Data.Get()
.data.Observer(.Record_changed)
.Load_list(false)
}
query: ‘shiprel rename shiprel_num to shiprel_num_new, shiprel_status to shiprel_status_default’
layout()
{
return Object(‘Record’ Object(‘Vert’
Object(‘CenterTitle’, ‘Load Releases’)
#(Skip 5)
#(Form
(ParamsSelect shiprel_date, group: 0) nl
How can I set default search value for the ParamSelect on a date field, for example, ship_rel_date “equals” todya’s date.
Thanks for any ideas.
You need to Set that control to something like:
Object(operation: 'equals', value: Date(), value2: "")
If you are going to be running a report, you probably want to use Params which has a Set_Params member which can be used to do this.
Thank you Andrew. Perfect!