"Dynamic" Default Parameter

How would one tell a Flash Component that has a Parameter,
that is viewable through the Parameters tab, to use a variable that
has been passed through to the swf via the url? For example, my
Flash component has a Default Filename parameter that shows up in
the Parameters tab, but I want to set that to be the value that is
passed in
http://url/myflashfile.swf?filename=myfilname
Many thanks.

Gary,
> Thank you for responding. I'm using AS2. I still have
some
> confusion. In your example the passed in variable is
OrangeJuice.
> But what if on the next user it is HashBrowns?
If the actual name of the external variable changes, then of
course
you'll have to update your ActionScript to look for the new
variable. Does
that make sense?
> I'm looking for a way to drop in the passed in variable,
let's call it
> BreakfastItem, into the components parameter panel. So
in my
> mind I want to be able to put in #breakfastitem# ... in
the
> components parameters tab, and have the Flash
automatically
> populate the parameter with the actual value that is
passed
> in.
Based on what you're typed, it looks like the name of your
variable is
breakfastitem, whose string value might be "orange juice" or
"hash browns"
(or whatever) ... which means you'll put breakfastitem
(without the pound
signs) into your parameters panel -- and that assumes that
the FlashVars
variable (the incoming variable) is named breakfastitem.
If, for some reason, the Parameters panel doesn't agree with
dynamic
data, then give your component an instance name (see the
Parameters panel or
Property inspector) use dot notation, as I showed earlier.
If this still isn't clear, keep asking. :) What you're after
is
certainly doable, and I'm happy to keep rewording my
suggestions until thay
make sense.
David Stiller
Contributor, How to Cheat in Flash CS3
http://tinyurl.com/2cp6na
"Luck is the residue of good design."

