Make a filter of a reapeating section in C# - InfoPath Dev
in

InfoPath Dev

Make a filter of a reapeating section in C#

Last post 08-23-2005 07:34 AM by Coita Thierry. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 08-18-2005 06:25 AM

    Make a filter of a reapeating section in C#

    Hi,

    When you are in design mode you can make a filter for reapeating section is there anyway to make this with a c# code?

    Thanks for your answer

    ++

    Thierry

    Every moment hesitated is a moment gone for life!!! Think about it
    Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
    merci de lire ceci
  • 08-18-2005 12:49 PM In reply to

    Re: Make a filter of a reapeating section in C#

    Hi Thierry,
    You can use c# code to filter rows in the InfoPath form, you need to use xdExtension to call a c# method in the InfoPath form.

    To call c# method in filter,
    1. Go to filter Dialog.
    2. Select "Expression" in the first dropdown.
    3. Write the condition in the textbox, something similar to ( xdExtension:GetValue() = my:field1 ).
    //my:field1 is a column in the repeating table.
    4. Click on Ok.

    Now your filter should work perfectly fine.

    Hope this Helps!

    Agni
    InfoPath Dev India
  • 08-22-2005 06:43 AM In reply to

    Re: Make a filter of a reapeating section in C#

    Hi Agni,

    Thanks for your help!

    But I have speak with my boss and he don't wan't that I use code for this formular! So is there anyway to do that in infopath design mode?

    Is there anyway? if not, no problem we do that with code but if we can do without It's bettter.

    Only for see if you think that can be work my condition is:

    if the group of the reapeating section has an attribute fldtype='post'

    If they haven't any with the value "post" take the last with the value "Firmen"

    Thanks for your help!

    ++

    Thierry

    Every moment hesitated is a moment gone for life!!! Think about it
    Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
    merci de lire ceci
  • 08-22-2005 12:40 PM In reply to

    Re: Make a filter of a reapeating section in C#

    Hi Thierry,
    You asked for a C# solution! :) Sure, you can filter with XPath. In fact Greg has several articles on how to do this. Search for "filter repeating table". Here's one sample:http://www.infopathdev.com/downloads/free/default.aspx?i=8af4f44352a4457fbb28c6c5e6319178

    Patrick Halstead [InfoPath MVP]
    InfoPathDev
    Patrick Halstead
    Project Manager at Qdabra
  • 08-23-2005 07:34 AM In reply to

    Re: Make a filter of a reapeating section in C#

    Hi Patrick,

    Thanks for your answer! Sorry I have forget to make a "search before post" the most important things!

    That work great now and without code!

    ++

    Thierry

    Every moment hesitated is a moment gone for life!!! Think about it
    Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
    merci de lire ceci
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.