Skip to Content
author's profile photo
Former Member

Two questions on dynamic parameter from java API point of view

Hi,

We have a requirement for dynamic parameters in crystal reports that need to be executed in java application. Since, crystal java framework do not support the dynamic parameter execution (please correct me if I am wrong), we plan to execute explicitly the query for getting the dynamic values of such dynamic parameters before listing the parameters in java application.

The query for the dynamic parameter will be given in the field 'Prompt Group Text' of the parameter.

I coudl not get hold of these details from java api. So please some one help me out.

Environment - Crystal X1 R2 with java libraries

1. How can we identify a parameter is a dynamic one?

2. How to get the 'Prompt Group Text' field value?

Any suggestions welcome.

Thanks,

Ratan.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • author's profile photo
    Former Member
    Posted on Jun 30, 2008 at 04:13 PM

    There are these two methods in the Business Objects Enterprise SDK Developer Libary:

    byte[] getDynamicCascadePromptData()

    Returns a collection that contains dynamic cascading prompt data.

    java.lang.String getDynamicCascadePromptGroupID()

    Returns a dynamic cascade prompt group ID.

    For more information on what is available through available SDK's, please refer to the following link:

    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm

    Add comment
    10|10000 characters needed characters exceeded

    • One comment - there's no public API that would allow you to get the Dynamic Cascading Prompt List of Values. The XML stream returned by the getDynamicCascadePromptData() method is not documented.

      Crystal Report Viewer uses the info to connect to the List of Values on Enterprise - the way to present the cascading prompt values to a user is to open the report using the viewer, and have it present the prompt page to the user.

      Sincerely,

      Ted Ueda

  • author's profile photo
    Former Member
    Posted on May 05, 2011 at 12:02 PM

    Hi Guys,

    I am working in CR4E framework .We have a report which uses dynamic parameter which will prompt after entering value for original parameter.We have a requirement for dynamic parameters in crystal reports that need to be executed in java application.But while running the report through java application,we know that we have to get the dynamic cascading prompt by using two methods.They are getDynamicCascadePromptGroupID() and getDynamicCascadePromptData().

    But we are not able to get the jar file which will have classes that implements the ireportparameter interface which contains these methods.

    Can someone please help me how to sort out this problem.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi, Maralla,

      The getDynamicCascadePromptGroupID() and getDynamicCascadePromptData() API's are in the Enterprise SDK, not the CRJ, and are not documented and so are not supported.

      This quote is from earlier in this thread:

      the way to present the cascading prompt values to a user is to open the report using the viewer, and have it present the prompt page to the user.

      Regards,

      Bryan