Dynamically Adding Default Values to Dashbaord Prompt - OBIEE GURU

govtjobonline-Latest Government Jobs 2023 Recruitment Notifications

Latest Govt Jobs Whatsapp Group Links-Telegram

For Latest Govt Jobs 2023 or for Freejobalerts or Join

Latest Government Jobs 2023

Thursday, 23 February 2012

Dynamically Adding Default Values to Dashbaord Prompt



    Here is the way to automatically add the default dates of current month in the dashboard prompt.

    undergiven code can be used for setting up the day first of the current month in the dasboard prompt automatically.

    For this purpose, goto the prompt and under "Default to", select "SQL Results" and add following code;





    For the first day of the current month add following code;
     
    SELECT   CASE
                WHEN 1 = 0
                THEN
                   "Office Visit"."Visit Dt"
                ELSE
                   TIMESTAMPADD (SQL_TSI_DAY,
                                 (DAYOFMONTH (CURRENT_DATE) * -1) + 1,
                                 CURRENT_DATE)
             END
      FROM   Payments 


    For the Last day of the current month add following code;

    SELECT   CASE
                WHEN 1 = 0
                THEN
                   "Office Visit"."Visit Dt"
                ELSE
                   TIMESTAMPADD (
                      SQL_TSI_DAY,
                      -1,
                      TIMESTAMPADD (
                         SQL_TSI_MONTH,
                         1,
                         TIMESTAMPADD (
                            SQL_TSI_DAY,
                            1,
                            TIMESTAMPADD (SQL_TSI_DAY,
                                          DAYOFMONTH (CURRENT_DATE) * -1,
                                          CURRENT_DATE)
                         )
                      )
                   )
             END
      FROM   Payments

    In Between operation both cases can be used combined.

    Whatsapp group

    Govt Jobs Whatsapp Group Links 2023

    Telegram group

    Govt Jobs Telegram Group

    Facebook group

    Govt Job Online Facebook Group

    Follow on Facebook group

    Govt Jobs Online Facebook Page

    Subscribe to Youtube Channel

    Govtjobsonline Youtube

    Join Latest Govt Jobs Telegram Group here

    Join Government Jobs Whatsapp Group here (State Wise)

    Join State Wise Sarkari Results Telegram here

    1. ITI Jobs Notifications
    2. ITI Apprenticeship Program
    3. Diploma Jobs Notifications
    4. Engineering Jobs Notifications
    5. UPSC Jobs Notifications
    6. Court Jobs Notifications
    7. Staff Nurse Jobs Notifications
    8. NHM Jobs Notifications
    9. Exam Syllabus and Pattern
    10. SSC Recruitment

    No comments:

    Post a Comment

    Latest Govt Jobs Vacancy 2023