How to assign a default value when there is no prompted value

Dear all,
I create a filter and it's value is relate to a prompt.If the prompt is not fill I found that all record is selected.
How did I assign a default value so that when I didn't fill some value in to the prompt and still can get the result by
the default value I set?
Thanks a lot!

Are you using dates for between or some character column?
Post your example.
Instead of between use to is equal prompts, so u will have then 2 fields one for date from a nd one for date to. Everything is the same as I wrote just repeat steps...
You must put 2 separate fields if you are using date between and you want to have default variable for both.
Column formula for the first calendar date prompt:
case when 1=2 then TIMES.TIME_ID else cast ('1.1.1900' as date) end
and for the second:
case when 1=2 then TIMES.TIME_ID else cast ('1.1.2900' as date) end
Now you set up default repository variable for both prompts.
Presentation variable you put in the set presentation variable on each prompt:
p_date_from
p_date_to
And in Answers filter will be like this:
*TIMES.TIME_ID between @{p_date_from}{VALUEOF("rv_test_date_to_char")} and @{p_date_to}{VALUEOF("rv_test_date_to_char")}*
or you can put a different default variables
*TIMES.TIME_ID between @{p_date_from}{VALUEOF("rv_test_date_to_char_from")} and @{p_date_to}{VALUEOF("rv_test_date_to_char_to")}*
I posted similar in my blog:
Date between in filter and title when using presentation variable from calendar dashboard prompt or drop-down list in OBIEE
http://108obiee.blogspot.com/2009/03/date-between-in-filter-and-title-when.html
Regards,
Goran O
http://108obiee.blogspot.com
Edited by: Goran O on 2009.04.23 03:37

