Guest of dashboard: setting default value using CASE?

Hello

I have the SQL script according to which fills the drop-down list in a table of edge-guest:

SELECT "-calendar". " YearWeek' TO 'orders' WHERE ("-calendar". "") (YearWeek)"BETWEEN VALUEOF("CurrentYearWeek-4") AND VALUEOF ("CurrentYearWeek")) ORDER BY '-calendar". " YearWeek' DESC

Note: CurrentYearWeek-4 and CurrentYearWeek are variable repository

In order to have filled with the most recent YearWeek promt, I entered the following SQL script to set the default value for the prompt of the dashboard:

SELECT MAX ("-calendar". "") YearWeek') TO 'Orders' WHERE ("-calendar". "") (YearWeek)"BETWEEN VALUEOF("CurrentYearWeek-4") AND VALUEOF ("CurrentYearWeek"))

It fills the combo correctly with 5 YearWeek numbers in descending order and defaults to the last YearWeek.

Now, I want to achieve is that if CurrentDate (= an another variable repository) is a Monday, I want to set the default value for the prompt show the value of the CurrentYearWeek-1 * (since there is no data yet for CurrentYearWeek).

I tried the default using following Expression Variable, but without success:

CASE WHEN DAYOFWEEK (VALUEOF ("CurrentDate") = '0', THEN ANOTHER VALUEOF ("CurrentYearWeek") END VALUEOF("CurrentYearWeek-1")

In my view, it must be possible, but I'm stuck now. Any suggestions?

Thank you!

OK, I'm happy for you. Don't forget to put points for the correct answer. If you are a new user comes first read this:

http://forums.Oracle.com/forums/Ann.jspa?annID=939

Concerning
Goran
http://108obiee.blogspot.com

Tags: Business Intelligence

Similar Questions

  • How can I set default values to set the Mode in the config of the AO?

    Hi, how can I set default values to allocate mode in the config of the AO. To be precise, in the attached vi, I need to set the Mode allocate in the AO Config to ' use FIFO memory (6) ' if the value inside the structure of my case is false and 'no change (0)' if the value inside the strusture case is true.

    Create two constants for Mode allocate input (right click > create > constant). A place in the real case of the structure of the case and place it in the case of false. Their son in the same tunnel (border of the structure of the case), then the tunnel of wire to the pole to allocate the AO Config Mode. I do not have traditional DAQ installed, but who should do it.

  • Setting default values for trouble ticket

    We have been asked to set the values default to 3 fields in the incident ticket at a default agent is a specific group.  We were asked by default, the Service description and the Type of call to specific values.  I realized (in javascript) how to service and description, but I was not able to understand how to set a default value for the type of call.

    Does anyone have any suggestions?  We currently use VSM v9.1.1

    It is ok. Help of the seller is always more reliable. If it is available...

    Just in case if you will not get the correct answer:

    1. If you want to change the value of the Type field loading screen CallDetails:

         File: Custom_InCallDetails.js

         Function: CustomLoad()

         Code: document.getElementById('REF_COMPOSITE').value = NEW_PROB_TYPE_COMPOSITE_REF;

    2. If you want to change the value of the Type field after the call screen is loaded:

         File: Custom_InCallDetails.js

         Function: your_custom_function()

         Code:

    document.getElementById('REF_COMPOSITE').value = NEW_PROB_TYPE_COMPOSITE_REF;

    document.getElementById ("PROBLEMTYPE_REF_COMPOSITE"). CompositeRef = NEW_PROB_TYPE_COMPOSITE_REF;

    This time I did some tests and it seems to work very well.

  • Setting default value for selectOneChoice when the Page loads

    BPM JDev 11.1.1.5.0

    I have a selectOneChoice component bound to a BPM data control. You need to set a specific value as the default value when the page is loaded for the first time.

    I did the scope of the bean managed as pageFlowScope.
    Then created a variable of string in the bean called 'postal code' and its setter I wrote like:

    You can follow this approach as well. But when you call the countryCode setter? You must set the value of the variable string.

    Then, I used your code in the jspx page.

    You need to edit my code in the jspx you use a managed bean. The code will change as below.

    
       
           
       
     
    

    I was suggesting to use a variable of pageFlowScope as defined in my previous code snippet. And on pageload, set this variable. To find out how to write/execute java code before page loads refer to this post:
    http://www.baigzeeshan.com/2011/05/How-to-run-Java-code-on-every-page-load.html
    In the afterPhase of the post method, you can set the variable pageFlowScope as shown below.

    AdfFacesContext.getCurrentInstance().getPageFlowScope().put("countryCode", "IndiaIN");
    
  • Setting default values

    With the help of JDev 11.1.1.5

    I have a table and I do a taskflow to manage records. I have a fragment that displays the records and a button that calls the CreateInsert method and navigates to a new fragment with the details.
    I use the same fragment for the details of an existing record, but then I called the CreateInsert.
    So far so good.

    When I create the new record, I want to put some default values. For some fields, I put the default value in the object of the entity that works very well.
    In one of the fields I want to set the current user name, but I do not know how... Is it possible the entity object as well or not?

    If you work with adf security you can access information through an expression like adf.context.securtyContext.userName groovy

    Timo

  • When you try to set default values, Explorer stops

    trying to set wmp as default. When I click on set as default I get explore stopped

    trying to set wmp as default. When I click on set as default I get explore stopped

    Suggestion:
    Run a file system check... sfc/scannow
    After sfc is done, at the end of the screen, it will say either (and I paraphrase)...
    No violation of the intergrety, or
    Found some files corrupted but unable to trouble.

    First see if you can set default this time.
    If this isn't the case, please post the resullt of the verification of the file system.

    For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • Set default values 'All' in the quick filters in bold

    Hi people,

    I have a requirement, simple but clean, to show all the default values in the format "BOLD" quick filters.

    For example: user input: list selection all

    I think this has to do in CSS, guide me if I am wrong.

    Thank you

    PJ

    Use the below in any of the DB object or even to change views.css file by adding the weight of the font: "BOLD"; in the category

    {.promptMenuOption}

    make-weight: bold ;}

    Mark as correct

    ~ http://cool-bi.com

  • ADF: How to set default values for the attributes of each Insert online?

    Hello

    I am new to the ADF. I'm developing a simple Application from merger where a column of af: table has to be displayed with the user name (default) on each insertion.

    I tried using below EL:

    < af:inputText value = "#{null == row.bindings.SalesPeople.inputValue?" "{userBean.strUserName: row.bindings.SalesPeople.inputValue}"...

    And I am able to display the logged in user name by default on the side of the user interface, but the name of the user isn't getting recorded in the database.

    The action that I used to insert a new line is "CreateInsert".

    < af:commandButton text = 'Add new record' id = "cb1" actionListener = "#{bindings." CreateInsert.execute}"partialSubmit ="true"/ >

    Please help me how to solve this problem...

    Thank you

    Alexander

    Thank you all,

    I was able to solve this problem in action appellant and here is the code snippet

    actionListener = "#{bindings." CreateInsert.execute}"action =" #{testBean.getSalesPeople} ' "

    partialSubmit = "true" / >

    ----

    public void getSalesPeople() {}

        Links DCBindingContainer = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
        UserInfoBean userBean = (UserInfoBean) JSFUtils.getManagedBeanValue ("userBean");
        DCIteratorBinding quoteIter = bindings.findIteratorBinding("SalesQuoteView1Iterator");
        RowSetIterator quoteRSIter = quoteIter.getRowSetIterator ();
        RowKeySet rowKeySet = m_SalesQuoteTbl.getSelectedRowKeys ();
        If (rowKeySet! = null & rowKeySet.size () > 0) {}
            Iterator rksIterator = rowKeySet.iterator ();
            The list rowKey = (List) rksIterator.next ();
            Key = (Key) rowKey.get (0);
            Line currentRow = quoteRSIter.getRow (key);
            currentRow.setAttribute ("Sales", userBean.getStrUserName ());
    }

    Appreciate your point of view on my solution.

    Thank you

    Alexandre Ali

  • How to set default values for the GET_SEARCH_RESULT Service

    Hello

    Can someone help me to pass values by default for search results

    3:setLocalValues:QueryText,: 0:null

    < td > < table > GET_DATA_ACCESS_PAGE

    DocService < td >

    50

    StandardResults

    null

    value Null < br >

    ! csUnableToRetrieveExpiredList < table >

    < td > 3:setLocalValues:QueryText,: 0:null

    3:doScriptableService:GET_SEARCH_RESULTS:0:null < table >

    I want to pass parameters such as below


    QueryText = dDocType < start > "has".

    Ignore my previous mail. It should be Mappername and not DocService. This one works for me. Just change the name of the service and the querytext.

    
      CUSTOM_SEARCH_RESULTS
      SearchService
      33
      StandardResults
      null
      null
    !csUnableToRetrieveSearchResults 3:setLocalValues:useOnlyLocalForDpTrigger,1,QueryText,`BCD` xComments:0:null 3:getSearchResults::0:null 3:loadProfileForRequest:Search:0:null
  • Default value using ADFLogger.createADFLogger (java.lang.Class p1)

    Hello world

    I tried to understand how the new logger is created and initialized. When we use the "ADFLogger.createADFLogger (java.lang.Class c1)" method to create a log, the default logging level is initialized to null. But when I tried to investigate it, it is found that an instance of java.util.Logger is created with the default recording for the RECORD level.

    Question: How is the default logging level is changed to null? Should not the instance of ADFLogger has some default logging level...?

    Thank you

    I checked this and the answer lies in the javadoc

    getLevel

    java.util.logging.Level public getLevel()

    Download the log level that has been specified for this recorder. The result can be null, which means that they will leave to effective level of this recorder to its parent.

    Returns:

    level of this recorder

    So if you get null, it means that you inherit the MOM logging level. As the recorder build a tree you must back up the tree (using getParent()) until you get the recorder that returns a level not null.

    Timo

  • Cannot set the value using the setPropertyListener tag

    Hi all

    IAM using Jdev 11.2.1.0.0

    I have a scenario as when I click on a button, a string value must pass the variable at the bean. That's why I used setPropertyListener tag inside the button as follows.

    < af:setPropertyListener = "Form" to = "#{backingBeanScope.MyBean.value} '"

    type = 'action' / >

    The value does not at all.  Can I place 'Form' as above or ' #{'form'} '. I tried both, but no progress. Please suggest me.

    Thanks and greetings

    Leprince

    Hi Frank,.

    IAM using multiple shapes on the page... Switch exists in form and these button exists in another form.

    When I add these buttons to the form where switch exists, then for the first on himself, setPropertyListener in the button triggers and switch is switching between the facets according to my condition. Thanks a lot for your help.

    Concerning

    Leprince

  • How can I set default values in the Labview Advanced Settings the TestStand step settings tab to run a VI on a remote PC?



  • How to set the default value of the attribute with a sequence number? Is it possible to add a string to seq.no. like abc0001?

    Mr President.

    How to set the default value of the attribute with a sequence number? Is it possible to add a string to seq.no. like abc0001?

    Concerning

    For the date, you can use groovy expression adf.currentDate to set the current date. reference http://adfgouravtkiet.blogspot.in/2012/11/how-to-set-default-values-for-entity.html

    You already have ways to use the sequence.

    How do you add a new value in the form. You're creating a new line of your page (user interface) and by engaging with validation operation? Unless you commit you will not be able to see anything in the table.

    Thank you

  • MASTER DETAIL - SET THE DEFAULT VALUES FOR ELEMENTS

    I have a page master detail where, on the master, I do things like update the fields entered_by and entered_date
    by applying functions to define item-level details and the read-only setting.

    On the portion of the page detail, I would do the same thing, but I don't see the point of page details - only master items.
    The portion of details is for comments so I wish I had the commenter_name and commenter_date the value of the values
    When I hit the Add button line on the portion of details.

    Where are the elements of detail?

    I use APEX 3.2

    Thank you

    Steve

    Hello

    When you use the master detail form, APEX build "Detail part" in the report. So if you edit the page, you won't see actual items for 'Party detail'

    If you want to set default values or want to format these items, you may need to perform like this

    1 > edit 'report' of the "retail portion.
    2 > click on attributes report
    3 > click on the column, you want to set default values
    4 > now here, in accordance with article 'Tabular form Element' you can do this by setting appropriate in 'default' type fields and "default".

    It may be useful

    See you soon
    Hari

  • Still need mass of compilation by default values.llb in BT using TS4.2.1?

    I use 4.2.1 TestStand and LabVIEW 2009. Re-reading (new combination of software OR) "Using LabVIEW and LabWindows/CVI with TestStand I fell on this paragraph.

    Using a LabVIEW 8.6.x or advancement system

    When you install a version of LabVIEW later than LabVIEW 8.6.x and you

    to use this version of LabVIEW with TestStand, you must complete

    the following steps to update TestStand - 86 llb default values

    to enable LabVIEW adapter retrieve the default parameter values

    the screw.

    1. create a copy of TestStand - 86.llb to the default values.

    2. rename the copy TestStand - xx.llb default values, where

    XX is the version of LabVIEW, with a revision number, you

    you want to use with TestStand.

    3 mass compile TestStand - default values using the xx.llb the

    version of LabVIEW, you want to use with TestStand.

    I still do with LabVIEW 2009 and TestStand 4.2.1?

    Hi GovBob,

    You don't need to do it with LabVIEW 2009 and TestStand 4.2.1. If you access this location: C:\Documents and
    All Users\Documents\National Instruments\TestStand
    4.2.1\AdapterSupport\LabVIEW, you will see that there are already documents llb 90.l in default values.

