Implementing caascading prompts using web elements

I am implementing caascading prompts using web elements for two dropdowns PL and MPLl. If a value is selected
from PL corresponding values are selected from MPL.
I am using following code in sub report
1) shared stringvar PL;
if instr(PL, field1 + "|") = 0 then PL := PL + field1 + "|";
2) shared stringvar MPL;
if instr(MPL,"||" + field1) = 0 then MPL:= MPL + "||" + field1 + "|";
if instr(MPL, field2 + "|") = 0 then MPL:= MPL + field2 + "|";
3)
shared stringvar PL:= PL[1 to length(PL)-1];
shared stringvar MPL:= MPL[1 to length(MPL)-1]; MPL:= replace(MPL, "|||", "||");
I am using following code in Main report
1) whileprintingrecords;
shared stringvar MultiSelectfont;
shared stringvar PL;
WESelectCascade ("Product_Line", PL, "Product_Line|MPL", {?Product_Line}, "ALL", true, "4.25cm", MultiSelectfont, "", "");
2)whileprintingrecords;
shared stringvar MultiSelectfont;
shared stringvar MPL;
WESelectCascade ("MPL", MPL, "Product_Line|MPL", {?MPL}, "ALL", true, "4.25cm",MultiSelectfont, "", "");
PL has 3 values {ED,Motors, services} ED has 8 values for MPL, Motors has 2 values for  corresponding MPL and services has 2 values for corresponding MPL.  when ED is selected in PL dropdown it is giving 6 values in MPL drop down instead of 8 values.   when Motors is selected in PL dropdown it is giving 2 values in MPL drop down which is correct.   when Services is selected in PL dropdown it is giving 4 values in MPL drop down instead of 2 values.   2 values from services and 2 values from ED. i.e. First selection remaining 2 values are added to last selection i.e. services.
Any Ideas appreciated

what are the values of the 2 shared variables?
i.e. if you un-suppress the formulae in the subreport that generate the 2 shared variables, then copy and paste using the Further Markup Possibilities > Markup/Result > code tags (to the right of the Message)  so that we can see the entire code.
what could be happening is that there are duplicate values in the 2nd level...each value has to be unique. if they are not unique look into using the Ext (extended) cascading sets where a Display and a Value are used.

