About parameter value?

Hi
I transmit the parameter with different methods, but it is the same to obtain names .And can not receive different value.
1.HashMap a = new HashMap();
a.put("v_login_emp_no", empNo);
pageContext.setForwardURL()
2.Hashtable formParams = new Hashtable();
formParams.put("v_login_emp_no", logEmpNo);
dialogPage.setFormParameters(formParams);
I get the value methods : pageContext.getParameter("v_login_emp_no").
But the value is empNo all the times.
I use String[] strNo = pageContext.getParameterValues("v_login_emp_no"),
for (int i = 0; i < strNo.length; i++)
System.out.println("strNo [" + i + "]: " + strNo);
print: strNo[1] is empNo value
strNo[2] is logEmpNo value
Why?

From the javadoc of getParameter()
Request parameters are extra information sent with the request, including data posted by a FORM. This method should be used only when a parameter has exactly one value on the request. If a parameter might have more than one value, the method getParameterValues(String name) should be used. This method returns null if a parameter does not exist.
Thanks
Tapash

Similar Messages

  • Report based on parameter values

    Morning all,
    I have to create a report which includes Account Number, Account Name, Sales prices. There has to be two optional parameters, Account number (Static) and Product Description (Dynamic).
    I have setup the report with Account Number (Grouped), Account Name. The report works fine, when a user selects a particular account number, the report produces fine.
    Things I would like to do and know about:
    1: when it comes to sales price, it should reflect to what user has selected under Product Description parameter.
    for example if the user has selected Supra, Supra KNT, Rimless, Metal etc from the description parameter, the report should only show those selected prices according to the account number (showing descriptive field value).
    2: Additionally, if user chooses all of the options from the drop down menu (multiple selection dexcription parameter) then the report should show all the prices according to the description (showing the description field value).
    The problem in this case which I think would be is because the description values are quite alot, I mean more than 25 values and if a user selects multiple values, lets say all, how would Crystal adjust that into a report?
    Example of a report
    Parameters
    =============
    Account Number:
    Description: Supra, Supra KNT, Metal, Plastic, Rimless, Rimless KNT (multiple selection)
    Report Layout
    ============
    Account Number --- Account Name --- Supra - Supra KNT - Metal - Plastic - Rimless - Rimless KNT
    (Where Supra to Rimless KNT options are chosen by Descriptive parameter value - if not chosen then report will only show account number and account name).
    If however only Supra is selected then the report would look like this
    Report Layout
    ============
    Account Number --- Account Name --- Supra
    Any ideas how to achieve this kind of report? I have setup the report in a landscape so that we can fit as many description values as possible but I only managed to show 9, rest goes over the page.
    The report in the end has to be exported to excel so I don't mind if it goes over a page.
    Regards
    Jehanzeb

    Jehanzeb,
    You do want to use cross tabs...
    Have your database query produce a table with the following columns:
    Account Info (Number & Name)
    Product Description
    Sales
    e.g.,
    Select AcctNo + " - " + AcctName as AcctInfo,
       ProdDesc,
       sum(Sales) as Sales
    from SalesTable
    group by AcctNo, AcctName, ProdDesc
    Then use record selection to limit the data to the selected products.
    Yes, the layout of a cross tab is a bit strange, in that the design of the cross tab only shows one column for the data, but the table will expand with the underlying data.  If 4 products are selected, there will be 4 columns of sales numbers.  When setting up the cross tab, make the AcctInfo field the row header, and the ProdDesc field the column header, and the Sales field the table cell value.
    HTH,
    Carl

  • How to understand the strange parameter values shown by 'pstack core'

    I encounterred a problem that led to a core dump. I use 'pstack core' to shown the calling stack.
    However I could hardly understand some of the parameter values below:
    core 'core.150108' of 5016:     cmcfun
    ff1e1370 __1cLComEndPointFsendv6MpnFiovec_i_i_ (c, ffbfedf8, 2, 2, c, 0) + 4
    Why did the 'this' pointer of the instance of class ComEndPoint become 0xc? I don't think it is a valid value of pointer. Does anybody have any idea about this problem?
    ff1e5b00 __1cYComTransaction_Icallback6FpnPpdo_transaction_pcii_v_ (6ab90, 0, 0, 0, ffbff1b8, 0) + dc
    According to the source code, the 3rd parameter in the function below, which value is 0x66, was not changed in the scope of the function. However it became 0x0 when it was used as the 4th parameter to call the function above. What't the matter?
    ff1528e8 pdo_dispatch (6ab90, ad, 66, 0, 0, 0) + dc
    I heard that Sun C++ uses 'register windows' to pass the parameters, i0~i5 are used for the first 6 ones. Somebody told me that what I saw in the pstack might not be creditable because the registers might be changed within the function. Is that so? Would anybody plz tell me more details?
    Thanks in advance.
    Edited by: DirtyBear on Feb 15, 2008 1:17 AM

    Register windows are a property of the SPARC computer architecture, not a property of a compiler. SPARC has multiple sets of registers. The function call instruction advances the "register window" to reveal the next set of registers, if there is one. If not, the registers are spilled to the stack to free up a window. The function return instruction moves the window back. (It's a purely hardware feature.) Eight of the registers in adjacent windows overlap, the origin of the "window" term. Registers %o0 thorugh %o7 in the caller become registers %i0 through %i7 in the called function.
    On SPARC and x64, some function arguments are passed in registers, depending on how many arguments there are and their types. (The x86 architecture has no registers available for passing arguments.) On entry to a function, the parameters passed in registers might be saved on the stack, but do not necessarily need to be saved on SPARC. The Solaris ABI requires that space for the registers be allocated, but the space is not necessarily used.
    In a core dump, the actual registers, particularly for functions other than the current one, are not available. The pstack operation doesn't know how many parameters a function has or what type they are. It shows the contents of the first 6 words on the stack that would hold arguments, if there were arguments, and if they were actually saved on the stack.
    In optimized code on any platform, the stack area for a variable or argument is not kept up to date. Computations are kept in registers to the extent possible, and saved in memory only when necessary.
    On SPARC in particular, the argument values shown in a stack trace need not be accurate.

  • Passing parameter values to powershell function from batch file

    Hello ,
       I haven't used powershell for a while and getting back to using it. I have a function and I want to figure out how to pass the parameter values to the function through batch file.
    function Check-FileExists($datafile)
    write-host "InputFileName : $datafile"
    $datafileExists = Test-Path $datafile
    if ($datafileExists)
    return 0
    else
    return -100
    <#
    $datafile = "C:\Dev\eMetric\PreIDWork\PreIDFiles\SampleInputFile_011.txt"
    $returncode = Check-FileExists -datafile $datafile
    Write-Host "ReturnCode : $returncode"
    $datafile = "C:\Dev\eMetric\PreIDWork\PreIDFiles\SampleInputFile_01.txt"
    $returncode = Check-FileExists -datafile $datafile
    Write-Host "ReturnCode : $returncode"
    #>
    The above code seems to be work when I call it. But when I try to call that script and try to pass the parameter values, I am doing something wrong but can't figure out what.
    powershell.exe -command " &{"C:\Dev\eMetric\PreIDWork\PowerShell\BulkLoad_Functions.ps1" $returncode = Check-FileExists -datafile "C:\Dev\eMetric\PreIDWork\PreIDFiles\SampleInputFile_01.txt"}"
    Write-Host "ReturnCode : $returncode"
    $file = "C:\Dev\eMetric\PreIDWork\PreIDFiles\SampleInputFile_01.txt"
    powershell.exe -file "C:\Dev\eMetric\PreIDWork\PowerShell\BulkLoad_Functions.ps1" $returncode = Check-FileExists -datafile $datafile
    Somehow the I can't get the datafile parameter value being passed to the function. Your help would be much appreciated.
    I90Runner

    I am not sure about calling a function in a script like how you want to. Also I see you are setting the values of the parameters, this is not needed unless you want default values if nothing is passed. The values for the parameters will be passed via the
    batch file. So for me the easiest way is as indicated.
    param
    [string]$DataFile
    function Check-FileExists($datafile)
    write-host "InputFileName : $datafile"
    $datafileExists = Test-Path $datafile
    if ($datafileExists)
    return 0
    else
    return -100
    Write-Host "Return Code: $(Check-FileExists $DataFile)"
    Then you create a batch file that has
    start powershell.exe
    -ExecutionPolicy
    RemoteSigned -Command
    "& {<PathToScript>\MyScript.ps1 -DataFile 'C:\Dev\eMetric\PreIDWork\PreIDFiles\SampleInputFile.txt'}"
    Double click the batch file, and it should open a powershell console, load your script and pass it the path specified, which then the script runs it and gives you your output
    If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful.
    Don't Retire Technet

  • Getting QM parameter values for Raw Material on the basis of goods receipt

    Hi All,
    I have requirement, while generating inspection lot these  tables MCXD&MCXA should update.
    when we need a QM parameter value for the month, It should be the average of all the inspection lot generated for the month.
    Thanks in advance
    Regards
    Hanamanta

    Ok.. I assume your talking about the actual test result value.  These do not roll up into the QM LIS structures used in transactions MCXA or MCXD.
    You might be able to create your own structures and have them updated but you would have develop that.
    You can create run charts for various MIC's and utilize the SPC functionality if you need monthly averages and trends.
    If your batch managed you can easily get reports of batch values via the CL30N transaction.  You'll want to make sure you have a characteristic for batch production or receipt date so you can sort and select by date.  These can then be loaded to Excel for summing and averaging.
    Craig

  • Setting/Getting Parameter Values BEFORE and AFTER the param window loads

    Hi there. My name is William Sanchez. I posted this question on Brian Wheadon's blog because I'm not sure that what we're trying to accomplish can be currently done with 2008 Crystal Report Viewer  and was wondering if a future version will support this, or if we're just missing something. I've searched through the SDK and API and can't seem to find a solution. Here's what we're trying to accomplish
    In a nutsheel: we think we need to hook into Crystal Report Viewer's parameter window from our WPF app.
    What we need to do is to be able to pass a set of default values to our parameters AND, after that's done programmatically, still display the parameter window for the report. Currently, however, after you do:
    parameterFieldDefinition.ApplyCurrentValues(currentParameterValues);
    it's as if Crystal says: Ok, we got the value, there's no need to show the parameter window anymore. This makes sense, but we need to still be able to show the parameter window to the user because all we did (from our point of view) is to pass in a default "choice". If we were to call ApplyDefaultValues() instead, the actual choices for the parameter are overriden. We basically want to make a default choice for the user from the allowed values for that parameter. But we want to still present the parameter window with the default choice already selected, plus all the other choices available for that parameter. If the crystal report has parameter1 set to false as default, we might want to programmatically set it to true, but still show false as an option on the parameter window.
    Part 2 of what we'd like to accomplish is that after the user changes any of the parameter values, and clicks OK to view the report, we'd like to catch the new parameter values in code to do something with them.
    This is why we're thinking of hooking into the parameter window so that we can tell it what we want both BEFORE it loads and AFTER the user is done...just like we can hook into the CrystalReportViewer refresh button like this:
    CrystalReportsViewer.ReportRefresh += new CrystalDecisions.Windows.Forms.RefreshEventHandler(CrystalReportsViewer_ReportRefresh);
    Our app is a WPF C# .NET 3.5 desktop application. Any assistance or direction will surely be appreciated.
    Kinds Regards,
    William Sanchez
    Edited by: wsanchez78 on Mar 31, 2010 1:20 AM

    Good day Ted, thanks for your reply.
    I did try Parameter.Default value, but what it does is as I mentioned above. If I have Parameter1 as a boolean, with possible values of true and false, if I set Paramter1.Default = true, the parameter window does come up, but it removed the false option from the drop down. So this is not a way to pick one of the various values for Parameter1, but to default it to only one of the values. It's close to what we need, but not fully.
    Also, what are your thoughts about getting the parameter values after the user has made their changes to the CrystalReportViewer parameter window and click OK to pass them to the report. How can we programmatically get those new values?

  • ReportDocument.Export() raises "Missing Parameter Values" exception

    Hi
    Recently I encountered a question about SAP Crystal Report that I have a rpt file with several sub reports and I am required to make the data source to be XML with http/https URLs. I created different .NET pages which returns XML stream as data source for both main report and sub reports in my rpt file, and also created a sub report links which pass dynamic parameters from main report to the sub reports, everything worked fine when I entered the necessary parameters only for the main report in the design tool, both the main report and sub reports displayed perfectly.
    But it did not work in my .NET application which export the reports to PDFs, I referenced “CrystalDecisions.CrystalReports.Engine” and some other necessary DLLs into my project, and then I created an instance of ReportDocument, loaded the rpt file, set parameters which used in the main report, set connection info, and at last when I export the report it throw out an exception with “Missing Parameter Values” error message, even though I removed the sub report links which pass parameters from main report, the exception still occurred, but when I removed all the sub reports, and only export the main report it worked!!
    Here is a result of my attempts:
    Main Report
    Sub Report
    Result
    1
    With XML data source
    No report
    Works fine with dynamic parameters set to the http/https url which returns an xml results
    2
    With XML data source
    Pass a static value and print it on the report
    Works fine.
    3
    With XML data source
    Create a SQL command WITHOUT any parameters passed from main report
    Works fine
    4
    With XML data source
    Create a SQL command WITH a dynamic parameter passed from main report
    Works fine
    5
    With XML data source
    Create a xml data source WITHOUT any parameters passed from main report
    Failed with "Missing Parameter Values"
    6
    With XML data source
    Create a xml data source WITH a dynamic parameter passed from main report
    Failed with "Missing Parameter Values"
    I am confused about this issue for a few days, is there any ideas or helps? many thanks!

    OK:
    We upgraded to CR 13.0.2000.0 and Visual Studio 2012 and .Net Framework 4.5.
    Problem still happens.
    When we display the report in the designer, the url has parameters.  Here are the IIS log entries:
    2014-05-01 18:24:56 192.168.251.10 GET /quotit/apps/leadspro/CrystalServiceGateway_test.aspx @IFPPSID=1899582751211388&@styleColorScheme=10511658/13343077/10511658/13343077/16777215/15720656/16777215/15720656/24831/13426687|10511658/16777215/16777215/16777215/0/0/0/0/0/0 80 - 10.16.26.44 Java/1.6.0_37 200 0 0 959
    2014-05-01 18:24:56 192.168.251.10 GET /quotit/apps/leadspro/CrystalServiceGateway_test2.aspx @BrokerID=23433176 80 - 10.16.26.44 Java/1.6.0_37 200 0 0 742
    When we use the crystaldecisions.crystalreports.engine, no parameters are passed.  Here are the IIS log entries:
    2014-05-01 18:22:28 192.168.251.10 GET /quotit/apps/leadspro/CrystalServiceGateway_test2.aspx - 80 - 10.16.26.44 Java/1.7.0_45 200 0 0 58
    2014-05-01 18:22:28 192.168.251.10 GET /quotit/apps/leadspro/CrystalServiceGateway_test.aspx - 80 - 10.16.26.44 Java/1.7.0_45 200 0 0 115
    I cannot attach the rpt file here.  If you need it, please let me know how to get it to you.  I am attaching a screenshot of the datasource location.  I am pasting in the striped down .NET code.  Any help or pointers would be greatly appreciated.
    Thanks,
    Tom
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Configuration;
    using System.IO;
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.Shared;
    using System.Collections;
    namespace CrystalTest
        class Program
            static void Main(string[] args)
                string source = Path.Combine(@"C:\Users\thomas\Desktop\reports\eProIFP\iProReports", "summaryReportByPremium_ACA_UltraColor.rpt");
                string destination = Path.Combine(@"C:\Users\thomas\Desktop\testReports", "output.pdf");
                if (File.Exists(destination))
                    File.Delete(destination);
                ReportDocument rptDoc = new ReportDocument();
                if (File.Exists(source))
                    rptDoc.Load(source);
                    rptDoc.SetParameterValue("@IFPPSID", "1899582751211388");
                    rptDoc.SetParameterValue("@styleColorScheme", "10511658/13343077/10511658/13343077/16777215/15720656/16777215/15720656/24831/13426687|10511658/16777215/16777215/16777215/0/0/0/0/0/0");
                    rptDoc.SetParameterValue("@testID", "1");
                    CrystalDecisions.Shared.TableLogOnInfo logOnInfo = new CrystalDecisions.Shared.TableLogOnInfo();
                    foreach (CrystalDecisions.CrystalReports.Engine.Table objTable in rptDoc.Database.Tables)
                        logOnInfo.ConnectionInfo.IntegratedSecurity = true;
                        objTable.ApplyLogOnInfo(logOnInfo);
                    ExportOptions CrExportOptions = new ExportOptions();
                    DiskFileDestinationOptions crDiskFileDestinationOptions = new DiskFileDestinationOptions();
                    crDiskFileDestinationOptions.DiskFileName = destination;
                    CrExportOptions = rptDoc.ExportOptions;
                    CrExportOptions.DestinationOptions = crDiskFileDestinationOptions;
                    CrExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
                    CrExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat;
                    rptDoc.Export();

  • Can I use calculated value as default parameter value?

    Discoverer version:
    Oracle BI Discoverer 11g (9.0.4.00.00)
    Oracle Business Intelligence Discoverer Plus 11g (11.1.1.3.0)
    Discoverer Model - 11.1.1.3.0
    Discoverer Server - 11.1.1.3.0
    End User Layer - 5.1.1.0.0.0
    End User Layer Library - 11.1.1.3.0
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    Java Virtual Machine: Sun Microsystems Inc. 1.6.0_29
    JVM Memory Available: 9286KB out of 43728KB
    Operating System: x86 Windows 7 6.1
    Can I have a pre-calculated value in the value selection box E.g. a date value that is calculated from a function that getting current finanical year from a item.
    That is, when 'Edition Parameter value' window pop up, a calculated value exists instead of a blank field.
    Edited by: 901005 on Dec 8, 2011 6:12 PM

    Hello
    Your friend is wrong - this functionality has never existed. Perhaps your friend is getting confused over the ability to define a fixed default value which has always been there.
    Sorry about this.
    Michael

  • Iowagie - How do I pass in parameter values to an event handler -onEndPage?

    Hi,
    I have spent a while on this and is getting quite frustrating, so any help much appreciated.
    I am trying to create a footer on each of my PDF pages that will contain an image and a table. I have successfully created a separate class to my servlet, EndPage.java that contains an onEndPage() method. The problem is, I need to pass in three parameter values into this method, storeNo, langId and transNo.
    How do I go about doing this?
    PDFPrint.java
    public class PDFPrint extends HttpServlet {
        private ByteArrayOutputStream getDoc(ByteArrayOutputStream baos, HttpServletRequest requ, String transNo, String storeNo, String langId)     {
            HttpSession session = requ.getSession();
            Document document = new Document();                    
            PdfWriter writer = PdfWriter.getInstance(document, baos);
            writer.setPageEvent(new EndPage());     
            document.open();
    }EndPage.java
    public class EndPage extends PdfPageEventHelper {
        public void onEndPage(PdfWriter writer, Document document) {
            try {
                Rectangle page = document.getPageSize();
                PdfPTable head = new PdfPTable(3);
                PdfPCell cell1 = new PdfPCell(new Phrase("Pueblo Nativo S.A. de C.V", FontFactory.getFont(FontFactory.HELVETICA, 17f)));
                cell1.setHorizontalAlignment(Element.ALIGN_LEFT);
                cell1.setBorder(0);
                for (int k = 1; k <= 1; ++k)
                     head.addCell(cell1);
                head.setTotalWidth(page.width() - document.leftMargin() - document.rightMargin());
                head.writeSelectedRows(0, -1, document.leftMargin(), page.height() - document.topMargin() + head.getTotalHeight(),
                          writer.getDirectContent());
                PdfPTable foot = new PdfPTable(1);
                PdfPCell cell = new PdfPCell(new Phrase("Disclaimer to go here.", FontFactory.getFont(FontFactory.HELVETICA, 17f)));          
                cell.setHorizontalAlignment(Element.ALIGN_CENTER);
                cell.setBorder(0);
                for (int k = 1; k <= 1; ++k)
                     foot.addCell(cell);
                foot.setTotalWidth(page.width() - document.leftMargin() - document.rightMargin());
                foot.writeSelectedRows(0, -1, document.leftMargin(), document.bottomMargin(),
                writer.getDirectContent());
            catch (Exception e) {
                throw new ExceptionConverter(e);
         public static void main(String[] args) {
    }Thanks!

    Try adding that information data as properties to the HTTP session.
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ExternalContext externalContext = facesContext.getExternalContext();
    HttpSession session = (HttpSession)externalContext.getSession(false);
    session.setAttribute("stornNo", storeNo);
    session.setAttribute("langId", langId);
    session.setAttribure("transNo", transNo);In PDFPrint, you can get those properties using session's getAttribute method, and pass them to the constructor or as parameters to onEndPage.

  • How to pass parameter values to a report befor schedule it?

    I tried to use Business Objects web service to schedule a report. But I failed to pass in any parameter values. The report was able to run successfully. But check all history from Infoview, all parameter are with NULL value. Does anybody encounter the same problem and has good resolution for this? Many thanks.
    Here's my code:
    // Logon Crystal Report Server
    LogonCrystalServer();
    // Find Report
    GetOptions oGetOptions = new GetOptions();
    oGetOptions.IncludeSecurity = false;
    ResponseHolder rh = _bipService.Get("cuid://<" + reportCuid + ">@SI_SCHEDULEINFO, SI_PROCESSINFO", oGetOptions);
    InfoObjects oInfoObjects = rh.InfoObjects;
    if (oInfoObjects == null || oInfoObjects.InfoObject == null) return;
    // Set Scheduling Info
    CrystalReport oReport = (CrystalReport)oInfoObjects.InfoObject[0];
    oReport.Name = oInfoObjects.InfoObject[0].Name;
    SchedulingInfo oSchedulingInfo = oReport.SchedulingInfo;
    oSchedulingInfo.RightNow = true;
    oSchedulingInfo.ScheduleType = (ScheduleTypeEnum.ONCE);
    oReport.SchedulingInfo = oSchedulingInfo; 
    // Set Format Info.
    ReportProcessingInfo procInfo = oReport.PluginProcessingInterface;
    CrystalReportFormatOptions repFormat = new CrystalReportFormatOptions();
    repFormat.Format = ReportFormatEnum.EXCEL;
    repFormat.FormatSpecified = true;
    repFormat.UseExportOptionsInReport = true;
    repFormat.UseExportOptionsInReportSpecified = true;
    procInfo.ReportFormatOptions = repFormat;
    // Get Report Parameters and Set their values
    // I don't know if the step has any problem. I copied from wssdk sample.
    ReportParameter[] repParams = procInfo.ReportParameters;           
    for (int i = 0; i < repParams.Length; i++)
        CurrentValues oCurrentValues = new CurrentValues();
        BusinessObjects.DSWS.BIPlatform.Desktop.PromptValue[] oPromptValue = new BusinessObjects.DSWS.BIPlatform.Desktop.PromptValue[1];
        oPromptValue[0] = new BusinessObjects.DSWS.BIPlatform.Desktop.PromptValue();
        oPromptValue[0].Data = "Test";
        oCurrentValues.CurrentValue = oPromptValue;
        repParams<i>.CurrentValues = oCurrentValues;
    procInfo.ReportParameters = repParams;       
    oReport.PluginProcessingInterface = procInfo;
    // Schedule run the report   
    InfoObjects infoObjects = _bipService.Schedule(oInfoObjects);
    //Get new instance id
    string instanceCuid = infoObjects.InfoObject[0].NewJobID;
    Edited by: Shao Zelian on Jan 19, 2010 11:51 AM

    Can you clarify your scenario? Which is the case you're talking about?
    1) You want to pass a parameter from OmniPortlet to a PL/SQL procedure.
    2) You want to pass a parameter from a PL/SQL procedure to OmniPortlet.
    In both cases the most obvious way of doing it is through request (URL) parameters.
    Render a link in your portlet (either in OmniPortlet or using PL/SQL) that invokes a portal page, containing the other portlet.
    Both OmniPortlet and PL/SQL allow you to wire and access page parameters.
    Take a look at the Using Parameter and Events section of the Portal User's Guide and the Parameters and Events section of the Portal Developer's Guide.
    Hope this helps,
    Peter

  • Getting repeating frames according to Parameter value

    Dear Users....I wanna print bar codes in a report based on a query. Now the scenario is that users want to take multiple prints of the same barcode on the same page. I think its possible only if the repeating frame gets repeated as many times as user enters a value from parameter form or the query should return number of records equal to parameter value. what do u peeps suggest about that how is it possible. Suppose report query is as simple as:
    Select Bar_Cod From Abc;

    Thanx magoo...Yes,u've done apparently a difficult job very simply using a Cartesion product :) But I think there are some other ways too for this. Can we use Rollup or Cube in the same case anyway?

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

  • Display Report Field as Parameter value

     Hi All,
    Is it possible to show Programcode as a Parameter value on the report header, I am using ProgramID as a Parameter?
     Please let me know.
    Below is the SQl Code
    Declare @ProgramID int
    Select ProgramCode,Name,Abbrevation from Program
    where ID=@programID

    Hi NaveenCR,
    Per my  understanding that you want to  display the multiple value in the parameter dropdown list to display in the Report  header, right?
    I have tested on my local environment and details information below for your reference:
    You can create an multiple value parameter(ProgramID) based on the field "ProgramCode"
    Using the expression below in the report header to get the multiple value from the drop down list of parameter:
    =Join(Parameters!DateKey.Value,",")
    Or:
    =Join(Parameters!DateKey.Value," ")
    If your problem still exists, please tried to provide more details information about your requirement and snapshot of the layout you want.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Date parameter values cleared when dynamically populating string parameter

    Software: Crystal Reports XI Release 1 with SP4, with MS SQL Server 2008
    I've created a report that asks for three parameters, 2 dates, and a string which is dynamically populated. The report has two tables added in the database expert.
    The first table in the database expert is a command object which passes the two date parameters to a stored procedure:
    exec sp_MyStoredProcedure {?startdate},{?enddate}
    The second table in the database expert is a stored procedure object used to populate the string parameter {?_users}. The criteria for the string parameter are:
    Prompt with Description only: False
    Allow multiple values: True
    Allow discrete values: True
    Allow range values: False
    This stored procedure object requires nothing to be passed, it was originally a view in the database, but the same problem occurs whether i dynamically populate the string parameter options from either a view or a stored procedure.
    The string parameter is used for defining the record selection formula:
    IF {Command.user_name} in {?_users} THEN true ELSE false.
    The two table objects are not linked in the database expert, but linking them does not seem to solve the problem I am having with this report, the problem being this:
    No matter which order I set the parameters, it always first displays a form showing only the prompts for the date values. After entering these, it then shows a form prompting for the date values again (the previously selected date information now cleared), along with the list of users from which to select. On this 2nd form, the parameters are displayed in the order I set using the field explorer option presented when I right click on the Paramter Fields heading. After entering the date parameter values a 2nd time, and selecting the users from the dynamically generated list, the report performs as intended. After subsequently running the report  (prompting for new parameter values by pressing F5),  it does not clear the date parameters on the 2nd form's appearance.
    What I need is to be able to enter in these values the first time around, without having the date parameters cleared. Am i going about this incorrectly, or is this a bug?

    What you are experiencing is not a bug... Passing a multi-valued parameter to a Command or SP is not supported in any version of CR prior to CR 2008.
    Your options are #1) Upgrade to CR 2008 or #2) Jump through the necessary hoops to make it work in CR XI
    Check out this link...[SQL Command Parameter - Multiple Value|Re: SQL Command Parameter - Multiple Value]
    It has some good examples a good step by step.
    HTH,
    Jason

  • Hi how can i increase my parameter values in my system

    Dear Experts ,
    here my functional consultants gets below shotdump and how can i solve that an error
    Runtime Errors         TSV_TNEW_BLOCKS_NO_ROLL_MEMORY
    Short text
        No roll storage space of length 1802248 available for internal storage.
    hat can you do?
       Try to find out (e.g. by targetted data selection) whether the
       transaction will run with less main memory.
       If there is a temporary bottleneck, execute the transaction again.
       If the error persists, ask your system administrator to check the
       following profile parameters:
       o  ztta/roll_area            (1.000.000 - 15.000.000)
              Classic roll area per user and internal mode
              usual amount of roll area per user and internal mode
       o  ztta/roll_extension       (10.000.000 - 500.000.000)
              Amount of memory per user in extended memory (EM)
       o  abap/heap_area_total      (100.000.000 - 1.500.000.000)
              Amount of memory (malloc) for all users of an application
              server. If several background processes are running on
              one server, temporary bottlenecks may occur.
              Of course, the amount of memory (in bytes) must also be
              available on the machine (main memory or file system swap).
              Caution:
              The operating system must be set up so that there is also
              enough memory for each process. Usually, the maximum address
              space is too small.
              Ask your hardware manufacturer or your competence center
              about this.
              In this case, consult your hardware vendor
       abap/heap_area_dia:        (10.000.000 - 1.000.000.000)
              Restriction of memory allocated to the heap with malloc
              for each dialog process.
       Parameters for background processes:
       abap/heap_area_nondia:        (10.000.000 - 1.000.000.000)
              Restriction of memory allocated to the heap with malloc
              for each background process.
       Other memory-relevant parameters are:
       em/initial_size_MB:         (35-1200)
              Extended memory area from which all users of an
              application server can satisfy their memory requirement.
       Note which actions and input led to the error.
       For further help in handling the problem, contact your SAP administrator
       You can use the ABAP dump analysis transaction ST22 to view and manage
       termination messages, in particular for long term reference.
    how much can i increase please suggest me
    Regards

    hih mark,
    for what base i can increase my parameter values
    presently in my parameter values are recomended valus
    Parameter          present value          Recommended values
    ztta/roll_area-           6500000                      (1.000.000-15.000.000)
    ztta/roll_extension-      2000683008          (10.000.000-500.000.000)
    abap/heap_area_total u2013 2000683008            (100.000.000-1.500.000.000)
    abap/heap_area_dia u2013 2000683008          (10.000.000-1.000.000.000)
    abap/heap_area_nondia u2013 2000683008           (10.000.000-1.000.000.000)
    em/initial_size_MB u2013           4092                (35-1200)
    how much can i increase
    Regards

Maybe you are looking for

  • Can't able to deploy webservice to IAS 10.1.2.0(window) by using Jdevloper

    Hi, I have got the successful msg in time of connect iAS 10.1.2.0 from Jdev 10.1.3 . But when I tried to deploy a simple webservice to ias then I got following deployment message : ---- Deployment started. ---- Aug 18, 2009 10:38:47 AM Target platfor

  • Using iPod as external hard disk....

    I'm sure this topic will have been covered, but I can't find an answer to my problem, which is...... I want to use my iPod as an external hard disc; according to the instructions, I should be able drag music from the iPod Nano (bought just 4 weeks ag

  • Error : The label 'http' has already been declared. Label names must be unique within a query batch or stored procedure.

    Hi all,     I have created one SP for sending mail with formatting the HTML code inside script whenever i am individually declaring it and printing its expected but the problem at time of executing SP its giving error like this Msg 132, Level 15, Sta

  • Send Back For Correction in Travel Request

    Hi All, I have one issue , Actually I am customizing the standard workflow WS20000050 . Here all the things are working fine. But when manager is selecting "Send Back For Correction" , it is going to Requester And when requester is submitting by corr

  • Premeire elements 11

    I have just recently purchased and installed Pe 11 & PSe 11. I have been having problems with Pe 11 that lead me to wonder if my install did not go properly. For the first hour of use I could not get the timeline to function properly. This seems to h