Similar Messages

  • How to change the default JRE when there are several version of JRE in Sys

    How to change the default JRE when there are several version of JRE in System?
    i have installed j2sdk1.5.0 then installed j2ee1.4,then installed Weblogic6.1 which use jdk1.3
    Now the JRE is jdk1.3\bin
    When run class that was compiled with jdk1.5,throw:
    java.lang.UnsupportedClassVersionError
    How can i change the jre to 1.5?

    There is a workaround to move from 1.5 version to the older 1.4 version. But this could be specific to the browser setting the JRE version.
    Excerpts from sun docs:
    However, a user can still run older versions. To do so, launch the Java Plug-in Control Panel for the older version, then (re)select the browser in the Browser tab.
    Example:
    Assume you are running on Microsoft Windows with Microsoft Internet Explorer, have first installed version 1.4.2, then version 5.0, and you want to run 1.4.2.
    Go to the j2re1.4.2\bin directory where JRE 1.4.2 was installed. On a Windows default installation, this would be here: C:\Program Files\Java\j2re1.4.2\bin
    Double-click the jpicpl32.exe file located there. It will launch the control panel for 1.4.2.
    Select the Browser tab. Microsoft Internet Explorer might still appear to be set (checked). However, when 5.0 was installed, the registration of the 1.4.2 JRE with Internet Explorer was overwritten by the 5.0 JRE.
    If Microsoft Internet Explorer is shown as checked, uncheck it and click Apply. You will see a confirmation dialog stating that browser settings have changed.
    Check Microsoft Internet Explorer and click Apply. You should see a confirmation dialog.
    Restart the browser. It should now use the 1.4.2 JRE for conventional APPLET tags.
    Details are here
    http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/jcp.html
    My system (Windows XP) has the version 1.5_09 set as the default. However i just installed JRE 1.5_06 and would like to revert back to _06 as the default JRE..
    Will update if i find more information

  • How to assign a default value to a SelectOneChoice

    Hi,
    I'm working with ADF 11g: WebLogic 10.3 and JDeveloper 11.1.1.3.0.
    I wonder how to assign a default value to a SelectOneChoice.
    In a ViewObject I have a field defined as Combo Box. Then drawing the combo in my jspx page:
    +<af:selectOneChoice value="#{bindings.Circularidad.inputValue}"+
    +label="#{bindings.Circularidad.label}:"+
    +required="#{bindings.Circularidad.hints.mandatory}"+
    +shortDesc="#{bindings.Circularidad.hints.tooltip}"+
    +id="soc2">+
    +<f:selectItems value="#{bindings.Circularidad.items}"+
    +id="si2"/>+
    +</af:selectOneChoice>+
    Can anyone help me?
    Thanks.

    Assume u have an LOV relation associated with VO attribute.
    1. Go to Edit List of Values window
    2. Click UI Hints tab
    3. Check Include no selection item check box.
    4. Select Labeled Item ( First of the list) entry form right combo box.
    5. Give ur default value in right text box.
    Regards,
    Dinil Mithra

  • How to block a sales order when there is a free good item .

    Hello Gurus ,
    How to block a sales order when there is a  free good item  , only the authorised person should have authorisation to release those blocked Sales orders.
    Reason - They want to have a track of free goods given to customer & to avoid the misusing things
    Looking  for your inputs
    Thanks in advance
    Regards
    Venkat

    Hi
    I think you can try with Status Profile in BS02 define and assign for item category TANN.
    In status profile you can block the delivery and also billing unless some changes the object status as released.
    Just try and explore
    regards
    Prashanth

  • Issue using extractval to get the node value when there is namespace

    I created the db with a XMLType column:
    CREATE TABLE mytable1 (key_column VARCHAR2(10) PRIMARY KEY, xml_column1 XMLType);
    Then inserted one row:
    INSERT INTO mytable1 (key_column,xml_column1) VALUES ('test', XMLType('<MY_TEST xmlns="http://xmlns.oracle.com/ku" version="1.0">
    <SCHEMA>SYSTEM</SCHEMA>
    <NAME>TABLE41</NAME>
    <TEST_GROUP>TEST_GRP_RMP</TEST_GROUP>
    <TEST_NAME>DEPARTTEST</TEST_NAME>
    <FUNCTION_SCHEMA>SYSTEM</FUNCTION_SCHEMA>
    <TEST_FUNCTION>EXCLUDE_TABLE</TEST_FUNCTION>
    <STATEMENT_TYPE_LIST>
    <STATEMENT_TYPE_LIST_ENTRY>
    <NAME>SELECT</NAME>
    </STATEMENT_TYPE_LIST_ENTRY>
    </STATEMENT_TYPE_LIST>
    <UPDATE_CHECK>Y</UPDATE_CHECK>
    <ENABLE>Y</ENABLE>
    <STATIC_POLICY>N</STATIC_POLICY>
    <TEST_TYPE>DBMS_RLS.DYNAMIC</TEST_TYPE>
    <LONG_PREDICATE>N</LONG_PREDICATE>
    </MY_TEST>'));
    Then I ran:
    select extractValue(xml_column1,'MY_TEST/TEST_NAME') policy from mytable1;
    There is nothing returned.
    If i do not have "xmlns="http://xmlns.oracle.com/ku" " in MY_TEST node, then the correct value returned.
    Please advise how could I get the node value when there is namespace? Thanks.

    This is a known issue. In the third parameter of extractvalue, set the namesapce. Then it works.

  • How do I find offending photo when there is a problem uploading photos to order prints?

    How do I find offending photo when there is a problem uploading photos to order prints?

    What is the problem? What version of iPhoto? Of the OS? Try safe mode
    LN

  • How do I delete a photo when there is not a trash bin at the bottom of the screen

    How do I delete a photo when there is no trash bin on the bottom of the screen?

    If there is no Trash icon for that photo, the photo was most likely copied to your iPhone by syncing with your computer. To delete the photo you need to do another sync.
    1. If you want to remove a complete album, deselect that album in iTunes on your computer. Then when you click on Sync or Apply that album will be removed from your iPhone but it will remain on your computer.
    2. If you want to remove only certain photos from albums you must delete the photo from the album on your computer or move it to a different album or folder.  Then when you click on Sync or Apply the photo(s) will be removed from your iPhone.

  • How do I make a backup when there are 4 users on my mac

    How do I make a backup when there are 4 users on my mac?

    Welcome to the Apple Support Communities
    If you have more than one user, the backup is just the same as if you have one user. All users are backed up and there isn't any difference between a backup made on a Mac with one user and on a Mac with multiple users. Then, if you want to restore that backup in the future, you will be able to select which users you want to restore

  • Just given my first iMac. How does one use cd's when there is no slot?

    Just given my first iMac. How does one use CD's when there is no slot?

    Oaxaca36 wrote:
    How does one use CD's when there is no slot?
    http://store.apple.com/us/product/MD564ZM/A/apple-usb-superdrive

  • How do I print some value when there is no record against field

    hi,
    I have two queries and a link between two queries .columns selected for query are source to the fields in layout. In one of the case i have record for master table but the detail field is left blank because there is no record against it(its not null)
    How do i display "0" where there is no record in detail. the columns of both the query are in same record . I can't assign "0" when null because there is no record so its not null.
    Thanks in advance
    Rama

    Create a summary column in the parent query which counts the records in the child query. This will be zero when there are no records in the child query. Put this field on the page and in the format trigger use "RETURN :cs_count = 0;" to ensure the field is not visible except when its value is zero.

  • How to Assign a default value and Increement in my Target table ........?

    Hi,
    In my target table I want to Increment a value and store it in the table ........
    the increement shud start frm ...........5001,5002,5003..................etc
    How can I achieve this...........?
    I created an numeric Variable and in assigned the default as 5000 nad action as Historize.........
    In the target Datastore ......I assigned VAR+1.......
    but in the Target column I got 5001 for all the columns........
    Which way is the best way to deal with the Variables.......
    Thanks
    AK
    Message was edited by:
    AK2008

    Hi Gurusank and Micropole,
    Thanks for reply and info.....
    I am trying out one of the solutions first........
    Gurusank,
    I have created a sequence........whether I need to mention the schema and table name ,column.........also ( I gave all the information) and Increement column =1 and saved it .......
    Then I follwed the procedure as u have mentioned .....
    And in the Target field also I gave the same the same.......for tat column I gave choose (target for execution).
    And I directly ran the interface ..........
    I got the folowing Error:
    287 : 42000 : java.sql.SQLException: ORA-02287: sequence number not allowed here
    java.sql.SQLException: ORA-02287: sequence number not allowed here
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:633)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1086)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2984)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3057)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Thread.java:534)
    Could u plz let me know where I am doing the mistake
    Thanks
    AK

  • How to assign the default value to search parameter

    Hi Experts,
    I am using search view , In this I have 5 parameter lets say Transaction Type, Partner No. etc... Now I want to assign a default value to transaction type ( lets say TA) . User should be able to see this default value in the transaction type field before pressing search button.
    How can I do it?
    My second problem is: I have configured this search view using configuration tool but I want to assign only one value to transaction type (i.e. user should not be able to add new row in the search criteria for the transaction type by using + sign)  but in rest 4 fields he can add new row and search based on that.
    Note: I am using only "Is" criteria .
    Any pointer will be helpful for me
    Thanks and regards,
    Sandeep

    Hi Sandeep,
    For the default search values, here is a solution. You have to redefine the method GET_VALUE1 of the context node
    For example if it is the BP search (component BP_HEAD_SEARCH) context node is your enhanced class: ZL_BP_HEAD__MAINSEARCH_CN00
    METHOD get_value1.
      CALL METHOD super->get_value1
        EXPORTING
          attribute_path = attribute_path
          iterator       = iterator
        RECEIVING
          value          = value.
      TRY.
    *     Delegate operation to selection parameter
          DATA: current TYPE REF TO if_bol_bo_property_access.
          IF iterator IS BOUND.
            current = iterator->get_current( ).
          ELSE.
            current = me->parameter_collection->get_current( ).
          ENDIF.
          IF current->get_property_as_string( iv_attr_name = 'ATTR_NAME' ) EQ 'XXX'.
            IF value IS INITIAL.
              value = 'Your default value'.
            ENDIF.
          ENDIF.
        CATCH cx_root.
      ENDTRY.
    ENDMETHOD.
    where XXX is the name of the field.
    Default value will then appear in your search field, but you are still able to modify it if you want...
    Regards,
    Fabian

  • How to assign a default value to a query variable

    If I create a query, and it contains a variable that I want the user to input, can I also assign a default to that variable which the user will see when they run the query? If they make no selection it would use the default instead of the user input?
    Thanks

    Hello Peter - One way might be by using the "CASE" function inside the SQL.
    It might be good for you to post your curent SQL here in the forum and a bit more explanation of what you are looking for.  That way folks can review and provide suggestions on how to accomplish on how it can be done...
    Zal

  • How to assign a default value to a column ?

    Hi
    In the Object browser is it possible to modifiy a column in order to assign a defalut value to the column ?
    I have a table FICHE in which I want to assign a default value 0 to a column which type is NUMBER.
    Thank you for your kind answers.
    Christian.

    Hi Christian
    For one reason or the other you can't do that using 'Create Column' or 'Modify Column'. You can only do that by issuing a SQL command : alter table fiche modify column( <column name> default 0)
    HTH
    Roel

  • How do I reset to default state when there is no icon to click?

    Firefox is slow and crashes a lot. So I went to the Help menu that told me to reset to default state, but there is no icon in the upper right corner of the screen and all it keeps doing is telling me to reset and I can't reset it

    Hi Odattbrett,
    Sorry for the confusion! Does your device have a physical menu button below the screen? If it does, Firefox will automatically hide the 'three dots' menu icon that would normally be at the top of the screen - because pressing the menu button on your device should bring up the menu instead. This helpful article has more information:
    [[Firefox menu icon is missing on Android - how to access the menu]]
    Also, doubly sorry to hear that Firefox is running slowly! :(
    A good way to try to fox this would be by uninstalling Firefox and then installing it again. Doing this would give you a completely fresh start (all your history, bookmarks, passwords and extensions would be removed). To uninstall and reinstall Firefox:
    # Open your device's Settings screen (you might be able to find this by swiping down from the top of the screen, or look for the settings icon on your device's main menu)
    # Press ''Apps'' and then swipe from right to left until you reach the ''All'' section
    # Firefox should be near the top of the list. Press it and on the next screen press ''Uninstall''
    # Go back to your device's main menu. Open ''Google Play'', search for and install Firefox.
    I hope this helps. Reply to let us know if the problem is fixed!
    Jayelbe

Maybe you are looking for