Right click delete a row - InfoPath Dev
in

InfoPath Dev

Right click delete a row

Last post 01-11-2006 05:07 AM by Coita Thierry. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 12-20-2005 03:04 AM

    Right click delete a row

    Hi,

    I have the following structure:


    AV
    AVel
    F15
    Text
    Text
    Text
    AVel
    F15
    AVel
    F15
    /AV


    When I delete a Text with right is there a way to change the value of the current F15 attribut in AVel in C# with e that say instance not set to an instance of an object!

    Any Idea

    Thanks

    Thierry
    Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
    merci de lire ceci
  • 12-21-2005 01:59 AM In reply to

    Re: Right click delete a row

    Ok I have found how to do on a onafter change event after the row was delete do the following:


    if (e.Site != e.Parent)
    {
    if ("Delete" == e.Operation){

    IXMLDOMNodeList text = e.Parent.selectNodes("Text");
    int count = text.length;
    string vide = "1";
    for (int i2 = 0; i2 < count; i2++){
    if (text[i2].text != "")
    vide = "0";}

    e.Parent.selectSingleNode("@F15").text = vide;
    return;
    }
    }


    Hope that can help somebody!

    ++
    Thierry
    Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
    merci de lire ceci
  • 12-21-2005 07:06 AM In reply to

    Re: Right click delete a row

    Ok I have another questions:

    I have 3 choice in a repeating choice!

    In preview mode if I right on one of this element:



    1 problem:

    I have the choice to replace the 3 section (M, Text, Bisher) and I want that only the selected section possibilities appear on this right-click list!

    2 problem:

    Supprimez = delete
    Insérer= insert
    au-dessus= after
    au-dessus= before

    Why I can delete a things that is not present on the form? Bisher and M can not be delete because there are not present!

    Is it possible? I think that can be done in the manifest.xsf?

    Thanks for your help!

    ++

    Thierry
    Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
    merci de lire ceci
  • 01-11-2006 05:07 AM In reply to

    Re: Right click delete a row

    Hi all,

    Nobody has an idea about how to solve my last problem?

    Can anyone say me if it's possible?

    Thanks

    Thierry
    Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
    merci de lire ceci
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.