Maybe you are looking for

  • Close, minimize and resize buttons are inactive on the main window

    My email client is the beta version of 41. I just upgraded the sys op to version 10 of Windows version 7. The close, minimize and resize buttons are inactive on the Thunderbird main window when running on Windows version 10. These buttons are active

  • My Satellite L655-1DT has sometimes BSOD

    Hi, can someone help me with this problemMy Satellite L655-1DT sometimes hangs at startup of windows 7, BSOD lasts for one second and then restarts.After reboot it running repair of the start-up and after that, it starts and does not crash.Windows di

  • Print SPOOLER does not not in Windows 7

    I CALLED THE MANUFACTURER OF MY CANON PRINTER BUT NOTHING IS THERE FACT. MY PRINT SPOOLER FOR MY WINDOWS 7 STOPPED RUNNING. NOTHING I'VE DONE DOES NOT... SOMEONE PLEASE HELP ME. PLEASE NOTE THAT I AM NOT EXTREMELY COMPUTER ETC. PLEASE EXPLAIN AS IM 4

  • NFC - how to detect the disconnection?

    Repost - it was in the wrong forum. : Just get started with the development of the NFC. I've been through the examples and am able to read basic NDEF tags. The only thing I don't see is how to detect where the NFC tag disappeared. Y at - it a reminde

  • If we improve FI 6296UP UCS 3.1, what version of the firmware for our 9148 MDS is interoperable?

    We are looking at upgrading our UCS UCS 3.1 environment. We currently organize UCS 2.2 (3 c) on our FIs of 6296UP, and our 9148 MDS switches are currently on firmware 6.2(5a) If we improve UCS to 3.1 (1e) or 3.1(1g), how do we find what MDS firmware