Setting parameter value using hyperlink
I have a jsp search page which shows records in an html table. In each table row I have the id of the record. I would like to use this id value as a hyperlink and set the value of a hidden field to the id and then submit the form. my idea is to open a new page showing all the details of the specified record by the id which is sent as a parameter from the search page as soon as I click the id hyperlink. I am trying to use javascript, but I am a bit green in this area. I would appreciate any help.
You could easily do this with JSPs, HTML and JSTL - there's no need for JavaScript in this case.
Similar Messages
-
Adapter Modules: Set parameter values dynamic?
Hi everybody,
is it possible to set parameter values in adapter modules dynamic?
Thanks Regards
MarioHi all,
thanks for your replies.
My problem is not solved.
To make it clear,
I want to set an attachmentName in Mail receiver adapter WITHOUT using the MailPackage.
This is possible:
ModuleName: localejbs/AF_Modules/MessageTransformBean
ModuleType: LocalEnterpriseBean
ModuleKey: CHAN
Parametername: Transform.ContentDisposition
ParameterValue: attachment; filename="NameOfAttachment.txt"
I want to set "NameOfAttachment.txt" dynamically. How can I achieve this? Thanks, regards
Mario -
How do I retain a PDF form widget's design when setting its value using Javacript in Acrobat?
I've been experimenting with interactive PDF forms in InDesign and JS in Acrobat. I think I've encountered something that might be a bug: widget design is overriden when using Javascript to set the field's value in Acrobat. Here's what a checkbox, for example, should look like when checked:
However performing:
var f = this.getField("Checkbox");
f.value = "Yes";
in the JS Console results in the widget's appearance defaulting to acrobat's:
I've tried every single widget property documented in Acrobat's Javascript API Reference to no avail. Initially, checking/unchecking using the mouse works fine. Once the value has been set using JS, Acrobat's default black check character is used for all subsequent toggling, including when using the mouse...
How does InDesign export interactive PDFs with custom icons for widgets? Is there any way to enforce the use of those icons using JS in Acrobat Pro? What's the difference between selecting a checkbox or a radio button using the mouse and setting its value using JS?I thought it might be the case, too, but all widgets have the same properties both before and after setting the value with JS. I did this check using all documented properties in Acrobat JS Reference in an attempt to figure out what might be going on.
By the way, I don't think Indesign necessarily uses glyphs for the checked state of widgets, although in this case a glyph is used (albeit with different stroke and fill colours for the glyph, acrobat doesn't allow setting these properties AFAIK). With Indesign CS6 it seems you can practically use any Indesign tool to design the widget's On and Off states. So I'm thinking that maybe Indesign exports these with button-like properties where there are no restrictions on appearance (I think there is an "icon" property/object for buttons or something like that). However Acrobat treats them as checkboxes, so if that is the case it is more of a hack. Is there a way to probe an object's various properties other than using JS or the properties pop-up dialog? -
Pass Parameter value through hyperlink?
Hello and a Happy New Year to everyone!
I have an ASP.NET web application that I am making. I was wondering if it were possible to pass a value to a CR that has a parameter value.
In my example, I have a report called rptLicenseReport. This report has a parameter value of FileNo. Which comes from the field File No in the table License Applications in the database (Access) . Of course, CR does its own curly bracket thing for the parameter... but I was wondering if it was possible to have a hyperlink on my main page that points to the report.aspx page (which holds the report viewer, and the report as a whole) while passing the File Number.
Essentially I would like the link to look like : www.urllinkhere.com/report.aspx?FileNo=6
and when clicked that path would open the report.aspx page and pass the FileNo into the report. I have tried to make the report and have the link pass just like that but the report comes back with an error stating that there is no parameters chosen/given (thinking off-hand, error is something like that).
Any help with this problem would be greatly appreciated. For those interested my report is in VB language, not C#.
Much Thanks!
--Matt
Edited by: Matthew Gonzalez on Jan 2, 2009 8:50 AMAG,
Much thanks for the code, I modified it to fit my VB environment and it worked well. What I have it doing is utilizing some of the earlier information on the http requerying having the labelID in the URL get posted to a label. Using your code I then have the label ID set as the parameter source. This worked fine and it now populates the report with the ID of the earlier record selected.
Here's my code as an FYI and future reference:
Protected Sub LabelReference (ByVal sender As Object, ByVal e As System.EventArgs) Handles form1.Load
lblID.Text = CInt(Request.QueryString("FileNo"))
End Sub
Protected Sub ReportDocument(ByVal sender As Object, ByVal e As System.EventArgs) Handles CrystalReportSource1.DataBinding
Dim rdoc As New ReportDocument
Dim rptValue As Object
rptValue = CInt(lblID.Text)
rdoc.Load(Server.MapPath("~/files/rptLicenseView.rpt"))
rdoc.SetParameterValue("FileNo", rptValue)
CrystalReportViewer1.ReportSource = rdoc
End Sub -
Create Parameter and set Parameter properties using API
I want to create a parameter with RAS API.
Here I want to create a string parameter and initialize it and set the values.
This is the code I use to create a parameter.
I use here the RAS API, because I want to create a parameter
Dim myParameterField As New CrystalDecisions.ReportAppServer.DataDefModel.ParameterField
myParameterField.ParameterType = CrParameterFieldTypeEnum.crParameterFieldTypeReportParameter
myParameterField.ValueRangeKind = CrParameterValueRangeKindEnum.crParameterValueRangeKindDiscrete
myParameterField.Type = CrFieldValueTypeEnum.crFieldValueTypeStringField
myParameterField.Name = "mystring"
m_RasDoc.DataDefController.ParameterFieldController.Add(myParameterField)
later, I call the following code to set the values of the parameter "mystring".
I use DOTNET-SDK, because I dont know how to do this with the RAS API
Dim crParameterDiscreteValue As ParameterDiscreteValue
Dim crParameterFieldDefinitions As ParameterFieldDefinitions
Dim crParameterFieldLocation As ParameterFieldDefinition
Dim crParameterValues As ParameterValues
crParameterFieldDefinitions = m_crNetDoc.DataDefinition.ParameterFields
crParameterFieldLocation = crParameterFieldDefinitions.Item("mystring")
crParameterValues = crParameterFieldLocation.CurrentValues
crParameterDiscreteValue = New CrystalDecisions.Shared.ParameterDiscreteValue
crParameterDiscreteValue.Value = "myvalue"
crParameterValues.Add(crParameterDiscreteValue)
crParameterFieldLocation.ApplyCurrentValues(crParameterValues)
crParameterFieldLocation.ApplyDefaultValues(crParameterValues)
crParameterFieldLocation.IsOptionalPrompt = False
later, I save this report to disk.
When I open the generated report in the Crystal Designer, there are no default values for this created parameter 'mystring'.
Is it possible to set DefaultValues using RAS API?
Can I populate the combobox for a parameter in parameter Dialog? Can I set the standard value field?
Thank you
OttoHello,
at first i want to create a new parameter. Then set the parameter value in the parameterlist and store a standard default value.
I want if this stored report will be opened with the Crystal Reports Designer and I start with the view button, the default values should be set in the parameter text field, so that the user must not type in the parameter values.
Please help me!
Thank to all helpers. -
BDC setting Parameter value To 'X'
Hi gurus,
my custom program runs a BDC to trigger standard T.code .In the program of Transaction code there was parameter field
Parametrs:p_xfield type rkkzest-info NO-DISPLAY.
i want to set the P_xfield to "X" by field name p_xfield and fval as "x'
when i am doing and setting the value to X there was an eror message.
Is there any process to set .
I want to set the variable to "X' basing on that entire validation goes,please provide me the help.
Regards,HI try as given below
This is for SE38 tcode, u have to modify the statement in bold to meet ur requirement.
assign value of your select option to X.
<b>WA_BDCDATA-PROGRAM = 'SAPMS38M'.
WA_BDCDATA-DYNPRO = '0100'.
WA_BDCDATA-DYNBEGIN = 'X'.</b>
APPEND WA_BDCDATA TO BDCDATA.
CLEAR WA_BDCDATA.
<b>WA_BDCDATA-FNAM = 'RS38M-PROGRAMM'.
WA_BDCDATA-FVAL = PROGRAM.
APPEND WA_BDCDATA TO BDCDATA.</b>
CALL TRANSACTION 'SE38' USING BDCDATA MODE 'N'
MESSAGES INTO ITAB.
reward if helpful* -
Set attribute value using plugins
Hi Experts,
I am facing error when setting the value of attribute in the event "OnInvestigationStartedEvent". Any suggestion to fix the issue
code:
Session ses = onInvestigationStartedEvent.getSessionContext().getInterviewSession().getRuleSession();
Attribute start = ses.getGlobalEntityInstance().getEntity().getAttribute("test_start_time");
Date start_date = new Date();
start.setValue(ses.getGlobalEntityInstance(), start_date);
Error:
25750 [http-apr-8080-exec-9] INFO com.oracle.determinations.engine.Session - User setting attribute test_start_time, entity global, instance name global, session 1 to value 7/21/13 2:17 PM
25752 [http-apr-8080-exec-9] ERROR com.oracle.determinations.web.platform.templatingengine.ErrorRenderer - A unauthorised change to the Rule Session has been detected.
com.oracle.determinations.interview.engine.exceptions.CorruptSessionException: A unauthorised change to the Rule Session has been detected.
at com.oracle.determinations.interview.engine.data.local.RuleSessionManager.checkSessionIntegrity(RuleSessionManager.java:760)
at com.oracle.determinations.interview.engine.data.local.RuleSessionManager.getRuleSession(RuleSessionManager.java:144)
at com.oracle.determinations.interview.engine.local.LocalInterviewSession.getRuleSession(LocalInterviewSession.java:203)
at com.oracle.determinations.interview.engine.data.model.InterviewEntityInstanceIdentifier.findEntityInstance(InterviewEntityInstanceIdentifier.java:73)
at com.oracle.determinations.interview.engine.local.AttributeGoal.getNextScreen(AttributeGoal.java:112)
at com.oracle.determinations.interview.engine.local.LocalInterviewSession.getNextScreen(LocalInterviewSession.java:222)
at com.oracle.determinations.web.platform.controller.actions.InvestigateAction.getResource(InvestigateAction.java:65)
at com.oracle.determinations.web.platform.servlet.WebDeterminationsServlet.doGet(WebDeterminationsServlet.java:112)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.oracle.determinations.web.platform.util.CharsetFilter.doFilter(CharsetFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Thanks,
VinayVinay,
When working in an Interview Engine event handler, you need to use Interview Engine objects to set values. Have a look at the example "Use the OnInterviewSessionCreatedEvent to pre-seed data into a newly created session" in the "Oracle Policy Automation Developer's Guide"
Your code should look something like:
// get the globalInstance from a new InterviewUserData;
InterviewUserData data = new InterviewUserData();
InterviewEntityInstance globalInstance = data.getGlobalInstance();
// set the test_start_time
Date start_date = new Date();
globalInstance.setValue("test_start_time", start_date );
// submit the data to the Interview session.
TransactionResult result = session.submit(data);
Hope this helps.
Cheers
Frank -
Hi,
How do I set the 'initial value' property of a default value using an SQL statement?
Any help appreciated,
RobHi Kevin,
you are right. It is sometimes confusing for the users, but it is - as you said - like setting the initial value, of course you can do some more complexity there.
One big problem is. If you want to set the initial values in a detail record of a master-detail relatioship depending on the master-record, you CAN'T use it. If you change the master record to a record which doesn't have a detail, the WHEN-CREATE-RECORD trigger fires before the master-record really changes. That means, the detail will be initialized with data from the old master-record (the one you were in, before changing the master record). Stupid thing.
I never tried the WHEN-DATABASE-RECORD trigger, I even don't know how it works. I think I have to check what it is doing.
Regards,
Torsten -
How to Set Field value using javascript?
I have a Field in First Page called 'SO'. I want to populate this field from the field value of SD_ITEMS.DATA.VBELN first row in the each page. Please help me with javascript to set this value.
Thank you.
RanjiI have a Field in First Page called 'SO'. I want to populate this field from the field value of SD_ITEMS.DATA.VBELN first row in the each page. Please help me with javascript to set this value.
Thank you.
Ranji -
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,
ShaillyHi 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 -
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 picsi 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. -
Crystal Report - Set Parameter Value - Case sensitive
Hi,<br><br>
We are using Crystal report 2008 CR4E API to implement the crystal report in our application. When we use parameter report with different cases, the code is not setting values for all the parameter fields in the report. Kindly help us in achieving the solution.
<br><br>
In Report, SQL Command is used and a parameter is passed to the SQL. The name of the parameter is given uppercase but in the SQL Command it is given in lowercase. The report still pass the parameter to the query and it is running fine in designer.
But in our application it throws the below exception. If the parameters are defined in same case then it works fine.
<br><br>
Code:<br><br>
reportClientDocument = new ReportClientDocument();<br>
reportClientDocument.setReportAppServer(ReportClientDocument.inprocConnectionString);<br>
reportClientDocument.open(reportName, OpenReportOptions._openAsReadOnly);<br>
DatabaseController dbController = reportClientDocument.getDatabaseController();<br>
Tables tables = dbController.getDatabase().getTables();<br>
ITable table = tables.getTable(0);<br>
IProcedure command = (IProcedure)table;<br>
ParameterFieldController paramController = reportClientDocument.getDataDefController().getParameterFieldController();<br>
for (int i=0; i< command.getParameters().size(); i++) {<br>
ParameterField commandParam = (ParameterField) command.getParameters().get(i); <br>
String paramName = commandParam.getName();<br>
String paramValue = getParmeterValues(paramName);<br>
paramController.setCurrentValue("", paramName, Integer.valueOf(paramValue)); <br>
}<br>
<br><br>
Exception:<br>
<br>Assertion Failed:
<br>java.lang.Throwable
<br> at com.crystaldecisions.reports.common.asserts.CrystalAssert.ASSERT(Unknown Source)
<br> at com.crystaldecisions.reports.common.asserts.CrystalAssert.ASSERT(Unknown Source)
<br> at com.crystaldecisions.reports.queryengine.Connection.a(SourceFile:2558)
<br> at com.crystaldecisions.reports.queryengine.Connection.a(SourceFile:645)
<br> at com.crystaldecisions.reports.queryengine.Table.a(SourceFile:2234)
<br> at com.crystaldecisions.reports.queryengine.Table.if(SourceFile:2161)
<br> at com.crystaldecisions.reports.queryengine.Table.for(SourceFile:709)
<br> at com.crystaldecisions.reports.queryengine.b.yk(SourceFile:512)
<br> at com.crystaldecisions.reports.queryengine.b.yl(SourceFile:878)
<br> at com.crystaldecisions.reports.queryengine.QueryInfo.vE(SourceFile:241)
<br> at com.crystaldecisions.reports.datafoundation.DFQuery.for(SourceFile:628)
<br> at com.crystaldecisions.reports.datalayer.a.do(SourceFile:1621)
<br> at com.crystaldecisions.reports.datalayer.a.a(SourceFile:1404)
<br> at com.crystaldecisions.reports.dataengine.m.b(SourceFile:334)
<br> at com.crystaldecisions.reports.dataengine.j.b(SourceFile:515)
<br> at com.crystaldecisions.reports.dataengine.m.o(SourceFile:408)
<br> at com.crystaldecisions.reports.dataengine.m.a(SourceFile:173)
<br> at com.crystaldecisions.reports.dataengine.ContextNode.a(SourceFile:114)
<br> at com.crystaldecisions.reports.dataengine.ContextNode.a(SourceFile:95)
<br> at com.crystaldecisions.reports.dataengine.j.case(SourceFile:1080)
<br> at com.crystaldecisions.reports.dataengine.h.<init>(SourceFile:108)
<br> at com.crystaldecisions.reports.dataengine.DataContext.a(SourceFile:254)
<br> at com.crystaldecisions.reports.dataengine.DataProcessor2.a(SourceFile:4660)
<br> at com.crystaldecisions.reports.dataengine.DataProcessor2.a(SourceFile:4574)
<br> at com.crystaldecisions.reports.dataengine.DataProcessor2.new(SourceFile:2652)
<br> at com.crystaldecisions.reports.dataengine.DataProcessor2.byte(SourceFile:2610)
<br> at com.crystaldecisions.reports.dataengine.DataProcessor2.try(SourceFile:2282)
<br> at com.crystaldecisions.reports.dataengine.DataProcessor2.int(SourceFile:2442)
<br> at com.crystaldecisions.reports.dataengine.DataProcessor2.I(SourceFile:1013)
<br> at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.fo(SourceFile:526)
<br> at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.if(SourceFile:613)
<br> at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.a(SourceFile:578)
<br> at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.X(SourceFile:387)
<br> at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.moveToPageN(SourceFile:339)
<br> at com.crystaldecisions.reports.formatter.export2.a.a(SourceFile:78)
<br> at com.crystaldecisions.reports.formatter.export2.a.a(SourceFile:247)
<br> at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.if(SourceFile:642)
<br> at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.a(SourceFile:586)
<br> at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(SourceFile:636)
<br> at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.int(SourceFile:672)
<br> at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1944)
<br> at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)
<br> at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)
<br> at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)
<br> at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527)
<br> at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
<br> at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:525)
<br> at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:424)
<br> at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:352)
<br> at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)
<br> at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)
<br> at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)
<br> at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)
<br> at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)
<br> at com.crystaldecisions.sdk.occa.report.application.ds.a(SourceFile:186)
<br> at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:1558)
<br> at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:337)
<br> at com.crystaldecisions.sdk.occa.report.application.ReportSource.export(SourceFile:286)
<br> at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(SourceFile:209)
<br> at com.mysystems.myapp.common.CrystelReport.print(CrystelReport.java:387)
<br> at com.ibm._jsp._ShowReport._jspService(_ShowReport.java:316)
<br> at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87)
<br> at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
<br> at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146)
<br> at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1087)
<br> at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
<br> at com.mysystems.myapp.common.MyServletFilter.doFilter(MyServletFilter.java:107)
<br> at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
<br> at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
<br> at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
<br> at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:837)
<br> at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:680)
<br> at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:588)
<br> at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:481)
<br> at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122)
<br> at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:232)
<br> at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
<br> at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:748)
<br> at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1466)
<br> at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:122)
<br> at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
<br> at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
<br> at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
<br> at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
<br> at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
<br> at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
<br> at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
<br> at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
<br> at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
<br> at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
<br> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)
<br>Rowset restart: moveToStart true
<br>Rowset execute
<br>Executing query using command text:
<br>Select DeptName from Dept where DeptNo = {?deptno}
<br>
<br>detected an exception: Unexpected database connector error
<br>...
<br>Caused by: com.crystaldecisions.reports.common.QueryEngineException: Unexpected database connector error
<br> at com.crystaldecisions.reports.queryengine.Connection.bf(SourceFile:2958)
<br> at com.crystaldecisions.reports.queryengine.Rowset.z3(SourceFile:944)
<br> at com.crystaldecisions.reports.queryengine.Rowset.bL(SourceFile:533)
<br> at com.crystaldecisions.reports.queryengine.Rowset.zM(SourceFile:245)
<br> at com.crystaldecisions.reports.queryengine.Connection.a(SourceFile:776)
<br> at com.crystaldecisions.reports.queryengine.Table.a(SourceFile:2234)
<br> at com.crystaldecisions.reports.queryengine.Table.if(SourceFile:2161)
<br> at com.crystaldecisions.reports.queryengine.Table.for(SourceFile:709)
<br> at com.crystaldecisions.reports.queryengine.b.yk(SourceFile:512)
<br> at com.crystaldecisions.reports.queryengine.b.yl(SourceFile:878)
<br> at com.crystaldecisions.reports.queryengine.QueryInfo.vE(SourceFile:241)
<br> at com.crystaldecisions.reports.datafoundation.DFQuery.for(SourceFile:628)
<br> at com.crystaldecisions.reports.datalayer.a.do(SourceFile:1621)
<br> at com.crystaldecisions.reports.datalayer.a.a(SourceFile:1404)
<br> at com.crystaldecisions.reports.dataengine.m.b(SourceFile:334)
<br> at com.crystaldecisions.reports.dataengine.j.b(SourceFile:515)
<br> at com.crystaldecisions.reports.dataengine.m.o(SourceFile:408)
<br> at com.crystaldecisions.reports.dataengine.m.a(SourceFile:173)
<br> at com.crystaldecisions.reports.dataengine.ContextNode.a(SourceFile:114)
<br> at com.crystaldecisions.reports.dataengine.ContextNode.a(SourceFile:95)
<br> at com.crystaldecisions.reports.dataengine.j.case(SourceFile:1080)
<br> at com.crystaldecisions.reports.dataengine.h.<init>(SourceFile:108)
<br> at com.crystaldecisions.reports.dataengine.DataContext.a(SourceFile:254)
<br> at com.crystaldecisions.reports.dataengine.DataProcessor2.a(SourceFile:4660)
<br> at com.crystaldecisions.reports.dataengine.DataProcessor2.a(SourceFile:4574)
<br> at com.crystaldecisions.reports.dataengine.DataProcessor2.new(SourceFile:2652)
<br> at com.crystaldecisions.reports.dataengine.DataProcessor2.byte(SourceFile:2610)
<br> at com.crystaldecisions.reports.dataengine.DataProcessor2.try(SourceFile:2282)
<br> at com.crystaldecisions.reports.dataengine.DataProcessor2.int(SourceFile:2442)
<br> at com.crystaldecisions.reports.dataengine.DataProcessor2.I(SourceFile:1013)
<br> at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.fo(SourceFile:526)
<br> at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.if(SourceFile:613)
<br> at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.a(SourceFile:578)
<br> at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.X(SourceFile:387)
<br> at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.moveToPageN(SourceFile:339)
<br> at com.crystaldecisions.reports.formatter.export2.a.a(SourceFile:78)
<br> at com.crystaldecisions.reports.formatter.export2.a.a(SourceFile:247)
<br> at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.if(SourceFile:642)
<br> at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.a(SourceFile:586)
<br> at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(SourceFile:636)
<br> at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.int(SourceFile:672)
<br> at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1944)
<br> at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)
<br> ... 49 more
<br>Caused by: com.businessobjects.reports.jdbinterface.common.DBException: Unexpected database connector error
<br> at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCQueryDefinition.Execute(Unknown Source)
<br> at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCQueryDefinition.Execute(Unknown Source)
<br> at com.crystaldecisions.reports.queryengine.Connection.bf(SourceFile:2953)
<br> ... 91 more
<br>Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near '?'.
<br> at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Unknown Source)
<br> at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(Unknown Source)
<br> at com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteStatement(Unknown Source)
<br> at com.microsoft.sqlserver.jdbc.SQLServerStatement$StmtExecCmd.doExecute(Unknown Source)
<br> at com.microsoft.sqlserver.jdbc.TDSCommand.execute(Unknown Source)
<br> at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(Unknown Source)
<br> at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(Unknown Source)
<br> at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(Unknown Source)
<br> at com.microsoft.sqlserver.jdbc.SQLServerStatement.execute(Unknown Source)
<br> at com.mysystems.myapp.connection.StatementImplementaion.execute(StatementImplementaion.java:269)
<br> ... 94 moreHi,
Can some one please help with the solution -
SSRS Report date parameter values using SSAS Cube as datasource
Hey Guys,
i m building an SSRS report using SSAS cube as the data source. The report contains shared data-sets which provide the required data. below is the set up.
Sql server version : Sql server 2008R2
Report builder 3.0
I have, Report A, powered by Dataset D, running on Cube C. The dataset has 3 parameters out of which one of them is a date parameter- P1. I have it set up such that on the report there is another parameter - P2 which contains the type as Date ( to
ensure the user is exposed to a date picker), the input from this, P2 is then manipulated to required format before fed into the dataset parameter P1 (hidden). I have two questions regarding this parameter.
Currently, when the user pick's a date (P2) which has no values, the report errors out as it doesn't find that corresponding member on the cube. Can it be made such that if the member doesn't exists, a simple error message like "date not found"
pops up as opposed to report failing?
Secondly, can i manipulate the date picker (P2) exposed to the user such that the unavailable dates are grey'ed out on the date parameter (P2)?
Please let me know if there is any more info required on each of the questions.
Thanks
SrikanthHello Katherine,
below are the errors which pop up with the 'Constrained' function in place and without. The MDX query is what follows.
Without:
An Error has occurred during report processing. (rsProcessingAborted). The Execution Failed for the shared data set “Dataset1”.(rsDataSetExecutionError). Query Execution failed for dataset ‘DataSet1’. (rsErrorExecutingCommand). The dimension ‘[10 Sep 2014]’
was not found in the cube when the string, [10 Sep 2014], was parsed.
With Constrained flag:
An Error has occurred during report processing. (rsProcessingAborted). The Execution Failed for the shared data set “Dataset1”.(rsDataSetExecutionError). Query Execution failed for dataset ‘DataSet1’. (rsErrorExecutingCommand). Query(1,1476) The restrictions
imposed by the CONSTRAINED flag in the STRTOSET function were violated.
SELECT
NON EMPTY
[Measures].[A]
,[Measures].[B]
,[Measures].[C]
,[Measures].[D]
,[Measures].[E]
} ON COLUMNS
,NON EMPTY
[DimA].[LevelA].[LevelA].ALLMEMBERS*
[DimB].[LevelB].[LevelB].ALLMEMBERS*
[Date].[Date].[Date].ALLMEMBERS
DIMENSION PROPERTIES
MEMBER_CAPTION
,MEMBER_UNIQUE_NAME
ON ROWS
FROM
SELECT
StrToSet (@FilterA ,CONSTRAINED) ON COLUMNS
FROM
SELECT
StrToSet(@Date, CONSTRAINED) ON COLUMNS
FROM [Cube1]
WHERE
[DimC].[Level1].&[Member1]
,[DimC].[Level2].&[Member1]
,[DimC].[Level3].&[Member1]
,[DimC].[Level4].&[Member1]
Thanks
Srikanth -
Setting default value using pl/sql
I am having trouble writing the correct syntax for either a pl/sql expression or function on the default value section for a checkbox item. I share the same form for showing data in edit mode and creating new records. When the instance is a new record, I want an item called P12_ACTIVE to be set to Y (yes).
I have tried several variations like:
begin
select distinct 'Y'
into :P12_ACTIVE
from VMS_PROSPECTING_ITEMS
where order_id != :P12_ORDER_ID;
end;
-OR-
declare defaultvalue varchar2(10);
begin
if not exists (select *
from VMS_PROSPECTING_ITEMS
where order_id = :P12_ORDER_ID) then
defaultvalue := 'Y' ;
end if;
return defaultvalue ;
end;
-OR-
as a pl/sql expression....
select distinct 'Y'
from VMS_PROSPECTING_ITEMS
where order_id != :P12_ORDER_ID;
end;
DawnThis is my LOV definition for the item:
STATIC: ;Y
If I put Y as the default value, then the check box is always marked, even when the record is one that was edited; therefore potentially changing the active status incorrectly. I would like one of my examples to work right. My second example throws this error:
Error ERR-9131 Error in PLSQL function body for item default code, item=P12_ACTIVE
ORA-06550: line 3, column 8: PLS-00204: function or pseudo-column 'EXISTS' may be used inside a SQL statement only ORA-06550: line 3, column 1: PL/SQL: Statement ignored. -
Set property values using javascript
How can I recreate this while using javascript?
<PARAM NAME="AllowSelection" VALUE="false">
I tried this...
document.Grid.setPropertyValue(AllowSelection,false);
but it did not work. Where is the documentation that would describe this in its entirety. Thank you in advance.Chip,
here is the Javascript for you.
document.iGrid.getGridObject().setAllowSelection(NEWVALUE);
Documentation you can find under the help Link in MII. You can also use the SAP MII Script Assistant
to see all supported methods .
Regards
Pedro
Maybe you are looking for
-
I up-graded my Firefox to Firefox 19, on my iMac, and when I went to log on to my work's e-mail, I found out that I was the target of Malaware/Depslear-B according to Sophos which I downloaded with the approval of my work IT guy. The problem is that
-
Screen too sensitive when scrolling--any solution?
My iPhone 3G screen is extremely sensitive when scrolling. The slightest touch will activate a website or open a unintended application. Is there anyway to decrease the sensitivity or another method of scrolling that will solve my problem? Thanks, Do
-
How do you get an exact color match?
I can paint the bumper of this car but I get a flat color instead of the shine that normally comes with a car, how do you do this?
-
Contrct renewal for service contract
Dear friends, We are doing service contract for our client.Now we would like to know that how to renew a expired service contract.It should other than follow up activity and T.code va46.
-
C++ Call to DLL made in LabVIEW Fails the second time it is called
I have an application where a C++ executive calls a LabVIEW DLL (a LabVIEW application built into a DLL). The executive calls and operates the DLL fine the first time (NT, the applications task manager shows LabVIEW runtime runs, then stops when the