How to use Dynamic cascading parameter in crystal Report XI ?
Hi,
I want to use Dynamic cascading parameter in crystal Report XI which is to be viewed through the infoview without using the Business View.Is it possible?
I could implemented Dynamic cascading parameter using the CR XI developer without using Business View, but cannot view the report when uploaded it to BOXI, through infoview.
Please suggest..
Thanks in advance..
Rajneesh
In the crystal reports field explorer>right click on parameter field>create new-->name the parameter field and select the type as dynamic. Now in the value field click the row and add the database field also add another field below that by clicking on the next row so..on. The order should be like this parent field first and then child field next...... Also click on the last column to add parmater for each level.
Regards,
Raghavendra
Similar Messages
-
How to use list box parameter in crystal Reports
Hi Experts,
How to acheive list box parameter in sap B1 crystal reports.
Regards
VinothHi,
check this thread
Crystal Report Drop Down Selection List
Drop down list parameter
https://scn.sap.com/thread/1782598 -
How to use a connection ODBC in crystal reports viewer?
Hi Guys!
I need to know if for update a report in crystal reports viewer, is necessary, have a connection SAP Business Objects Business Intelligence. How to use a connection ODBC in crystal reports viewer?Hi Guys!
I need to know if for update a report in crystal reports viewer, is necessary, have a connection SAP Business Objects Business Intelligence. How to use a connection ODBC in crystal reports viewer? -
How to use drill down option in Crystal Report
Dear all,
I want to know how to use drill down option in Crystal report 2008. In below i have explained my screnario
For example
My scenario is. In crystal report I have Purchase order like PO101,PO102. Each purchase order have 5 line items. If i drill down each purchase order it should display line item in crystal report.
Regards,
Baskaran.hi,
Create a Group on 'Purchase order'.
Group Expert -> Select the Purchase Order and Click the arrow button such that it appears right side. Click ok.
GH1 is inserted.
Your detail section should include 'Line items' fields.
Right Click 'Detail' section on left hand side, Click 'Hide (Drill down Ok)'.
Now you will see only 'Purchase order's in Group Headers.
Now when you click on a particular order, you will see respective line items.
Regards,
Vamsee -
How to use the region parameter of main report for subreport chart titles?
I am using Crystal Reports 11.
I create 1 main report with 10 sub-reports that contain cross-tabs & charts. The main report has a parameter regarding 3 different areas: region1, region2, and region3.
I use the method of adding the u2018regionu2019 parameter of main report to the selection formula of the sub-reports. So, I can select 'region' from main report to controll outputs in sub-reports by region.
I use formulas for chart titles, e.g.:
Select {Product Code}
Case 'a111':
u2018Region1 u2013 a111 Counts'
Case u2018b222u2019:
u2018Region1 u2013 b222 Counts'
u2026
u2026
Default:
u2026
Since I pass the u2018regionu2019 parameter of main report to sub-reports, I have to change chart titles dynamically based on the region I select.
How can I use the region parameter from main report in the formulas to get chart titles dynamically?
Thank you in advance.Thank you.
I am not using Chart Title with "Chart Expert".
I am using a formula for chart titles, e.g.:
Select {Product Code}
Case 'a111':
u2018Region1 u2013 a111 Counts'
Case u2018b222u2019:
u2018Region1 u2013 b222 Counts'
u2026
u2026
Default:
u2026
I drag this formula above the charts and it looks like a dynamic title. So, for product a111, the chart title would be "Region1 u2013 a111 Counts"; for product b222, the chart title would be "Region1 u2013 b222" Counts; and so on ...
Because I pass the region parameter from master report to subreport, I want to change the region part of the chart titles dynamically.
For example,
when select Region1, the chart titles should be: "Region1 u2013 a111 Counts"; "Region1 u2013 b222"; ...
when select Region2, the chart titles should be: "Region2 u2013 a111 Counts"; "Region2 u2013 b222"; ...
I want to add the region parameter into the tiltle formula.
How should I do? -
Need to use DocNum as parameter in Crystal report
Dear All,
I am developing a report for our customer now. It is a invoice report. We need 2 parameters
1) Customer code (drop-down list. can only choose one each time)
Here is my token
Customer@ SELECT CardCode, CardName FROM OCRD WHERE CardType = 'C' ORDER BY CardCode
2) Then we need another parameter to display all invoice number for the specific customer. How can I create the parameter here?
Thanks in advance.
Regards,
YukaYou create two parameters in Crystal Reports. Try these
One for Cusomer (Customer@Select CardName from OCRD where CardType='C') - This would be String, Dynamic
One for DocNum - Type :Number , Static
Import the crystal report using Report Layout Manager to the app menu.
Then navigate to the patch and click on the report, when the report loads you should see a dropdown list for Customer Name and the DocNum will be blank.
Click on View-->System Information and findout field info
create a query : Select DocNum,CardCode,CardName,DocTotal,DocDueDate from OINV where CardCode=$[TableName.Field] -
How to use JavaBeans as Datasource for Crystal Report 10?
I have tried to use Crystal Report 10 with Java Beans as Data Source.
I read
http://support.businessobjects.com/communityCS/TechnicalPapers/cr10_java_bean_datasource.pdf
and followed all steps to use JavaBeans as a DataSource.
I have setup all registry entry requiered for it but still getting blank dialog box for Java Beans Connectivity classes?
If anyone have tried to use, then give suggestions.I have tried to use Crystal Report 10 with Java Beans as Data Source.
I read
http://support.businessobjects.com/communityCS/TechnicalPapers/cr10_java_bean_datasource.pdf
and followed all steps to use JavaBeans as a DataSource.
I have setup all registry entry requiered for it but still getting blank dialog box for Java Beans Connectivity classes?
If anyone have tried to use, then give suggestions. -
How to use dynamic internal table in interactive report syntax
pls let me know
Hi Aarif,
Go through the below code for better understanding:
*& Report ZDYN_INT_TABLE_02 *
REPORT ZDYN_INT_TABLE_02.
TYPE-POOLS: slis. " ALV Global types
SELECTION-SCREEN BEGIN OF BLOCK b1.
PARAMETERS : p_max(3) TYPE n OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b1.
TYPES: BEGIN OF wa_gt_data,
matnr TYPE mara-matnr,
END OF wa_gt_data.
DATA gt_data TYPE STANDARD TABLE OF wa_gt_data WITH HEADER LINE.
*INITIALIZATION.
v_1 = 'Maximum of records to read'.
START-OF-SELECTION.
PERFORM f_read_data.
PERFORM f_display_data.
Form f_read_data
FORM f_read_data.
SELECT matnr INTO TABLE gt_data
FROM mara
UP TO p_max ROWS.
ENDFORM. " F_READ_DATA
Form F_DISPLAY_DATA
FORM f_display_data.
DATA:
l_column TYPE sy-tabix,
lp_struct TYPE REF TO data,
lp_table TYPE REF TO data, " Pointer to dynamic table
ls_lvc_cat TYPE lvc_s_fcat,
lt_lvc_cat TYPE lvc_t_fcat, " Field catalog
lt_fcat TYPE slis_t_fieldcat_alv, " Field catalog
ls_fieldcat TYPE slis_fieldcat_alv,
lt_fieldcat TYPE slis_t_fieldcat_alv, " Field catalog
ls_layout TYPE slis_layout_alv.
FIELD-SYMBOLS :
<header> TYPE ANY,
<field_header> TYPE ANY,
<field_mara> TYPE ANY,
<lt_data> TYPE table. " Data to display
ls_lvc_cat-fieldname = 'COLUMNTEXT'.
ls_lvc_cat-ref_table = 'LVC_S_DETA'.
APPEND ls_lvc_cat TO lt_lvc_cat.
ls_fieldcat-fieldname = 'COLUMNTEXT'.
ls_fieldcat-ref_tabname = 'LVC_S_DETA'.
ls_fieldcat-key = 'X'.
APPEND ls_fieldcat TO lt_fieldcat.
DO p_max TIMES.
For each line, a column 'VALUEx' is created in the fieldcatalog
Build Fieldcatalog
WRITE sy-index TO ls_lvc_cat-fieldname LEFT-JUSTIFIED.
CONCATENATE 'VALUE' ls_lvc_cat-fieldname
INTO ls_lvc_cat-fieldname.
ls_lvc_cat-ref_field = 'VALUE'.
ls_lvc_cat-ref_table = 'LVC_S_DETA'.
APPEND ls_lvc_cat TO lt_lvc_cat.
Build Fieldcatalog
CLEAR ls_fieldcat.
ls_fieldcat-fieldname = ls_lvc_cat-fieldname.
ls_fieldcat-ref_fieldname = 'VALUE'.
ls_fieldcat-ref_tabname = 'LVC_S_DETA'.
APPEND ls_fieldcat TO lt_fieldcat.
ENDDO.
Create internal table
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = lt_lvc_cat
IMPORTING
ep_table = lp_table.
ASSIGN lp_table->* TO <lt_data>.
Create structure = structure of the internal table
CREATE DATA lp_struct LIKE LINE OF <lt_data>.
ASSIGN lp_struct->* TO <header>.
Create field catalog from dictionary structure
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'MARA'
CHANGING
ct_fieldcat = lt_fcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 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.
LOOP AT lt_fcat INTO ls_fieldcat WHERE fieldname = 'MATNR'.
ASSIGN COMPONENT 1 OF STRUCTURE <header> TO <field_header>.
IF sy-subrc NE 0. EXIT .ENDIF.
READ TABLE lt_fcat INTO ls_fieldcat INDEX sy-index.
<field_header> = ls_fieldcat-seltext_m.
IF <field_header> IS INITIAL.
<field_header> = ls_fieldcat-fieldname.
ENDIF.
LOOP AT gt_data.
l_column = sy-tabix + 1.
ASSIGN COMPONENT 1 OF STRUCTURE gt_data TO <field_mara>.
IF sy-subrc NE 0. EXIT .ENDIF.
ASSIGN COMPONENT l_column OF STRUCTURE <header> TO <field_header>.
IF sy-subrc NE 0. EXIT .ENDIF.
WRITE <field_mara> TO <field_header> LEFT-JUSTIFIED.
ENDLOOP.
APPEND <header> TO <lt_data>.
ENDLOOP.
ls_layout-colwidth_optimize = 'X'.
ls_layout-no_colhead = 'X'.
ls_layout-zebra = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
is_layout = ls_layout
it_fieldcat = lt_fieldcat
TABLES
t_outtab = <lt_data>.
ENDFORM. " F_DISPLAY_DATA
END OF PROGRAM Z_ALV_LIST_TRANSPOSED *********************
*Always reward point for helpful answers
Regards,
Amit -
How to use dynamic parameter when a report is created using Stored Procedures
Hi all,
any one have the idea of how to use dynamic parameter in crystal report XI R2
when report is created using Stored Procedure.
Regards
shashi kant chauhanHi
You can create an SQL command in Database Expert > Expand your datasource > Add command
Then enter the SQL query that will create the list of values to supply to the user
eg select field1,field2 from table
Then edit the parameter of the report. These will be the SP parameters adn can be seen in field explorer.
Change the parameter type to Dynamic
Under the word Value click on Click here to add item
Scroll down to your Command and select one of the values that you want to appear in the list
e.g field1
Then click on the Parameters field - this is essential to create the param
You can edit other options as required
That should do it for you.
I must say that i use CR 2008 connected to Oracle 10g SP, but i reckon this will work for SQL DB and CR XI as well
Best of luck -
How to use dynamic list box in survey builder?
Hello,
Could someone give me a little bit of thread? How to use dynamic list box in survey builder?Hi Liu,
Dynamic combo boxes::A combo box is dynamic if it references a document property for which a value set is defined in the configuration (System Administration ® System Configuration ® Content Management ® Global Services ® Property Metadata ® Properties ® Parameter Allowed Values).
At runtime (when you open the creation form) the system reads these values from the configuration and displays them in the dropdown list.
If you link a combo box for which list entries already exist to a document property with a value set, the system asks whether you want to delete the list entries. it is recommend that you accept this suggestion and delete the list entries from the XML Forms Builder. Otherwise inconsistencies could arise between the entries in the XML Forms Builder and the value set in the configuration. This can cause errors when saving.
Also you may Refer the Link for Further help:
http://help.sap.com/saphelp_crm50/helpdata/en/29/c40d3d2a83752de10000000a114084/frameset.htm
http://help.sap.com/saphelp_crm50/helpdata/en/00/9e7f41969e1809e10000000a155106/frameset.htm
http://help.sap.com/saphelp_crm50/helpdata/en/a7/5a874174a8050de10000000a1550b0/frameset.htm
Hope it Answers your Queries..
Thanks and Regards,
RK. -
Can anybody please send me a small program on How to Use Dynamic SQL.
How to execute and run give details.
Thanks
nullYou can certainly use the INTO (and USING) clauses of EXECUTE IMMEDIATE to pass in and return data, i.e.
EXECUTE IMMEDIATE sqlStmt
USING variable1, variable2
INTO output1, output2The more complex the statement, however, the more appropriate DBMS_SQL is. DBMS_SQL also has the potential to allow you to use bind variables rather than reparsing the statement many times.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
How to use the "out" parameter in idl
hello.idl:
module HelloApp
interface Hello
string sayHello();
void getPass(in string name,out string pass);
HelloServer:
public class HelloServer
class HelloServant extends _HelloImplBase
public void getPass(String name,org.omg.CORBA.StringHolder pass)
System.out.println("Server pass = " + pass);
if (name.equals("lxh"))
pass = new org.omg.CORBA.StringHolder("1234");
if (name.equals("cbj"))
pass = new org.omg.CORBA.StringHolder("5678");
HelloClient:
public class HelloClient
public static void main(String args[])
try{
org.omg.CORBA.StringHolder Pass = null;
if (args.length == 1)
System.out.println("Client pass = " + args[0]);
helloRef.getPass(args[0],Pass);
System.out.println(Pass);
} catch(Exception e) {
When I run client main method with parameter "lxh",I will get a error says the getPass() parameter which has given is wrong.
How to use the out parameter in client?Does this error only occurs if you pass "lxh" or always?
Did you try passing a StringHolder Object rather than a NULL Object?
Perhaps you can post the error message!? -
How to use a cascading LOV as a Web Services Consumer?
How to use a cascading LOV as a Web Services Consumer?
We are trying to populate a prompt programmatically.
Our program is a Web Services Consumer.
As an example we use Island Resorts Marketing
The cascading LOV for City is
Country -> Region -> City
The City object is key-aware to the customer table
The query is
Customer | Revenue
(where) City = [prompt]
In order to make the key-awareness work, we must select the value (rowIndex) from the LOV
When we run our program below, the LOV for City is not populated, as expected since we must first select the Country, then the Region.
The code snippet below shows that the LOV for Country is populated. We have no idea how to go from there.
Any hint will be immensely appreciated.
Let us know if anything is unclear in the code.
Source
RetrieveMustFillInfo retrieveMustFillInfo = RetrieveMustFillInfo.Factory.newInstance();
RetrievePromptsInfo retrievePromptInfo = RetrievePromptsInfo.Factory.newInstance();
retrievePromptInfo.setPromptLOVRetrievalMode(PromptLOVRetrievalMode.ALL);
retrievePromptInfo.setRefreshReturnedLOVs(true);
retrievePromptInfo.setReturnLOVOnMustFillPrompts(true);
retrieveMustFillInfo.setRetrievePromptsInfo(retrievePromptInfo);
// *-- need the "Refresh" action to get the .promptToBeFilled
Action[] boActions = new Action[1];
boActions[0] = Refresh.Factory.newInstance();
try {
documentInformation = reportEngine.getDocumentInformation(Integer.toString(infoObject.getID()), retrieveMustFillInfo, boActions, null, null);
m_Token = documentInformation.getDocumentReference();
} catch (Exception ex) {
System.out.println(GetWSError(ex));
return;
if (documentInformation.getMustFillPrompts()) {
PromptInfo[] promptInfoS = documentInformation.getPromptInfoArray();
for (PromptInfo promptInfo : promptInfoS) {
System.out.println(String.format("Prompt '%1$s', hasLOV=%2$s", promptInfo.getName(), (promptInfo.getHasLOV() ? "Yes" : "No")));
if (promptInfo.getHasLOV()) {
LOV boLOV = promptInfo.getLOV();
for (Value boLOVValue : boLOV.getValuesArray()) {
System.out.println(String.format(" LOV item '%1$s' RowIndex=%2$s", boLOVValue.getColumnsArray(0), (boLOV.getRowIndexed() ? boLOVValue.getRowIndex() : "")));
System.out.println("--End LOV");
PromptInfo[] promptInfoS2 = promptInfo.getPromptToBeFilledArray();
if (promptInfoS2.length > 0) {
PromptInfo promptInfo2 = promptInfoS2[0];
System.out.println(String.format(" linked to %1$s", promptInfo2.getName()));
if (promptInfo2.getHasLOV()) {
LOV boLOV2 = promptInfo2.getLOV();
for (Value boLOVValue : boLOV2.getValuesArray()) {
System.out.println(String.format(" LOV item '%1$s' RowIndex=%2$s", boLOVValue.getColumnsArray(0), (boLOV2.getRowIndexed() ? boLOVValue.getRowIndex() : "")));
System.out.println("--End LOV");
Result
Prompt 'Enter value(s) for City:', hasLOV=Yes
--End LOV
linked to Enter value for Country of origin
LOV item 'Australia' RowIndex=6
LOV item 'France' RowIndex=2
LOV item 'Germany' RowIndex=4
LOV item 'Holland' RowIndex=7
LOV item 'Japan' RowIndex=5
LOV item 'UK' RowIndex=3
LOV item 'US' RowIndex=1
--End LOVHi,
Refer SAP Note 1278947. You would require a Service Market Place logon to access this article.
Let me know if this helps.
Regards,
Shreyans Surana -
How to use the out parameter of a transformation
Hi All,
I have a requirement where I need to move all the transformations from process flows to map.SO for each transformation I need to have 1 map which calls this transformation.I have 1 transformation which has both input and output parameter.If I use this transformation in mapping then how to use the out parameter of thsi transformation.This out parameter needs to beused in other mappings.Can soemone please help me.
Thansk in advanceHi,
I'm not quite sure what you are trying to do.
What works: Connect the outgroup of a pre- or post-mapping process operator to the mapping output parameter operator..
What does not work: Connect the outgroup of an operator that can return more than one row (e.g. table operator, filter, joiner ,...) to the mapping output parameter operator. The mapping output parameter just returns "one row", like a pl/sql function call.
You cannot pass a "data stream" from one mapping to another. Maybe the pluggable mappings is what you are looking for.
Regards,
Carsten. -
How to use dynamic select query which queries from 3 different table.
Hi All,
I am new to Toplink, i would like to use a named query to select some of the columns from 3 different tables with dynamic where clause.
I have used the following lines. Please tell me how to get code for the dynamic where clause.
First try :
Vector objPersons = (Vector)session.executeQuery("findPersonByGlobalID",Person.class,vQueryArguments);
The above method is not returning the vector or collection.
Second Try:
ReadAllQuery query = new ReadAllQuery(Person.class);
query.useCollectionClass(LinkedList.class);
LinkedList person = (LinkedList) session.executeQuery(query);
The second try is returning the collection but, this fetches all the record from the table.
1. How to query for range of records?
2. How to query from multiple tables for some range. How to use dynamic range values ?
Please reply with your answers or some pointers would help.
Thanks and Regards,
Vijay.BHi,
Did you try using a SQLCall ? It might be able to satisfy you requirements .. :-
Employee employee = (Employee) session.executeSelectingCall(
new SQLCall("SELECT * FROM EMPLOYEE WHERE EMP_ID = 44")
);You can get more information here :-
http://www.oracle.com/technology/products/ias/toplink/doc/1013/MAIN/_html/qrybas004.htm
Regards,
Sandeep
Maybe you are looking for
-
How to link from another page directly to a photo within a Spry gallery?
I have created a page that has a photo gallery using Donald's tutorial to make a spry photo gallery. I have a need to link to a specific photo in that gallery from another page. I have seen the discussions on how to do this with tabbed panels etc.. b
-
License question for Flexbuilder 3
I am taking over on a small project and due to legacy purposes and customer requirements, we're still on Flexbuilder 3. The previous developer left me the Flexbuilder 3 licence key, but when I go to use that key, apparently it's only an upgrade key
-
Help!!! Mac doesn't recognize PC files
I was working on a PC and saved some files onto a mobile harddrive. While still working on the PC, I created some new folders on the mobile drive and organized the files a little bit. Then I unplugged the mobile drive safely and connected it to my ma
-
The keynote opened yesterday says it needs the newest version which is already installed
Please help. I have a big keynote to present today which I showed already yesterday, and today it tells me that I need a 'newer version" of keynote in order to open this presentation. I have the latest update installed (Keynote 09 Version 5.3 (1170)
-
Hi All, i need to display ALV with certain structure but i dont want to show some values initially , it should be kind of input screen. so how can i display empty rows initially in my ALV Points for sure Regards Anuj Goyal