from bottom to top of the view - InfoPath Dev
in

InfoPath Dev

from bottom to top of the view

Last post 08-02-2013 06:46 AM by Richter Belmont. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 09-04-2005 11:48 PM

    from bottom to top of the view

    Hi all!
    What's up!? Here's my question: I have a button in a Form which clears the fields in it and I'd like that this button, which is at the bottom of the view, after clearing, makes the user see the top of the same view...I don't know if you understand becouse it's difficult to explain!
  • 09-05-2005 04:45 PM In reply to

    Re: from bottom to top of the view

    Have you tried selecting a node that is visually at the top of the form using the .SelectNodes() method? That may scroll you up to the top.

    XDocument.View.SelectNodes("my:NODE_AT_THE_TOP_OF_FORM")
    Jason
    http://www.k2distillery.com/
  • 09-06-2005 02:14 AM In reply to

    Re: from bottom to top of the view

    Hi,
    thank uou for your reply. I tried to use this:

    [VBScript]
    "Set Nodes = XDocument.DOM.selectSingleNode("//my:Section1")
    XDocument.View.SelectNodes(Nodes)"

    where my:Section1 is a Group node at the top of the Form but while it gives me the following error:
    "Either the combination of values for the View.SelectNodes call is an invalid selection, or the values are not defined for this view, defined for this view more than once, or not selectable in the view."
    which I can't resolve becouse I switch to the same view.

    Trying this:
    [VBScript]
    "XDocument.DOM.SelectNodes("//my:Sezione1")"
    I have no errors but also no effects :)

  • 09-06-2005 03:08 AM In reply to

    Re: from bottom to top of the view

    I resolved my problem using:

    [VBScript]
    "Set Nodes = XDocument.DOM.selectSingleNode("//my:Section1")
    Set Node = Nodes.item(ItemNumber)
    XDocument.View.SelectNodes(Node)"

    It gave me an error becouse the view shows only a field "mySection1" a time, since it's repeated. Thank u so much, now it works fine :)
  • 08-02-2013 06:46 AM In reply to

    Re: from bottom to top of the view

    i need this, how to convert this to VB.net
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.