Modifying the PGURI property of a dynamic cascading prompt

Hi,
I am trying to modify the PGURI property of a DCP using the SDK. The code looks like this:
Fields paramFields = (Fields) reportClientDoc.getDataDefinition().getParameterFields();
for (int u = 0; u < paramFields.size(); u++)
     ParameterField paramField = (ParameterField) paramFields.get(u);
     PropertyBag myPFProperties = paramField.getAttributes();
     PropertyBag myNewPFProperties = new PropertyBag();
     if (myPFProperties.containsKey("PGURI") == true)
     String uriString = (String) myPFProperties.get("PGURI");
     uriString = uriString.replace("ServerA", "ServerB") ;
     myNewPFProperties.put("PGURI",uriString);
     myNewPFProperties.put("IsDCP", true);
     paramField.setAttributes(myNewPFProperties);
     reportClientDoc.getDataDefController().getParameterFieldController().modify(u,paramField);
reportClientDoc.verifyDatabase();
reportClientDoc.save();
reportClientDoc.close();
System.out.println("\tSaved!");
The problem is that when I reopen the document and read the PGURI value the old value is still there (ie. eor://ServerA/<cuid> instead of eor://ServerB/<cuid>)
I am not sure if I am missing something here but I start to believe that the PGURI property does not reside inside the ReportClientDocument rather is read from the related business view (This is a DCP based on an SAP R/3 Table, Clusters and Functions source).
Any hints would be mostly appreciated!
Regards,
Stratos

Hi,
You mean
like this: <af:column headerText = "#{bindings.EmployeeView.hints.Name.label}" ../>
and in the bean
List<UIComponent> components = pBindTable.getChildren();
for (UIComponent component : components) {
RichColumn cc = (RichColumn)component;
System.Out.Println(cc.getHeaderText());
Iam getting the output.
reg,
bakkia.
Edited by: Bakkia on Jun 9, 2011 11:51 PM

Similar Messages

  • Dynamic Cascading prompt in Webi

    Is there a way either at Webi/Universe level to create dynamic cascading prompt in webi based on selection from first filter object.
    e.g. two objects, Region and Office.
    In webi, Region is the first filter, Office is the second.
    After user selects a Region, I want the second Office prompt values to display only the offices for the region that user's selected.
    Is there is a way to do? or a work round?
    If I just create cascading LOV, it will just display all regions and it's offices together.
    Thanks

    You try the below
    Go to the Office Property.
    Edit the List of Values for the Office object.
    Check the Automatic Refresh Before Use option.
    Click Edit.
    Bring Region into the Conditions and set it to: in list Prompt('What Region?')
    Click Save and Close
    Click Apply and edit the next LOV object.
    Save this Universe and let's generate a report.
    Now in the report you create the Prompt on Region. Prompt('What Region?')
    Have a look in to
    http://homepage.mac.com/rmetzk/PDF_Files/Cascading_Prompts.pdf
    Hope this may help you out.
    Edited by: srrachna on Apr 19, 2011 7:26 AM

  • How to include a default value in Dynamic cascading prompt from 2nd Level.

    Hi,
      I use Command Object in 'Datbase Expert' to create 'Custom Tables'  and use these tables to fetch LoVs. I use Dynamic Cascading Prompts in the reports.  I have a peculiar requirement using DCP.
      There are Four Levels as in the Example:
      Continent
       Country
       State
       City
      In the Custom Table, requirement is to create an additinal row with '' that represents 'All Values selected' for that level starting from second.  and The default selection should be '' . I defined that '*' means 'All Vales Selected in the report' This si not a problem. But the problem how to show a default value in a Dynamic Cascading Prompt i.e. how we can make sure in an default value can be selected in DCP from Second Level?
    how can the examples 1,2,3 can be achieved detaisled below beacsuse we need to show a default value in Casacading Propmt
    Eg of Schedules with DCP:
    Schedule 1   
      Continent: Europe
       Country: *
       State: *
        City:  *
      Schedule2:
       Continent: Europe
       Country: England
        State: *
         City: *
    Schedule 3:
        Continent: Europe
       Country: England
        State: Greater London
         City: *
    Schedule 4:
    Continent: Europe
       Country: England
        State: Greater London
         City: City of london

    You won't be able to have a true "default" value in the various cascading levels, since there aren't default values in a dynamic cascading parameter.  That being said, I've created a sample report in Crystal Reports 2008 that has a Command-driven DCP with '*' values for the 2nd and 3rd levels of my 3-tier DCP and have accounted for them in the record selection criteria.  You can find the sample here at https://www.box.net/shared/mav5qp337j

  • Dynamic Cascading Prompt based on Universe

    Hi,
    I am attempting to build a universe-query-based report which allows the user to select inputs based on a dynamic cascading prompt. I have created the cascading LOVs in the Universe design. However, when the user is asked to select inputs, the prompts do not appear to cascade. They show all possible values independent of each input(there are 3 inputs). When I try to manually create the dynamic cascading prompt on the actual report, I select dynamic parameter but it does not show any values under the Choose Data Source option. All it shows is "(None)". Any suggestions on how I can get this cascading prompt to work? I am using CR 2008 also.
    Thanks for you help!
    David

    Hey David,
    Steps to create connection in Business View Manager:
    1) Go to Start -> Program files > Business objects xir2> business objects enterprise > businessview manager.
    2) Click on New >
    3) Steps to create is Create a Data connection > Select Data Connection > Data sources > Save the data foundation.
    4) Second is to create a data foundation.
    Click New > Data foundation > Select the Data Connection and Select the Table.
    5) Third is to create a data element.
    Click New >Data Element > Select the Data Foundation Select the required fields for Lov from the table.
    6) Is to create a business view > New > Business View >select the data element > save the business view.
    7) Is to create a Lov> New > LOV > Select the business view > Select the fields for dynamic cascading parameter fields and save the LOV
    8) Open the crystal report designer > connect to the repository > create a new parameter > select dynamic> Select Existing > Select the LOV created through the business view manager.
    Note : Should Save all the Connection, data Foundation, business elements, business view and LOV separately and instantly.
    Let me know if any.
    Regards,
    Naveen.

  • Error using CR 11.5 with dynamic cascading prompts and SAP Integr.Kit XI R2

    Hi,
    we are using the SAP Integration Kit XI R2 (patched up to FP4.3) in order to report SAP BW data (BW 3.5) in Crystal Reports 11.5 (SP 4). In order to access the stored BEx Queries we use either the SAP BW Query or the SAP BW MDX Query Driver (_we DO NOT use any universes_). Everything seems to work fine ex cept when we want to use dynamic cascading LOVs within CR. For example when a user runs a report she/he should select first a customer group (0CUST_GROUP prompt) and then the customer (0DEBITOR). Defining the cascading prompts with dynamic LOVs is no problem in CR and when the report runs (either in CR Designer or in InfoView) both prompts appear. Still when we do a selection for the first prompt (0CUST_GROUP) we get a 0x8004380D error with the text message stating that the system is not able to retrieve the LOV data (I guess for the 0DEBITOR prompt). Please note that we do not get a corba error and no firewalls are activated. We checked the trace files of the page server and found out that there was an error calling the createRowsetCursor function within enginekernel.cpp.
    Any hints on our case will be mostly appreciated. We have the feeling that we are hitting a bug here but maybe we are overseeing something.
    Cheers
    Stratos
    PS: Please note that if we access directly the ODS Object (SAP ODS driver) the dynamic cascading prompts on exactly the same InfoObject (or better their keys in the ODS) work without a problem.

    Hi Stratos
    You can define LOV's in universes but unfortunately you can not use universes based on SAP in Crystal Reports.
    You can define parameters in the Bex query which are passed on to Crystal Reports, so you don't need to define them in the Business Objects tools. Please have a look at the SAP Integration Kit user's guide
    Roland

  • Creation of Dynamic cascading prompts

    Hi, Could you please let me know how to create Dynamic Cascading Prompts at Universe level?

    Hi,
    Dynamic Cascading prompts can be created using Cascading lovs. For this you should have some hierarchies defined in universe (assumption) and go to tools-> lovs -> cascading lovs -> in the window all the available hierarchies are displayed for you -> select a required hierarchy from left side and place it in right side -> click on generate lovs (in between create a prompt name that should appear for this hierarchy) and in query panel level -> insert a prompt for the least granular object in the hierarchy then in report you will get a cascading prompts for that hierarchy.
    Cheers,
    Suresh Aluri.

  • Creating Dynamic Cascading Prompts Without Business View manager?

    How can we create dynamic cascading prompts without Business View Manager??

    Creae a parameter in Crystal Report Designer. I suggest you read the help on how to also.

  • Can I modify the data type of a dynamic parameter?

    I am using CR2008 against an Oracle 11 db and have a report with dynamic parameters.
    One of the report sources is a custom view that selects all of the possible 'pay ending dates' where one of the fields from this view is used as the source for the dynamic parameter.
    The view performs a TRUNC on the date field in an effort to eliminate the TIME component.
    The problem is that the parameter definintion defaults to DATE/TIME (vs. just DATE). I'm wondering if there is any way to modify the data type of the parameter to be DATE only.
    I've searched several forumns but have not found anything.
    One solution I can think of is to have the custom view format the date field as a VARCHAR (sans the time component) which I assume would force the dynamic parameter data type to string, and then have the report perform a todate function on the value when applying the criteria.
    Anyone else have an idea? Just seems like CR should allow the developer to specify the data type- especially b/w Date and Date/Time, rather than make an assumption.
    Thank you in advance-
    emaher

    emaher,
    Here's what you can do:
    Leave the existing date column as it is in the view...
    Just add another column to the view that casts the the date as a VarChar data type and formats the date as you would like it to be.
    So now you'll have 2 date columns in the view... 1 that's still a date and another that a character string.
    Now for your parameter, use the date version as the parameter value and the text version as the parameter description.
    Be sure to set the "Prompt with description only" is set to true.
    This way the user sees the LoV in the desired format but there's not need to wrangle it back into a date for data selection.
    HTH,
    Jason

  • How to modify the text property of a textobject when it contains a formula.

    I have a textobject with a text property of
    "Accounting Period to {@periodend}"
    When I try and modify it though it changes  {@periodend} to literal text and it doesn't get evaluated. 
    I'd like to modify the textobject without losing the formula.
    Thanks in advance,
    J

    Sorry about that.  I'm using
    VB.Net 2008 (for prototype, translating to C# for production)  9.0.30729.4462 QFE.
    CR2008 12.3.1.684
    CrystalDecisions.CrystalReports.Engine 12.0.2000.0
    CrystalDecisions.CrystalReports.Design 12.0.2000.0
    CrystalDecisions.Shared 12.0.2000.0
    I'm thinking that a clue might reside in the RAS but my version iof CrystalDecisions.ReportAppServer.ReportDefModel is 12.0.1100.0
    J

  • Reports: Need to modify the width of a field on Dashboard prompts

    Hello gurus,
    We have configured a report, and exposed it on the Dashboard. One of the fields in the Dashboard prompts called "Account Name" is unusually large. We assume this is because it is fetching the data directly from the DB, and the width is to show the complete name.
    The client wants to reduce this width such that it looks nicer.
    We didn't find any such options in the Dashboard prompts' settings. Please let us know, in case somebody is aware of a work-around.
    Thanks in advance..

    open the query window in the data model, change something like adding a space at the end of a line and press ok. Reports should chekc now against the database the maximaum length and re-adjust the fieldlength. to explicity set the fieldlength, use a CAST(COLUMNNAME AS VARCHAR2(1500)) instead of the COLUMNNAME in your query.

  • Dynamically modify the crystal report field size based on Paper size in C#

    Hi,
    I need to modify the Crystal Report field size dynamically based on the paper size using C# .Net. According to the paper size, crytal report field width should be increase or decreae.
    Kindly suggest any solution on this.
    Thanks

    Moved to .NET SDK forum
    See these RAS samples:
    http://wiki.sdn.sap.com/wiki/display/BOBJ/NETRASSDK+Samples#NETRASSDKSamples-Exporting%2FPrinting
    Don

  • CR XI Cascading Prompt on Dynamic Parameter Value

    Hi friends need a help related to Cascading prompt parameter in CR XI.
    I need to modify an existing report wherein Stored Procedure having a parameter is used as a datasource. Now in Report when I go in edit mode for that parameter under the value section of it a query (&select col1,col2 from tbl where userid='value coming from front end app') is written which populates the value to select the particluar value to pass as a parameter. First of all what this functionality is termed as I am not aware of it please help me with it if somebody knows it. Also in the select list its mention 2 columns but when we run the report at that time the col2 data is only being displayed in dropdown and col1 which is a id field is passed in record selection formula.
    Now as per our requirement we need to introduce 1 more parameter for record filtering i.e. based on the above parameter value. This can be achieve through Dynamic Cascading Prompt. But the challenge is to use Cascading Prompt funcionality its necessary that both the parent & child field should be populate from db but here the parent value is populate using a query as I stated so in that case how to achieve this.
    Sorry if I am not able to explain the scenario properly.
    Please friends help as soon as possible.

    Looking at the Prompt text you have mentioned, it looks like you guys might have a front end SDK solution which passes the prompt values to the 'Report'. The cascading 'imitation if you will' might be happening on the front end page and not really using the report(s) cascading prompts. To help better i think you should answer following.
    1. where are users viewing this report.
    2. In your CR designer, do you see cascading prompt on existing prompts?
    3. what version of Crystal reports are you using and where is it hosted ?

  • LCM Error in promoting Crystal Reports using Dynamic Cascading

    Hi,
    I am having one Crystal report, developed in CR XI R2 ,it is using one Dynamic cascading prompt.The DB is Oracle Server.
    The report is working fine on standalone desktop as well as Dev server .
    But when i try to move this report using LCM to Production (Dev to Prod or Dev to Test) it throws error "Promotion failure - Trying to create an object with duplicate name" .
    I have gone through LCM document ion and found that we need to select report as well as the BVM or dynamic cascading .I tried this option also but it didn't work.
    Can anyone suggest what i am missing ?
    thanks
    Nitin

    In the destination system there is another report with the same name but different CUID, can you confirm?
    - Maheshwar

  • Unable to set the colorIndex Property of the Interior Class

    HI
    Iam trying to Update the Accound Dim with New Property 'CostAcc" IN SAP BPC.
    i entered the text and lenth of the property then i clicked on Modify The Dim Property. then its giving a warning message"Unable to set the colorIndex Property of the Interior Class"
    BPC Experts pls send me a  sollution
    Thanks in advance
    Regards
    NarsiP
    SAP BPC Consultant
    OutLookSoft SA

    Did you process your account dimension before to add you property?
    Are you sure that your account dimension was working before to apply your modification?
    Did you add just one property ore more properties?
    Did you delete any existing properties?
    Did you try to do modify account dimension without adding any porperties to see if that dimension is fine?
    Regards
    Sorin Radulescu

  • Modifying the width of the DESNAME system parameter in Reports 6i

    This is probably so simple so I apologise for posting it here but I've been asked to look at an error with an Oracle Report (Reports 6i) (I've never really used Reports).
    When attempting to run the report, we get the following error :
    REP-0091: Invalid value for parameter 'DESNAME'.
    I think this is because the runtime value supplied for the DESNAME parameter exceeds the width property defined in the report. However, I cannot seem to modify the width property in Report builder.
    Can someone tell me how to modify the width property for the DESNAME system paramter ??

    Hi!
    I don't think it is possible to increase its width. It's a system parameter which can have several pre-defined or user-defined values. Check the documentation or help regarding this.
    Also, I think you can check several things.
    1. Check "Report Triggers" if any. DESNAME can be modified there. Menu item "Program" --> "Find and replace in PL/SQL..." can help to search the code.
    2. But more likely, incorrect value of DESNAME is passed into report from a calling module or batch script, or whatever. It can be a RUN_PRODUCT call in forms, or RWRUN60 in script. Check DESNAME there.
    3. Try to debug. Use srw.message to display DESNAME value at report startup, for instance in "before parameter form" trigger.
    Regards,
    Andrew Velitchko
    BrainBench MVP for Developer/2000
    http://www.brainbench.com

