How to set a property for all of a type of control in a cluster, by programming?

Good afternoon everyone,

I have a couple of clusters on my front, each consisting of 7 rings, 7 LEDs, numbers 7 and 7 channels... all the controls.

There is a left and right cluster of these... but just focus on the left one to play with... specifically left 1 LED (labeled 1) programmed.

As part of my code, I have allowed the user to select, LED lights... and I turn off so he can't just be deselected.

I have a button on the screen which I will reset all LEDS that have been created and a few other controls too eventually.

I know that in this case, I can create 14 knots of property for each individual LED and it Enable value.

I'm just guessing there is sort of a more elegant way to do again... similar to set the values of massive for clusters using the name, defining values and writing in the cloister.

I can't seem to find a way to do it with the properties on the cluster control as easily as you can do with values...

Any suggestions?

Thank you

Cayenne


Tags: NI Software

Similar Questions

  • How to set up planning for all users preferences in 11.1.2.1

    Is it possible to configure the preferences of the Application of planning for all users or everyone needs to put in place their own preferences?

    Hello

    Preferences are user-specific and application-specific and all users have to set their own preferences.

    Concerning
    -SM

  • Menus... I need to know how to set colors, etc. for all menu items

    When I add a new page, it has the widget original colors etc.   must manually change EACH.  What a PAIN. What is the magic combination of mouse clicks and chance selects all THE menu items and submenus at the SAME TIME. 

    I did click to down/zoom before thing.  Am but so far failed to put for ALL States and the elements of the FUTURE.

    Paul

    Holy Moly.

  • How to set a filter for all sounds in Windows?

    Today I bought a headset (I used the headset high quality before) and the sound I hear is sort of 'blocked' from my headset, I want to put some kind of filter for each beep (from browser while on youtube for example, his games, Media Player, system sounds, etc.) in windows, like turn on the equalizer in WMP. I just need to adjust the superior acoustics, how can I do to the whole system? Thank you for your time.

    Hello
    1. have you tested the headset in another computer?
    2. What is brand and model unit?
    3 did you do changes on the computer before the show?

    You can use the sound settings in Windows Media Player if you use it on the other you have to install a 3rd party software for the sound settings.
    Note: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

  • How to set up checkboxes for SelectManyCheckbox programmatically?

    Hello experts!

    Please help me with my question.

    I work with Jdeveloper 12.2.1.0.0

    I have SelectManyCheckboxaf:selectManyCheckbox

    <af:selectManyCheckbox id="my_selectManyCheckbox"
                      valueChangeListener="#{TasksFilterBean.onTasksFilterPriorityChanged}"
                      autoSubmit="true"
                      required="false">
                          <af:selectItem label="High" value="1" id="si4"/>
                          <af:selectItem label="Middle" value="2" id="si5"/>
                          <af:selectItem label="Low" value="3" id="si6"/>
    </af:selectManyCheckbox>
    
    

    And I need to configure programmatically check boxes.

    I found this item the bean.

    ***
    RichSelectManyCheckbox my_selectManyCheckbox = (RichSelectManyCheckbox)task_page.findComponent("my_selectManyCheckbox");
    
    
    _logger.info("my_selectManyCheckbox: " + my_selectManyCheckbox);
    
    

    And question.

    How to set up checkboxes for SelectManyCheckbox programmatically?

    For example.

    I want to configure environment checkbox to activate.

    How to do this?

    PS. I'm tempted to find the solution, before you create new discussion.

    I added the SelectManyCheckbox property:

    value="#{TasksFilterBean.selectedCheckboxes}"
    

    And I added some methods in the bean:

        private List selectedCheckboxes;
    
        public void setSelectedCheckboxes(List selectedCheckboxes) {
            this.selectedCheckboxes = selectedCheckboxes;
        }
    
        public List getSelectedCheckboxes() {
    
            List selectedCheckboxes = new ArrayList();
            selectedCheckboxes.add("2");
    
            return selectedCheckboxes;
        }
    

    And now everything works.

    =================================

    Now I CAT change bean like this:

        private List selectedCheckboxes;
    
        public void setSelectedCheckboxes(List selectedCheckboxes) {
            this.selectedCheckboxes = selectedCheckboxes;
        }
    
        public List getSelectedCheckboxes() {
    //        List selectedCheckboxes = new ArrayList();
    //        selectedCheckboxes.add("2");
            return selectedCheckboxes;
        }
    

    And now I can then use:

            RichSelectManyCheckbox my_selectManyCheckbox= (RichSelectManyCheckbox)task_filter_page_template.findComponent("my_selectManyCheckbox");
    
            my_selectManyCheckbox.setValue("1");
    

    That all.

    Thank you all.

    Especially at Jiri.Machotka - Oracle

    ===========

    UPD. I'm sorry. It looks like I can configure values to 1 item on SelectManyCheckbox without bean methods.

    And with the above example, I had problems when I unckeked all the check boxes.

  • How to change the password for all users in the database

    Hi buddies!

    Could someone tell me how to change the password for all users in the database? I want to set the same password for all users.

    Thank you.

    Nith

    Published by: user645399 on March 1, 2011 14:23

    Write the file spooling
    as

    Make sure that all profiles has password_verify_function with a NULL value

    then

    Select 'edit user' | username: ' identified by ;' from dba_users;

    you will get the output... you just run.

  • How to set the clock for the hours, minutes, and seconds with Windows XP

    How to set the clock for the hours, minutes, and seconds with Windows XP

    I don't know of your question.  If you ask how to show the clock in the tray system with hours, minutes and seconds, then download & run "Tclock Light".  Windows will not natively display the seconds.

    TClock Light: <> http://homepage1.nifty.com/kazubon/tclocklight/index.html >

    HTH,
    JW

  • How to set a password for the networks?

    Original title: related networks

    Hi, my request is how to set a password for networks

    Hello Manu,

    I suggest to follow the steps below and check the steps in the section to change the homegroup password , if it helps.

    Homegroup from start to finish

    http://Windows.Microsoft.com/en-us/Windows/HomeGroup-help#HomeGroup-start-to-finish=Windows-81&V1H=win81tab7&V2H=win7tab1

    Let us know the status.

  • How can I use statistics for all the tables in a schema in SQL Developer? and how long will it take on average?

    Hello

    How can I use statistics for all the tables in a schema in SQL Developer? and how long will it take on average?

    Thank you

    Jay.

    Select the connection and right-click on it and select schema statistics collection

  • How to run a script for all the images in a folder?

    How to run a script for all the images in a folder?

    You can assign your script to an action, then use processor by batch or image with the option apply to all subfolders.

  • How to set the color for background ChoiceBox point to ChoiceBox with css?

    How to set the color for background ChoiceBox point to ChoiceBox with css?

    I need to change the backgound color list items.

    I tried with the following code, but it's not help to:

    {.context-menu .choice-box

    -fx-background-color: Red;

    }

    .choice-box .menu-item {}

    -fx-background-color: red;

    }

    In Java 8, either of your selectors should work.

    In Java 7 (JavaFX 2.2), you need of the following workaround:

    #choice-box-menu-item {
         -fx-background-color: red ;
    }
    
  • How to set up email for provider VDC alerts

    Hi any advise how to set up alerts for vdc provider as low on storage etc. on VCD?

    Thanks for any info

    Emails are sent when a data store changes from green to yellow, yellow to red.

    To change WHEN these data storages are at these levels, you can get the properties on a data store.  These are set by the GB left on the data store.

    System-> monitor-> data warehouses and handle-> RightClick:Properties

    * Yellow disk space threshold:

    * Red disk space threshold:

    I hope this helps.

  • How to set up bluetooth for Windows by toshiba stack

    Trying to install different fireplaces / drivers in order to use the bluetooth features.

    These instructions are incredibly confusing for something seemingly simple. I think I have all the chimneys of nesicery / driver updates however

    Im not very good at this stage. I could use a little help here.

    Hello

    Most Toshiba have start - programs - Toshiba - BlueTooth.

    Check with Toshiba Support, their drivers and documentation online and ask in their forums where he
    others will be with the same or similar models.

    Toshiba - Forums
    http://laptopforums.Toshiba.com/

    Toshiba - Contacts
    http://www.CSD.Toshiba.com/cgi-bin/TAIS/support/JSP/navShell.jsp?CF=su_contact

    Toshiba - drivers - access your model - value downloads - so all operating systems - BlueTooth
    http://www.CSD.Toshiba.com/cgi-bin/TAIS/support/JSP/home.jsp?NAV=download

    Toshiba - Support
    http://www.CSD.Toshiba.com/cgi-bin/TAIS/support/JSP/home.jsp

    ------------------------------------------------------------------------------------------------------------------------

    Information to help you if you need problems (use Toshiba configuration methods to activate BT).

    Hardware devices not detected or does not work - a Mr Fixit
    http://support.Microsoft.com/GP/hardware_device_problems

    Add a BlueTooth device to your computer
    http://Windows.Microsoft.com/en-us/Windows7/add-a-Bluetooth-enabled-device-to-your-computer

    Set up a Bluetooth compatible device
    http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-a-Bluetooth-enabled-device

    The problems with Bluetooth devices
    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-Bluetooth-enabled-devices

    How to set up a Bluetooth connection
    http://www.vista4beginners.com/how-to-setup-a-Bluetooth-connection

    The Bluetooth item in Control Panel on a Windows Vista SP2 computer does not
    as expected when you click on the element - for Windows 7 this check manually
    http://support.Microsoft.com/kb/960531/en-us

    If you need drivers try the support site for the manufacturer of your system and/or the site of the manufacturer of the real device.

    BluetoothView is a small utility that runs in the background and monitor the activity of Bluetooth technology
    devices around you. For each detected Bluetooth device, it displays the following information:
    The device name, address Bluetooth, Major Device Type, minor device Type, first detection time,
    Last detection time and more. BluetoothView can also warn when a new Bluetooth device
    is detected, by displaying a balloon in your bar tasks or playing a little beep. -FREE
    http://www.NirSoft.NET/utils/bluetooth_viewer.html

    BluetoothCL is a small console application that transforms all differential of bluetooth devices detected in
    the standard output. For each Bluetooth device, the following information is displayed: MAC
    Address, name, Major Device Type, minor device Type and possibly the name of the company of
    the device (if the external file of MAC addresses - oui.txt is provided) - FREE
    http://www.NirSoft.NET/utils/bluetoothcl.html

    ---------------------------------------------------------------------

    Change settings for a Bluetooth compatible device
    http://Windows.Microsoft.com/en-us/Windows7/change-settings-for-a-Bluetooth-enabled-device

    Add a Bluetooth device to your computer
    http://Windows.Microsoft.com/en-us/Windows7/add-a-Bluetooth-enabled-device-to-your-computer

    Add a Bluetooth device or other wireless or network device: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows7/add-a-Bluetooth-or-other-wireless-or-network-device-frequently-asked-questions

    ---------------------------------------------------------------------

    More information of possible interest to some:

    What is a Bluetooth personal area network (PAN) network?
    http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-a-Bluetooth-personal-area-network-Pan

    Connect to a Bluetooth personal area network (PAN) network
    http://Windows.Microsoft.com/en-us/Windows-Vista/connect-to-a-Bluetooth-personal-area-network-Pan

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • How to set a font for systemwide cmd.exe and permanently?

    Hello

    How can I set Lucida Console as police by default cmd.exe systemwide and permanently?

    I know how to do it individually with the Properties of the console, but I would do it for all users at all times.

    Thank you

    win8cub

    Found myself:

    http://www.howtogeek.com/HOWTO/Windows-Vista/stupid-geek-tricks-enable-more-fonts-for-the-Windows-command-prompt/

    Moreover, I've also set Lucida Console in the console by default

  • How to set the flag for the first 3 days

    Hi all

    I have a table with a complete list of April and may 2015 date month and his working days (just for example, I have included only in April and may 2015 data but the table has data for 20 years since 2000).

    Below is the table create and insert scripts for complete data.

    CREATE TABLE dates_dim(day DATE, business_day NUMBER, month NUMBER, day_of_week VARCHAR2 (100));
    
    Insert into DATES_DIM Values (TO_DATE('05/01/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 1, '201505', 'FRIDAY');
    Insert into DATES_DIM Values (TO_DATE('05/02/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 0, '201505', 'SATURDAY');
    Insert into DATES_DIM Values (TO_DATE('05/03/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 0, '201505', 'SUNDAY');
    Insert into DATES_DIM Values (TO_DATE('05/04/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2, '201505', 'MONDAY');
    Insert into DATES_DIM Values (TO_DATE('05/05/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 3, '201505', 'TUESDAY');
    Insert into DATES_DIM Values (TO_DATE('05/06/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 4, '201505', 'WEDNESDAY');
    Insert into DATES_DIM Values (TO_DATE('05/07/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 5, '201505', 'THURSDAY');
    Insert into DATES_DIM Values (TO_DATE('05/08/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 6, '201505', 'FRIDAY');
    Insert into DATES_DIM Values (TO_DATE('05/09/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 0, '201505', 'SATURDAY');
    Insert into DATES_DIM Values (TO_DATE('05/10/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 0, '201505', 'SUNDAY');
    Insert into DATES_DIM Values (TO_DATE('05/11/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 7, '201505', 'MONDAY');
    Insert into DATES_DIM Values (TO_DATE('05/12/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 8, '201505', 'TUESDAY');
    Insert into DATES_DIM Values (TO_DATE('05/13/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 9, '201505', 'WEDNESDAY');
    Insert into DATES_DIM Values (TO_DATE('05/14/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 10, '201505', 'THURSDAY');
    Insert into DATES_DIM Values (TO_DATE('05/15/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 11, '201505', 'FRIDAY');
    Insert into DATES_DIM Values (TO_DATE('05/16/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 0, '201505', 'SATURDAY');
    Insert into DATES_DIM Values (TO_DATE('05/17/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 0, '201505', 'SUNDAY');
    Insert into DATES_DIM Values (TO_DATE('05/18/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 12, '201505', 'MONDAY');
    Insert into DATES_DIM Values (TO_DATE('05/19/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 13, '201505', 'TUESDAY');
    Insert into DATES_DIM Values (TO_DATE('05/20/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 14, '201505', 'WEDNESDAY');
    Insert into DATES_DIM Values (TO_DATE('05/21/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 15, '201505', 'THURSDAY');
    Insert into DATES_DIM Values (TO_DATE('05/22/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 16, '201505', 'FRIDAY');
    Insert into DATES_DIM Values (TO_DATE('05/23/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 0, '201505', 'SATURDAY');
    Insert into DATES_DIM Values (TO_DATE('05/24/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 0, '201505', 'SUNDAY');
    Insert into DATES_DIM Values (TO_DATE('05/25/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 0, '201505', 'MONDAY');
    Insert into DATES_DIM Values (TO_DATE('05/26/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 17, '201505', 'TUESDAY');
    Insert into DATES_DIM Values (TO_DATE('05/27/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 18, '201505', 'WEDNESDAY');
    Insert into DATES_DIM Values (TO_DATE('05/28/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 19, '201505', 'THURSDAY');
    Insert into DATES_DIM Values (TO_DATE('05/29/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 20, '201505', 'FRIDAY');
    Insert into DATES_DIM Values (TO_DATE('05/30/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 0, '201505', 'SATURDAY');
    Insert into DATES_DIM Values (TO_DATE('05/31/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 0, '201505', 'SUNDAY');
    Insert into DATES_DIM Values (TO_DATE('04/01/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 1, '201504', 'WEDNESDAY');
    Insert into DATES_DIM Values (TO_DATE('04/02/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2, '201504', 'THURSDAY ');
    Insert into DATES_DIM Values (TO_DATE('04/03/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 3, '201504', 'FRIDAY   ');
    Insert into DATES_DIM Values (TO_DATE('04/04/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 0, '201504', 'SATURDAY ');
    Insert into DATES_DIM Values (TO_DATE('04/05/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 0, '201504', 'SUNDAY   ');
    Insert into DATES_DIM Values (TO_DATE('04/06/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 4, '201504', 'MONDAY   ');
    Insert into DATES_DIM Values (TO_DATE('04/07/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 5, '201504', 'TUESDAY  ');
    Insert into DATES_DIM Values (TO_DATE('04/08/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 6, '201504', 'WEDNESDAY');
    Insert into DATES_DIM Values (TO_DATE('04/09/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 7, '201504', 'THURSDAY ');
    Insert into DATES_DIM Values (TO_DATE('04/10/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 8, '201504', 'FRIDAY   ');
    Insert into DATES_DIM Values (TO_DATE('04/11/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 0, '201504', 'SATURDAY ');
    Insert into DATES_DIM Values (TO_DATE('04/12/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 0, '201504', 'SUNDAY   ');
    Insert into DATES_DIM Values (TO_DATE('04/13/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 9, '201504', 'MONDAY   ');
    Insert into DATES_DIM Values (TO_DATE('04/14/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 10, '201504', 'TUESDAY  ');
    Insert into DATES_DIM Values (TO_DATE('04/15/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 11, '201504', 'WEDNESDAY');
    Insert into DATES_DIM Values (TO_DATE('04/16/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 12, '201504', 'THURSDAY ');
    Insert into DATES_DIM Values (TO_DATE('04/17/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 13, '201504', 'FRIDAY   ');
    Insert into DATES_DIM Values (TO_DATE('04/18/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 0, '201504', 'SATURDAY ');
    Insert into DATES_DIM Values (TO_DATE('04/19/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 0, '201504', 'SUNDAY   ');
    Insert into DATES_DIM Values (TO_DATE('04/20/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 14, '201504', 'MONDAY   ');
    Insert into DATES_DIM Values (TO_DATE('04/21/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 15, '201504', 'TUESDAY  ');
    Insert into DATES_DIM Values (TO_DATE('04/22/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 16, '201504', 'WEDNESDAY');
    Insert into DATES_DIM Values (TO_DATE('04/23/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 17, '201504', 'THURSDAY ');
    Insert into DATES_DIM Values (TO_DATE('04/24/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 18, '201504', 'FRIDAY   ');
    Insert into DATES_DIM Values (TO_DATE('04/25/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 0, '201504', 'SATURDAY ');
    Insert into DATES_DIM Values (TO_DATE('04/26/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 0, '201504', 'SUNDAY   ');
    Insert into DATES_DIM Values (TO_DATE('04/27/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 19, '201504', 'MONDAY   ');
    Insert into DATES_DIM Values (TO_DATE('04/28/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 20, '201504', 'TUESDAY  ');
    Insert into DATES_DIM Values (TO_DATE('04/29/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 21, '201504', 'WEDNESDAY');
    Insert into DATES_DIM Values (TO_DATE('04/30/2015 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 22, '201504', 'THURSDAY ');
    COMMIT;
    

    I'm looking for a select statement that defines the indicator 'Y' for April records months and "n" for records in may for the first 3 days of the request. Here's the difficult thing, the results should vary depending when they run the select query.

    For example:

    Scenario-1: If I run the SQL code may 1st, 2nd, 3rd, 4th, or 5th (with in the first 3 days), FLAG must be set on 'Y' for records in April and "n" for records in May.

    Scenario 2: If I run anywhere between May6th 31, FLAG must be set to ' do for April month and 'Y' for records in May.

    Search results for scenario 1 should look something like this the results of the SQL query below (as I can't keep the complete set of results, I wrote a select query which will give you the expected results if you run the DDL and DML scripts above)

    select day,case when day between '01-APR-2015' and '30-APR-2015' then 'Y' else 'N' end flag from dates_dim;
    

    Results for the scenario-2 should look something like this the results of the SQL query below (as I can't keep the complete set of results, I wrote a select query which will give you the expected results if you run the DDL and DML scripts above)

    select day,case when day between '01-APR-2015' and '30-APR-2015' then 'N' else 'Y' end flag from dates_dim;
    

    Please let me know if it is confusing. Thank you.

    Hello

    Thanks for posting the CREATE TABLE and INSERT statements; It's very helpfu.

    Month article it should really be a DATE, not a NUMBER. This issue (and many others) would be simpler and more effective it was a DATE, rather than a NUMBER, since it must be compared with the DATEs.

    As the month is a NUMBER, do not insert VARCHAR2 values, such as '201505', in it.

    Why is-day_of_week 100 characters?  The longest name in English ("WEDNESDAY") is 9 characters.  Day_name fairer apply in trouble.

    Here's a way to do what you asked:

    DEFINE SYSDATE = "DATE" "2015-05-05.

    DEFINE SYSDATE = "DATE" "2015-05-06.

    WITH got_effective_month AS

    (

    SELECT TO_NUMBER (TO_CHAR (ADD_MONTHS (& SYSDATE

    CASE

    WHEN COUNT (*)<=>

    THEN-1

    0 OTHERWISE

    END

    )

    , "YYYYMM.

    )

    ) AS effective_month

    OF dates_dim

    Day WHERE BETWEEN TRUNC (& SYSDATE, 'MONTH')

    AND & SYSDATE

    AND business_day > 0

    )

    SELECT d.

    CASE

    WHEN month = e.effective_month

    THEN 'Y '.

    ANOTHER "N".

    Flag of the END as the

    OF dates_dim d

    CROSS JOIN e got_effective_month

    ORDER BY d.day

    ;

    I used the proxy & SYSDATE to test.  In Production, you will use the SYSDATE function instead.

    A calendar table, like days_dim, is really a good idea.  You may consider adding a column business_day_count cumulative, a NUMBER that increments of 1 every day business.  To find out how many days passed since any day x (for example, the 1st of this month), you would only need extract the 2 rows in the table: line x and the line today.

Maybe you are looking for