Invalid pointer error on setting reportviewer parameter values

Post Author: erika
CA Forum: General
Hi
I'm using the crystal reports version bundled with VS2005, everything on the web reportviewer works perfectly until I set any parameter values. I then get the following error:
Message: "Invalid Pointer",
Source: rptcontrollers.dll,
Stack Trace:     at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.GetPage(PageRequestContext pPageRequestContext)\r\n   at CrystalDecisions.ReportSource.EromReportSourceBase.GetPage(PageRequestContext pageReqContext)\r\n   at CrystalDecisions.CrystalReports.Engine.FormatEngine.GetPage(PageRequestContext reqContext)\r\n   at CrystalDecisions.ReportSource.LocalReportSourceBase.GetPage(PageRequestContext pageReqContext)\r\n   at CrystalDecisions.Web.ReportAgent.GetPage(Boolean bSeparatePages)\r\n   at CrystalDecisions.Web.CrystalReportViewer.OnPreRender(EventArgs e)
My rptcontroller DLL version is: 10.2.0.1093
The following code is how I set the parameters:
ParameterFields pfsReport = new ParameterFields();
ParameterDiscreteValue pdvReport = new ParameterDiscreteValue();
pdvReport.Value = oReportParameterValues.ToString();
ParameterField pfdReport = new ParameterField();
pfdReport.CurrentValues.Add(pdvReport);
pfsReport.Add(pfdReport);
rpvView.ParameterFieldInfo = pfsReport; //rpvView = ReportViewer
rpvView.ReportSource = rptReport; //rptReport = ReportDocument
rpvView.RefreshReport();
Has anybody got any answers to how I can fix this, or maybe another way to add the parameter values that doesn't give the same error?

This is likely an issue with order of operations.  I would try setting the dataset first, then pass parameters.  if that is what you are already doing, reverse the order and see what happens.

