Dynamic default value on SREQ area

Hi everybody,
I would like to set default value for one field on search screen,
however not fixed value (what I can do in field group of the area),
but dependent on some condition.
Where should I put my code?
regards,
Przemek

Hi,
Default values are the ones that appear when the screen loads. So what kind of condition can you check when the screen loads. Incase of any events driven out of navigation then we can set some values.
Could you make the requirement a little more clear.
Regards,
Hemanth

Similar Messages

  • Prompts with dynamic default values

    I have a request from my client to modify several reports so that two date prompts will have default values populated with the first and last day of the previous month.  All of the reports are currently using custom sql so I have to be able get the dynamic default value in the extended @prompt syntax.  However, I am not able to use any of the sql functions since the functions merely appear as plain text as the default value itself. 
    I have found a few work arounds to achieve the functionality of the dynamic prompts, but I cannot get the actual default value displayed to the user to be dynamic.  Is it possible to achieve this by using only the custom sql?

    Hi Sandeep ,
    Below blog may answer your query .
    Dave’s Adventures in Business Intelligence » Dynamic Dates Part III: Monthly Date Ranges
    Search for And for Last Month?

  • Dynamic default values in parameters

    Hello,
    anyone knows if it's possible to set dynamic values as default values for parameters in portal?
    i am specially interested in the use the date we are in to pass it to a discoverer worksheet (month or year) via single parameter form or any other porlet that could perform it.
    Many thanks.
    Regards,
    Daniel
    PS
    Is the second thread i create with this question cause i didnt receive any answer before and i am really interested in any solution or knowing that i cant perform it.

    no one have ever used a date parameter (for example, month) that need a default value, and set this default value as the month we are today?
    maybe i didnt explain my problem properly before...
    thanks for any help, i really need this because all the porlets in the portal i am creating are discoverer's reports that presented by month, year or day.
    regards,
    daniel

  • Default value for variable are not within permitted value range (precalc)

    Hello BW community
    Issue:
    I have created a variable (Characteristic Value/ Manual input-default value) and use the precalculated value set (details-basic settings). In the further variable definition I could select the  precalculated value set in 'Default values', which I have defined beforehand in the broadcaster..
    The precalculated value set in the broadcaster settings is just based on a master data query on 0CUSTOMER.
    Error:
    The variable gets the error E991/R9E Errors: Default values for variable 'XXX' are not within permitted value range.
    The detail description of the error is: You defined default values for variable 'Sold-to party precalc value set for manuel input' that are not appropriate for the variable type; for example, a range is defined as a default value for a variable that only permits a single value.
    So please has someone had the same issue and found out how to solve it? It would be excelent to get good solution for this issue.
    Best regards and thanks
    Christian
    PS-1: System BW 701 / SAPKW70105
    PS-2 : there has been a SDN entry with the same topic but not resolved too.
    link: /thread/980839 [original link is broken]

    Hello,
    Thanks for your response.
    I should have mentioned that in my post. I tried this very first time. I thought that this is the place where you provide default value. But I got following exception at that time, so I thought, may be this is used for something else.
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
    javax.faces.FacesException: javax.servlet.ServletException: OracleJSP error:
    oracle.jbo.NameClashException: JBO-25001: Object viewAllInd of type Control Binding Definition already exists.
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:415)Do I need handle something else when you put the default value?
    Thanks,
    Jai

  • Default value for depreciation area

    While running repeat run depreciation, i am facing following error:
    "Depreciation area 90 in company code IN00 does not have default values"
    Let me know abt what value it is asking & how to solve the problem
    Depreciation area 90 is a revaluation depreciation.

    Hi
    Try SPRO - Asset Accounting - Depreciation - Valuation Methods - Depreciation Key - Default Values
    Thank You,

  • XControl dynamic default value

    Hello,
    Do you know how to make a XControl give a numeric value like Tick Count (ms) ? I think that is not that obvious. Tick Count is typically a node which value changes at every moment based on external parameters.
    See the attached example. When a VI containing the XControl is "Run when opened" then the returned value is always zero, instead of Tick Count. This is related to the default value of the XControl data extracted on the Block Diagram before the Facade VI is called. Note that I need to use a XControl for other reasons, not a SubVI for instance or else.
    Does anywone know how overcome this zero systematic value (still using a XControl) ?
    Best regards
    LabView 8.6 - Windows XP SP2
    Attachments:
    XControl.TickCount.zip ‏39 KB

    MaximeR wrote:
    Hello,
    You can
    remark that when the VI was load one time and that you don't close LabVIEW, you
    can reduce the delay because the Xcontrol is already in memory. But you need to
    keep a delay due to the redrawing of the Xcontrol. When you use a lot of
    Xcontrol or a big one, it's better to preload the xcontrol before using it to
    reduce the launch time.
    Best regards.
    OK enlighten me, how to do such a thing for an executable. Why can't the owning VI wait on the XControls?
    Ton
    PS if you are  into debugging XControls contact NI Netherlands for the code on SRQ  682340
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Dynamic Default value of variable in query

    Hi,
    I would like to set current date as default value (e.g. system date 'SY-DATE') for a variable on selection screen in query. How to do that?
    Thanks,
    Helen

    Hi helen,
       Check this doc : <a href="http://sapbwneelam.blogspot.com/2007/10/how-to-create-populate-user-exit.html">How to... Create & Populate User Exit variable</a>
    Hope it Helps
    Srini

  • Dynamic default value to dateTime filter

    Hi,
    In my report I want to show data with *"datetime>4 AM today to datetime<current datetime"*. How to set the default value of a datetime filter to 4AM of the current day?
    Thanks
    Edited by: SOADreams on Sep 22, 2011 12:43 PM

    Hi
    You could try the following:
    Create a calculated field to determine if the Hour is 4AM or greater -- use the timefunctions and set the value to 1 for fields that satisfy the criteria using If then Else
    Set the filter to Current Day and then also where the calculated field is 1
    I think this will provide you the right set of records.
    Regards
    Payal

  • How to make default value for controlling area for MDG-F 7.0

    how do we default certain pre-defined values for few fields? e.g. controlling area or company code for MDG finance?
    Thank you in advance.
    SP

    Hello Sahil
    Account and CC/PC are 2 different entity types. For PC and CC there is dependency. First you have to load Cost centers and then load PC.
    For CC - load CC master data first. Then load hierarchy file then group file and finally assignment file.
    Follow same process for PC.
    GL you can load independently but you have first load group GL then operational GL and then GL at company code level,
    Kiran

  • Crystal Report XI: Parameter Field Dynamic Default Values Limitation?

    Post Author: Elie_123
    CA Forum: General
    Hi,Using Crystal Report XI.I have a parameter field with Dynamic values that Queries the company field of an SQL Database.I have around 3500 companies in my DB. But when running my report (Using Crystal), only the first 1300 companies are being displayed in my pick list.I need to see the whole 3500 records. Any idea how to fix that?regards

    Post Author: V361
    CA Forum: General
    Check out this link
    http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do;jsessionid=2DA9FC849962062053477D134AAAA672?cmd=displayKC&docType=kc&externalId=c2017238&sliceId=&dialogID=5618074&stateId=1%200%205616180

  • Setting dynamic default values in a list/menu

    To save problems with inserting dates into a Mysql database, I have split the input fields on the file insert form into three drop down lists containing the day, month and year.
    In order to make it easy for users, I wish to take the current date, split it into day (dd) month (mm) and year (yyyy), and use one of these values as the default option for each of the three fields.
    In html you would use :
    <option value="2012" selected>2012</option> for the default, but this is a fixed default.
    I want it to change depending on the actual year., so that if today is 21-02-2012, (thats how we use dates in the UK)  the three fields default to 21 (dd) 02 (mm)  2012 (yyyy).
    I can re-format them into MySql date format mmddyyyy no problem later to insert them into the database
    Any ideas?
    Or is there a better way to do this?

    <option value="2012" <?php if (date('Y') == '2012') echo 'selected'; ?>>2012</option>
    The above solution works well for that item.
    I now have another one which may help others.
    I populate a drop down list with the values 1 to 12, with the default being set to 6 and insert a record.
    This represents the number of months that the record will be displayed until it is deleted.
    When I pull the record back from the database to update it, I need to show the current value of the field, which is stored in $row_eventset['event_expiry'] ready for it to be updated.
    Code as follows:
    <select name="event_expiry" size="1" tabindex="5" title="select from the list">
    <?php for ($i = 1; $i <= 12; $i++) { // loop through the months
              echo "<option value= '$i' " ;
          if ($i == $row_eventset['event_expiry']) {                               //check if this is the same as the record being edited
           echo 'selected="selected" ' ;                                                 // if so select it
                echo ">$i</option <br>";                                                  // the <br> is essential in a browser, though it works without it in live view.
    ?>
    </select>
    I hope that it saves someone some time.
    When I first tried this, it worked fine in live view. However in a browser, all the months appeared on the same line. I had to insert the <br> command to make it work properly.

  • Problem using default value of report parameter 1 to validate parameter 2 passed in to report

    I am having a problem with an SSRS report using the default value of report parameter 1 to validate parameter 2 passed in to report (via C#) instead of using the value of parameter 1 that is also passed into the report.  Here are the
    simplified details:
    Using SSDT, SQL Server 2008 R2
    SSRS report has 2 parameters:
    P1 -- text, hidden, default value 'R1', ... front-end C# code can pass 'R2' or 'R1'
    P2 -- text, allows multiple values, list of available values provided by stored procedure (sproc_list) that takes P1 value as a parameter.  Hence, sproc_list either provides a list for P1 = 'R1' or P1 = 'R2'.
    List for P1 = 'R1' is 'A', 'B', 'C'
    List for P1 = 'R2' is 'A', 'B', 'D'
    Values for P1 and P2 can be passed in via C# to the report.
    The C# front-end displays 2 report choices to the user, R1 and R2, where both choices call the same RDL; but choice R1 passes in 'R1' for P1, and the choice R2 passes in 'R2' for P1.
    Upon a users 1st time use of the report no parameters are passed in.  Then when the user exits the report, the parameter value for P2 that was chosen is saved off to a file for R1 or R2, and used the next time the user selects the report.
    Everything always works fine for report R1 since the default value for P1 is 'R1'.
    When R2 is chosen and the user selects 'D' as the value for P2, runs the report, then exits, the P2 value of 'D' for R2 is saved to a file.  When the user returns the next day to run report R2, 'R2' is passed for P1, and 'D' is passed for P2.
    This is when the problem occurs.  The value of 'D' for P2 is validated against a list generated for P2 based on the default value of 'R1' for parameter P1.  Hence, SSRS considers 'D' an invalid value for P2 and blanks out the P2 parameter. 
    The user can then use the drop down list for P2 and choose 'D', but this defeats the purpose of saving the parameter values to be used the next time.
    Why is the stored procedure that provides a list of available values for parameter P2 using the default value of 'R1' for parameter P1 instead of using the value of 'R2' passed into the report for parameter P1?

    Hi Tom,
    Sorry for my delay.
    If I understand correctly, you have two parameter in your report. It is a couple of cascading parameter. If we have choose ‘R1’ of P1, the P2 values is A, B, C. ‘R2’ of P1, corresponding P2 values is A, B, D. What your requirement is to save the end use
    select option of these two parameters.
    In SSRS, if we have configure the parameter with default value. When we run the report, the parameter will fill with the default value to filter data. If we want to save the last status we are render the report, we need to update the default value of P1.
    If we are query the default value from database, if possible, we can
    update the database try to resolve the issue.  Alternatively, we can set the dynamic default value for the parameter.
    Hope this helps.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Set default value based on current day value and setItems in Design studio

    Hello
    I have 2 filters on my dashboard - year and month. The default display of the dashboard should populate current year data. Is it possible to create formula to populate dynamic default value based on the current date using setSelectedValue() ?
    Also, for the calendar month, the items are set as below
    DD_MONTH.setItems(DS_1.getMemberList("0CALMONTH",
    MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 12, "ALL");
    This displays month values as 01/2014, 02/2014 ... How can I change these value to display as January if mm = 01 and February if mm = 02 etc..
    Thanks
    Sirisha

    Hi Victor,
    I have tried using below statment to populate current year as the default selection value for the dropdown. Used it on Startup, but for some reason it loads all the data when the dashboard is opened the first time. Any ideas?
    DS_1.setFilter("0CALYEAR",[Convert.subString(APPLICATION.getInfo().dateNowInternalFormat, 4,6)]);
    Thanks
    Sirisha

  • Prompt Default Value based in drilled result

    I am navigating(drill using action link) from an analysis to a dashboard where I have a prompt for currency. I want this to be initialized to a dynamic default value based on the column values.
    Master Analysis
    Country
    valid currency
    Drill
    India
    C1
    Link1
    India
    C2
    Link2
    China
    C4
    Link3
    India
    C3
    Link4
    China
    C5
    Link5
    Child Dashboard Prompt after clicking Drill (if i click any link against india)
    Header 1
    Header 2
    Currency
    C1
    Bla bla
    Child Dashboard Prompt after clicking Drill (if i click any link against China)
    Header 1
    Header 2
    Currency
    C4
    Bla bla
    Is there any way to achieve this in OBIEE 11g?

    Hi,
    If you are using the same presentation column (same TableName.ColumnName) in your analysis and in the prompt, then the values would be passed when you click on the link. If thats not the case, you can have a look at the below post:
    Navigate from report to dashboard and pass values between different column
    Thanks
    Hyder

  • Multiple Default Values in a Multi-Select LOV Parameter?

    Hi,
    I have a report in BI Publisher standalone version 10.1.3.4. The report has a list of values called org_lov. This lov is attached to a multi-selection p_org_code parameter from which it is desirable to also have multiple default values.
    For example, if org_lov has the following values:
    100
    101
    102
    103
    104
    105
    106
    I would like to have 3 default values and have 100, 101,105 as the defaults if the user doesn't specifically select anything from the LOV. So far my testing has only allowed a single default value.
    Here are my settings:
    Data type = string
    Multiple Selection = checked
    Can select All = checked (all values passed)
    On the Default Value field, I have tried the following:
    1. 100, 101,105
    2. [100, 101,105]
    3. '100', '101','105'
    4. (100, 101,105)
    5. ['100', '101','105']
    6. ('100', '101','105')
    I don't need these default values highlighted in the LOV, I just need it passed correctly to the query (a data template).
    Thank you in advance for any input.

    Hi,
    Sorry for the delayed reply. I tried what you suggested but the problem is that by having the "Multiple Selection" property of the parameter unchecked, the result is that it allows the user to only have a single value passed. The user wants the option to select multiple values AND also have the multiple default values.
    Thanks anyway.

Maybe you are looking for