Dynamic Prompt Issue

Hey hi I am just working with Dynamic prompt my requirement is
> When I select country name from ddl i.e India, In the next state field I want to get prompt table regarding indian states
When I select country name from ddl i.e usa, In the next state field I want to get prompt table regarding usa states For this I have created two views on PS_STATE_TBL , to use for prompting
india
SELECT DESCR FROM PS_STATE_TBL WHERE COUNTRY ='IND';
usa
SELECT DESCR FROM PS_STATE_TBL WHERE COUNTRY ='USA' AND DESCR NOT LIKE '%tax';
Next I have written the following code in FieldChange event Evaluate DYNAMIC_TBL1.COUNTRY1
When "I"
DERIVED.EDITTABLE = "RECORD.INDIA_PROMPT_VW";
Break;
When "U"
DERIVED.EDITTABLE = "RECORD.USA_PROMPT_VW";
Break;
When-Other
End-Evaluate;
But from the front end I am getting the following error message
Prompt table in the DERIVED.EDITTABLE is not available. (4,3)
the prompt table for the field for the field is controlled by the contents of another field. this controlling field is not included in the component.

Raju,
What do you think about creating a UNION SQL view that has a key field COUNTRY1 with values of I, U, etc? Your view SQL would look something like this:
SELECT 'I', ...
  FROM INDIA_PROMPT_VW
UNION
SELECT 'U', ...
  FROM USA_PROMPT_VW
...By making the field a key in the prompt, the component processor will automatically add a WHERE clause restriction as long as DYNAMIC_TBL1.COUNTRY1 is listed in the buffer earlier than the prompt field. This works the same way as SETID/BUSINESS_UNIT.