Similar Messages

  • Error in InfoView "The Parameter Value is not Valid"

    Hello,
    I have developed a Crystal Report in CR2008 and uploaded in the InfoView. Now when i run the report via scheduling or load the report with the data and try to change the parameter (editable set in CR) from the drop down list and hit apply i get an error dialogue box "The parameter value is not valid" and message says "null".
    Also another issue is that i cannot execute the report directly in InfoVIew, i have to schedule it to run the report. Report is connected to the SAP InfoSet.
    Any input would be much appreciated.
    Thanks.

    We have rebuild new servers for InfoVIew and it just works fine. Both the problem solved.

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

  • Allow only one set of parameter values for all worksheets

    I would like to " Allow only one set of parameter values for all worksheets ", but prompt before executing the worksheet. This function is a great time saver, but the users on occasion would like to change at the least one of the parameters. Is this possible? What setting do I use? I've tried various combinations of the " After opening a workbook: " on the options page. " Run query automatically", " Don't run query (leave sheet empty) ", and " Ask for comformation ". I would have thought that "Ask for comformation " was the trick, but no. I'm considering putting a do nothing parameter that has the setting of " Allow different parameter values for each worksheet. " so that it will keep all the others, default this one, but prompt for a possible change.
    Any thoughts...
    Thanks,
    Jamie

    Hi Jamie
    Even though you have the same parameter for all worksheets a user can still choose what to use on a worksheet. Its just that if they click to another worksheet then that parameter will be applied.
    Which version of Discoverer are you using?
    Best wishes
    Michael

  • When I try to access iTunes or safari, I get the following message:The procedure entry point QTCF_CFHTTP message set header field value could not be located in the dynamic link library QTCF.dll  I uninstalled and reinstalled.same result HELP!

    When I try to access iTunes or safari, I get the following message:The procedure entry point QTCF_CFHTTP message set header field value could not be located in the dynamic link library QTCF.dll  I uninstalled and reinstalled.same result HELP!

    Taken at face value, you're having trouble with a QuickTime program file there.
    Let's try something relatively simple first. Restart the PC. Now head into your Uninstall a program control panel, select "QuickTime" and then click "Repair".
    Does the repair go through okay? If so, are you able to launch iTunes and/or Safari now?

  • VS2013 Invalid Pointer error

    Good day master's.
    I am using Visual studio 2013 in three months. At first everything is fine until something happen in my operating system that I need to use system restore. The problem is my VS2013 encountered error since I used system restore. Every time I run (F5) my program
    the error "Error while trying to run project: invalid pointer" keep showing and my program won't start. But the program is build properly because i can run it manually in "BIN" folder. The worst is all my project won't run now (VB.net/C#.net).
    Please HELP master's!
    Thanks in advance.

    Hi Kenneth,
    Thank you for posting in the MSDN forum.
    Actually I’m not very sure that what the real app you were debugging, but if you couldn’t debug your app after system restore, we would check whether it is your VS IDE or the specific app issue.
    >> Invalid Pointer error.
    Actually I doubt that you got the error “Unable to Start Programxxxxxx.exe" Invalid Pointer.
    Anyway, to make sure that it is not your VS IDE issue, please reset your VS settings, and then re-open your project, test it again.
    http://msdn.microsoft.com/en-us/library/ms247075(v=vs.90).aspx
    To make sure that it is not your project issue, please clean and rebuild your whole project, and then debug it again. 
    Maybe you could get more useful information from the Error list/output window if you rebuild it in solution explorer window.
    Please delete the bin\debug folder, and then reopen and rebuild it, debug it again.
    If still no help, please share us the latest message, it would be better if you could share us the detailed output/error list message if you got.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • 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

  • Error while setting date parameter to an RFC

    Hi,
    I am getting the following error when i am setting a parameter od Date type to an RFC
    java.lang.ArrayIndexOutOfBoundsException: -1
         at com.sap.mw.jco.JCO$MetaData.getType(JCO.java:9201)
         at com.sap.aii.proxy.framework.core.JcoBaseTypeData.setElementValue(JcoBaseTypeData.java:731)
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.setAttributeValueAsDate(DynamicRFCModelClass.java:568)
         at com.telstra.ctawa.models.mainmodel.Zct_Wd_Demcat_Details_Input.setI_Tsk_Compldte(Zct_Wd_Demcat_Details_Input.java:387)
         at com.telstra.ctawa.apps.wdp.IPublicAddWorkCustomController$IZct_Wd_Demcat_Details_InputElement.setI_Tsk_Compldte(IPublicAddWorkCustomController.java:1759)
         at com.telstra.ctawa.apps.AddWorkCustomController.executeZct_Wd_Demcat_Details_Input(AddWorkCustomController.java:208)
         at com.telstra.ctawa.apps.wdp.InternalAddWorkCustomController.executeZct_Wd_Demcat_Details_Input(InternalAddWorkCustomController.java:367)
         at com.telstra.ctawa.apps.AddWorkAppView.executeGetDetails(AddWorkAppView.java:172)
         at com.telstra.ctawa.apps.AddWorkAppView.wdDoInit(AddWorkAppView.java:101)
         at com.telstra.ctawa.apps.wdp.InternalAddWorkAppView.wdDoInit(InternalAddWorkAppView.java:172)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:274)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:540)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:422)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:130)
         at com.sap.tc.webdynpro.progmodel.view.InterfaceView.initController(InterfaceView.java:43)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:540)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:422)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:130)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doOpen(WebDynproWindow.java:198)
         at com.sap.tc.webdynpro.clientserver.window.InternalWindow.open(InternalWindow.java:45)
         at com.telstra.ctawa.apps.TaskListView.onActionAddWork(TaskListView.java:402)
         at com.telstra.ctawa.apps.wdp.InternalTaskListView.wdInvokeEventHandler(InternalTaskListView.java:369)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
         at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleAction(WebDynproMainTask.java:100)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:299)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:635)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:249)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    Regards
    Prakash

    Hi Rohit,
      public void executeZct_Wd_Demcat_Details_Input( java.lang.String indicator )
        //@@begin executeZct_Wd_Demcat_Details_Input()
         //$$begin Service Controller(145786950)
         if(indicator.equals("CNTR"))
          wdContext.nodeTemp_DemCat().invalidate();
           if(indicator.equals("CNTR") || indicator.equals("DEMCAT"))
              wdContext.nodeTemp_WorkType().invalidate();
              if(indicator.equals("CNTR") || indicator.equals("DEMCAT") || indicator.equals("WRKTYP"))
               wdContext.nodeTemp_ProdSkill().invalidate();
                if(indicator.equals("CNTR") || indicator.equals("DEMCAT") || indicator.equals("WRKTYP") || indicator.equals("PRDSK"))
                 wdContext.nodeTemp_CsgLoc().invalidate();
         IWDMessageManager manager = wdComponentAPI.getMessageManager();
         try{
              String contractType = wdContext.currentContextElement().getContractType();
              String demCat = wdContext.currentContextElement().getDemcat();
              String wrkType = wdContext.currentContextElement().getWorktype();
              String prodSkill = wdContext.currentContextElement().getProdskill();
              String csgLoc = wdContext.currentContextElement().getCsgcat();
              //setting all to null first
              wdContext.currentZct_Wd_Demcat_Details_InputElement().setI_Contract_Type("");
              wdContext.currentZct_Wd_Demcat_Details_InputElement().setI_Demand_Cat("");
              wdContext.currentZct_Wd_Demcat_Details_InputElement().setI_Work_Type("");
              wdContext.currentZct_Wd_Demcat_Details_InputElement().setI_Product_Skill("");
              wdContext.currentZct_Wd_Demcat_Details_InputElement().setI_Csg_Loc("");
              //wdContext.currentContextElement().get
              if(indicator.equals("CNTR")){
                   wdContext.currentZct_Wd_Demcat_Details_InputElement().setI_Contract_Type(contractType);
              if(indicator.equals("DEMCAT")){
                   wdContext.currentZct_Wd_Demcat_Details_InputElement().setI_Contract_Type(contractType);
                   wdContext.currentZct_Wd_Demcat_Details_InputElement().setI_Demand_Cat(demCat);
                   wdContext.currentContextElement().setProdskill("");
                   wdContext.currentContextElement().setWorktype("");
                   wdContext.currentContextElement().setCsgcat("");
                   wdContext.currentContextElement().setPoints(new BigDecimal("0.00"));
            if(indicator.equals("PRDSK")){
                   wdContext.currentZct_Wd_Demcat_Details_InputElement().setI_Contract_Type(contractType);
                   wdContext.currentZct_Wd_Demcat_Details_InputElement().setI_Demand_Cat(demCat);
                  wdContext.currentZct_Wd_Demcat_Details_InputElement().setI_Product_Skill(prodSkill);
                   wdContext.currentContextElement().setWorktype("");
                   wdContext.currentContextElement().setCsgcat("");
                   wdContext.currentContextElement().setPoints(new BigDecimal("0.00"));               
              if(indicator.equals("WRKTYP")){
                   wdContext.currentZct_Wd_Demcat_Details_InputElement().setI_Contract_Type(contractType);
                   wdContext.currentZct_Wd_Demcat_Details_InputElement().setI_Demand_Cat(demCat);
                   wdContext.currentZct_Wd_Demcat_Details_InputElement().setI_Product_Skill(prodSkill);
                   wdContext.currentZct_Wd_Demcat_Details_InputElement().setI_Work_Type(wrkType);
                   wdContext.currentContextElement().setCsgcat("");
                   wdContext.currentContextElement().setPoints(new BigDecimal("0.00"));
              if(indicator.equals("CSGCT")){
                   wdContext.currentZct_Wd_Demcat_Details_InputElement().setI_Contract_Type(contractType);
                   wdContext.currentZct_Wd_Demcat_Details_InputElement().setI_Demand_Cat(demCat);
                   wdContext.currentZct_Wd_Demcat_Details_InputElement().setI_Work_Type(wrkType);
                   wdContext.currentZct_Wd_Demcat_Details_InputElement().setI_Product_Skill(prodSkill);
                  wdContext.currentZct_Wd_Demcat_Details_InputElement().setI_Csg_Loc(csgLoc);
    wdContext.currentZct_Wd_Demcat_Details_InputElement().setI_Task_Complte(new Date(System.currentTimeMillis()));     
              wdContext.currentZct_Wd_Demcat_Details_InputElement().modelObject().execute();
              wdContext.nodeOutput().invalidate();
             if(indicator.equals("CNTR")){
                   //copy data from CSG_DEM_CAT to nodeTempDemCat
                   for(int i=0;i<wdContext.nodeDem_Cat_Output().size();i++){
                   IPublicAddWorkCustomController.ITemp_DemCatElement demCatElem = wdContext.createTemp_DemCatElement();
                   WDCopyService.copyCorresponding(wdContext.nodeDem_Cat_Output().getDem_Cat_OutputElementAt(i) ,demCatElem);
                   wdContext.nodeTemp_DemCat().addElement(demCatElem);
                   IPublicAddWorkCustomController.ITemp_DemCatElement demCatElem = wdContext.createTemp_DemCatElement();
                   demCatElem.setDemand_Cat("Select");
                   wdContext.nodeTemp_DemCat().addElement(demCatElem);
                   wdContext.currentContextElement().setDemcat("Select");
              if(indicator.equals("DEMCAT")){
                 for(int i=0;i<wdContext.nodeProduct_Skill_Output().size();i++){
                 IPublicAddWorkCustomController.ITemp_ProdSkillElement prdSkillElem = wdContext.createTemp_ProdSkillElement();
                 WDCopyService.copyCorresponding(wdContext.nodeProduct_Skill_Output().getProduct_Skill_OutputElementAt(i) ,prdSkillElem);
                 wdContext.nodeTemp_ProdSkill().addElement(prdSkillElem);
                 IPublicAddWorkCustomController.ITemp_ProdSkillElement prdSkillElem = wdContext.createTemp_ProdSkillElement();
                 prdSkillElem.setProduct_Skill("Select");
                 wdContext.nodeTemp_ProdSkill().addElement(prdSkillElem);
                 wdContext.currentContextElement().setProdskill("Select");            
              if(indicator.equals("WRKTYP")){
                   //copy data from CSG_LOC to nodeCsgloc
                   for(int i=0;i<wdContext.nodeCsg_Cat_Output().size();i++){
                   IPublicAddWorkCustomController.ITemp_CsgLocElement csgLocElem = wdContext.createTemp_CsgLocElement();
                   WDCopyService.copyCorresponding(wdContext.nodeCsg_Cat_Output().getCsg_Cat_OutputElementAt(i) ,csgLocElem);
                   wdContext.nodeTemp_CsgLoc().addElement(csgLocElem);
                   IPublicAddWorkCustomController.ITemp_CsgLocElement csgLocElem = wdContext.createTemp_CsgLocElement();
                   csgLocElem.setCsg_Loc("Select");
                   wdContext.nodeTemp_CsgLoc().addElement(csgLocElem);
                   wdContext.currentContextElement().setCsgcat("Select");
              if(indicator.equals("PRDSK")){
                 //copy data from WRK_TYPE to nodeTempWrkTyp
                 for(int i=0;i<wdContext.nodeWork_Type_Output().size();i++){
                 IPublicAddWorkCustomController.ITemp_WorkTypeElement wrkTypElem = wdContext.createTemp_WorkTypeElement();
                 WDCopyService.copyCorresponding(wdContext.nodeWork_Type_Output().getWork_Type_OutputElementAt(i) ,wrkTypElem);
                 wdContext.nodeTemp_WorkType().addElement(wrkTypElem);
                 IPublicAddWorkCustomController.ITemp_WorkTypeElement wrkTypElem = wdContext.createTemp_WorkTypeElement();
                 wrkTypElem.setWork_Type("Select");
                 wdContext.nodeTemp_WorkType().addElement(wrkTypElem);
                 wdContext.currentContextElement().setWorktype("Select");            
              if(indicator.equals("CSGCT")){
                   BigDecimal points = wdContext.currentOutputElement().getPay_Points();
                   if(points.equals(new BigDecimal("0")))
                   wdContext.currentContextElement().setChkPointsInp(false);
                   else{
                   wdContext.currentContextElement().setChkPointsInp(true);
                   wdContext.currentContextElement().setPoints(wdContext.currentOutputElement().getPay_Points());
              ISimpleTypeModifiable demCatSimpleType = wdThis.wdGetAPI().getContext().getModifiableTypeOf("demcat");
              IModifiableSimpleValueSet demCatList = demCatSimpleType.getSVServices().getModifiableSimpleValueSet();
              //wdContext.nodeDem_Cat_Output()
              for(int i = 0 ;i < wdContext.nodeTemp_DemCat().size();i++){
                   String demCatListElem = wdContext.nodeTemp_DemCat().getTemp_DemCatElementAt(i).getDemand_Cat();
                   demCatList.put(demCatListElem, demCatListElem);
              ISimpleTypeModifiable wrkTypSimpleType = wdThis.wdGetAPI().getContext().getModifiableTypeOf("worktype");
              IModifiableSimpleValueSet wrkTypList = wrkTypSimpleType.getSVServices().getModifiableSimpleValueSet();
              //wdContext.nodeDem_Cat_Output()
              wrkTypList.clear();
              for(int i = 0 ;i < wdContext.nodeTemp_WorkType().size();i++){
                   String wrkTypListElem = wdContext.nodeTemp_WorkType().getTemp_WorkTypeElementAt(i).getWork_Type();
                   wrkTypList.put(wrkTypListElem, wrkTypListElem);
              }//for
              ISimpleTypeModifiable prodSkillSimpleType = wdThis.wdGetAPI().getContext().getModifiableTypeOf("prodskill");
              IModifiableSimpleValueSet prodSkillList = prodSkillSimpleType.getSVServices().getModifiableSimpleValueSet();
              prodSkillList.clear();
              //wdContext.nodeDem_Cat_Output()
              for(int i = 0 ;i < wdContext.nodeTemp_ProdSkill().size();i++){
                   String prodSkillListElem = wdContext.nodeTemp_ProdSkill().getTemp_ProdSkillElementAt(i).getProduct_Skill();
                   prodSkillList.put(prodSkillListElem, prodSkillListElem);
              ISimpleTypeModifiable csgCatSimpleType = wdThis.wdGetAPI().getContext().getModifiableTypeOf("csgcat");
              IModifiableSimpleValueSet csgCatList = csgCatSimpleType.getSVServices().getModifiableSimpleValueSet();
              csgCatList.clear();
              //wdContext.nodeDem_Cat_Output()
              for(int i = 0 ;i < wdContext.nodeTemp_CsgLoc().size();i++){
                   String csgCatListElem = wdContext.nodeTemp_CsgLoc().getTemp_CsgLocElementAt(i).getCsg_Loc();
                   csgCatList.put(csgCatListElem, csgCatListElem);
         } catch(WDDynamicRFCExecuteException ce) {
              manager.reportException(ce.getMessage(), false);
         //$$end
        //@@end
    this line
    wdContext.currentZct_Wd_Demcat_Details_InputElement().setI_Task_Complte(new Date(System.currentTimeMillis()));
    before the modelobject is executed is giving error.
    Regards
    Prakash

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

  • Error printing Check - "Missing Parameter Values. Error During Printing"

    Dear friends,
    Our client is in SAP B1 8.81 Pl07 and is facing an error while printing checks designed in Crystal Reports. As soon as they click on "Print" button, we are getting an error "Missing Parameter Values. Error During Printing".
    We have checked the Crystal Reports and all the parameters are given.
    Can anyone help me regarding this?
    Thanks and regards,
    Bharath S

    hi,
    Quoted from Note 1555170
    1555170 - Error 'Missing parameter values' printing with CR layout
    Symptom
    When you print on add any stock transactions document, with Crystal report layout, you receive error message:'Missing parameter values' and then 'Error during the printing; ensure all parameters are defined'
    Step by Step scenario:
    1.Go to Administration / System Initialization / Print preferences and select the tab per document.
    2.Select the document stock transfer and tick the box print document when adding document and click on update.
    3.Go to stock management / stock transactions / stock transfer
    set the Crystal report template as default.
    Note:
    - The issue is reproduced also for Goods Receipt and Good Issue.
    - The issue is reporduced with any Crystal Report Template  for the     above documents.
    Cause
    Program error
    Solution
    This issue is candidate for a change in a future release of SAP Business One.
    Workarounds:
    1.Use PLD for printing the stock transactions.
    2.Convert the PLD layout to Crystal reports with Crystal converter.
    3.Print the document after adding it.
    Other terms
    sap business one, printing issues, good issue, good receipt, stock transfer, crystal report, print preferences, print when adding, dockey, missing parameter
    Header Data
    Released on     07.02.2011 13:27:30
    Release status     Released for Customer
    Component     SBO-REP-CR Crystal Reports 2008 for SAP Business One
    Other Components     
    SBO-GEN-PRT Printing Issues
    Priority     Correction with low priority
    Category     Program error
    Validity
    Software Component
    Version
    SAP BUSINESS ONE
    8.8
    8.81
    you can download the PLD to Crystal Converter [here|http://www.sdn.sap.com/irj/scn/downloads?rid=/library/uuid/108305a7-1555-2d10-8289-9a178d441c71]
    regards,
    Fidel

  • Set a parameter value using Search help exit

    Hi All,
    I want a search help such as If I enter a warehouse number on my screen then search help for storage bins should have that warehouse number populated in selection dialog.
    I guess i have to write some code in search help exit if CALLCONTROL-STEP = 'PRESEL'.
    But I am not able to set the warehouse value to parameter.
    Does any one have done something like this?
    Thanks in Advance,
    Shailly

    Hi Shailly,
    I don#t know if that will be the best option for you, but you can make use of the abap program event at value request for your parameter_id.
    What you need is to insert a similar code like the one below:
    at selection-screen on value-request for p_param
      select fielda fieldb from storage bin table into gi_warehouse_bin
                 where  warehouse = warehouse parameter.
      delete adjacent duplicates from gi_zzdez comparing all fields.
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
        exporting
         retfield               = space
         dynpprog               = 'REPORT_NAME'
         dynpnr                 = '1000'
         dynprofield            = 'P_BIN'
         window_title           = 'Text'
         value_org              = 'S'
        tables
          value_tab              = gi_warehouse_bin
       exceptions
         parameter_error        = 1
         no_values_found        = 2
         others                 = 3
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    Cheers,
    Florin

  • How to set two parameter value using one f4 help of 'F4IF_INT_TABLE_VALUE_REQUEST'

    I have two parameters on selection screen .
    P_QTR and P_YEAR
    I have concatenated the Quarter and Year Value to give same f4 on both paramatersto give f4 using 'F4IF_INT_TABLE_VALUE_REQUEST'
    for example Q1 2014
    now when user selects one value i want to set Q1 to P_QTR and 2014 to P_YEAR.
    but it is setting only one value for P_QTR correctly and the value for P_year is not coming on screen although the value is thier inside code in P_year
    i am using same f4 for both events
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_qtr.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_year.
    here is the code i am using
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
            retfield        = 'CHAR20'
            window_title    = text-026
            value_org       = 'S'
          TABLES
            value_tab       = mt_input_f4
            return_tab      = mt_return
          EXCEPTIONS
            parameter_error = 1
            no_values_found = 2
            OTHERS          = 3.
        IF sy-subrc <> 0.
          CLEAR mt_input_f4[].
        ENDIF.
        READ TABLE mt_return INTO ms_return INDEX 1.
        IF sy-subrc EQ 0.
          p_qtr = ms_return-fieldval+0(2).
          p_year = ms_return-fieldval+3(4) .
        ENDIF.
    plz chk  attached pics

    i am sorry for delayed update but i fixed it using following approach.
        READ TABLE mt_return INTO ms_return INDEX 1.
        IF sy-subrc EQ 0.
          ls_dynpread-fieldname = 'P_QTR'.
          ls_dynpread-fieldvalue = ms_return-fieldval+0(2).
          APPEND ls_dynpread TO lt_dynpread.
          ls_dynpread-fieldname = 'P_YEAR'.
          ls_dynpread-fieldvalue = ms_return-fieldval+3(4).
          APPEND ls_dynpread TO lt_dynpread.
    **setting the selection screen values
          CALL FUNCTION 'DYNP_VALUES_UPDATE'
            EXPORTING
              dyname               = sy-repid
              dynumb               = '1000'
            TABLES
              dynpfields           = lt_dynpread
            EXCEPTIONS
              invalid_abapworkarea = 1
              invalid_dynprofield  = 2
              invalid_dynproname   = 3
              invalid_dynpronummer = 4
              invalid_request      = 5
              no_fielddescription  = 6
              undefind_error       = 7
              OTHERS               = 8.
          IF sy-subrc <> 0.
            CLEAR lt_dynpread[].
          ENDIF.

  • Error while setting input parameter for dynamic process - GP

    Hi All,
    I am using CAF 7.1 GP.
    Here I have to start a process dynamically and it is working fine.
    But, when I tried to set value for input parameter of this process by
    IGPStructure params = GPStructureFactory.getStructure(process.getInputParameters());
    params.setAttributeValue("Val","MyValue");
    ( <b>Val</b> is the name of grouped input parameter ), it is giving
    com.sap.caf.eu.gp.exception.api.GPInvocationException: Structure with name input and namespace http://wwww.sap.com/nw/eup/gp does not have an attribute with name Val and namespace null.
    But no where I have mentioned http://wwww.sap.com/nw/eup/gp.
    I dont have any structures in my input and output.
    Here is my full code
           try
                IGPProcess process = null;
                IUser tl_user =UMFactory.getUserFactory().getUserByLogonID("fahad");
                     IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(tl_user);//, user.getLocale());
                     process =GPProcessFactory.getDesigntimeManager().getActiveTemplate("F5D76840A56F11DC983B001966243CAD",userContext);
                     wdComponentAPI.getMessageManager().reportSuccess("Title of process is "+process.getTitle());
                     IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
                     IGPProcessRoleInstanceList roles = rtm.createProcessRoleInstanceList();
                     int rolenum = process.getRoleInfoCount();
                     wdComponentAPI.getMessageManager().reportSuccess("Number is "+rolenum);
                     IGPProcessRoleInstance roleInstance=null;
                     IUser ho_User=null;
                     for (int i = 0; i < rolenum; i++)
                             wdComponentAPI.getMessageManager().reportWarning("Role Text is "process.getRoleInfo(i).getText()"  Role Name is "+process.getRoleInfo(i).getRoleName());
                             if(i==1)
                                  ho_User = UMFactory.getUserFactory().getUserByLogonID("poornendu");
                                  roleInstance = roles. createProcessRoleInstance(process.getRoleInfo(i).getRoleName());
                                  roleInstance.addRuntimeDefinedUser(ho_User);
                                  roles.addProcessRoleInstance(roleInstance);
                             if(i==2)
                                  ho_User = UMFactory.getUserFactory().getUserByLogonID("fahad");
                                  roleInstance = roles. createProcessRoleInstance(process.getRoleInfo(i).getRoleName());
                                  roleInstance.addUser(ho_User);
                                  roles.addProcessRoleInstance(roleInstance);
                     wdComponentAPI.getMessageManager().reportSuccess(""+process.getStructure().getItemCount());
                     IGPStructure params = GPStructureFactory.getStructure(process.getInputParameters());
                     wdComponentAPI.getMessageManager().reportSuccess("Title of process is "+process.getTitle());
                     <b>params.setAttributeValue("Val","MyValue");</b>                     
                     String pName=wdContext.currentContextElement().getProcessName();
                     IGPProcessInstance prInstance = rtm.startProcess(process,pName,"This process has been started using the GP public API",tl_user,roles,params,tl_user);
           catch(Exception e)
                wdComponentAPI.getMessageManager().reportException(""+e);
    Can anyone help me on this.
    Thanks,
    Fahad Hamsa

    Hi Experts,
    I solved it myself.
    The problem was, I have to make the input parameter as exposed. Thats all
    Anyway, thanks for the support.
    Regards,
    Fahad Hamsa

  • How do you set a parameter value in a jnlp file?

    I am trying to figure out how to assign a value to a parameter within a jnlp file and then call that into the main class file. My main class file is below. I want to set firstName inside of the JNLP config file, but am convinced it is impossible. Any thoughts?
    public class Greeting
    private String firstName;
    public Greeting()
    public String getName ()
    if( firstName == null)
    firstName = "Day";
    return firstName;
    }//end method
    public static void main (String args[])
    Greeting greeting1 = new Greeting ();
    greeting1.getName();
    System.out.printf("%s\n", greeting1.getName());
    }

    In the jnlp file, add the Name as a runtime argument for running the Greeting class from its main(). Then add a constructor like
    public Greeting(string name){
    firstName = name;
    }and then change the Greeting greeting1 = new Greeting ();to Greeting greeting1 = new Greeting (args[0]);A side note, most people on here get all bent out of shape if you don't put your code in the Code formatter on here, in case you didn't know about it before. It's just easier to read.

  • VAMT LDAP Invalid Pointer error after partial search

    I've been looking and looking for a couple days now and haven't found anything that encompasses all the symptoms I'm having here so here goes nothing.
    Using VAMT 2.0, I'm attempting to search the whole directory for all machine accounts that are not servers, and are enabled. My LDAP URL query has evolved significantly in my testing, but I still cannot seem to get around the error.
    My Progression so far:
    LDAP://corp.domain.com:389/DC=corp,DC=domain,DC=com??sub?(&(objectCategory=computer)(!userAccountControl:1.2.840.113556.1.4.803:=2)(!operatingSystem=*server*))
    ADUC: 1775 results
    VAMT: 3 results
    LDAP:///??sub?(&(objectCategory=computer)(!userAccountControl:1.2.840.113556.1.4.803:=2)(!operatingSystem=*server*))
    ADUC: 1775 results
    VAMT: 3 results
    ^Expected^
    LDAP:///??sub?(&(objectCategory=computer)(!userAccountControl=4098)(!operatingSystem=*server*))
    ADUC: 1785 results
    VAMT: 6 results
    LDAP:///??sub?(&(objectCategory=computer)(userAccountControl=4096)(!operatingSystem=*server*))
    ADUC: 1752 results
    VAMT: 621 results
    LDAP:///??sub?(&(objectClass=computer)(userAccountControl=4096)(!operatingSystem=*server*))
    ADUC: 1752 results
    VAMT: 621 results
    I think you can see my frustration. I theorize that VAMT is hitting an object that doesn't have any of those items to query and is crashing out, but this is totally a theory.
    My end-goal is to use VAMT from the command line to help us audit our MS software much more accurately than SCCM is and to help us with Volume licensing true-up. Maybe, if I get this working I can setup the scripts to auto resolve some license issues, but
    I'll work on that later. Anyone have an idea on why VAMT might be acting this way?

    Hi,
    Check the following in debug mode .
    I think value of s_from_rec is getting ZERO, check what is the exact reason. The value of  s_from_rec is always should be greater than ZERO.
    if s_dataset_lines le s_to_rec. "Last package 
    >>>>> append lines of lt_dataset 
    157 from s_from_rec to s_dataset_lines 
    158 to e_t_data. 
    regards,
    Raju

Maybe you are looking for

  • Illustrator wont open

    My illustrator shut down unexpectedly. Now when I try and open it, it says "blah blah blah illustrator quit unexpectedly. would you like to reopen blah blah blah" and then I click 'reopen' and get a spinning wheel forever, and 'application not respon

  • Grouping of SameVendor while making Payment

    Hi all For Vendor XYZ, at the moment we have five different vendor codes for the same Vendor on SAP,eg;  2000005 for warehouse and distribution costs,2000435 for freight,2000436 for duty,2000437 for clearing ,and 2000439 for freight(again) This makes

  • Brush Size changing

    Hi, i was hoping to find a quick way of changing the size of a brush, other than using the mouse to click on the brush and move the slider. is there a key I can hold down and move the mouse wheel to change brush size? thanks Harry

  • Losing Decimal Places

    I am having problems with SQL Developer rounding my decimals. The column is a NUMBER(11,6), but SQL Developer rounds the number to 3 decimal places. SQL Plus shows the data just fine, but both the data view and the SQL Worksheet in SQL Developer roun

  • Premiere Pro cs4 hangs when trying to import video

    just as the title insues it hangs when i try to import a clip......i just need to shed some ligt on it...so anything will help im kinda new to premiere is it because it is mpeg4 is so this is a short topic