Default values for parameters in Java API
I have a Crystal report formats with some input parameters set to default values. How do I retrieve them in the Crystal Java API?
Thanks,
Chandra Prakash
I normally do not look at this forum as about all I know about Java is that it comes out of the coffee machine in the kitchen...
But see if the following KBA will help, even though it is written specifically for .NET:
1202315 - How do I get a parameters default value's description via the NET SDK?
- Ludek
SCN Moderator
Similar Messages
-
Default values for static report parameters are not visible when scheduling
Hello
Crystal Reports 2008 Dev
Crystal Reports Server 2008
When I publish a report to the repository and then try to schedule that report, the default value that I have set for a static parameter in the report is not visible.
In the Parameters section of the Scheduling wizard this parameter is marked as [EMPTY]
However, when I View the report (right click and select View) from within Infoview, the parameter default value is visible
I have published in the following 3 ways:
Publishing Wizard
File > Save As > Enterprise from withing Crystal Reports Dev
CMC > Folders > Add > Crystal Reports
The results are the same for each method of publishing.
To try to eliminate any DB issues etc i have created a report that is not attached to a datasource.
This test report has one Static parameter.
I have set 3 values for its list: Entry A, Entry B, Entry C
Entry X is set as the parameter Default Value
The parameter is placed in the details section of the report
When the report is Viewed it will prompt for parameter entry, with the default value present
When I try to schedule the report is will not have an entry for its parameter
It seems to me that the default values for parameters should be retained from report design through to report schedule, especially when the default values are retained from report design to report View
Is this a config problem that i have ?
Can anyone help me with this ?
Best regards
Patrick Coote
Edited by: PATRICK COOTE on Oct 2, 2008 2:08 PM
Edited by: PATRICK COOTE on Oct 3, 2008 9:23 AMHi Robert
Thanks for the reply and apologies for not responding sooner.
What i have found is that if i use Publishing Wizard to upload reports it is then possible to set values for prompts during the last step of this process.
Although this is a bit clumsy, it is sufficient for now
Best regards
Patrick -
Dynamic default values in parameters
Hello,
anyone knows if it's possible to set dynamic values as default values for parameters in portal?
i am specially interested in the use the date we are in to pass it to a discoverer worksheet (month or year) via single parameter form or any other porlet that could perform it.
Many thanks.
Regards,
Daniel
PS
Is the second thread i create with this question cause i didnt receive any answer before and i am really interested in any solution or knowing that i cant perform it.no one have ever used a date parameter (for example, month) that need a default value, and set this default value as the month we are today?
maybe i didnt explain my problem properly before...
thanks for any help, i really need this because all the porlets in the portal i am creating are discoverer's reports that presented by month, year or day.
regards,
daniel -
Logical DB - passing values for parameters
Hi experts,
i writing program basing on logical DB. How can i pass default values for parameters, which are defined in a selection screen for this logical DB?
Thanks
Juzioin my program PNP is used. identify the selection screen fields. and then use it in initialization event,
report ztest.
tables: pernr.
initialization.
PNPPERNR-LOW = '12455'.
PNPPERNR-sign = 'I'.
PNPPERNR-option = 'EQ'.
append PNPPERNR.
PNPBEGDA = SY-DATUM. -
Search for a Multilingual value in MDM using JAVA API
Good day,
Could you kindly assist.
I am trying to search for a field in MDM, from Portal using JAVA API. I do retrieve the value in English, but the problem is when I am trying to retrieve it in other languages. Please see sample code:
private Search getSearch(MDMConnection mdmconnection,String value, TableId tableid){
Search search =null;
FieldSearchDimension fielddimension=null;
TextSearchConstraint textcontrain=null;
RepositorySchema reposchema =mdmconnection.reposchema;
if(value!=null)
search= new Search(tableid);
fielddimension=new FieldSearchDimension(reposchema.getFieldId("ATTR_VAL_ABBR","TEXT_VALUE"));
textcontrain=new TextSearchConstraint(value,TextSearchConstraint.EQUALS);
search.addSearchItem(fielddimension,textcontrain);
search.setComparisonOperator(Search.AND_OPERATOR);
return search;
Thank you in advance.
Regards,
SimniHi ,
Mdm- Multilingual value in MDM using JAVA API:
you can check the first point as its reagrdign youisue related pdf and soloutions for your question.
1. http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0e8aedc-cdfe-2c10-6d90-bea2994455c5?QuickLink=index&overridelayout=true
2. http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0e8aedc-cdfe-2c10-6d90-bea2994455c5?QuickLink=index&overridelayout=true
Hope this information helps you in solving the issue!!
Thanks&Regards
AswinChandraGirmaji -
What are the default values for the NetStream.multicast***** properties
I read the api document about NetStream.multicast**** properties, but found no default values were given. Will the default values be changed when FP10.1 release?? Or, the values are always changing at runtime?
I have a web-tv application, it broadcast some live videos created by my friends, I think that the latency and lag-time can be bigger in my app, I want to know the recommended default values for the multicast*** properties.
I think the multicastWindowDuration and liveDelay are the keys. And I am confused between NetStreammulticastWindowDuration and NetStream.bufferTime..they like the same...
Sorry for my poor english, Thanks.the publisher can set the multicast properties you listed to be the defaults for all of the subscribers of the stream. in addition, the publisher can select whether or not "push" mode is used by changing NetStream.multicastPushNeighborLimit. setting the limit to 0 disables push, setting it to non-zero enables push in the mesh, but only changes the actual push neighbor limit for the publisher. if push is enabled for the stream, each peer will use push mode, but will start out with the global default limit (which is currently 4). this is for safety. we recommend you always leave push enabled.
each peer (including the publisher) can change the multicast stream parameters dynamically. changes are local to that peer.
for the publisher to set the initial parameters for the stream that all peers will inherit as the default, the parameters must be changed on a new NetStream *before* NetStream.publish() is called. example:
var ns:NetStream = new NetStream(netConnection, groupSpecification);
ns.multicastWindowDuration = 10; // change default for everybody
ns.publish("mystream");
ns.multicastWindowDuration = 15; // change window duration just for publisher, everybody else will start with 10 for this stream
each subscriber can override the multicast stream properties locally, but the overrides must be set on the NetStream *after* receiving a NetStream.MulticastStream.Reset NetStatusEvent.NET_STATUS event in order for the override to stick. overrides must be reapplied each time the NetStream.MulticastStream.Reset event is received. -
Modify default value for static parameter field programmatically
Hi,
I have my Crystal Reports stored in a BO Enterprise system. I have written a java programm that scans the repository, loads the CR reports one by one into a ReportClientDocument, modifies the data source and then stores the updated report back to repository (it overwrites the existing objects).
I was even able to modify the default values for the parameters, which are used for scheduling of each report.
But what I am trying to do know is to overwrite the default value used when invoking the report interactively. This should be the value found under the Default Value field, when the Properties window of the parameter is opened in the CR designer.
This is what I have tried so far:
Option 1: First I tried to set the default values using com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.getDataDefinition().getParameterFieldController().getField(...).getDefaultValues() . The only thing I have managed to do using this approach is to modify the static LOVs that are associated to static parameters. The actual selected value (shown under Default Value in the Properties window for the given parameter field) remained unchanged, when invoking the report in the InfoView or opening it in the CR designer.
Option 2: I have used com.crystaldecisions.sdk.plugin.desktop.report.IReport.getReportParameters().get(ik).getDefaultValues() to change the default values. I was able to see my changes in the BO repository (using a query on CI_INFOOBJECTS), still the changes did not really have an impact to what is displayed as default value when invoking the report in the InfoView.
Any help will be appreciated.
It would be great to know if someone of you has already implemented successfully such a use-case.
Regards,
Stratos
Edited by: Efstratios Karaivazoglou on Dec 9, 2009 8:52 AM
Edited by: Efstratios Karaivazoglou on Dec 15, 2009 11:33 PMHi,
For Crystal Design related queries, close this thread and start the thread in the [SAP Crystal Reports Design forums|http://forums.sdn.sap.com/forum.jspa?forumID=300&start=0]
- Bhushan -
I need to pass null as a default value for a parameter in Before Trigger
Hi All,
I am using Before trigger function in calculation tab which has some set of parameters.So, I accept some parameters which are passed to this Before Trigger function and need these parameters default value as null.
To be clear I want to set the Default value for a parameter in workbook to be NULL and pass the same to the calling Function.
please help me.
Thanks in advanceHi All,
I am using Before trigger function in calculation tab which has some set of parameters.So, I accept some parameters which are passed to this Before Trigger function and need these parameters default value as null.
To be clear I want to set the Default value for a parameter in workbook to be NULL and pass the same to the calling Function.
please help me.
Thanks in advance -
Default value for variable are not within permitted value range (precalc)
Hello BW community
Issue:
I have created a variable (Characteristic Value/ Manual input-default value) and use the precalculated value set (details-basic settings). In the further variable definition I could select the precalculated value set in 'Default values', which I have defined beforehand in the broadcaster..
The precalculated value set in the broadcaster settings is just based on a master data query on 0CUSTOMER.
Error:
The variable gets the error E991/R9E Errors: Default values for variable 'XXX' are not within permitted value range.
The detail description of the error is: You defined default values for variable 'Sold-to party precalc value set for manuel input' that are not appropriate for the variable type; for example, a range is defined as a default value for a variable that only permits a single value.
So please has someone had the same issue and found out how to solve it? It would be excelent to get good solution for this issue.
Best regards and thanks
Christian
PS-1: System BW 701 / SAPKW70105
PS-2 : there has been a SDN entry with the same topic but not resolved too.
link: /thread/980839 [original link is broken]Hello,
Thanks for your response.
I should have mentioned that in my post. I tried this very first time. I thought that this is the place where you provide default value. But I got following exception at that time, so I thought, may be this is used for something else.
<LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
javax.faces.FacesException: javax.servlet.ServletException: OracleJSP error:
oracle.jbo.NameClashException: JBO-25001: Object viewAllInd of type Control Binding Definition already exists.
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:415)Do I need handle something else when you put the default value?
Thanks,
Jai -
Default value for attribute "COUNTRY" in BP_HEAD_SEARCH/MainSearch
Hi Gurus,
Requirement is to set default value for attribute "COUNTRY" in BP_HEAD_SEARCH/MainSearch when user clicks on Corporate Account.
Below is code that i have written in DO_PREPARE_OUTPUT.
Code is working fine and in the debug also i can see the value of COUNTRY is set to DE, but it is not showing on the screen for first time but when i load component second time(Refresh the screen), it shows me value.
Any help would be appreciated. If somebody has otheralternative kindly share.
CALL METHOD super->do_prepare_output( iv_first_time = iv_first_time ).
Calling Super Method
CALL METHOD super->do_prepare_output
EXPORTING
iv_first_time = abap_true.
Data Declatation
DATA :lr_col TYPE REF TO if_bol_bo_col,
lr_current TYPE REF TO if_bol_bo_property_access,
lr_param TYPE REF TO if_bol_bo_property_access,
lr_qs TYPE REF TO cl_crm_bol_dquery_service,
lv_attr_name TYPE name_komp,
lv_sign TYPE bapisign,
lv_option TYPE bapioption,
w_country_exist TYPE c,
w_param TYPE string,
w_value TYPE string,
w_flag TYPE c.
Getting SEARCH Context Node
lr_qs ?= me->typed_context->search->collection_wrapper->get_current( ).
Get Selection Parameters
lr_col ?= lr_qs->get_selection_params( ).
Start from first parmaters
lr_current = lr_col->get_first( ).
Clearing Variables
CLEAR : w_country_exist, w_flag, w_param, w_value.
Loop till we have selection paramters
WHILE lr_current IS BOUND. " While loop 1
checking attribute name is COUNTRY then setting some variable
w_param = lr_current->get_property_as_string( 'ATTR_NAME' ).
CASE w_param.
WHEN 'COUNTRY'.
If country is filled then setting variable
w_value = lr_current->get_property_as_string( 'LOW' ).
IF w_value IS NOT INITIAL.
w_country_exist = abap_true.
ENDIF.
When we got COUNTRY attribute then setting flag
w_flag = abap_true.
ENDCASE.
Calling next parameter
lr_current = lr_col->get_next( ).
ENDWHILE. " While loop 1
In below block we are checking is COUNTRY attribute is blank and
we have found COUNTRY attribute in current selection paramters
IF lr_qs IS BOUND. " SEACRCH CONTEXT BOUND
If vairable is blank means DE or any other value is not filled in COUNTRY Attribute
IF w_country_exist IS INITIAL. " w_contry_exist
We have to add selection attribute if we come accross COUNTRY attribute during our search
IF w_flag EQ abap_true. " w_flag
Adding COUNTRY attribute with default value 'DE'
lr_qs->add_selection_param( EXPORTING iv_attr_name = 'COUNTRY'
iv_sign = 'I'
iv_option = 'EQ'
iv_low = 'DE' ).
ENDIF. " w_flag
ENDIF. " w_contry_exist
ENDIF. " SEACRCH CONTEXT BOUND
In below block we will remove COUNTRY attribute when it has blank value
IF lr_qs IS BOUND AND w_country_exist IS INITIAL.
lr_current = lr_col->get_first( ).
WHILE lr_current IS BOUND.
w_param = lr_current->get_property_as_string( 'ATTR_NAME' ).
CASE w_param.
WHEN 'COUNTRY'.
w_value = lr_current->get_property_as_string( 'LOW' ).
IF w_value IS INITIAL.
lr_col->remove( iv_bo = lr_current ).
ENDIF.
ENDCASE.
lr_current = lr_col->get_next( ).
ENDWHILE.
ENDIF.
Edited by: Harsharandeep Singh on Apr 28, 2011 3:44 PMHi,
Try it like this:
DATA:
lr_bo TYPE REF TO if_bol_bo_property_access ,
lv_attr_name TYPE name_komp.
FIELD-SYMBOLS:
<ls_param> TYPE crms_thtmlb_search_criterion.
READ TABLE parameters
ASSIGNING <ls_param>
WITH KEY field = 'COUNTRY'.
IF ( sy-subrc = 0 ).
<ls_param>-value1 = ip_pfct.
ENDIF.
CHECK ( me->parameter_collection IS NOT INITIAL ).
lr_bo = me->parameter_collection->get_first( ).
WHILE lr_bo IS BOUND.
CALL METHOD lr_bo->get_property_as_value
EXPORTING
iv_attr_name = 'ATTR_NAME'
IMPORTING
ev_result = lv_attr_name.
IF lv_attr_name EQ 'COUNTRY' .
CALL METHOD lr_bo->set_property
EXPORTING
iv_attr_name = 'LOW'
iv_value = 'DE'.
EXIT.
ELSE.
lr_bo = me->parameter_collection->get_next( ) .
ENDIF.
ENDWHILE .
Kind regards,
Micha -
Set default value for parameter fields
Good day!
Situation:
1. I have 2 parameter fields in reports (dateFrom and dateTo)
2. Before running report in ASP.NET I change value this fields (dateTo = today, dateFrom = today - 3 days)
3.I use for this source:
foreach (ParameterField crParam in CrystalReportSource1.ReportDocument.ParameterFields)
CrystalDecisions.Web.Parameter crParametr = new CrystalDecisions.Web.Parameter();
string ParametrName = crParam.Name;
crParametr.Name = ParametrName;
crParametr.DefaultValue = ActionReportParameter.GetParametrValue(ReportName, ParametrName);
CrystalReportSource1.Report.Parameters.Add(crParametr);
4. And repurt run without request value parameter fields.
5. BUT!!! now I need request value parameter fields before report start running - I want set default values for filelds and offer user change its before report start run.
How do this?
ThanksI believe you need to create your own parameter promt screen. Capture what the user entered and pass that to the report(?).
slv -
Set default value for date/time to previous month
Hi All
I have two date/time parameters in my report and I want to set the default value for both the parameters
For start date parameter I want the first date of previous month and for end date parameter I want the last date of previous month.
Can someone please point me to the right direction
Thanks
RoneHi Rone,
These links can be helpful for you:
http://www.bidn.com/blogs/hardikabhavsar/bidn-blog/1639/default-date-parameters-in-ssrs
http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/584a98ae-bb75-4740-9198-e6be3c1aec12/
Regards,
Manoj
*Happy to help
http://experiencingmsbi.blogspot.com/ -
Default values for standard WebDynpro application
Hi all,
We are using standard WebDynpro applications (as an example Leave Request as part of ESS).
Are there any functionalities in a standard WebDynpro to set a specific field initially (default value for a dropdown list for example) via the url?
To be more concrete:
On a specific portal page I would like to call the Leave Request application with the Leave Type set to the parameter I passed via this url (e.g. http://mywasserver:50000/webdynpro/dispatcher/sap.com/ess~lea/leaveRequest&leavetype=Exceptional%20Leave)
Any thoughts are welcome.
Regards,
NoelAt the default inplug of your interface view create a parameter that you need to access for e.g LeaveType in this case.
The variable will recieve the value automatically from the url.
Set the value in the context variable of the component controller and then access it from the view.
Hope this link would be helpful
Re: Can we pass parameters in querystring of the webdynpro application?
Message was edited by: Noufal Kareem -
Default values for executeWithParams
ADF 11g
I have a VO with a query :
Select toto
From aTable
Where aDate between :pFrom and :pTo
I've create a page view using the parameters from ExecuteWithParams
The page has two af:inputDates bound to #{bindings.pFrom.inputValue} and #{bindings.pTo.inputValue}
and a button bound to #{bindings.ExecuteWithParams.execute}.
I can input two dates and the query is executed as expected.
However I can't find how to set a default value for the 2 af:inputDate components.
I would like to set the them to the first and last date of the current year.
Anybody got any ideas ?
Regards
PaulYou may do this by setting a default value on your variable definitions in the page definition file.
-
Using the currentdate as default value for a DateField
I read the chapter about DataBinding to fill a textField with a default value; for example the currentdate.
I don't know how to exactly do this....
I can create a java class that returns the currentdate but I miss how to connect it to the textField.
MarcelHi,
Here's the uiXML
<dataScope xmlns="http://xmlns.oracle.com/uix/ui"
xmlns:data="http://xmlns.oracle.com/uix/ui">
<provider>
<data name="currentDate">
<method class="oracle.cabo.doc.demo.DataDemo" method="getCurrentDate"/>
</data>
</provider>
<contents>
<text data:text="time@currentDate"/>
</contents>
</dataScope>
Thanks,
Gabrielle
Maybe you are looking for
-
Mac desktop running OSX, I inserted an old dvd to see what was on it - drive just keeps running - nothing opens and nothing appears on desktop - can't eject the darn thing??????? Help
-
Setting a new default UI object as early as possible
Hi everyone! I've made a custom progress bar UI class that extends BasicProgressBarUI. I know I can change the UI of a progress bar simply by invoking progressBar.setUI(). However, I'm thinking this is a waste of processing time as the environment ha
-
Displaying thumbnail of FLV video (not 1st frame)
Hello! I have created FLV files through Premiere which I imported into Dreamweaver and from there insert media Flash Video. I followed the options of what kinds of player disply to use, but there's no options for creating a thumbnail of the video. Th
-
If you google "OS Lion isync" you will see articles about how the brand new "Lion" mac operating system has deleted the iSync feature that I used to sync my 6700 slide to the calendars on my mac. that is a drag -- because Nokia had provided an iSync
-
I've been searching the net for an answer all day, but can't work it out. I'm trying to create a video with frame-output 288x364. When I save it, I get the correct size of frame, but the video is only shown i the middle of the frame - like it dosn't