Similar Messages

  • How do shutdown the weblogic server from the command line prompt using web logic 8.1

    I%u2019m currently using weblogic 6.1, but I will upgrade to weblogic 8.1. In weblogic 6.1, the following statements will shutdown the weblogic instance from the command line:
    java weblogic.Admin -url t3://hostname:port -username system -password abc SHUTDOWN
    How do I shutdown the weblogic server from the command line prompt using web logic 8.1.
    Any help will be greatly appreciated.
    Maria

    Maria <[email protected]> wrote:
    How do I shutdown the weblogic server from the
    command line prompt using weblogic 8.1?Greetings Maria! Use this document, located here:
    http://edocs.bea.com/wls/docs81/admin_ref/cli.html#1131733
    Hope this helps...
    Brian J. Mitchell
    Systems Administrator, TRX
    email: [email protected]
    office: +1 404 327 7238
    mobile: +1 678 283 6530

  • Year in drop down appears  using web elements as decimal

    Year field in database as number. I used crystal web element and deployed report in Infoview. But LOV for Year appear as decimal eg: 2,011.00. How to convert to number format as eg: 2011

    Hi,
    I am using the below code in sub report:
    stringvar field4:=left(replace(cstr({AllData.SLS_YR}),",",""),4);
    And using the below code in main report
    WESelect ("Year", P1L4,P1L4,cstr(year(CurrentDate)),MultiSelectfont)
    I am getting drop down with out decimals but current year is not appearing on top instead 2010 appears in infoview.
    Any help appreciated.

  • Forcing the opendoc call to open in the same page when using web elements

    Hi,
    I'm using the WE Submit web element to send an opendoc call to BOE, I'm calling the same report and re-running with new search criteria.
    Is there a way to force the report to open in the same viewer as opposed to opening a new window?
    Thanks in advance,
    Angela.

    hello Angela,
    i assume that you're using a WETargetPath function along with the submit. normally the submit function should then open the report in the same window.
    for example, if your report has an ID of 12134, then the following code should open the same report in the same window
    stringvar path:= WETargetPath ("rpt", "ID", "12134", "");
    WESubmit ("S1", "Button", "GO", path, '')
    you can also use the last parameter in the WETargetPath to specify a location...using "Same" will force opening in the same window, while "New" will force a new window.
    stringvar path:= WETargetPath ("rpt", "ID", "12134", "weWindow=Same");
    WESubmit ("S1", "Button", "GO", path, '')
    If you've downloaded the latest version of webelements from [here|http://www.sdn.sap.com/irj/boc/webelements] there's a "submit methods" report in the download that you can publish and have a look at the various options.
    cheers,
    jamie

  • Pass values from report1 to report2 but without displaying the web element

    Need to pass a string value from report1 to report2.This can be done by using web elements. But in that case the web element is showing up when we run report1.So what is the way to avoid display of web element but still pass the value to report 2.
    Thanks

    if you have no need for webelements controls on a report and just need a simple hyperlink, use opendocument syntax in conjunction with an object's hyperlink properties in the formatting editor.
    see your online help for more info on opedocument.

  • Crystal Reports XI Web Elements - populate WESelect element values from database field

    <p>Hi,</p><p>I am using Web Elements with Crystal Reports XI. I need to know how to populate the ElementValues and ElementDisplays arguments of the WESelect function from a database field. </p><p>In the function expert when I click on the ElementsValues and ElementDisplays values a drop down appears which will let me select a field or formula. However, when I try saving and leaving the formula workshop an error message is generated.</p><p> "A subscript must be between 1 and the size of the array".</p><p>I assume this is because the WESelect function is looking for the "|" separator in the ElementValues and ElementDisplays arguments.</p><p>Please advise.</p><p>Thanks</p>

    hello,Â
    in the webelements.zip download you should find a DCP report which shows the method for "rolling up" data using a subreport and passing these to a select control using shared variables.
    basically a string running total rolls up the values at run time and character separates them for use by the controls. for any type of select (drop down menu etc.) controls all of the values have to be made available before the main report is run so that's why you use this techique. you can think of it this way...instead of having an asp page that runs a database query and then populates a javascript array for the control, the subreport rolls up the values and passes them to the control.
    other types of controls that you wish to place directly on a group header or details section can be run off of main report fields or formulae...e.g. you can place a checkbox control on the details section without having to roll up the data in advance.
    by just putting a field name in the parameter for a select control, you will only get one value per control.
    i hope that this makes sense as it takes a bit to get used to at first,
    jamie

  • Web Elements 2.4 - Encoding Values

    I am using web elements 2.4 on XIR2.
    I have some cascading dropdown boxes populated with dynamic values from a subreport.
    This all works fine.
    However, some of the data has ampersand's in it such as 'B&P Level'
    Looking at the opendocument URL that the web element creates, it does not encode the values and so
    the & in the value is mistaken as the start of a new parameter.
    My question is, is there any update to web elements to handle non-standard characters and to encode the values in the javascript before it passes them to the opendocument URL?
    Thanks

    hey Brian,
    you have a couple of options when you have characters in the database that url's do not care for.
    option A
    if you use the extended (ext) cascading controls, they allow for a display value and an ID value to be passed. the ID is then used in your target report instead of your display value. this way the database values that you display in the controls do not have to be changed or encoded.
    option B
    you can use the urlencode function in crystal reports to change the value in the subreport that is rolling up the data.
    cheers,
    jamie

  • Dashboard Using Webi Prompts

    Hi ,
    I want to know how does the Dashboard using webi prompts work?
    I am aware of the scheduling method in which u can schedule the report daily and in excelcius we can use the Latest Instance of the scheduled report.
    But what if one wants to use the option On Demand  with webi prompts.
    Secondly if the prompts are entered in webi,how to capture those values in excelcius and with what component.
    Regards
    Gaurav Mang

    Hi
    Thanks for reply but can anyone send the xlf file using prompts.
    I know the when webi  passed/changed, the data changes in the  spreadsheet of the xlf files.
    And that webi prompt is captured in single cell of the excel using drop down box.So when you change the drop down box value the corresponding data changes in the spreadsheet of the xlf files.
    But how to implement this while previewing the dashboard.
    Plz send some print screen or xlf files to get better idea of this.
    Regards
    Gaurav Mang.

  • Report that uses web services as data source, prompts for database logon

    I have a crystal report that uses web services as a data source. When I deploy the report to Infoview it prompts me for a database username and password. Since I am not using a database it should not prompt me for these. I tried various options in the CMC->database settings for this report but it still prompts me for the database logon info or tells me that the database logon information is incorrect.
    The report work fine in the Crystal Reports Designer.
    Does anyone know how I can prevent this report from prompting me for the database logon info ?
    Thanks,

    What options have you tried in the CMC?
    Have you tried running the report in Crystal Reports installed directly on the Enterprise machine?

  • How to implement Captcha using Web Dynpro Java

    Hi Experts,
    Can you please provide any information on CaptchaImplementation using Web Dynpro Java. We are using NWDS 7.01.
    Regards,
    Suvankar

    Hello Suvankar,
    maybe this blog will help. But haven't tryed it myself.
    http://scn.sap.com/blogs/balab/2006/09/25/bid-adieu-to-bots--using-captchas
    Regards,
    Tobi

  • Using Web Service from LiveCycle PDF Dynamic Form.

    I have developed Staff Attendance Sheet about 7 years ago using Microsoft Office Web Componenets Data Access Pages (OWC DAP).
    See image below of the current report using OWC DAP:
    http://bit.ly/cAfeYs
    Since we are moving our legacy systems to SAP, this report will have to be re-implemented using Adobe LiveCycle PDF which is connecting to Web Service over SAP Systems (since OWC does not connect to Web Service).
    The SAP development team have developed the initial webservice which generates the required data.
    I have developed the initial version of the LiveCycle PDF, which can be downloaded from this link:
    http://bit.ly/9KBgm0
    The following is a screen snapshot of the LC Desinger Form:http://bit.ly/cxMK62
    When the web service is executed from inside PDF the result looks as follows:
    http://bit.ly/cacbCg
    The webservice accepts the following required parameters:
    1. Period: YYYYMM. User Specified Value.
    2. Staff ID: 9999999. It must be supplied automatcially to the web service and it must be the Windows ID of the User Logged In to Windows
    Domain.
    Other parameters are optional.
    Assumptions:
    ==========
    1. I am not using any Adobe Forms Server Technology. I can use LiveCycle Desinger ES2 and LiveCycle Reader Extensions Server.
    2. I can alse develop using .NET to get the Logged In User ID (Windows), generate the XDP from ASPX Page and attach the XML to the XDP.
    3. We are using IE8 with Adobe Reader 9 Plugin (IE add-on) to display LiveCycle PDF inside IE.
    Questions:
    ========
    1. First time the webservice is executed, I will get a prompt to allow/deny execution of the webservice. This is a security issue here, becuase we do not want any user to know the link to the Web Service. How we can hide the link to the webservice and prevent any user from getting the link ?
    2. How I can stop the Prompt to Allow/Deny execution to the Web Service for good ? As you know, users will get confused, and when we launch this PDF, it will generate a lot of calls to the Service Desk (more than 1000 users).
    3. The Web Service uses Simple User Name/Password for authentication to run the webservice. I need to embed the User Name/Password inside
    the PDF, and also prevent any user for getting them, how ?
    4. I want to send the Staff ID Parameter to the Web Service Automatically which is the Logged In User ID (Windows). This is the same value of the "Login Name" which can be accessed using Acrobat JavaScript. But the problem, this script must be trusted, and it will be a long story. Any ideas how to implement this requirement using simple methods ?
    5. If I manage to send the Staff ID Parameter to the Webservice automatically (Logged In User ID), also, I want to prevent the user from sending a different user ID, ie, prevent him from using Import Data to Form to specify a Different User ID for the Webservice Parameter. How ?
    I appreciate your help if you have any ideas about the above.
    Tarek.

    Hi Tarek,
    First of all, Thank for your replying.
    I have developing Adobe LiveCycle xdp form with a button. The SAP Web Service will be called when the button is pressed.
    Before that, I ‘m able to call another ASP.NET web services by using SOAP.request call. However, when I apply the code to call SAP web service, it doesn’t work. I checked that the web service is valid. And I found that there is something wrong when implementing the SOAP.request call. But I have no idea what wrong is it. So, I beg your help
    The following is the code in the click event of the button:
    //mainData.sfMain.Button7[1]::click - (JavaScript, client)
        var webServiceEndPoint = "http://xxxxxxx.xxxxxxx.com:8000/sap/bc/srt/wsdl/bndg_DEDB492BB032E7F1B09F001CC4FBCEC9/wsdl11/allinone/ws_policy/document?s ap-client=300";
        var staffIDInput = "9999999";
        var oAuthenticator = {
        Username: "usr",
        Password: "pw"
    app.alert("1");
        var response = SOAP.request({
           bEncoded: false,
           cResponseStyle: SOAPMessageStyle.Message,
           cURL: webServiceEndPoint,
           oRequest: {"urn:Z_RFC_GET_STAFF_BANK_INFO":{A_STAFF_ID: staffIDInput}},
             cAction: "urn:sap-com:document:sap:rfc:functions",
            oAuthenticate: oAuthenticator
    app.alert("2");
    WSDL is shown as follow:
    <?xml version="1.0" encoding="utf-8" ?>
    - <wsdl:definitions targetNamespace="urn:sap-com:document:sap:rfc:functions" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="urn:sap-com:document:sap:rfc:functions" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    - <wsdl:documentation>
    <sidl:sidl xmlns:sidl="http://www.sap.com/2007/03/sidl" />
    </wsdl:documentation>
    <wsp:UsingPolicy wsdl:required="true" />
    - <wsp:Policy wsu:Id="BN_ZWS_ALC_GET_STAFF_BANK_INFO">
    - <wsp:ExactlyOne xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:sapsp="http://www.sap.com/webas/630/soap/features/security/policy" xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility">
    - <wsp:All>
    - <sp:TransportBinding>
    - <wsp:Policy>
    - <sp:TransportToken>
    - <wsp:Policy>
    <sp:HttpsToken />
    </wsp:Policy>
    </sp:TransportToken>
    - <sp:AlgorithmSuite>
    - <wsp:Policy>
    <sp:TripleDesRsa15 />
    </wsp:Policy>
    </sp:AlgorithmSuite>
    - <sp:Layout>
    - <wsp:Policy>
    <sp:Strict />
    </wsp:Policy>
    </sp:Layout>
    </wsp:Policy>
    </sp:TransportBinding>
    </wsp:All>
    </wsp:ExactlyOne>
    <saptrnbnd:OptimizedXMLTransfer uri="http://xml.sap.com/2006/11/esi/esp/binxml" xmlns:saptrnbnd="http://www.sap.com/webas/710/soap/features/transportbinding/" wsp:Optional="true" />
    </wsp:Policy>
    - <wsp:Policy wsu:Id="IF_ZWS_ALC_GET_STAFF_BANK_INFO">
    - <sapsession:Session xmlns:sapsession="http://www.sap.com/webas/630/soap/features/session/">
    <sapsession:enableSession>false</sapsession:enableSession>
    </sapsession:Session>
    <wsp:ExactlyOne xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:sapsp="http://www.sap.com/webas/630/soap/features/security/policy" xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility" />
    </wsp:Policy>
    - <wsp:Policy wsu:Id="OP_Z_RFC_GET_STAFF_BANK_INFO">
    <sapcomhnd:enableCommit xmlns:sapcomhnd="http://www.sap.com/NW05/soap/features/commit/">false</sapcomhnd:enableCommit>
    <sapblock:enableBlocking xmlns:sapblock="http://www.sap.com/NW05/soap/features/blocking/">true</sapblock:enableBlocking>
    <saptrhnw05:required xmlns:saptrhnw05="http://www.sap.com/NW05/soap/features/transaction/">no</saptrhnw05:required>
    <saprmnw05:enableWSRM xmlns:saprmnw05="http://www.sap.com/NW05/soap/features/wsrm/">false</saprmnw05:enableWSRM>
    </wsp:Policy>
    - <wsdl:types>
    - <xsd:schema attributeFormDefault="qualified" targetNamespace="urn:sap-com:document:sap:rfc:functions">
    - <xsd:element name="Z_RFC_GET_STAFF_BANK_INFO">
    - <xsd:complexType>
    - <xsd:sequence>
    <xsd:element name="A_STAFF_ID" type="xsd:string" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    - <xsd:element name="Z_RFC_GET_STAFF_BANK_INFOResponse">
    - <xsd:complexType>
    - <xsd:sequence>
    <xsd:element name="L_BANK_ACC" type="xsd:string" />
    <xsd:element name="L_BANK_ACC_HOLDER" type="xsd:string" />
    <xsd:element name="L_BANK_NAME" type="xsd:string" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    </wsdl:types>
    - <wsdl:message name="Z_RFC_GET_STAFF_BANK_INFO">
    <wsdl:part name="parameters" element="tns:Z_RFC_GET_STAFF_BANK_INFO" />
    </wsdl:message>
    - <wsdl:message name="Z_RFC_GET_STAFF_BANK_INFOResponse">
    <wsdl:part name="parameter" element="tns:Z_RFC_GET_STAFF_BANK_INFOResponse" />
    </wsdl:message>
    - <wsdl:portType name="ZWS_ALC_GET_STAFF_BANK_INFO">
    - <wsp:Policy>
    <wsp:PolicyReference URI="#IF_ZWS_ALC_GET_STAFF_BANK_INFO" />
    </wsp:Policy>
    - <wsdl:operation name="Z_RFC_GET_STAFF_BANK_INFO">
    - <wsp:Policy>
    <wsp:PolicyReference URI="#OP_Z_RFC_GET_STAFF_BANK_INFO" />
    </wsp:Policy>
    <wsdl:input message="tns:Z_RFC_GET_STAFF_BANK_INFO" />
    <wsdl:output message="tns:Z_RFC_GET_STAFF_BANK_INFOResponse" />
    </wsdl:operation>
    </wsdl:portType>
    - <wsdl:binding name="ZWS_ALC_GET_STAFF_BANK_INFO" type="tns:ZWS_ALC_GET_STAFF_BANK_INFO">
    - <wsp:Policy>
    <wsp:PolicyReference URI="#BN_ZWS_ALC_GET_STAFF_BANK_INFO" />
    </wsp:Policy>
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
    - <wsdl:operation name="Z_RFC_GET_STAFF_BANK_INFO">
    <soap:operation soapAction="" style="document" />
    - <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    - <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    - <wsdl:service name="service">
    - <wsdl:port name="ZWS_ALC_GET_STAFF_BANK_INFO" binding="tns:ZWS_ALC_GET_STAFF_BANK_INFO">
    <soap:address location="http://xxxxxxx.xxxxxxx.com:8000/sap/bc/srt/rfc/sap/zws_alc_get_staff_bank_info/300/zws_alc _get_staff_bank_info/zws_alc_get_staff_bank_info" />
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>

  • Web Elements in Crystal Reports on BOE XIr2

    <p>Hi</p><p>I am trying to set up my crystal report with multiple web elements controls and had a few questions.  Any assitance would be appreciated:</p><p>1) I have set up a radio button control and two drop down controls in my report.  When I post the report to BOE and view it in Infoview, I still see the initial parameter page pop up before getting to the report.  I have default values for each of the parameters and would like the report to bypass the parameter page and use the default values.  Once in the report, I am able to change the parameter values by using the web elements controls.  Any suggestions to get rid of the parameter page?</p><p>2) I also need to set up a hierarchical set of controls in the report.  I would like my radio button to be at the highest level and have the drop down box data be controlled by the radio button selection. How can I set this up?</p><p>3) Radio button - dynamic labels: I&#39;ve done this with a drop down box where the data gets populated from the result set data.  I was hoping to do that with a radio button as well, where the number of radio buttons and labels get dynamically generated based on the number of values in a column. </p><p> Appreciate any help with these.</p><p>Thanks<br />AJ</p>

    <p>hello AJ,</p><p>1) good question. once you&#39;ve built a custom page you never want to see that default prompt page again. what you should do is publish a hyperlink to your CMC that is an opendocument link with default prompt values to your report containing the controls. then hide the report itself in a folder that the end users can&#39;t see. this way only the hyperlink is available and no one will see that prompt page again.</p><p>2) if you open up the webelementsdcp.rpt from the webelements.zip folder, this is an example of heirarchical controls. for the first control in the ElementSet, substitute the WESelectCascade for a radio button control and you&#39;ll get the result you&#39;re looking for.</p><p>3) see #2...once you&#39;ve done the substitution above, the radio button will be using the same live data that the cascading select menu did.</p><p>cheers,</p><p>jamie</p>

  • Crystal Reports Web Elements - database write back question

    Hi,
    I have a question about Web Elements. In description of them on SAP site it says they can provide "write-backs to the database". This is something I would really like to see. I have a scenario:
    User sees a long report and sometimes she needs to add a quick note that should be saved into the database. That note can be entered into WETextArea I suppose and WESubmit button click can be an event  trigger for such a write back.
    I would like to see example of such functionality on Crystal Report rpt file.
    Please advise if anybody knows, I would highly appreciate your assistance.
    Regards, Grettir

    hello,
    webelements can be used for the interface to database writebacks...they don't do the writebacks themselves but create the interface to make it easier for an end user to add annotations etc...these values are then passed to a second report or a subreport. using the default prompting interface makes this quite difficult.
    here's where the database writebacks are done...since version 9 of crystal reports there have been command objects. command objects have the ability to use any database syntax that is compliant with the database connection. i.e. if the syntax can go through the odbc layer then you can do this in a command in crystal reports.
    commands will honour database securities so you don't have to worry about someone dropping a table if rights have been properly assigned. a word of caution there to ensure that database rights have been done properly as you don't want all end users to have the ability to write a report that can do database updates.
    commands are also database specific so you would have to check your database online help to see what syntax would be appropriate.
    the workflow would be to have 2 reports, one that had the webelements user interface and one that did the writeback. this user interface report would have the text object and submit button and using open document syntax, the values would be passed to the 2nd report that had the command object. the command object would have a prompt that would take the values from the open document url and then use the values in the write back.
    for example,
    1) the user interface report has one text object called "t1" and one submit button.
    2) the target command object report has a prompt called "t1".
    3) the target report command object has syntax like
    INSERT INTO yourtestable
    VALUES    ('{?t1}')
    SELECT     1
    4) yourtesttable in this case has only one text field
    5) the "SELECT 1" at the end of the command ensures that a dummy value is returned after running the update...to avoid a database error
    6) this syntax would be for sql server
    this is of course a very simplified example.
    if you are at tech ed phoenix, please drop by the business objects test drive area & i will be there. i can show you a bunch of different webelements examples and write back reports etc. until you become quite bored
    i hope that this helps,
    jamie

  • Back to Main Report-Web Elements

    Hi
    Based on the Web Elements prompts selection on the report we are displaying graph and table output which is an aggregarte information. On the same report, we are also using opendocument function called DetailReport to show detail information which shows the data in different report. On the other report we have kept BacktoMainReport using open document to show the Main report with graph and table output .
    Just wanted to know when we hitting on backtomain report with opendocument function, right now we are using query to go back to MainReport. Without doing that, is there any option to show the MainReport without generating query again .. i mean Report storing the information in cache,just showing that directly.
    Thanks
    Edited by: MUFIZA on Jan 25, 2010 8:31 PM

    hi Mufiza,
    if you are using cr2008 you can do this by saving a report to your enterprise system with the File > Save Data With Report option in conjunction with using the Saved Data Record Selection Formula. then every hit to that report will hit the data cache stored in the report as opposed to hitting the database.
    if you are using a lower version, the only thing you can do is cache your reports using the enterprise server settings. however, if you have parameter / prompts on the report in question, then this can become difficult. you can only hit a cached instance if that parameter / prompt combination has already been viewed within the caching time period, otherwise a database hit will be done.
    again, this is much easier to do with cr2008.
    also, you don't necessarily have to use opendocument linking either...to create a "back to main report" between 2 reports, here's a really easy way that uses Report Part linking:
    1) open up your 2 reports in the crystal reports designer (assuming that both are already stored in your enterprise system)
    2) on your "main report" Insert a Text Object on to the Report Header...leave it blank
    3) right click on the new Text Object and choose Copy
    4) on your 2nd report, Insert a Text Object on the Report Header and type in "Back to Main Report"
    5) right click on this new Text Object and choose Format Text > Hyperlink > Another Report Object and then Paste...this will paste the Report Part info from the Main Report into this 2nd report
    after saving the reports you can test the hyperlink in your enterprise viewer. for more info on Report Park linking see your online help in the Crystal Reports designer.
    cheers,
    jw

  • How to get the list of values for a dynamic parameter using Web Services SDK?

    <p>I am struggling to get the list of values for a dynamic parameter of a report.</p><p>I am using Java Web Services SDK ... I tried to use PromptInfo.getLOV().getValues() method but it does not work.</p><p>First of all ... is this possible (to get the list of values for a dynamic param) using Web Services?</p><p>Second of all, if this is possible, how should I do it ... it seems it works fine when running the report from CMC. It asks for DB logon info and after that it provides a list of values.</p><p>Thx </p>

    <p>Your assumption is correct. We are trying to get the LOVs from the Crystal Report. I was not aware that this is not supported by Web Services SDK.</p><p>We used Web Services SDK to integrated the Crystal Reports in our web application. We implemented some basic actions for reports: schedule, view instances, run ad-hoc reports.</p><p>We encountered this problem when trying to run/schedule reports with dynamic parameters (a list of values from DB). We were unable to get the LOVs.</p><p>Please let me know if you can think of an alternative to look at.</p><p>Thanks a lot,</p><p>Catalin </p>

Maybe you are looking for