New Record button & change view simultaneously - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

New Record button & change view simultaneously

Last post 05-15-2006 12:30 AM by Coita Thierry. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 05-12-2006 03:40 AM

    • Raoul
    • Top 500 Contributor
    • Joined on 05-05-2006
    • Posts 32

    New Record button & change view simultaneously

    I need to perform a changeview when I click on a New Record Button, but New Record button type seems not perform js code.
    Can you help me?
    Thanks. Raoul
  • 05-12-2006 04:46 AM In reply to

    • uma
    • Top 500 Contributor
    • Joined on 12-23-2005
    • Posts 35

    Re: New Record button & change view simultaneously

    Hi Raoul,

    Yes(I hope if I'm not wrong), We can't modify the functionality of New Record type button(it has it's own functionality by design of this control in InfoPath) by using rules or code to switch the other view.

    If you want to really switch a view for a button click use the below code in Java script by using other button.
    XDocument.View.SwitchView("view2");


  • 05-12-2006 07:51 AM In reply to

    • Raoul
    • Top 500 Contributor
    • Joined on 05-05-2006
    • Posts 32

    Re: New Record button & change view simultaneously

    Hi Uma,
    thanks for reply. I have no problem to switch view, but I have necessity to switch it when operator has to insert a new record (he can start from a particular view).
    Thank you.
    Raoul
  • 05-15-2006 12:30 AM In reply to

    Re: New Record button & change view simultaneously

    Hi,

    If you have a repeating section it's really easy simply add a rules based on a condition (if myfield=1) change my view.

    If you have a repeating table that ca be more difficult and like say uma the easiest way is make a button for add row and chage the view!

    ++

    Thierry
    ++

    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.