Similar Messages

  • Dynamic default parameter value

    Hi,
    I'm running Oracle BI Discoverer Plus 10g (10.1.2.45.46c)
    Is it possible to make the default parameter value dynamic ?
    In my case I want the default parametervalue to be set to the week before actual week.
    Eg if I'm running the report during this week it would be set default to '2005W43',
    running the report during next week it would be set default to '2005W44' and so on...
    Have tried to assign the default value with "TO_CHAR(SYSDATE-7,'RRRR')||'W'||TO_CHAR(SYSDATE-7,'IW')"
    Note the enduser must have the possibility to change from the default week to some other week.
    Any ideas ?
    /Sam
    Message was edited by:
    [email protected]

    Post Author: synapsevampire
    CA Forum: General
    A common solution is to use a Union All in a query to get the ...All and the dynamic values using a Command Object.
    select '...All' from tableUNION ALLselect field from table
    -k

  • Default Parameter Dynamic Values in BIP

    Hi All,
    I have Period Name which is Varchar data Type and has values like JAN-2014, so I want to set the Default Parameter value to previous month dynamically. I tired setting with {$To_Char(Add_Months((Sysdate),-1),'MON-YYYY')$) but it didn't work as I thinking for using this Data Type should be only DATE format.
    Any Help or Thoughts
    Thanks
    SYK

    Hello,
    We are trying to create a BI Publisher Report in Siebel by passing the values dynamically from Siebel field to report. Is it possible to
    1. Pass dynamical values to parameter values of type picklist from Siebel, while executing BI Publisher Reports?
    As far as I am aware, it is not possible to have picklist values to be passed on from Siebel while executng BI Publisher reports.
    2. Select more than one value in the parameter values while executing the report?
    Parameters can have one of the many values defined while generating the report.
    3. How to attach Calendar as a parameter to the report?
    No, one cannot have calender as a parameter to the report. You can define the parameter as a sting and users can enter a date value in that string.
    Thanks
    Swarna

  • SSRS 05 snapshot with dynamic date parameter

    I want to use snapshot for a SSRS 05 report due to high volume of report data. This report uses 2 date parameter which will keep changing every month ( mmyyyy) format. I read many blogs but it seems I can not have snapshot report in dynamic date situation.
    Can someone please suggest if there is any workaround to use snapshot with dynamic date parameter . The report server version is 2005.
    Gaur

    Hi Gaur,
    In Reporting Services, the snapshot is a report that contains layout information and data that is retrieved at a specific point in time. There’s a couple of requirements in order to use a snapshot:
    Stored credentials for the data source. 
    Defaults for all Parameters.
    Based on my research, we can use snapshot with dynamic date parameter. When we select 'Render this report from a report execution snapshot’ with a schedule and Apply in Execution tab, a snapshot is created and subsequently refreshed on a schedule. When we
    render the report at a time, the report would be rendered with the latest snapshot layout information and data, then use the current parameter value to filter the snapshot report data. In this way, the current data would be different from the snapshot report
    based on the current parameter values, but we can still use snapshot with dynamic date parameter.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Crystal Reports 9 and SQL Server 2005 default parameter values

    We're using Crystal Reports 9 and upgraded from SQL Server 2000 to SQL Server 2005.
    I'm noticing a very weird problem which I wonder if anyone else has experienced (and hopefully found a resolution for). It appears that in using Crystal with SQL Server 2005 stored procedures, if we have default parameter values in the stored procedures, the default parameter values get completely ignored if you pass in a NULL value from Crystal!
    For example, if you have a stored procedure that begins like this:
    ALTER          Procedure [dbo].[StoredProcedure]
    @Param1 VarChar(200) = '',
    @Param2 VarChar(200) = ''
    AS ...
    both @Param1 and @Param2 have a default value of an empty string, and therefore should become empty strings if nothing (NULL values) gets passed in for them.
    But, like I said, what I'm finding is that with Crystal calling the stored procedure with NULL @Param1 and @Param2 values, they never become empty strings, but rather remain as NULLs.
    This was never a problem with SQL 2000.
    Very perplexing. Anyone else every experience this?
    Thank you.

    Please ignore my earlier post -- answered my own question.
    NULL parameter values do not get replaced by default values in SQL -- that is normal behavior in both SQL 2000 and SQL 2005. Just goes to show, that no many how many years programming experience you have, you can still get tripped up sometimes : (

  • Parameters that do not show up on default parameter form

    Reports upgraded to 6/6i from SQL*ReportWriter/Oracle Reports 2.5 contain parameters that both do and do not show up on the default parameter form.
    Is there any property that can be set in the Object Navigator to disable or enable a parameter on the default parameter form. I know I can create a parameter form and specify which parameters are on it, but user created parameter forms look a bit different from the default parameter form in character mode.
    null

    You can read "Selecting parameters to include in the Runtime Parameter Form" topic in the Reports on-line help.
    I hope this will help you.
    Helena

  • How to use Dynamic cascading parameter in crystal Report XI ?

    Hi,
    I want to use Dynamic cascading parameter in crystal Report XI which is to be viewed through the infoview without using the Business View.Is it possible?
    I could implemented Dynamic cascading parameter using the CR XI developer without using Business View, but cannot view the report when uploaded it to BOXI, through infoview.
    Please suggest..
    Thanks in advance..
    Rajneesh

    In the crystal reports field explorer>right click on parameter field>create new-->name the parameter field and select the type as dynamic. Now in the value field click the row and add the database field also add another field below that by clicking on the next row so..on. The order should be like this parent field first and then child field next...... Also click on the last column to add parmater for each level.
    Regards,
    Raghavendra

  • How do I pass a default parameter to a CR XI report in VB6?

    Hi,
    How do I pass a default parameter to a CR XI report in VB6?
    For example I have a parameter list of years from 2000 to 2020 and I want to pass on the result of str(Year(Now)) so that the user automatically sees the current calendar year as his/her default option - but can choose another year from the drop down list - if wished.
    "AddDefaultValue" seems to have no effect at all (probably because the current year already exists in the parameter list)
    "AddCurrentValue" removes the parameter altogether and the report defaults to the current year.
    Any suggestions?
    Thanks in advance!
    Peter Tyler

    Hi Mark, thanks for your quick response.
    >>You might find it easier to do the dropdowns and calendar selections on the VB6 side and just pass the record selection to the report >>
    This is what I am doing but I cannot get the current year to appear as the default in the drop down parameter list also it appears I cannot clear the existing report parameter fields.
    This is my code:
    'clear the existing parameter list of the Year parameter
    MsgBox CrRep.ParameterFields.GetItemByName("Year").NumberOfDefaultValues
    This gives me the total number of existing parameters in the CRXI report
    CrRep.ParameterFields.GetItemByName("Year").ClearCurrentValueAndRange
    MsgBox CrRep.ParameterFields.GetItemByName("Year").NumberOfDefaultValues
    This gives me the new number of existing parameters in the CRXI report which is exactly the same as before so .ClearCurrentValueAndRange seems to have no effect
    'now add the new default parameter to the list
    CrRep.ParameterFields.GetItemByName("Year").AddDefaultValue (Str(Year(Now)))
    CrRep.ParameterFields.GetItemByName("Year").AddDefaultValue (varUnderline)
    'now generate and add the required parameter fields
    Dim varParameterYear As String
    varParameterYear = "2003"
    Do While Not varParameterYear = "2031"
    CrRep.ParameterFields.GetItemByName("Year").AddDefaultValue (varParameterYear)
    varParameterYear = varParameterYear + 1
    Loop
    The result of the above as that the intially declared parameter (Str(Year(Now)))
    - which is "2009" - now appears at the top of the generated parameter list but is not the default parameter and the user still has to drop down the list box to choose the year.
    Any advice on both these issues would really help !
    Peter Tyler
    Edited by: Peter Tyler on Feb 27, 2009 11:19 AM

  • How to use different default parameter value for different report subscriptions

    In ssrs is it possible to define different default parameter values for different subscriptions? In the following example I have a report which has two subscriptions with different start date and end date values:
    Report name – Testsubscription.rdl
    Subscription-1
    Input parameter (default values):
    start_date = first day of current Month
    end_date = till date
    Subscription-2
    Input parameter (default values):
    start_date = first day of current Quarter
    end_date = till date
    I know an alternative way of doing this would be to copy the rdl file with a different name but I am curious whether this can be done within a single report definition file. I am using SQL Server 2008 R2 Standard Edition.
    Thanks!
    spp

    Hi sppdba,
    As per my understanding, there is a report with two parameter: start_date and end_date, you want to configure subscription for the report, and set different default values for start date and end date. And you want to know if it is possible to achieve you
    goal by using a single report definition file.
    Since you are using SQL Server 2008 R2 Standard Edition, we need to achieve your goal by configuring two subscriptions for the report. For detail information, please refer to the following steps:
      1. In design surface, right click start_date and open Parameter Properties dialog box.
      2. In General pane, type Name and Prompt, set Data Type to Date/Time.
      3. Click Available Values in left pane, select Specify Values.
      4. Click Add button, in Label text box, type “First day of Current Month”, click (fx) button in Value section, then type the expression like below:
    =DateSerial(Year(Now()), Month(Now()), 1)
      5. Click Add button, in Label text box, type “First day of Current Quarter”, click (fx) button in Value section, then type the expression like below, then click OK.
    =DateSerial(Year(Now()), (3*DatePart("q",Now()))-2, 1)
      6. Right click end_date and open Parameter Properties dialog box.
      7. In Available Values pane, select Specify Values.
      8. Click Add button, in Label text box, type “Today”, click (fx) button in Value section, then type the expression =Today(), then click OK.
    Now that the parameters are created, we need to configure subscription for the report. For detail information, please follow these steps:
      1. Open Report Manager, and locate the report for which you want to create a new subscription.
      2. Hover over the report, and click the drop-down arrow.
      3. In the drop-down menu, click Manage. This opens the General properties page for the report.
      4. Select the Subscriptions tab, and then click New Subscription.
      5. Select the delivery extension and data source for the subscription.
      6. Select a method of delivery, then choose report delivery options.
      7. Specify conditions that cause the subscription to process and delivery to occur.
      8. Set start_date to First day of Current Month, end_date to Today, then click OK.
      9. Create a new subscription as step4 to 7, set start_date to First day of Current Quarter, end_date to Today, then click OK.
    The following screenshots are for your reference:
    For detail information about Creating Standard Subscriptions, please refer to the following document:
    http://msdn.microsoft.com/en-us/data/ms156307(v=sql.105)
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.

  • CR-XI How to prefil Default Parameter value in code

    I am setting parameter default value(s) in VB6 code.  When the report is launched the default parameter is in the list but not selected.  The user has to manually select the value instead of just accepting the default value and pressing enter key to launch the report.  I would like parameters to prefil with default values like they did in Crystal version 7 when using the OCX.
    I am using CR XI and VB6.  I am passing a default parameter by using .
    <report object>.ParameterFields(1).AddDefaultValue
    If I use <report object>.ParameterFields(1).AddCurrentValue the parameter then the report viewer knows the parameter value and the form does not display the value incase the user desires to change it.
    My Question is how can I display the parameter and prefill with the default value.  When I use "AddDefaultValue" like above the parameter will be in the dropdown but will be blank when the form opens.  This requires the user to use the mouse and click the dropdown to display the default value.  I would prefer the default show in the dropdown so the user just has to press the enter key to launch the report (if the user wants to accept all default values).
    If this is not possible with the current viewer class then maybe the development team can include in future updates. 
    Thanking you all in advance.

    Hi Brent,
    The document you linked is for the Enterprise Product.  As Jonathan stated, the RDC for XIR2 is supported for use in VB6, you do not have to have .NET.  This can be found in the Crystal Reports supported Platform document found here:
    [http://resources.businessobjects.com/support/communitycs/TechnicalPapers/cr_xi_r2_supported_platforms_windows_sp3.pdf|http://resources.businessobjects.com/support/communitycs/TechnicalPapers/cr_xi_r2_supported_platforms_windows_sp3.pdf]
    Crystal Report XIR2 is the last version that has the RDC.

  • Default Parameter Not Working

    Hello,
    I have an SSRS report with a multi value parameter assigned to it. I have also assigned a default value so that when the report is run, the report will initially open based on the default values. However, the report still prompts the user to chose a value
    from the picklist first upon running the report without firing the report based on the default parameter. To add more context, my multi value parameter and default parameter come from two different datasets. I have also based my query to check if values are
    not null as a condition. Any help regarding this would be greatly appreciated!

    I think the issue is your default parameter value is not included among the values returned by your dataset which is used for filling the parameter combo. Thats when it selects nothing and waits for the user selection.
    What you need to do is to tweak the dataset for parameter values population and also include logic to return default value also within it. Then once report runs it will show default value as selected and render the report with it.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Dynamic TABLE parameter in Sub routine call

    Hi,
    Is it possible to have a dynamic TABLE parameter in a sub-routine call? The structure of the internal table will be different during different calls to the sub-routine.
    I have a subroutine which has the FM "HR_INFOTYPE_OPERATION" to update the infotype data for an Applicant. Now i want to call this subroutine for every Infotype update. So every time the structure of the internal table to be passed will vary depending on Infotype ( eg P0002 for Infotype 0002, p0006 for infotype 0006).
    Any pointers will be appreciated.
    Thanks in advance.

    Hi Navin,
    yes, why not.
    just use a generic type parameter, i.e.
    FORM process USING IT_00x type table IV_type typc.
    It depend what yout FORM shall do. If you pass the types name, you can dynamically assign to a field-symbol of the respective type.
    Regards,
    Clemens

  • Use the requested_start_date as a default parameter of a periodically sched

    Hi,
    Anyone knows how to use the requested_start_date as a default parameter of a periodically scheduled concurrent request.
    Sample:
    Date Submitted Requested Start Date Default Parameter
    January 01, 2010 January 15, 2010 January 15, 2010
    January 15, 2010 February 15, 2010 February 15, 2010
    February 15, 2010 March 15, 2010 March 15, 2010
    March 15, 2010 April 15, 2010 April 15, 2010
    And so on...

    What if you schedule the request with a default for the parameter = sysdate
    and then click on "increment date" when scheduling the concurrent program?

  • Template function default parameter instantiated unnecessary

    Hi,
    I think the following is valid C++ code. The default parameter of template (member) function should not be instantiated until it is actually required.
    Is it a bug of CC?
    $ cat enumid.cc
    template<class T>
    class TClass
    public:
    void f(int i = T::EnumID);
    class Unknown;
    class X
    public:
    TClass<Unknown> m;
    $ CC -c enumid.cc
    "enumid.cc", line 5: Error: EnumID is not a member of Unknown.
    "enumid.cc", line 11: Where: While specializing "TClass<Unknown>".
    "enumid.cc", line 11: Where: Specialized in non-template code.
    1 Error(s) detected.
    $ CC -V
    CC: Sun C++ 5.8 2005/10/13
    Thanks,
    Qingning

    You are right. This test case is valid and shows compiler bug
    C++ Standard 14.7.1-1
    The implicit instantiation of a class template specialization causes the implicit instantiation of the declarations, but not of the definitions or default arguments, of the class member functions, member classes, static data members and member templates; and it causes the implicit instantiation of the definitions of member anonymous unions.
    If you have a service contract with Sun, please file a bug report via your service channel. You can be kept informed about progress, and get pre-release versions of the compiler that fix the bug.
    If you don't have a service contract with Sun, please file a bug report at bugs.sun.com.
    If you prefer not to file the bug report yourself, let me know, and I'll file one for you.

  • 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&amp;#8217;s Adventures in Business Intelligence &amp;raquo; Dynamic Dates Part III: Monthly Date Ranges
    Search for And for Last Month?

Maybe you are looking for

  • OEM 11g R1 Licence

    HI I have already installed OEM Grid control 10g R2 (10.2.0.1) on Oracle Enterprise Linux Server. I have already purchased and using licence for management packs. Now I want to install new OEM Grid Control 11g R1 on the same Server. Do I have to purc

  • Material Valuation Transaction Codes to fill the new records in MBEW table

    Hi Experts, May i know the Material Valuation Transaction Codes because i want to fill the MBEW table with changed(new) records. Thanks in advance. Regards, <BMP>

  • Where Could I Find SQL or PL/SQL Practical Tasks or Projects???

    Hi everyone, In order to improve my SQL and PL/SQL skills by myself, I am looking for some SQL or PL/SQL tasks or projects online. Does anyone know any website or anything about it? I really appreciate your help from now on. Thanks

  • WD Passport 80Gb drive sometimes fails to mount

    Hi, Running an iBook G4 with an 80Gb Western Digital passport USB-powered drive, occasionally I'll plug the drive in and it will fail to mount. The power light on the drive is on, but there is no activity. Most of the time, the drive will mount OK vi

  • Assigning Table/Structure Types using Field-Symbols

    Hello Gurus, How can we assign a table or structure type to a particulart internal table? What I want to do is to make my data declaration for i_tab reusable. i.e. DATA: v_tab  TYPE string. v_tab = 'MARA'. DATA  : i_tab  TYPE STANDARD TABLE OF v_tab.