Report parameter & value set

i made a report that have some parameters i want to make the parameters as list of values some of it retrieve from a table and the other retrieve from retricted list and values
i created the set of values successfully but when i create an independent set of value it created from application>validation>set in the system administrator responsability and i define its values from application>validation>value to define its value but when i run the report there is error that the report don't run but it run as it run in the last request and don't take parameters or any thing .
any advice will be approtiated.

Please check if you have defined the 'tokens' correctly in the Concurrent Program parameters form. The token is the mapping between concurrent program parameter and the corresponding report parameter. The token name has to be the same name as that of the report parameter name.

Similar Messages

  • Crystal Report Viewer 11.5 Java SDK - How to set sub report parameter value

    Good day!
    I have a report with 3 sub-reports in the detail section. Main report has two parameters and each sub-report has one parameter in turn. We have our own JSP to receive parameter values from the user. I am using the following code to do the parameter value setting later into the report. Parameter value setting works for main report, but not for the sub-report.
    I get an Error, for the first sub-report, from the viewer saying:
    The parameter 'parametername' does not allow null values
    On this article: [article link|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap%28bd1lbizjptawmq==%29/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313337333233323331%7D.do]
    It says to set the report name of the parameter field to the name of the sub report. On this aspect, assuming this tip/solution works, I would like to read the names of the sub-reports and their parameter names. I do not want to hard-code them into our application.
    Here is my current code:
    sdk.occa.report.data.Fields parameterFields = new Fields();
    I have a HashMap of <parameterName, parameterValue>
    Iterate through the map
    report.data.ParameterField aParameterField = new ParameterField();
    aParameterField.setReportName(""); //main report
    report.data.Values theValues = new Values();
    ParameterFieldDiscreteValue aParameterFieldDiscreteValue = new ParameterFieldDiscreteValue();
    aParameterFieldDiscreteValue.setValue (aValue);
    theValues.add(aParameterFieldDiscreteValue);
    aParameterField.setName(parameterName)
    aParameterField.setCurrentValues(theValues);
    parameterFields.add(aParameterField);
    viewer.setParameterFields(parameterFields);
    Please look at the line:
    aParameterField.setReportName(""); //main report
    Here's where I would like to say
    if (parameter is subreport's parameter) then setReportName(subreport name);
    Thx

    It was little difficult to navigate down the objects to find the sub reports and their parameters. I am attaching the code:
    May be there are other ways to do the same.
    public String getReportNameForParameter (String parameterName, ReportClientDocument reportClientDoc)
            String result = "";
            boolean found = false;
            try {
                SubreportController src = reportClientDoc.getSubreportController();
                DataDefController ddc = reportClientDoc.getDataDefController();
                IDataDefinition idd = ddc.getDataDefinition();
                Fields fs = idd.getParameterFields();
                Iterator fiter = fs.iterator();
                while (fiter.hasNext()) {
                    IField ifld = (IField) fiter.next();
                    if (parameterName.equals(ifld.getName())) {
                        found = true;
                    //System.out.println ("\t Field Name/Description/HeadingText: " + ifld.getName() + "/" + ifld.getDescription() + "/" + ifld.getHeadingText());
                if (!found) {
                    IStrings reportNames = src.getSubreportNames();
                    //System.out.println ("  Sub Reports If Any ...");
                    if (reportNames != null) {
                        Iterator iter = reportNames.iterator();
                        while (iter.hasNext()) {
                            String repName = (String) iter.next();
                            //System.out.println ("\t Sub Report Name " + repName);
                            ISubreportClientDocument srcd = src.getSubreport(repName);
                            ddc = srcd.getDataDefController();
                            idd = ddc.getDataDefinition();
                            fs = idd.getParameterFields();
                            fiter = fs.iterator();
                            while (fiter.hasNext()) {
                                IField ifld = (IField) fiter.next();
                                if (parameterName.equals(ifld.getName())) {
                                    result = repName;
                                    break;
                                //System.out.println ("\t\t Field Name/Description/HeadingText: " + ifld.getName() + "/" + ifld.getDescription() + "/" + ifld.getHeadingText());
            //System.out.println ("********************************************************** ");
            catch (Exception exc) {
                System.out.println ("Error/Exception while trying to find the report name for parameter [" + parameterName + "]");
                System.out.println ("*******************************************************************************************");
                exc.printStackTrace();
            return result;

  • Report parameter value in RTF

    Hi ALL,
    I have a XML report having 3 parameter, i need to capture the value of those parameter in my RTF and based on that i need to do some validation.
    so how to get parameter value in RTF.
    Please help me on this.
    Thanks

    not clear what do you want
    first of all what's your architecture of your report?
    - parameters from ebs?
    - datatemplate?
    - package?
    >
    so how to get parameter value in RTF.
    >
    for datatemplate try
    <parameters>
    <parameter name="P_YOUR_PARAM" dataType = "number" defaultValue="0"></parameter>
    </parameters>
    <dataStructure>
    <element name="ITEM_PARAM"  dataType="varchar2" value="your_package.get_YOUR_PARAM"/>
    </dataStructure>in package "your_package"
    function get_YOUR_PARAM
    return P_YOUR_PARAM;
    end;i need to capture the value of those parameter in my RTF and based on that i need to do some validation.
    >
    validation in package or in rtf template?
    you can get all report parameters by package and use any complex logic for create result xml for template

  • Need help - can't run a report cause value set not found

    APP-FND-00738: error while loading value SET
    Posted: Apr 12, 2007 11:16 PM                     Reply
    Hi, I'm trying to run a report (in the parameters form) - i'm getting this error:
    APP-FND-00738: error loading value set SETUP_DESCR_VSETS.
    APP-FND-01564: error ORACLE 1403 in FDFAVS.
    Reason: Fail in program FDFAVS with reason ORA-01403: no data found.
    Executed SQL instruction from file &ERRFILE.
    Can you advice - which tool I can use to determine which value set didn't load.
    Maybe logs or log tables???

    I didnt get your problem exactly.
    Plz mention the steps what you are doing and where the error is coming.
    So that we can see..
    --Basava.S                                                                                                                                                                                                                                                                                           

  • URGENT: Report parameter form set to yes in calling report from menu

    I have write this code for calling report from menu module. But where i put the code
    PARAMFORM='YES' to display the report parameter form in order to enter the parameter by user.
    DECLARE
    pl_id ParamList;
    repid REPORT_OBJECT;
    v_rep varchar2(100);
    v_server VARCHAR2(100);
    rep_status varchar2(100);
    v_host VARCHAR2(100);
    BEGIN
         select rep_server into v_server from reports_data;
         select machine into v_host from reports_data;
         pl_id := Get_Parameter_List('tmpdata');
         IF NOT Id_Null(pl_id) THEN
         Destroy_Parameter_List( pl_id );
         END IF;
         pl_id := Create_Parameter_List('tmpdata');           
    Add_Parameter(pl_id,'P_C_NAME',TEXT_PARAMETER,:GLOBAL.COMPANY);
    Add_Parameter(pl_id,'P_B_NAME',TEXT_PARAMETER,:GLOBAL.BRANCH);
    Add_Parameter(pl_id,'P_user',TEXT_PARAMETER,:GLOBAL.user);
         repid := find_report_object('REPORTOBJ');
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,getpath||'E_open_balance.RDF');
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'htmlcss');
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,v_server);
              v_rep := RUN_REPORT_OBJECT(repid, pl_id);
              rep_status := REPORT_OBJECT_STATUS(v_rep);
              WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
                   LOOP
                        rep_status := report_object_status(v_rep);
                             message('Running');
                   END LOOP;
              IF rep_status = 'FINISHED' or rep_status is NULL THEN
              WEB.SHOW_DOCUMENT('http://'||v_host||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server='||v_server,'_blank');
              ELSE
                   null;
         END IF;
    END;

    Jeneesh,
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,
    'paramform=YES
    what about this variable ?
    P_VAR1 = ........');

  • Need help on interactive report parameter value based on  a sequence

    At a press of a button..
    i have a form where i insert data in a table .a unique number is generated via sequence.
    And then a report is called .. all at the press of the same button
    Now i need to make a query such that
    select * from table_name where no1 = (select d_table_name_seq.currval from dual);
    Such statement is not possible in apex..
    So what should i do ..Use page_items
    How can i store the sequence value in a page item
    Edited by: susf on Nov 29, 2012 6:32 AM

    ok solved..using apex application item thanks

  • How to Change Value set Dynamically for a Parameter in Apps?

    Hi All,
    I have a requirement where i need to change the value set dynamically for a given Parameter. This goes as, I have a Concurrent Program with 4 parameters. First Parameter is mandatory Business group.Second Parameter is Warehouse. Based up on the First parameter the second parameters LoV's are displayed, the third and fourth parameters value sets are dependent up on the Second parameter value. Parameter 2,3,4 Value sets are Table type. So i Used .$FLEX$.Value_setname to retrive the LOV's
    The Requirment now is that if the User doesn't enter the Parameter 2 than the Third Parameter field must be Open and he must be able to enter the Free text. In my case it is an Order Number. If the User enters the paramter 2 value than LOV's for ORder number pertaining to that Warehouse must get displayed. I've figured that this can be possible only if i change the Valuesets Dyanamically. I'm not sure if that is possible or not.
    I have tried :
    Using a Dummy Parameter with a new valueset(Transactable Independent) and giving Y and N based up on Warehouse parameter input.
    SELECT (DECODE ( :$FLEX$.WAREHOUSE_NAMES,NULL,'Y','N')) from dual;
    The default type was SQL.
    Then in the 3rd Parameter i have used Case function to differentiate Y or N. The third parameter being ORder number, is a table type and derived from Oe_order_headers_all.
    In the Query section i tried using dummy parameter value set to retreive the values. I was terribly Unsuccessful in doing so.
    Does the above Case exists or is Doable? Please, Help me out if somone had worked on Similar thing or have any idea of standard report/program using it in Oracle.
    Thanks alot for the Help!

    You will probably have better luck on the eBusinesSuite forum. This is more of a setup issue when defining your LOV and program parameters than it is a SQL or PL/SQL issue.
    http://forums.oracle.com/forums/category.jspa?categoryID=3
    Good luck - this is an aggravating issue to work with and I wish I did have the answer for you!

  • Missing parameter values - mystery solved

    I've tracked down why I was getting this error to the refresh method of the ReportDocument object.
    The sequence of execution is as follows;
    load report
    get/set parameter values
    set database location
    refresh report
    export report
    The refresh step clears all the parameter values and defaults.  I can't believe that this is correct behavour but hey ho, I'll try and work around it by saving all the parameter values to local storage when I open the report and then reset them after the refresh.
    Is this correct?
    Steve

    No, that is exactly how the refresh is supposed to work actually.
    The reportdocument.refresh call removes saved data. That includes any parameters set on the report.
    99% of people who call reportdocument.refresh do not have a need to do so to be honest.
    If you are using an empty report template (ie a report that does not have saved data) then you should not need to call it at all.
    If you want to call it just to make sure, do it before you do anything else, then pass any information you need to the report object.
    Jason

  • Enabeling/Disabling Report parameter

    Hi,
    I have to enable/disable the report parameter values depending on the other parameter.
    For Eg. I have three report parameters
    1. Range- Value set: Yes_No
    2. From Date- Value Set:FND_STANDARD_DATE
    3. TO date- Value Set:FND_STANDARD_DATE
    I have to disable 'From Date' and 'To date' values if Range parameter value is 'No'
    We can't modify FND_STANDARD_DATE parameter and can't use $FLEX$.YES_NO to enable/disable values. Can we do this using special value set? I'm ok with creating new custom value sets for 'From Date' and 'To Date' but final date format must be Standard Date
    Regards,
    Ravindra

    Hi,
    To achieve this functionality, I have used the special value set.
    I'm able to enable/disable the date parameters. However I'm getting following error while entering the date in the date fields.
    app-fnd-00006: User Exit #FND PLSQL is not defined
    Details:
    1. Range- Value set: Yes_No
    2. RANGE_DUMMY Value set:None
    This will returen Y/N depending on range parameter value.
    3. From Date- Value Set:CUSTOM_FND_STANDARD_DATE, Type:Special
    This is the special value set. I've added the following quey in the VALIDATE section of the value set
    FND PLSQL"BEGIN
    IF :$FLEX$. RANGE_DUMMY= N THEN
    NULL;
    END IF;
    END;
    4. TO date- Value Set:CUSTOM_FND_STANDARD_DATE,Type:Special
    Fromat Type:Standard Date
    I'm able to enable/disable the date parameters using above function but its giving mentioned error while entering value for From Date parameter
    Regards,
    Ravindra
    Edited by: user12228525 on Jan 23, 2013 4:01 PM
    Edited by: user12228525 on Jan 23, 2013 4:08 PM
    Edited by: user12228525 on Jan 23, 2013 4:09 PM
    Edited by: user12228525 on Jan 23, 2013 4:11 PM
    Edited by: user12228525 on Jan 23, 2013 4:12 PM

  • Precalculated Value Set

    Hi,
    I am trying to do the setting for Precalculated Value Set....I have a Query with variables...But the problem is I am not able to see the characterisitic in the left window of Reporting Agent(Value Sets)....Any help is appreciated......

    Shreya
    I am not sure why it's not showing up but you could create your own characteristics by clicking create new settings button and assign reporting agent.
    Thnaks
    Sat

  • Dynamic report parameter

    I have 2 parameters.
    1)1st parameter has independent value set and it will have only 2 possible values 'week' or 'month'.
    2)2nd parameter has value set which should display the
    'weekno-year'of last 5 years if parameter1 value passed is 'week'.
    3)2nd parameter value set should display the 'month-year' of last 5 years if parameter1 value passed is 'month'.
    My code for 2nd value set is :-
    (SELECT DECODE(:parameter1,'week',(TO_CHAR(SYSDATE+1-((LEVEL)*7) ,'ww-YYYY')),TO_CHAR(ADD_MONTHS(SYSDATE,-LEVEL+1),'Month-YYYY')) week_month FROM dual CONNECT BY LEVEL< DECODE(:parameter1,'week',261,61))
    This code is working fine from sqlplus on oracle client.
    Can any one help me on how to pass value of 1st parameter to 2nd value set in oracle apps.
    Thanks in advance.

    Hi saurav,
    I'm not sure about the :parameter1 bind variable in the query.
    Where are you putting your query - in the "Table" field on the value set?
    What is the detail of the error message you are getting?
    Think you'll need an alias on the full "select" table name.
    Regards,
    Gareth
    Blog: http://garethroberts.blogspot.com/

  • Crystal reports 2008 Set optional parameter value

    Hi,
    I'm working with .net Visual Studio 2008 C# and Crystal reports 2008 (Crystal.Decisions) and when I try to set a parameter to optional and set its value to no value, it returns the error: "Invalid parameter name", here is my code:
    foreach (CrystalDecisions.Shared.ParameterField param in Report.ParameterFields)
                            if (!param.HasCurrentValue &&
                                !Report.DataDefinition.ParameterFields[param.Name].IsLinked())
                                switch (param.ParameterValueType)
                                    case ParameterValueKind.NumberParameter:                                  
                                        param.IsOptionalPrompt = true;
                                        param.CurrentValues.IsNoValue = true;                                  
                                        break;
    I'm doing this because some of the parameters can be left null, and in this case I don't want to show the parameter prompt.
    In past versions of Crystal (such as Crystal Reports 11.5) we had the chance to left the parameter value null and did not showed the parameter prompt dialog, and this behavior repeats in a lot of reports.
    thanks in advanced

    Please don't post the same question more than once. This is a public forum so be patient.
    Install SP4 and test again.
    Try these samples:
    http://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsSDKSampleApplications
    Don

  • (Administration - Marketing - Import), you can set a parameter value "Import mode" for what to do in case of duplication as "update existing records", "Import new records". The final report of this import is presented as a text file that can be viewed in

    Administration - Marketing -> Import, you can set a parameter value "Import mode" for what to do in case of duplication as "update existing records", "Import new records". The final report of this import is presented as a text file that can be viewed in Business Administration - Marketing -> Import -> Exceptions. Whatever the exception, including duplication import occurs during import and recorded in a text file.   What are the fields that determine the duplicity? How I can I can change those?

    You will be returned anything that is in the option's value parameter. What is displayed in the dropdown and what is put in the value attribute do NOT need to be the same, so maybe you should start there.

  • Why are my parameter values not setting in report?

    G'day,
    Like many others I am a developer who is new to crystal reports.  I have researched a lot for setting report parameters and although my code seem to be working when I open the report through code I'm always asked to re-enter the parameter values.
    Here is my code:
    behind button event
    PersonalAttendance myReport = new PersonalAttendance();
    ReportUtility ru = new ReportUtility();
    ru.SetReportParameter(myReport, "reportName","the title");
    myReport.Refresh();
    myReport.SetDataSource([a data source]);
    ReportViewer.ReportSource = myReport;
    method behind custom class "ReportUtility()"
    public void SetReportParameter(ReportClass rc, string FieldName, object parameterValue)
    //Get the collection of parameters from the report
    crParameterFieldDefinitions = rc.DataDefinition.ParameterFields;
    //Access the specified parameter from the collection
    crParameterFieldDefinition = crParameterFieldDefinitions[FieldName];
    //Get the current values from the parameter field.  At this point
    //there are zero values set.
    crParameterValues = crParameterFieldDefinition.CurrentValues;
    //Set the current values for the parameter field
    crParameterDiscreteValue = new ParameterDiscreteValue();
    crParameterDiscreteValue.Value = parameterValue;
    //Add the first current value for the parameter field
    crParameterValues.Add(crParameterDiscreteValue);
    //All current parameter values must be applied for the parameter field.
    crParameterFieldDefinition.ApplyCurrentValues(crParameterValues);
    I'd really appreciate any assistance....
    Cheers,
    Brendan

    Hi,
    For better assistance on this question I would suggest you to post this issue on "Business Objects SDK Application Development".
    Regards,
    Sumit Kanhe

  • I have SSRS parametarized report in that one data set have repeated values with query parameter . but while am mapping that query parameter to report parameter i need to pass distinct values. How can i resolve this

    I have SSRS parametarized report in that one data set have repeated values with query parameter . but while am mapping that query
    parameter to report parameter i need to pass distinct values. How can i resolve this

    Hi nancharaiah,
    If I understand correctly, you want to pass distinct values to report parameter. In Reporting Service, there are only three methods for parameter's Available Values:
    None
    Specify values
    Get values from a query
    If we utilize the third option that get values from a dataset query, then the all available values are from the returns of the dataset. So if we want to pass distinct values from a dataset, we need to make the dataset returns distinct values. The following
    sample is for your reference:
    Select distinct field_name  from table_name
    If you have any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

Maybe you are looking for