Maybe you are looking for

  • Is there a way to share an Itunes7 Library on my home network ?   I have installed itunes on another computer and it wont recognixe my library on Computer

    Is there a way to share an Itunes7 Library on my home network ?   I have Itunes 7 with 5000 songs on Computer #1 Windows XP and I don't update to a later Itunes because I love the way 7 handles showing the library . I have installed Itunes 10 on anot

  • Need a Classic-compatible printer. . .

    Hi everyone, My Epson Stylus Photo 820 is making alarming grinding sounds when I try to print, and no black ink appears to be flowing into its innards. I'm thinking it's time for a new printer--are any of today's printers automatically compatible wit

  • Xperia z gyroscope problem

    Hi.please i need help.since the last update to 4.3 my gyroscope and proximity sensor are not working anymore.so the auto rotation and all games and apps that depends on gyroscope are useless.i have done the repair process on pc companion but still no

  • Parameterized views

    Hello, I currently have a pretty nasty query involving hierarchial subqueries which I reuse multiple times in my application. I would like to store this query in the database as a view so that my code would be more modular. Is there a way to create a

  • Simple help with a delete statement

    hello guys i have a table like such CREATE TABLE FWENCUM     "FWENCUM_FUND"            VARCHAR2(6 BYTE),     "FWENCUM_GRNT"            VARCHAR2(9 BYTE),     "FWENCUM_ORG"             VARCHAR2(6 BYTE),     "FWENCUM_PROG"            VARCHAR2(6 BYTE),