1. Stewart MacPherson
  2. PowerBuilder
  3. Friday, 31 March 2023 14:16 PM UTC

Hello,

 

I have a request that is used for auditing. The user would like a dropdown box on a datawindow that will display the  Current year and only display four prior years. Basically show 2023, 2022,2021,2020. 

Thanks, Stewart

John Fauss Accepted Answer Pending Moderation
  1. Friday, 31 March 2023 15:40 PM UTC
  2. PowerBuilder
  3. # 1

Hi, Stewart -

Populate the DDDW (child DataWindow) with a database query. Most, if not all DBMS's support date functions in a SQL query. Extract the year from the current date, current year - 1, - 2, etc. I suggest you sort the rows in the DDDW in descending order if the current or immediate past year will be chosen most frequently.

Best regards, John

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.