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

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?

  • How to dynamic set default value to parameters?

    Hi,
    There are two parameters of radio buttons on the interface. I want to set default valuse to parameters according to sy-sysid. That is:
    (1) if sy-sysid = 'S1'
         p1............. 'X'
         p2.............
    (2)if sy-syid = 'S2'
         p1............
         p2............ 'X'
    how to write the code?
    Thanks

    Create two vriable  Data:
                               radio1(1),
                               radio2(1).
    if sy-sysid = 'S1'.
    clear radio2.
    radio1 = 'X'.
    else.
    clear radio1.
    radio2 = 'X'.
    endif.
    then pass this variables to intercace.
    p1............. radio1
    p2.............radio2.
    Regards,
    Gopi ,
    reward points if helpfull.

  • Default values of parameters in infoview

    Hi
    I have a master report with no data source, but with many sub reports. Each sub report is based on a BEx query. Now I have a set of parameters that basically act as a flag to allow the user to decide wich sub reports to show. The parameters are basically strings which are Yes or No. I set the default of the parameters and then publish the the report to bobj enterprise via the SAP toolbar. I'm finding that the default values are not being set in infoview. Is there any way to get have the default values set when publishing to bobj enterprise and when migrating crystal reports between environments via transports?
    Thanks,
    Daniel

    Hi Ingo,
    Yes that is right, in Crystal reports I have a  string parameter named "Display Note 2" with values Yes or No, I set default to No.
    Now when I publish all the way to BOBJ, the parameter value is "No current value has been set."
    Thanks,
    Daniel

  • 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!

  • Default values for parameters in Java API

    I have a Crystal report formats with some input parameters set to default values. How do I retrieve them in the Crystal Java API?
    Thanks,
    Chandra Prakash

    I normally do not look at this forum as about all I know about Java is that it comes out of the coffee machine in the kitchen...
    But see if the following KBA will help, even though it is written specifically for .NET:
    1202315 - How do I get a parameters default value's description via the NET SDK?
    - Ludek
    SCN Moderator

  • 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 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

  • 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

  • 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.

  • 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

  • Default values for static report parameters are not visible when scheduling

    Hello
    Crystal Reports 2008 Dev
    Crystal Reports Server 2008
    When I publish a report to the repository and then try to schedule that report, the default value that I have set for a static parameter in the report is not visible.
    In the Parameters section of the Scheduling wizard this parameter is marked as [EMPTY]
    However, when I View the report (right click and select View) from within Infoview, the parameter default value is visible
    I have published in the following 3 ways:
    Publishing Wizard
    File > Save As > Enterprise from withing Crystal Reports Dev
    CMC > Folders > Add > Crystal Reports
    The results are the same for each method of publishing.
    To try to eliminate any DB issues etc i have created a report that is not attached to a datasource. 
    This test report has one Static parameter. 
    I have set 3 values for its list: Entry A, Entry B, Entry C
    Entry X is set as the parameter Default Value
    The parameter is placed in the details section of the report
    When the report is Viewed it will prompt for parameter entry, with the default value present
    When I try to schedule the report is will not have an entry for its parameter
    It seems to me that the default values for parameters should be retained from report design through to report schedule, especially when the default values are retained from report design to report View
    Is this a config problem that i have ?
    Can anyone help me with this ?
    Best regards
    Patrick Coote
    Edited by: PATRICK COOTE on Oct 2, 2008 2:08 PM
    Edited by: PATRICK COOTE on Oct 3, 2008 9:23 AM

    Hi Robert
    Thanks for the reply and apologies for not responding sooner.
    What i have found is that if i use Publishing Wizard to upload reports it is then possible to set values for prompts during the last step of this process.
    Although this is a bit clumsy, it is sufficient for now
    Best regards
    Patrick

  • 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

Maybe you are looking for

  • Looking for trouble shooting help -Connections being dropped from app.

    I need a little help in hunting down the source of a problem. We have Oracle 10gR2 (10.2.0.1) running on Solaris 10. The web application is based on WEBLOGIC on another server also running Solaris 10 with a new firewall in between. When started, the

  • HP Color Laser Jet 2840 with /mac OSX 10.6.4

    Moving everything onto a new iMac but OSX will not recognize the scanner capability of the HP. It recognizes the printing capabilities and printing is fine but it won't see the scanner. Image Capture doesn't recognize the scanner either. HP simply in

  • What do i have to do to avoid "loading flash" when embedding video in pdf?

    I can embed h.264 video in pdf via acrobat pro or inDesign. However, there's always a moment of waiting, Acrobat Background color flashes up, before the movie is finally loaded and played back. I have seen Tutorials where this doesn't occur, but no d

  • "The disk you inserted was not readable by this computer" error message

    Hello. I've had my iMac for a little over three months and I've encountered a strange problem. I play Warcraft III, and whenever I insert the disk into the drive, I get an error message saying "The disk you inserted was not readable by this computer"

  • Removing Blinking Text from video footage

    Hi Helpers: I recently recorded a service at my church where we have three mounted cameras.  One of the cameras was malfunctioning and the word "Backup" is blinking in the top 1/3 of the frame for the entire service.  As luck would have it the malfun