Modify Sort Parameters Programmatically

Hello
    I have a Crystal Report 2008 created with the Group Sort in the report saved to "No Sort". I have a VB.Net windows form application that reads an input file that contains several report parameters including sort options for this report. I need to open the Crystal Report and modify the original sort using the sorting options from the input file. Some of the sort options involve TopN sorting.
   I can view the SortField object properties in the ReportDocument.DataDefinition.SortFields collection for each sort group. But all the properties are read-only. I also noted there is no "Add" option in the SortField collection.
   I need to find a way to programmatically change a group's sortField (or modify another object if SortField is not the right approach) from a "No Sort"  to a "TopN sort".
   Any help or suggestions are appreciated.

It is not possible to add sort fields, but you can modify thse. See the kbase [1201611 - Can you add report sort field using Visual Studio .NET 2005 with Crystal Reports XI R2|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] for more details.
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup

Similar Messages

  • Need help in modifying mapping parameters of out the box mapping

    Hi There,
    I am a new bee to dac.
    Need help in modifying mapping parameters of out the box mapping, which is invoked by DAC task.
    We got a requirement to edit mapping parameter. When I go and see parameter under mappings tab in a mapping, I could not see any values in it.
    But when I set any value, and validate it. It is successful.
    Is it right way to do it?
    What my concern is, When I initially go and see parameter values under maapings tab in a mapping, they are blank.
    Where is it storing these values?
    Thanks,
    Rag

    If you modify mapping then u have to create new task in dac and dac itself craete parameter file at run time. if you want to add more parameters then do it in dac system parameters tab.
    Thanks
    Jay.

  • How to modify Adapter parameters in PI 7.1 EHP1 ? using NWA

    Hi,
    Please advise me how to modify adapter service parameters in PI 7.1 EHP1 using nwa ?
    in the previous version 3.0 and 7.0, i can use visual admin ---> cluser -
    > services and i can find all the adapter service and modify the parameters.
    Thank You and Best Regards
    Fernand Lesmana

    Hello Fernand
    You can use the following alias to link directly to the PI adapter services
    http:<hostname>:<port>/nwa/sys-config
    See the link below for further details on this.
    Java Service Properties for the Adapter Framework 
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/9f/cbd1413f389c39e10000000a155106/content.htm
    Regards
    Mark

  • How do I fix or open a corrupted file that has been corrupted by some sort of programmatically email

    How do I fix or open a corrupted PDF file that has been corrupted by some sort of programmatically emailing?
    Please see the following screen shot:
    http://i67.photobucket.com/albums/h292/Athono/pdfproblem_zpsbd9bdc00.png

    Well, it is a pdf file, and it once was a readable one, I suppose.
    It must have data on the hex or binary level that can be retrieved. 
    If necessary, I will have to look into the file format of a PDF file?  Is this documented?

  • Crystal Report. How to create sort field programmatically?

    After updating CrystalReports to version 13.0.10 I noticed a strange feature in Details section. I'm filling in the Subreport Details section from the User Table. Previously the data was displayed in the order it was in the database. Every time I open the report data now it is displayed in a different order. There is a huge amount of crystal report documents and I am not able to change each document. Is it possible to add a new sorting field programmatically? (I found only how to change existing sort fields)

    Hi Aliaksandr,
    I used the top right corner search box on this page and enterred "sort, field, runtime, crystal, sdk, .net" keywords.
    Here are the first three results.
    http://search.sap.com/notes?id=0001201611&boj=/sap/bc/bsp/spn/scn_bosap/notes.do?access=69765F6D6F64653D3939382669765F7361706E6F7465735F6E756D6265723D30303031323031363131
    http://search.sap.com/notes?id=0001638023&boj=/sap/bc/bsp/spn/scn_bosap/notes.do?access=69765F6D6F64653D3939382669765F7361706E6F7465735F6E756D6265723D30303031363338303233
    http://search.sap.com/notes?id=0001613588&boj=/sap/bc/bsp/spn/scn_bosap/notes.do?access=69765F6D6F64653D3939382669765F7361706E6F7465735F6E756D6265723D30303031363133353838
    Complete search is here.
    http://search.sap.com/ui/scn#query=sort%2C+field%2C+runtime%2C+crystal%2C+sdk%2C+.net&startindex=1&filter=scm_a_site%28scm_v_Site11%29&filter=scm_a_modDate%28*%29&timeScope=all
    Please search before posting.
    - Bhushan
    Senior Engineer
    SAP Active Global Support
    Follow us on Twitter
    Got Enhancement ideas? Try the SAP Idea Place
    Getting started and moving ahead with Crystal Reports .NET applications.

  • Changing Variant Parameters Programmatically

    Hi Guys/Dolls
    I've developed a program that has a user selection date range on it and I have saved this program as a variant. I submit this program has a batch job on a monthly basis but need to change the dates on the variant each month to be the start and end date of the previous month.
    I believe I need to use the following Function Modules; please correct me if I am barking up the wrong tree. Unfortunately I have absolutely no idea how to use them within ABAP. Do I need anything else to change my variant parameters?
    RS_VARIANT_CONTENTS
    RS_CHANGE_CREATED_VARIANT
    Does anybody have a very small snippet of code that will allow me to change the date of the variant.
    Many thanks in advance.
    Raj

    Ok Guys/Dolls
    I've managed to hack a solution and have posted this for reference.
    The code is as follows:-
    FORM change_variant .
      DATA: h_rc LIKE sy-subrc.
      DATA: ival TYPE STANDARD TABLE OF rsparams WITH HEADER LINE.
      DATA: ls_variantdesc LIKE varid.
    *1st check to see that the variant exists.
      CALL FUNCTION 'RS_VARIANT_EXISTS'
        EXPORTING
          report              = sy-repid
          variant             = variant_name
        IMPORTING
          r_c                 = h_rc
        EXCEPTIONS
          not_authorized      = 01
          no_report           = 02
          report_not_existent = 03
          report_not_supplied = 04.
    * If variant exists then obtain the contents of the variants.
      IF h_rc = 0.
        CALL FUNCTION 'RS_VARIANT_CONTENTS'
          EXPORTING
            report                      = sy-repid
            variant                     = variant_name
            move_or_write               = 'W'
    *   NO_IMPORT                   = ' '
    *   EXECUTE_DIRECT              = ' '
    * IMPORTING
    *   SP                          =
          TABLES
    *   L_PARAMS                    =
    *   L_PARAMS_NONV               =
    *   L_SELOP                     =
    *   L_SELOP_NONV                =
            valutab                     = ival
    *   OBJECTS                     =
    *   FREE_SELECTIONS_DESC        =
    *   FREE_SELECTIONS_VALUE       =
    * EXCEPTIONS
    *   VARIANT_NON_EXISTENT        = 1
    *   VARIANT_OBSOLETE            = 2
    *   REPORT_NOT_EXISTENT         = 3
    *   OTHERS                      = 4
        IF sy-subrc = 0.
    *     Change value of the variants to what you want it to be.
          LOOP AT ival WHERE selname EQ 'PNPBEGDA' OR
                             selname EQ 'PNPBEGPS' OR
                             selname EQ 'PNPENDDA' OR
                             selname EQ 'PNPENDPS'.
            ival-low = ''.
            MODIFY ival.
          ENDLOOP.
          LOOP AT ival WHERE selname EQ 'P_CNGDAT'.
            ival-low  = '20000201'.
            ival-high = '20001231'.
            MODIFY ival.
          ENDLOOP.
    *   Now re-save the variant with the appropriate changes.
    *     Clear and re-populate the variant description.
          CLEAR ls_variantdesc.
          ls_variantdesc-aename   = sy-mandt.
          ls_variantdesc-aename   = sy-uname.
          ls_variantdesc-aedat    = sy-datum.
          ls_variantdesc-aetime   = sy-uzeit.
          CALL FUNCTION 'RS_CHANGE_CREATED_VARIANT'
            EXPORTING
              curr_report                     = sy-repid
              curr_variant                    = variant_name
              vari_desc                       = ls_variantdesc
    *   ONLY_CONTENTS                   =
            TABLES
              vari_contents                   = ival
    *   VARI_TEXT                       =
    *   VARI_SEL_DESC                   =
    *   OBJECTS                         =
           EXCEPTIONS
             illegal_report_or_variant       = 1
             illegal_variantname             = 2
             not_authorized                  = 3
             not_executed                    = 4
             report_not_existent             = 5
             report_not_supplied             = 6
             variant_doesnt_exist            = 7
             variant_locked                  = 8
             selections_no_match             = 9
             OTHERS                          = 10.
          IF sy-subrc = 0.
            PERFORM set_pnp_default.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDFORM.                    " change_variant
    FORM set_pnp_default.
    * The following 2 statement will set Today as the default on the PNP
    * selection and also move the cursor to that field.
    * IMPORTANT NOTE - you must have 'PNPTIMR1' in capitals otherwise it
    * doesn't work.
      pnptimed = 'D'.
      SET CURSOR FIELD 'PNPTIMR1'.
    ENDFORM.                    " set_pnp_default

  • Crash - CR 2008 crashes constantly when trying to modify query parameters

    Hello,
    When i create a query with 2 parameters of type Date or Date/Time.
    If I try to modify the query sometime after, Crystal Report crashes all the time.
    If i create only 1 parameter of type Date or Date Time, I can modify the query without any problems.
    Any idea why?
    Is there a workaround?
    Thanks

    Install SP2 and test again. If it's still an issue re-post your question.

  • Practical to modify app parameters for deployed app (using Builder, perhaps)?

    I see that it's very convenient to deploy a WAR file to WebLogic using WebLogic
    Builder. It's also easy to edit the init parameters of a WAR file and redeploy
    it.
    I'm wondering, however, how practical it will be to dynamically edit application
    parameters and redeploy in a production environment.
    For instance, if I'm in my development environment, I will definitely have a WAR
    (exploded or not) in my build environment that I can edit and deploy.
    In production, however, we don't necessarily have the original WAR that was referenced
    in the deployment, we have what was installed into WebLogic. Is it practical to
    run WebLogic Builder on an already installed WAR file, edit it, and then redeploy
    it? Would we instead have to store the WAR file to be deployed into a "staging"
    environment before it is actually deployed? Any changes made to the WAR by the
    administrator would be made to the staged WAR file and then redeployed. I guess
    the "staging" filesystem would have to be reachable by the host where the administrator
    runs WebLogic Builder.

    "David M. Karr" <[email protected]> wrote in message
    news:[email protected]...
    >
    "Sanjeev Chopra" <[email protected]> wrote:
    "David M. Karr" <[email protected]> wrote in message
    news:[email protected]...
    I see that it's very convenient to deploy a WAR file to WebLogic usingWebLogic
    Builder. It's also easy to edit the init parameters of a WAR file andredeploy
    it.do you mean servlet init-param ?Both that and context init parameters.
    I'm wondering, however, how practical it will be to dynamically editapplication
    parameters and redeploy in a production environment.
    For instance, if I'm in my development environment, I will definitelyhave
    a WAR
    (exploded or not) in my build environment that I can edit and deploy.
    In production, however, we don't necessarily have the original WARthat
    was referenced
    in the deployment, we have what was installed into WebLogic. Is itpractical to
    run WebLogic Builder on an already installed WAR file, edit it, andthen
    redeploy
    it?
    Would we instead have to store the WAR file to be deployed into a
    "staging"
    environment before it is actually deployed?If the .war is deployed with staging mode as "stage", you should have
    no
    problem modifying the master copy and then doing a redeploy. The redeploy
    operation will take care of copying the modified .war to the staging
    areas
    of all targets.Ok, but what I'm wondering is if this "master copy" that you refer to isin a
    location that we set up outside of WebLogic, or whether that is where thedeployed
    WAR gets stored. I'm trying to determine whether WARs that get deployedwill first
    have to be stored outside of WebLogic in a directory that we control,which will
    be on a filesystem that will be accessible by the administrator runningWebLogic
    Builder (using Samba, perhaps).The 'master copy' is the path specified to the deployment tool (deployer,
    admin console) when you deployed the app to WLS. So yes, if thats not
    available to the user running builder, they have to keep a copy, modify it
    and make it available to the admin.

  • VS2010 Cannot pass Parameters Programmatically

    When I assign reports programmatically in VS2010, the box to enter parameters pops up.  I am using a simple .SetParameterValue statement. THis worked in VS2008.

    Hi,
    I also experienced this problem and managed to get passed it. I found the new property on the report viewer called 'ShowParameterPanelButton' and set it false however that did NOT solve my problem.  Remember too that property values are language specific if your form is localizable.
    It seems that Crystal has always had problems (well without going further, that about says it all but...) with resolving the server at run time if the server was not resolved at design time. For example, developer a report against a server, later open the report at design time where the server is no longer valid, close the report without resolving a new server, build and ship and it will probably fail to resolve the server at the customer installation. The moral is, if the report is opened at design time, the server configuration must have integrity. Go to the menu of the design time surface for the report, Select the menu Crystal.., Database, Set DataSource Location and make sure each object for the report is correctly set to a valid server. Then in the Main Report View tab of the designer, refresh the report and be sure that either the parameter selection window opens or the report displays data if there are no report parameters. While you are at it there is a check box at the top of this surface 'Save Data in Report'. I don't know what the deal is there, can't find an explanation in the docs but I unchecked it.
    Note that saving the report will cause a prompt to save in the NEW format which I assume is the new SAP sauce, Ok.
    After performing the above actions my reports again worked correctly while otherwise would simply ignore parameters and return huge data sets.
    I don't like black magic answers and I especially detest the 'I dunno it works for me' answers one so commonly finds in forums. Probably only second in annoyance to answers in the flavor 'rewrite it all this way and it should work'. What I presented above solved my problem, I hope it allows you to get passed one of the many mysterious trip points that makes Crystal such a 'joy'.
    My project is now about 7 years along and since I took the trouble to offer the above let me also indulge in a minor rant.
    My project is large and sophisticated but with all the analysis, design and coding, no problem consumed as much time, energy in terms of shear frustration, customer dissatisfaction in terms of unexpected behavior on their servers as Crystal Reports! It has been the bane of my experience on my otherwise extemely satisfying project. I have suffered through the product changing hands multiple times and yet never presenting more plainly documented or otherwise satisfying experience to the developer. I am not alone in my frustration as any developer with Crystal experience will agree even if they have been fortunate enough to benefit from someone elses knowledge.
    What was once the darling of the fledging VB community is, in my opinion, a quirky, difficult to code legacy product over shadowed by so many better products that have kept pace with modern development practices. Thankfully I need only keep existing reports working, not create new ones in Crystal Reports.
    Considering it is not open source, Crystal should present; clear documentation, good examples, clean library interfaces and great online problem resolution. In my opinion it has never stepped up to any of the above. I acknowledge the forums and I did manage to find and purchase one book over the years though frankly it was not useful.
    That is my rant against Crystal, it has been 7 years in coming. Good luck SAP. For the sake of all dependent developers I hope you do more than put a token of effort into the product and then sell it as your predecessors have done or extricated themselves from what is probably by this time, a nightmare of code under the covers.

  • Setting control parameters programmatically - using variables...

    Please excue typos - I lost my glasses the other day and I'm waiting on a new pair to come in.
    I need to be able to change the 'editable' and 'enabled' properties on a variety of controls programmatically. I'm adding 'after the fact' Role support to an application and the customer has asked for a way to change the visibility and editability on specific controls.
    I've created a role management system where the controls are stored in an XML file and the application administrator has the ability to define roles by changing what a user (belonging to a Role) can see and change.
    based on:
    <filename canAccess="false" fileName="canSearch.mxml" friendlyName="Claim Search">
      <controls>
        <control controlID="control ID" controlLabel="control ID" controlType="type" editable="false" visible="false"/>
        <control controlID="control ID" controlLabel="control ID" controlType="type" editable="false" visible="false"/>
      </controls>
    </filename>
    I could:
    if(controlType == whatever)
         display based on xml information
    but I'd have to add new code for each additional control type that we may add later..
    what I'd like to do is:
    var controlID:controlType;
    controlID.editable = controls.control.@editable;
    but of course,
    "Type was not found or type was not a compile-time constant: controlType"
    Is there a way to do this entirely programmatically?

    This is the code I'm testing:
    for each(var control:XML in roleInfo.role.(name == rolesA[0]).filename.(@fileName == calledFileName).controls.control)
         var tempControlID:String = control.@controlID;
         this[tempControlID].enabled = control.@enabled;
         this[tempControlID].editable = control.@visible;
    against the following XML structure:
    <roles>
    <role>
        <name>Claims Viewer</name>
        <description>This User can only view claims.</description>
        <filename canAccess="false" fileName="canSearch.mxml" friendlyName="Claim Search">
          <controls>       
            <control controlID="txtTIN" controlLabel="TIN:" controlType="Text Input" editable="true" visible="true"/>
            <control controlID="txtNPI" controlLabel="NPI:" controlType="Text Input" editable="true" visible="true"/>
          </controls>
        </filename> 
        <filename canAccess="true" fileName="canNewClaim.mxml" friendlyName="New Claim">
          <controls>
             <control controlID="txtPatientID" controlLabel="Patient ID:" controlType="Text Input" editable="true" visible="true"/>
             <control controlID="txtSubscribe" controlLabel="Subscriber ID:" controlType="Text Input" editable="true" visible="true"/>
             <control controlID="txiDOB" controlLabel="Patient DOB:" controlType="Text Input" editable="true" visible="true"/>
          </controls>
        </filename>
      </role>
    </roles>
    The idea is to be able to change editable, enabled, and other properties such as 'includeInLayout' based on the role restrictions contained in the XML file.
    I am hoping to be able to do this without having to resort to:
    if(controlType == mxLabel)
      apply settings
    else ig(controlType == someOtherControl)
    apply settings
    (repeat until all control types are covered)
    The problem is that not all controls use all, or even the same, properties e.g; <mx:Label> doesn't support 'editble' so evein this method may not be optimal.  I was thinking to use a try-catch block with it to contain errors, but that sounds a little too 'brute-force'.
    for each(var control:XML in roleInfo.role.(name == rolesA[0]).filename.(@fileName == calledFileName).controls.control)
         var tempControlID:String = control.@controlID;
         this[tempControlID].enabled = control.@enabled;
         try
           this[tempControlID].editable = control.@visible;
         catch(e:ErrorMessage)
              //handle 'editable' differently
    Where rolesA[0] is the Claims role from the User database that we want to match to the applicable role in the XML file, and calledFileName is the name of the file we want to manage the controls for.
    I am using an XSD to support the XML file, so I may change the XML structure to have appropriate controls for each control type, however that would make the page that supports modifying the XML very difficult to code (for me , at least)
    On the boolean conversions, could I do this?
    this[tempControlID].enabled = control.@enabled as Boolean;
    Does this make any sense, or am I overcomplicating things?

  • Modify HttpServletRequest parameters

    Hi all
              How can I modify a parameter value of the HttpServletRequest object
              inside a servlet and then forward it to another servlet ?
              Warren
              

    Parameters are not modifiable. You can put information in a request
              attribute though, if the second servlet knows to look there first.
              // first servlet
              request.setAttribute("name", value);
              // second servlet
              value = request.getAttribute("name");
              if (value ...
              Cameron Purdy, LiveWater
              "Warren Li" <[email protected]> wrote in message
              news:[email protected]..
              > Hi all
              >
              > How can I modify a parameter value of the HttpServletRequest object
              > inside a servlet and then forward it to another servlet ?
              >
              >
              >
              > Warren
              >
              

  • Modify portlet preferences programmatically

    Hi,
    I need to create a desktop programmatically and then change the value of a portlet preference in every portlet of the desktop I just created.
    I create my desktop like this :
    DesktopDefinition def = desktopDefinitionControl.createDesktopFromPortalFile("myAppWeb/test.portal", "VisitorDesktop", "Visitor description",
                             "myAppWeb", new PortalPath("portal"), new DesktopPath("visitorDesktop"), CustomizationContext.DISASSEMBLER_ACCEPT_TEMPLATE,
                             ResourceContext.createResourceContext(this.getRequest(), true));
    and it works fine. I now need to get all the portlets of this desktop and modify a specific portlet preference.
    Is there a way to get all the portlets from a desktop ??
    Thx for your help,
    Guillaume
    (I use Weblogic Portal 10.0)
    Edited by: gdahan on 13 nov. 2008 08:41

    Please repost this in the WebLogic Portal forum:
    WebLogic Portal

  • Modify application configuration programmatically

    Hi,
    I created an EAR application (NWAS Java 7.20) an added a sap.application.global.properties file. Everything works fine, but I have two major problems:
    1. It is not possible to add new properties using Netweaver Administrator GUI. You can only modify those defined in sap.application.global.properties
    2. There is no clean up if you change the sap.application.global.properties (i. e. add and remove properties). After a  redeploy you keep all removed properties and it's not possible to delete the using the administrator gui.
    Is there a way to create, modify and delete those properties programmatically on NWAS Java 7.20? I know it was possible in older versions, but I found no solution to do this on 7.20. (And yes, it's a CE installation, but we don't use any CE features so I decided to post my question in this forum)
    Or maybe someone knows a secret GUI to add and delete properties. 
    Best regards,
    Markus

    Hi Markus
    Did you find out how you can delete the properties in NWA that have been removed from the file?
    Best regards,
    Tobias

  • Modifying a ConverterParameter Programmatically

    I have the following in my Page.Resources:
    <x:Int32 x:Key="SelectedGiftIndex">0</x:Int32>
    And the following in my page:
    <Pivot x:Name="pivRecipients" Grid.Row="1" Background="Transparent">
    <Pivot.ItemContainerStyle><Style TargetType="PivotItem"><Setter Property="Margin" Value="0"/></Style></Pivot.ItemContainerStyle>
    <Pivot.HeaderTemplate><DataTemplate><TextBlock Text="{Binding Name}" FontSize="60" FontFamily="Arial"/></DataTemplate></Pivot.HeaderTemplate>
    <Pivot.ItemTemplate>
    <DataTemplate>
    <ScrollViewer>
    <ItemsControl ItemsSource="{Binding Gifts,Converter={StaticResource GiftsWithIndex}}">
    <ItemsControl.ItemsPanel><ItemsPanelTemplate><StackPanel/></ItemsPanelTemplate></ItemsControl.ItemsPanel>
    <ItemsControl.ItemTemplate><DataTemplate><RadioButton Style="{StaticResource GiftRadioButtonStyle}" Content="{Binding}" Checked="Gift_Checked" Tag="{Binding Index}" IsChecked="{Binding Index,Converter={StaticResource BooleanEquals},ConverterParameter={StaticResource SelectedGiftIndex}}"/></DataTemplate></ItemsControl.ItemTemplate>
    </ItemsControl>
    </ScrollViewer>
    </DataTemplate>
    </Pivot.ItemTemplate>
    </Pivot>
    As you can see, I use the resource (an Int32/Integer) as the ConverterParameter in my ItemsControl's DataTemplate's RadioButton. This works fine, except for the fact that I cannot change the resource programmatically. I tried the following:
    Me.Resources("SelectedGiftIndex") = 1
    I even checked to make sure it (I thought) got changed by using the following code:
    System.Diagnostics.Debug.WriteLine("SelectedGiftIndex: {0}", Me.Resources("SelectedGiftIndex").ToString())
    And according to this, it did get changed. But the rest of my code still sees it as it's original value (0). I have read that resources cannot be changed because they are compiled with the rest of the code. That would explain why all this is happening. So why
    do I want to use a resource for this? Because the ConverterParameter in my ItemsControl's DataTemplate's RadioButton is not constant, I need a way to change it programmatically, and I was not sure how else to do that. I have never programmatically modified
    a Binding before, and I figured it would be more efficient (if it was an option, but I guess it isn't) to modify a single value (the resource) than recreate the Binding every time. I have heard stuff about binding to variables, but I have never figured out
    how to bind to anything defined in the codebehind. Can anybody help me find a way to programmatically edit the ConverterParameter? Thanks.
    Nathan Sokalski [email protected] http://www.nathansokalski.com/

    I am having trouble accessing the hidden element. Here is the element I have added:
    <TextBlock x:Name="txtSelectedGiftIndex" Visibility="Collapsed" Width="0"/>
    And here is my new binding code:
    <ItemsControl ItemsSource="{Binding Gifts,Converter={StaticResource GiftsWithIndex}}" FontFamily="Global User Interface">
    <ItemsControl.ItemsPanel><ItemsPanelTemplate><StackPanel/></ItemsPanelTemplate></ItemsControl.ItemsPanel>
    <ItemsControl.ItemTemplate><DataTemplate><RadioButton Style="{StaticResource GiftRadioButtonStyle}" Content="{Binding}" Checked="Gift_Checked" Tag="{Binding Index}" IsChecked="{Binding Index,Converter={StaticResource BooleanEquals},ConverterParameter={Binding Width,ElementName=txtSelectedGiftIndex,Converter={StaticResource ToInteger}}}"/></DataTemplate></ItemsControl.ItemTemplate>
    </ItemsControl>
    However, this gives me a NullReferenceException for the parameter argument in my BooleanEquals converter (an IValueConverter that returns True or False based on the value and parameter). I have tested that the binding expression I use for the ConverterParameter
    works:
    {Binding Width,ElementName=txtSelectedGiftIndex,Converter={StaticResource ToInteger}}
    By using it for the Text property of another TextBlock. So I am assuming that the problem has something to do with the fact that the binding expression is inside the DataTemplate. What do I need to do to access an external element from inside
    a DataTemplate? Thanks.
    Nathan Sokalski [email protected] http://www.nathansokalski.com/

  • How to change report attributes like heading, sort etc programmatically

    Some of the columns from a classic reports using pl/sql as region source should be sortable. Is it possible to change this attribute (sort = yes) using JavaScript or APEX API?
    David
    Edited by: david on Sep 6, 2011 11:56 PM

    There is something I don't understand here. Why do you need to point at the sxd? What is changing? Like I mentioned before. If the contents of the xsd change, all the report will do is - at best - drop the changed fields so you will be missing data. Perhaps some of the following will help;
    [Crystal Reports Guide To ADO.NET|http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/401c4455-a31d-2b10-ae96-fa57af5aec20?quicklink=index&overridelayout=true]
    [Crystal Reports For Visual Studio .NET Reporting Off ADO.NET Datasets|http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/2091d0c3-da1d-2b10-22be-a3426b183f75?quicklink=index&overridelayout=true]
    [Crystal Reports For Visual Studio 2005 Walkthroughs|http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23?quicklink=index&overridelayout=true] (page 332 on).
    Ludek

Maybe you are looking for

  • Can I use my macbook with a mac mini

    can I use my macbook with a mac mini

  • Clafirication on Login Detials  when using JNDI in Toplink

    Hi, I am using Toplink in my application for connecting to Database using JNDI ,which is specified in session.xml ,given below <toplink-configuration> <session> <name>default</name> <project-xml>META-INF/toplinkMapping.xml</project-xml> <session-type

  • Need a copy of a receipt

    How do I receive a copy of a receipt from 2012? I have sent a private message to support, how long does it take to respond or receive?Thanks!

  • HOW TO SEE CHANGES MADE IN VKOA SETTINGS

    Hi, Can anyone tell me how to see the changes made in VKOA settings.I think some one has changed the G/Ls in my VKOA settings.I want to see the who has made the changes and when and all details regarding it. warm regards Somnath Chatterjee

  • How to setup and send mails using utl_mail on Oracle E-Biz R12

    Dear All There is a new requirement from client to setup and send mails using utl_mail utility on Oracle EBS R12.1.1 What is utl_mail utility ? what is the difference between Workflow Notification Mailer and this utility/tool? What are etiquette's to