Launch browser on button click (filler 2010) - InfoPath Dev
in

InfoPath Dev

Launch browser on button click (filler 2010)

Last post 05-30-2012 01:22 PM by Jay@Work. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 05-29-2012 11:24 PM

    Launch browser on button click (filler 2010)

    I've googled for ages and keep coming up empty.
    I want to open a URL when a user clicks a picture button using the onclick event.
    I've found a couple of auggestions using this.external and window.external but neither work.... any ideas?

    Background
    We have a DDL that is populated with a sharepoint list, when the user is filling out the form they choose a supplier from the drop down. If the supplier has not been added to the SP list yet the user can click the "add new" picture button which will open the supplier list so they can add them.

    Next I'll need to find out how to refresh the DDL when the user has added the new list item. So 2 questions in 1!

  • 05-30-2012 04:51 AM In reply to

    • Daishi
    • Not Ranked
    • Joined on 04-29-2012
    • Posts 2

    Re: Launch browser on button click (filler 2010)

             This works for the Interneexplorer and for me :)  

     

                System.Diagnostics.Process proc = new System.Diagnostics.Process();
                proc.StartInfo.FileName = "iexplore";
                proc.StartInfo.Arguments = "http://www.infopathdev.com";
                proc.Start();

  • 05-30-2012 01:15 PM In reply to

    Re: Launch browser on button click (filler 2010)

    Thanks,

    When I preview the form and click my button I get this message

    System.Security.SecurityException
    Request failed.
       at Operator_Vouchers.FormCode.CTRL40_5_Clicked(Object sender, ClickedEventArgs e)
       at Microsoft.Office.InfoPath.Internal.ButtonEventHost.OnButtonClick(DocActionEvent pEvent)
       at Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)

  • 05-30-2012 01:22 PM In reply to

    Re: Launch browser on button click (filler 2010)

    Solved it.

    advanced form options - security.
    Unchecked auto determine. Set to full trust and signed it. Works perfectly now. many thanks.

     

Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.