Suneido

Integrated Application Platform

  • Home
  • Learning
    • Suneido Manual
    • Beginners
      • Inside Suneido
      • The Suneido Programming Language
      • The Suneido Database
      • Installing Suneido
      • Building Suneido
      • IDE Go To Tour
      • Upgrading To A New Release
    • Advanced
      • Canvas Control
      • DrawControl Part 1
      • DrawControl Part 2
      • DrawControl Part 3
      • SAX Like XML Processing
      • A Plug-In Architecture
      • A Simple Wizard Framework
      • An HTML Include Facility
      • An RSS 2 Feed Creator
      • MIME Generation
      • A New Add-on Facility
      • Workspace Improvement Hack
    • Mockito for Suneido
    • The Suneido Task Scheduler
    • Contributing To Suneido
    • Contributor Assignment of Copyright
    • Language Translation
    • Future Directions
    • Interview With Andrew Mckinlay
  • Forum
    • Announcements
    • Internals & Enhancements
    • Cookbook
    • General
  • FAQ
  • Screenshots
  • Downloads
  • Links

Default date ParamSelect

Integrated Application Platform › Forums › General › Default date ParamSelect

  • This topic has 2 replies, 2 voices, and was last updated 6 years, 5 months ago by johan@suneido.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • December 7, 2015 at 9:46 am #1234
    johan@suneido
    Participant

    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.

    December 7, 2015 at 2:16 pm #1236
    amckinlay
    Keymaster

    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.

    December 8, 2015 at 8:21 am #1237
    johan@suneido
    Participant

    Thank you Andrew. Perfect!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

Search Forums

Log In
Welcome to the new Suneido Web Site and Forum.
Register
Lost Password
users of the previous PHPBB Forum should be able to log in with their previous username and password.

Recent Topics

  • Alpha copy of gSuneido to play with
  • how to start jsuneido ?
  • Problem Starting Suneido…
  • Dialog not showing buttons
  • New link for Suneidojo

Contact Us | Legal Statement | Privacy Statement | SiteMap

Copyright © 2022 Axon® Development Corporation. All Rights Reserved. - Open Source Integrated Database and Programming Language