Similar Messages

  • Error Publishing Dynamic Prompt to BOE XI Release 3 From Crystal 2008

    I am getting the following error when trying to publish reports with dynamic prompts to        "Failed to read data from report file <file name> Reason: failed to read parameter object".  I found this error occurring in threads referring to previous versions of BOE and none of the solutions are an option to me: I cannot give the user any further rights, and I am unable to apply patches since they are for Crystal XI, rather than 2008.  Is there a solution for this issue?  I found a work around which is to save the report to another source (a shared drive, for example) and then loading it via the Central Management Console.  However, once this is done, when any user attempts to view the report, the report continues to prompt for a username and password, despite having updated this in the Database Configuration and selecting "use same database logon as when report is run".
    Thanks in advance for any help!

    Hi Heather
    I get the same behaviour in this case:
    If my report uses a Stored procedure as the datasource AND i use an SQL sommand to create the LOV for dynamic parameter then each time i run the report in infoview it asks for db login info
    I think it looks for this info to create the LOV
    I created the same report with a table as the datasource and used the exact same command to create the LOV and was able to run the report without a request for db login info.
    I also created the report with the SP but with no LOV, the parameter is set to static, and it runs without extra login
    I have entered the db login info in CMC for each report before i tried running in infoview
    What are your reports using as datasources?
    Patrick

  • Dynamic Prompt not returning all values it should

    I am using Crystal Report 2008 CR Developer with service pack 3.1. 
    I have a report that has a SQL command statement.
    Using just the SQL statement, I get all results correctly (all "Events" show up).
    When I use the same report and create a dynamic prompt for the "Events", I get some of the values in the results, but not all of them.
    Also, the Events that I do get back in my results change randomly (one time I get Court Trial, the next time I don't). 
    The u201CEventsu201D field is the 2nd Group in the report.
    I also have a date time parameter in the report.
    The only thing Iu2019ve found so far related to this is the Max Rowset issue.
    I have used the registry fix to set the LOV value to 3000, even though there are only 1644  possible values for that particular field in the database. I changed it for all versions 11, 11.5 & 12.
    HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 12.0\Crystal Reports\DatabaseOptions\LOV  "MaxRowsetRecords"="3000"
    My understanding of Dynamic Prompts is that each time the report is run, it first looks at all possible values in that field and return those as values to select in the prompt. For example, if there were 1644 values in the table, it would show 1644 values to select in the parameter to be used in the report. Is that regardless of group level or date parameter or if "Save Data with Report" is selected?
    Any ideas on why my parameters are not pulling the correct list of values to select for use in the report?

    Try connecting to the database directly rather than using a command object.
    Or... purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • Dynamic Parameter Issue - Crystal XI

    I've been working in 9 and 10 for a couple of years, and have recently moved to 11 to create some reports for a client.  I have an issue with creating a dynamic parameter in Crystal 11 - it won't allow me to select dynamic (as in the radio button is grayed out).  I've searched through the options, created RDO and DAO connections to both the Access database and the Xtreme Sample database, all to no avail.  Any thoughts or suggestions?
    Thanks!
    Ian

    After searching, I stumbled across the answer in this document: [XI Features by Version|http://www.businessobjects.com/pdf/products/crystalreports/crxi_feat_ver_ed.pdf]
    It strikes me as a little odd, in the Comprehensive formating and Design Control section it lists "Parameter fields" as available for all versions, but in the Report Viewing and Interaction section it lists "Dynamic and Cascading Prompts" as available only in Developer and Pro ... it even identifies at the end of the document that "Dynamic and Cascading Prompts can be viewed, but cannot be designed in the Standard Edition".
    So, this begs the next question, if I create a report using parameters based on a database column in Crystal 10, then open it in Crystal XI, will the dynamic prompts work?  I may have to try...

  • Parameter with Dynamic prompt - bug encountered

    I am using CRD XI release 2 (SP2) against an Oracle 10 release 2 database
    I have a report fully working with a static parameter
    1. But I have an issue when trying to introduce a parameter with dynamic prompts
    I have a data source (PointofSale retrieving data from a database view)
    I am trying to have the newPointOfSale parameter to prompt the user for values taken out of the PointOfSale source.
    I set up the parameter as indicated by the Crystal RD210 Guide.
    But when I run the report I am prompted for Server Name(greyed out)/user name/password(something I have never had to do for this report until introducing the dynamic parameter)
    In doubt I enter these of the database user I am using as a source for this report
    I get a strange error message telling me there is a problem with another datasource on the report.
    'Prompting failed with the following error message: 'List of Values failure: fail to get values. [Cause of erro: The table 'DLEX_REPORT.DLEX_REPORT_RETRIEVE.AIRLEGSUMMARY_SUM' could noyt be found. UNKNOWN.RPT]'.
    Error source: prompt.ddl Error code 0x8004380D
    There seem to be  bug with parameters and dynamic list of values in Crystal as other people seem to encounter similar issue
    Is there a fix or a workaround?
    2. Also I believe this forum allows to escalate bugs with SAP/business objects. Does anyone know how to do this? As this is very obviously a bug....
    Thanks
    Philippe

    I am not sure whether this will solve your problem since you are using a different implementation of Crystal Reports , but I've received the same error using CR XI Developer Release 2 in conjunction with the Crystal Reports Server XI Release 2.  My solution was to go into the Business View Manager application and fix the Data Connection object associated with the problematic Dynamic prompt by supplying a user name and password for the data connection object and setting the "Runtime Prompt Mode" property to "Never Prompt".  For some dumb reason, the Crystal Reports client will publish the data connection object to the Business Views database without any login credentials associated with it.  So after creating such a prompt in a report, you have perform this extra step before running the report the first time.  The good news is that if you reference this dynamic prompt in other reports, it will work - so you only need to fix it when it is first created.

  • Made Dynamic Prompts OK, but Static Prompts Still Appear. Why?

    <p>Hello All,</p><p>I have a stored procedure that I am using as the basis for a report. This stored procedure has some parameters so the user can customize the report.</p><p>When making the report, Designer gives me some default static Parameter Fields to match the parameters of the stored procedure. When I run the report in preview mode in Designer or in InfoView after publishing, the report correctly presents a page with simple text input fields (one for each parameter) to the user.</p><p>I can successfully convert these Parameter Fields from static to dynamic. However, something odd is happening now. When I try to run the report, whether in preview mode in Designer or in InfoView after publishing, the report will still present the page with simple text input fields to the user. If the user just clicks OK at the bottom of the parameter page, THEN the report presents a page with the appropriate dynamic prompts to the user.</p><p>How can I get the report to skip the page with the simple text input fields and only present the page with the dynamic prompts?</p><p>If anyone can give me an answer to this ASAP, I&#39;ll personally see to it that you have a bright sunny day tomorrow.</p><p>Not that I think this should matter, but were on CR XI.</p>

    Please re-post if this is still an issue to the Data Connectivity - Crystal Reports Forum or purchase a case and have a dedicated support engineer work with you directly

  • Modify Dynamic Prompt Values based on User Name

    Hi,
    I did some searching for this issue on the forum and could not quite find anyone with the same problem.  If I missed something, please except my apologies in advance.
    I have created a report within Crystal Reports 2008 with dynamic prompts.  The report pulls possible values for the report directly from my database (MS SQL 2005).  This works well.
    I have deployed the report, with eclipse, under tomcat using the free JRC components provided by SAP.
    This is a financial report which allows users to view the budget of a department.  Each user will have one or many departments that they should have access to.  Not everyone sees the same departmental information.  I have a table that contains the user name of each individual and the department code they should have access to.
    One of the dynamic parameters I have in the report now lists all department codes.  Would it be possible to pass to the report a user name that would limit the listing within the department code parameter to only those departments the user name has access to (as specified in the security table I have setup for this)?
    I need to do this within the JRC and not the Business Objects EDGE server.  With this in mind, I do not believe I can use any of the RAS components of the JRC.
    Thanks, in advance, for any advice or help you may be able to provide,
    Dave

    Moved to Java SDK forum where the JRC is answered.

  • Slow program response, crashes when creating titles and dynamic link issues

    Dear reader,
    I am now trialling Adobe CC OSX with Premiere Pro and After Effects before deciding to subscribe but I am experiencing a lot of issues while working.
    I am now working on an animation, but editing raw mxf files also gives crashes and slow responses/ program refreshes.
    1) Slow mouse response
    2) Slow program refresh while key framing visuals
    3) Rendering in PP is extremely slow when AE is open in the background, when closing AE and re-initiate the render in PP it renders super fast
    4) Crashes. When I overlay titles in my time line PP regularly crashes
    5) Dynamic Link issues when working combined in AE and PP where file connections in the time line get lost when the AE project has too many sequences
    I am curious to find out if other people are also experiencing these issues.
    I am indecisive in getting the paid yearly plan or move to FCPX instead? Or should I get a new MacPro and is this model too old?
    It worked fine 2 months ago, however I was still working on FCP7. After updating it is really bad working with it...
    My system consist of:
    MacPro mid-2010
    OSX 10.9.5 (13F34) (new installation)
    2x2,66Ghz 6-core Intel Xeon
    24GB DDR3 ECC
    Nvidia Quadro K5000, 4GB
    2x PCIe SSD 1TB
    2x HDD 3TB
    2x HDD 2TB
    Feedback is much appreciated! Best regards, Alexander

    this does work for basic colour correction but not when trying to grade an entire suqence to achieve a specific style, applying a vingette or certain effects have to be done in after effects.
    I want to try and get my whole sequence into after effects but preserve the edits and effects added in permier pro, is there any way to do this?
    rich

  • Changing formats of dynamic prompt parameters

    Hello,
    I am currently using Business Objects XI R2 (SP3) and some users have a dynamic prompt that returns what year the report should query on. However, the prompt is currently returning this:
    2,006
    2,007
    2,008
    2,009
    2,010
    Is there a way (besides converting the number to text) to get rid of the thousand separator? Also, what about dates? How can you change the format they are displayed as?

    Bad news on both fronts...
    #1 The only way to format that correctly would be to bring those values in as text. To make matters even more complicated, they have to come from the DB as text... You can't use a CR formula to to convert the value and then use the formula.
    #2 You're stuck with YYYY-MM-DD for date formats... That is if you want to keep the prompt type set to Date or Date Time (and therefore, keep the date picker control.
    You do have the option to use a text style prompt and allow the user to enter dates however they like...
    Sorry I don't have better answers...
    Jason

  • Dynamic prompting with stored procedures XI- urgent

    Post Author: moleary77
    CA Forum: Crystal Reports
    I have a report that has 7 parameters and two stored procedures, I get the dynamic prompting to work wonders as stand alone dynamic parameters, however I need them to be cascading. How can I accomplish this while still using my stored procedures? Is there something I need to change within the stored procedure, I've looked all over in Crystal and I can't seem to figure it out. Please let me know! Below are my stored procs
    set ANSI_NULLS ONset QUOTED_IDENTIFIER ONGOALTER PROCEDURE &#91;dbo&#93;.&#91;gm_RPT_Appt_Parms&#93;-- Add the parameters for the stored procedure hereASBEGIN-- SET NOCOUNT ON added to prevent extra result sets from-- interfering with SELECT statements.SET NOCOUNT ON;-- Insert statements for procedure hereDECLARE @PTABLE TABLE(COMPANY VARCHAR(10) NULL,BOOKCODE VARCHAR(22) NULL,FACILITY VARCHAR(47) NULL,PROV VARCHAR(21) NULL,LOGONID VARCHAR(15) NULL,DEPARTMENT VARCHAR(26) NULL)--GET COMPANIESINSERT INTO @PTABLE(COMPANY, BOOKCODE, DEPARTMENT ) SELECT DISTINCT COMPANY , BOOKCODE, DEPARTMENT FROM MWBOOK ORDER BY COMPANY , BOOKCODE, DEPARTMENT INSERT INTO @PTABLE(COMPANY, FACILITY ) SELECT DISTINCT COMPANY, FACILITY FROM CLFAC ORDER BY COMPANY, FACILITY INSERT INTO @PTABLE(COMPANY, PROV ) SELECT DISTINCT COMPANY , PROV FROM MWPROV ORDER BY COMPANY , PROV SELECT * FROM @PTABLE
    END
    set ANSI_NULLS ONset QUOTED_IDENTIFIER ONGOALTER PROCEDURE &#91;dbo&#93;.&#91;gm_RPT_Appt_Data&#93; -- Add the parameters for the stored procedure here @START DATETIME, @END DATETIME, @COMPANY VARCHAR(10), @BOOK VARCHAR(2056) = NULL,   @USERCODE varchar(2056) = NULL, @FACILITY varchar(2056)= NULL,  @PROV varchar(2056) = NULLASBEGIN -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements.DECLARE @VALUES VARCHAR(2000) SET NOCOUNT ON; IF(@BOOK IS NULL) BEGIN  SET @VALUES = ''    SELECT @VALUES = @VALUES + COALESCE(BOOKCODE + ',','') FROM MWBOOK WHERE COMPANY = @COMPANY  SET @BOOK = @VALUES END IF(@FACILITY IS NULL) BEGIN  SET @VALUES = ''    SELECT @VALUES = @VALUES + COALESCE(FACILITY + ',','') FROM CLFAC WHERE COMPANY = @COMPANY  SET @FACILITY = @VALUES END IF(@USERCODE IS NULL) BEGIN  SET @VALUES = ''    SELECT @VALUES = @VALUES + COALESCE(LOGONID + ',','') FROM CLUSER WHERE COMPANY = @COMPANY  SET @USERCODE = @VALUES END
    IF(@PROV IS NULL) BEGIN  SET @VALUES = ''    SELECT @VALUES = @VALUES + COALESCE(PROV + ',','') FROM MWPROV WHERE COMPANY = @COMPANY  SET @PROV = @VALUES END  SELECT  mws.ANOTE,   mwb.BOOKNAME,   mwb.FACILITY,   LEFT(mwa.PATIENTID, 50) AS PATIENT,  mwa.ADATE,   mwa.ADESC,   mwa.ANOTE,   mwa.USERCODE,   mwa.BOOK,   mwa.USERFLAG,   mwa.ATIME,   mwa.COMPANY,   mwa.AKEYTIME,   mwb.PROV  FROM     dbo.MWAPPTS mwa LEFT OUTER JOIN dbo.MWBOOK mwb ON    mwa.COMPANY = mwb.COMPANY AND mwa.BOOK=mwb.BOOKCODE   LEFT OUTER JOIN dbo.MWSCHED mws ON    mwa.ADATE=mws.ADATE AND mwa.BOOK=mws.BOOK AND mwa.COMPANY = mws.COMPANY  WHERE   mwa.BOOK IN (SELECT ARRTEXT FROM DBO.SPLIT(@BOOK, ','))  AND mwa.USERCODE IN (SELECT ARRTEXT FROM DBO.SPLIT(@USERCODE, ','))  AND mwa.ADATE BETWEEN @START AND @END   AND mwb.FACILITY IN (SELECT ARRTEXT FROM DBO.SPLIT(@FACILITY, ','))  AND mwa.COMPANY=@COMPANY  AND (mwb.PROV IN (SELECT ARRTEXT FROM DBO.SPLIT(@PROV, ','))) ORDER BY  MWA.ADATE,  MWA.BOOK
    END

    Since your {?Project} parameter is part of a stored procedure, you have to think of it as part of the table.  In reality, it could "change" the result set so Crystal has always prompted them first. It's like in math with the order of operation between +-*/.Â
    All "added" parameters (like the one you created within the report) must be prompted after the server-based prompts (stored proc).
    - Kathryn Webster (Report Design Specialist)

  • Dynamic Prompts

    Can someone please list the steps required for saving a Crystal report with one dynamic prompt
    to the Enterprise.  It is working correctly in Designer, but can not be saved to Enterprise.  Obviously from reading the online helps, I need to create a LOV in the repository and then have a link to it, however, I do not know how to do this.
    Thanks,
    Norma

    Hi,
    If you are creating a Crystal Report and if you wish to save the report to the Enterprise so that you can view it from info view, following are the steps of it.
    u2022     Open the CR report.
    u2022     Click on File->Save As Option.
    u2022     Then from the left hand side select the u201CEnterpriseu201D option and then select the appropriate folder and save it on the folder.
    u2022     Then open the Info view and then open the report.
    This will save the report to the Enterprise along with the Prompts.
    I hope this helps you.
    Regards,
    Prashant

  • Query related to Dynamic Prompt.

    Hi Experts,
    I want to create a dynamic prompt for countries field in dashboard page.
    The option in the prompt should be :
    -ALL Countries
    -Specify Country
    -ALL Countries execpt 'Germany'
    -ONLY 'Germany'
    Can anyone please guide me how to do it?
    Best Regards,
    John

    hi
    add a column to a prompt and in the fx type
    case when a=b then columnname else '-ALL Countries' end
    in the show results give
    select case when a=b then columnname else '-ALL Countries' end from subject area
    union
    select case when a=b then columnname else '-Specify Country' end from subject area
    union
    select case when a=b then columnname else '-ALL Countries execpt 'Germany' end from subject area
    union
    select case when a=b then columnname else '-ONLY 'Germany'' end from subject area
    i hope this is what u r expefcting.

  • Configuring a Static WCF Port to Behave as a Dynamic Port Issue

    I have WCF-Basich send port and i have developed a custom pipeline where i am resetting the "BTS.OutboundTransportLocation" based
    on the input message received .So, for different message , i am setting the different value to the "OutboundTransportLocation"
    by writing in context and hence making my wcf basic send port dynamic.
    Issue : it seems value of "OutboundTransportlocation" is not resetting properly and using the old value set during first time.For
    e.g. if first time i reset the correct url in the outboundtransport location and if second time if i set the wrong url/different url, it takes the previous url while sending the message.However,All
    logging (BTS HAT and such) all seem to indicate all works fine.
    Only after restarting the host  it takes the latest one or correct one .It seems
    "WCF BasicSend port is using caching and does not react well to changing in url's 'in flight'.
    What is the solution for this ?
    Manish

    Hi Manish,
    Please set IsDynamic property to true in your custom code. :) :) :)
    Regards,
    Parashu.
    parashuram

  • Accessing Dynamic Prompts information via CR 2008 (or earlier?) RAS API?

    I am using the CR 2008 RAS API (but could also use an older API if needed) in Visual Studio 2008. I have both service packs installed.
    Any idea how to access information about the settings for dynamic prompts in a report?
    I can access the PromptField object with
    dataDefController.ParameterFieldController.
                    GetPromptParameterFields(new PropertyBagClass());
    but can't seem to find any options for its dynamic prompt settings (such as fields used to fill the default values, cascading prompt settings, etc.).

    Hello, John;
    From the Report Application Server .NET SDK Developer Guide:
    NOTE: The ReportClientDocument object model does not currently support creating new prompt groups programmatically and saving them to the report. For more information about dynamic cascading parameters and creating prompt groups with the Crystal Reports Designer, see the Crystal Reports User's Guide.
    There are no specific API designed for the dynamic cascading parameters - they are just parameters. As such the properties that make them special are not available.
    You can get the parameter name and you may be able to determine from the list what would be related:
    Country --> Region --> City would be, probably Date would not be.
    Since they are created in the Crystal Report designer, the creator could store the information needed in File | Summary Info | Comments and it can be retrieved from the special field Report Comments or the SummaryInfoClass.Comments Property
    That is the only suggestion I can think of at this time.
    Both options can be achieved from the .NET RAS SDK and the Crystal Reports .NET SDK for version 2008.
    Elaine

  • No option to reorder the Parameters in group Dynamic prompt

    I have designed Crystal Report which has an Dynamic prompt like Region / State / City.
    Selection of Prompts occurs in Order but the title shows as City/Region/State in Preview.
    I even checked example reports provided for Crystal report and seems like all has the same order of display the label.
    Its just the label display. I am using Crystal Reports 11.5.10.1263
    Easy example, open Report Samples > Feature Examples > Prompting.rpt
    Press F5 to prompt for parameter values. First parameter in that report is Country/Region/City.
    LOV list proper order, but the Label on top of it shows as City/Country/Region.
    Question
    Is there any workaround to make it in order?
    Is there any option to hide the label.

    I think you are referring to Standard Parameters.
    I am referring to Dynamic and have to use the Existing one which was created using Business View Manager. After selecting that I can order how it needs to be display in Value Section. Even i select Country / Region / State in the order i want, the prompt displays properly but associated label text displays other way like (City/Country/Region).
    in the example report i posted in the post 1,  open it up, Expand Parameter Field, Right Click and select Parameter Order
    You will see City/Country/Region. If you edit one of the parameter, the order of display would be Country/Region/City.
    On Preview Press F5 and in that screen, Verify the label text for this prompt group.. it will show as City/Country/Region but the prompts will be in order like Country / Region / City.

Maybe you are looking for

  • 1-year old MacBook Pro suddenly not holding charge

    My MacBook Pro (750GB Hard Drive, 8 GB RAM, i5, 2012 model, OS X Mavericks 10.9.4) is just barely over a year old; I got it in July of last year (and therefore just over my 1-year warranty) suddenly has terrible battery life. I do not know what's up:

  • User SSO not found in NTLM  directory

    i wanted to Provision a user . But when i am searching his SSO not able to find it in any Directory in Shared Services.

  • Line wrap in JTextPane

    I didn't see a setLineWrap(boolean) method in JTextPane (as you can tell from my previous posts I'm having trouble going from a JTextArea to a text component that can format text). How would I force it to line wrap like a JTextArea would if you calle

  • My i phone 3gs is ios 5.0.1 but its very slow what i can do for make fast?

    my i phone 3gs ios 5.0.1 is runing very very slow what i can do for make fast runing ?

  • Mac does not start -your startup disk is full

    Hi, When i turn on my macbook pro 13" (snow leopard) i get the following message: "your startup disk is full you need to make more space available on your startup disk by deleting files" then i log on my account and the screen remains with the mac pi