Infopath 2010 Web Form will not run code behind or load External Lists after FormEvents_Loading added

Building a form to edit and create data in external list. The business rules do not allow for creation in an external list bound InfoPath form. (We are cascade filtering multiple drop down lists from external content type).
All works to write code behind to push new record or update record in external list. The big issue came when trying to add FormEvents_loading event to the code to capture URL parameter. I want to be able to pass the Primary Key of the record to
edit, load the data into the form and allow editing and submit. I have tested by manually entering the data and the form works. The form will no longer load data from external lists for the drop downs and shows an error stating "The custom code
in the form cannot be run. This functionality may be deactivated
on the server. For more information, contact the server farm administrator."
I think this is related to moving from the normal forms services into sandboxed code service. Is there a way to access external content types and still have form loading event capture URL parameters?
The code to capture the URL is listed below:
XPathNavigator myNav1 = this.MainDataSource.CreateNavigator();
string InputF1 = string.Empty;
if (e.InputParameters.ContainsKey("AuthPK"))
InputF1 = e.InputParameters["AuthPK"];
myNav1.SelectSingleNode("/my:myFields/my:CodeData/my:DatabaseUpdateStatus", this.NamespaceManager).SetValue(InputF1);
myNav1.SelectSingleNode("/my:myFields/my:CodeData/my:pk_tblOFCAuthorizations", this.NamespaceManager).SetValue(InputF1);
else
myNav1.SelectSingleNode("/my:myFields/my:CodeData/my:pk_tblOFCAuthorizations", this.NamespaceManager).SetValue("0");
Is there another way to pass parameters to the form? I tried using web part connection, but that does not work with code behind form at all, which would stop me from updating external list.

Hi,
As this question is more related to InfoPath development, I suggest you post it to Visual Studio Tools for Office (VSTO) Forum, more experts will assist you with this issue.
Visual Studio Tools for Office (VSTO) Forum:
http://social.msdn.microsoft.com/Forums/en-US/home?forum=vsto
Best Regards,
Lisa Chen
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]

Similar Messages

  • Palm desktop 4.1.4 will not run fatal error during load from startbar (Palm Vx)

    Hello
    My problem is the desktop software will not run. According to documentation, it is os 3.5 on hand held and 4.1.4 is right for my computer OS (98). I can hotsync most but not all of the applications (notably: recent memo entries won't) with the Home software button but not the hardware button. I have done a soft reset and just downloaded the palm desktop software and loaded it today.
    Post relates to: Palm Vx

    Oh, sorry I neglected to review your original post regarding the OS.
    Try using the following directions to see if you can "clean" uninstall Palm desktop. They are for XP but most of the instructions should work on 98. Once you uninstall, sync with the conduits set at handheld overwrites desktop.
    You should first make a copy of your data to have just in case something
    happens. You can find your data files by going to C:\Program Files\Palm or
    Palm One. Highlight your Palm Desktop username and right click and copy.
    Then go to your PC desktop, right click on a blank spot and select paste.
    Now you want to uninstall Palm Desktop and remove everything that has to do
    with Palm Desktop from your computer. Like the above folder, delete the Palm folder. Once this is done, you will need to delete some registry keys
    from your PC Operating System registry.
    Word of warning, going here and deleting the wrong thing can cause your PC
    to not start up, crashing and deletion of programs and data. If you feel
    you are unsure of yourself, see if you have a friend that can help you or a
    PC technician that you can pay to help you. This will show them everything
    they need to delete. To retain your current Registry settings, we need to do a backup of the Registry.
    On the PC, go to start and run type "regedit" without quotes
    Highlight MY COMPUTER, go to File --> export. Should pop up with a Save As
    box. Current location is fine should be in My Documents or you can change to a location you will remember. In the file name box, type "Regbackup[todaysdate]" i.e. Regbackup07072008. Next, the hard part.
    The easiest way to make sure your working with the correct key, highlight the key i.e. palm quick install, and press delete on your keyboard. It will ask you, are
    you sure. Say yes. Do the same thing for all keys below.
    If you make a mistake, stop what you are doing. And call a PC technician.
    BUT do not turn off your computer.
    The reg keys are as follows (Note: some of theses reg keys will not be here
    but if they are delete them)
    * HKEY_CURRENT_USER\Software\U.S. Robotics\Palm Quick Install
    * HKEY_CURRENT_USER\Software\U.S. Robotics\PalmOne File Transfer
    * HKEY_CURRENT_USER\Software\U.S. Robotics\Pilot Desktop
    * HKEY_CURRENT_USER\Software\Palm
    * HKEY_CURRENT_USER\Software\Palm, Inc.
    * HKEY_CURRENT_USER\Software\PalmDesktopAutorun
    * HKEY_CURRENT_USER\Software\palmOne
    * HKEY_CURRENT_USER\Software\PalmSource
    * HKEY_LOCAL_MACHINE\Software\PalmSource or anything else that says palm
    Next reboot your computer
    Then reinstall your Palm desktop from the CD and do a hotsync. If it asks
    you for a username and you synced your device before, put in 'test" if you
    did not sync before you create a hotsync name.
    Post relates to: Palm i705

  • Web pages will not run correctly, says need Java- L505d-S6957

    I have a new L505D-S6957 running the Windows 7 upgrade 32-bit.  I have tried using Firefox and IE8.  Both browsers seem to not run Java or not run correctly if so.  Though when I check my Java it is latest and installed.  Buttons on web pages and photos do not load or run.  I have tried re-loading the Java, the browsers, and about anything else I can think of. Some web pages load jumbled as if without any margin. 
    Can anyone help me determine what is going on here?  Some of my favorite web pages do not work and one will not even log me on.  I could not log on to this website to get this help.  It keeps returning back to the login screen after I try to login.  However, I was able to login here on the first try on another computer.  Thanks for any help on this matter.
    Ty

    Satellite L505D-S6957
    Use these.
       How do I uninstall Java on my Windows computer ?
       How do I manually download and install Java for my Windows computer?
       Java Help Center
    -Jerry

  • How to do simple form post to payment gateway from SharePoint 2010 list form OR InfoPath 2010 Web Form?

    Working on a SharePoint 2010 Ent extranet site where parents of students can submit field trip permission forms and make payment at same time (optionally if fees involved).  Was wondering if someone could advise (or point me to resource on) best way
    to do a simple form post to an external payment gateway?  Would be from InfoPath web form OR SharePoint 2010 list form.
    Any guidance would be appreciated.
    Trevor

    you may create a custom visual web part for this:
    http://www.codeproject.com/Articles/152280/Online-Credit-Card-Transaction-in-ASP-NET-Using-Pa

  • Java web application will not run on iMac.

    I have a problem that has defied technical support in 2 organisations.
    I am a stock trader and use a high spec iMac for my trading platforms. Recently I tried to run two different trading platforms on my Mac without success. The applications are Thinkorswim from TD Ameritrade and Trader Workstation from Interactive Brokers. I can download the Mac versions of either the web based or standalone versions of these apps and install them ok but when I double click the apps I get a "bouncing" logo appear in the dock and then it disappears. These are Java based applications. I have checked that Java is enabled, latest version etc and that Java web start is in place - but to no avail.
    Now the weird part, I also have a Macbook Pro and the apps load OK on this.
    Both machines run latest version of Lion, and all parameters and settings for browser, Java, preferences are identical. I cannot find a difference between the two machines.
    Can anyone suggest a possible cause and solution? Greatly appreciated.
    Des Cahill
    Kildare
    Ireland.

    I had the same - was a un unzipping issue...
    If you have a 3rd party zipper - either uninstall or turn off the zip file handing under prefs
    only use the built in Lion unzipper.
    https://discussions.apple.com/thread/3826648?start=0&tstart=0

  • Web Pro will not run

    When I try to connect my Zire 72 to the web via web pro using a bluetooth link to my Motorola V9 I get:
    'Fatal Error  emul68KMain. C, Line:456, line 1111 exception at address 005F04B4'
    I have tested the bluetooth connection to the phone and the Palm says it is working.  web Pro is V3.5.
    can anyone help with what is wrong here please/
    thanks
    Post relates to: Zire 72

    SteveCrome wrote:
    When I try to connect my Zire 72 to the web via web pro using a bluetooth link to my Motorola V9 I get:
    'Fatal Error  emul68KMain. C, Line:456, line 1111 exception at address 005F04B4'
    I have tested the bluetooth connection to the phone and the Palm says it is working.  web Pro is V3.5.
    can anyone help with what is wrong here please/
    thanks
    Post relates to: Zire 72
    Did it ever work before?  Which driver are you using to connect to the phone?   Did they pair as a trusted pair?
    And finally, who is your cell provider?  Do they allow access to their phones via BlueTooth?  (Not all of them do!)
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • When upgrading quicktime, I get an error code: -3, and itunes will not run.

    when upgrading quicktime, I get an error code: -3, and itunes will not run. How do I fix?

    i 'm very interest because on 3 PC , i have the same problem and i work at tv producer...

  • I have a copy of Web Premium CS3 which was installed on a Windows Vista PC.  I have a new Windows 7 PC and the installation disc will not run properly.  The installation begins and then asks for the CS3 disc to be inserted.  If I re-insert the CD I just g

    I have a copy of Web Premium CS3 which was installed on a Windows Vista PC.  I have a new Windows 7 PC and the installation disc will not run properly.  The installation begins and then asks for the CS3 disc to be inserted.  If I re-insert the CD I just get a message asking for the disc to be inserted.  any ideas anyone?

    Use the download version:
    Download CS3 products
    Mylenium

  • I'm trying to sync Outlook calendar (office 2010?win 8) with my iphone 4s. All works well when running control panel manually but it will not run automatically after that. Anyone got any ideas

    I'm trying to sync outlook calendar and contacts via icloud control panel. Everything works when control panel is run manually but it will not run automatically after that. Anyone got any ideas

    I am having a very similar problem. Until 12 hours ago, I was using my recently replaced 4s (with iOS7) flawlessly, receiving emails and calendar info from Exchange (Outlook 2010). But starting last night, it all stopped. I have deleted and added the account several times, tried making simple changes (considering whether the username is case sensitive, or not, etc.) and cannot fix it. I have iOS 7.04. Interestingly, the first time I changed the case to lower case, it seemed to respond immediately, and downloaded many emails with no sender, no content, and with a 12/31/69 date. Yes, 1969. And then nothing happened. Help please!

  • Forms 6i setup.exe will not run

    I am trying to uninstall Forms 6i from a PC (Windows XP) and the manual recommends doing it via the installer.
    However the installer (setup.exe) will not run. No error message, control just returns after double click.
    I am pretty sure this was how we originally installed Forms 6i but for some reason it does not run now.
    Tried a couple of things like turning DEP off, to no effect.
    Anybody has an idea where the problem is?
    Or should I just uninstall the hard way by deleting the folders and cleaning up the registry manually

    Hai,
    In The Properties of the setup file, there is a Tab Named Compatibility. In that tick the Run this program in compatibility mode for:
    and select the latest Operating system listed in the Combo box. (Eg: Windows 2000).
    and Press OK.
    then it will work.
    Regards,
    Manu.
    If this answer is helpful or correct, please mark it. Thanks.

  • I work with a web app that will not run on Firefox, so I changed my default browser back to IE but the URL link continues to open in Firefox. How can I get it to default to IE?

    After changing my default browser from Firefox back to IE, other URLs are defaulting to IE but I have one URL that continues to default to Firefox. This web app will only run in IE so the only way I can run it is to open IE first and then enter or select the URL. Is there a setting someplace that will change the default browser for this URL to be IE?

    You can make IE the default browser, that will reset some registry keys<br />
    Control Panel > Internet Options: Programs<br />
    Put a check in the box next to 'Internet Explorer should check to see whether it is the default browser'<br />
    Start IE and let IE make itself the default browser.
    Check the default settings in:<br />
    Control Panel > Add/Remove Programs > "Set Program Access And Defaults" (on the left)<br />
    Open: Custom (click arrow on the right)<br />
    Select "Internet Explorer" under "Choose a default Web Browser"<br />
    Click OK

  • Web sharing will not start OS X Lion

    Hi there,
    I am new to all this so I have probably made some simple errors and I hope someone can help me. I will retell what I have done as I haven't a clue what part of what I have done has mucked things up.
    I am really stuck. Web sharing will not start on my iMac running Lion OS X. It did work fine and then I wanted to activate PHP so my test website contact form would work (and send the data on the form throught to my email address.
    Before I did anything I turned on websharing and could view my website from another computer using: http://192.168.1.4/~stewartfergusson/
    I think followed the instructions on this link to activate PHP - http://foundationphp.com/tutorials/php_leopard.php
    I then did a few things in terminal and will paste below what I did:
    Password:
    Stewart-Fergussons-iMac:etc stewartfergusson$
    Last login: Wed Jan  4 09:03:03 on console
    Stewart-Fergussons-iMac:etc stewartfergusson$
    Last login: Thu Jan  5 06:19:15 on console
    Stewart-Fergussons-iMac:etc stewartfergusson$ sudo In -s /usr/lib/libpq.5.3.dylib /usr/lib/libpq.5.dylib
    Password:
    sudo: In: command not found
    Stewart-Fergussons-iMac:etc stewartfergusson$ sudo ln -s /usr/lib/libpq.5.3.dylib /usr/lib/libpq.5.dylib
    ln: /usr/lib/libpq.5.dylib: File exists
    Stewart-Fergussons-iMac:etc stewartfergusson$ sudo apachectl -t
    Password:
    Syntax error on line 1 of /private/etc/apache2/httpd.conf:
    Invalid command '1', perhaps misspelled or defined by a module not included in the server configuration
    Stewart-Fergussons-iMac:etc stewartfergusson$ sudo apachectl configtest
    Password:
    Syntax error on line 1 of /private/etc/apache2/httpd.conf:
    Invalid command '1', perhaps misspelled or defined by a module not included in the server configuration
    Stewart-Fergussons-iMac:etc stewartfergusson$
    An important point to note is that I now appear to have more than one http.config file and they are located in the following locations:
    1) Macintosh HD/etc/apache2/httpd.conf.default
    2) Macintosh HD/etc/apache2/httpd.conf.default.default
    3) Macintosh HD/etc/apache2/original/httpd.conf
    I edited this file (which one I have not got a clue) and also the php.ini file within Macintosh HD/etc/ using Terminal - the command I used was sudo cp php.ini.default php.ini
    This php.ini file now exists in two locations now as well:
    1) Macintosh HD/etc/php.ini
    2) Macintosh HD/etc/php.ini.default
    I then edited this file by changing the line of code below from:
    514 error_reporting = E_ALL & ~E_NOTICE (I think it said E_DEPRECATED actually) but I am lifting this from the web page in the link above)
    To:
    514 error_reporting = E_ALL
    I then saved this file.
    I then deactivated web sharing in System Preferences and since then have not been able to restart Web Sharing. I click it and it flashes orange for a second then does not start.
    This was all done to activate PHP on my iMac so I can host my own site which has a PHP contact form page.
    Please help I am so out of my depth I am very worried I may have changed things and I am going to forget what I did.
    If you need to know anything then please ask.
    Thank you so much
    sfergusson1
    'JollyoldEngland'

    Just to add I didn't post all the things I did in Terminal - here it is:
    Last login: Sun Jan  1 09:01:52 on console
    Stewart-Fergussons-iMac:~ stewartfergusson$ cd/private/etc
    -bash: cd/private/etc: No such file or directory
    Stewart-Fergussons-iMac:~ stewartfergusson$ cd
    Stewart-Fergussons-iMac:~ stewartfergusson$ cd prvate
    -bash: cd: prvate: No such file or directory
    Stewart-Fergussons-iMac:~ stewartfergusson$ cd private
    -bash: cd: private: No such file or directory
    Stewart-Fergussons-iMac:~ stewartfergusson$ cd /private/etc
    Stewart-Fergussons-iMac:etc stewartfergusson$ sudo cp php.ini.default php.ini
    WARNING: Improper use of the sudo command could lead to data loss
    or the deletion of important system files. Please double-check your
    typing when using sudo. Type "man sudo" for more information.
    To proceed, enter your password, or type Ctrl-C to abort.
    Password:
    Stewart-Fergussons-iMac:etc stewartfergusson$
    Last login: Wed Jan  4 09:03:03 on console
    Stewart-Fergussons-iMac:etc stewartfergusson$
    Last login: Thu Jan  5 06:19:15 on console
    Stewart-Fergussons-iMac:etc stewartfergusson$ sudo In -s /usr/lib/libpq.5.3.dylib /usr/lib/libpq.5.dylib
    Password:
    sudo: In: command not found
    Stewart-Fergussons-iMac:etc stewartfergusson$ sudo ln -s /usr/lib/libpq.5.3.dylib /usr/lib/libpq.5.dylib
    ln: /usr/lib/libpq.5.dylib: File exists
    Stewart-Fergussons-iMac:etc stewartfergusson$ sudo apachectl -t
    Password:
    Syntax error on line 1 of /private/etc/apache2/httpd.conf:
    Invalid command '1', perhaps misspelled or defined by a module not included in the server configuration
    Stewart-Fergussons-iMac:etc stewartfergusson$ sudo apachectl configtest
    Password:
    Syntax error on line 1 of /private/etc/apache2/httpd.conf:
    Invalid command '1', perhaps misspelled or defined by a module not included in the server configuration
    Stewart-Fergussons-iMac:etc stewartfergusson$

  • Battery shows as having charge in System Profiler yet will not run from bat

    My MacBook is about a year and half old. My battery just started doing this a few days ago. It shows as not charging. Checking the battery shows that it has 85% power left (this was 86% the day it started). The magsafe connector stays green. The MacBook will not run without the power connected.
    I am not sure if this is an issue with the battery, the batteries connector, or with my MacBook. I'm pretty tight fro cash right now and need my MacBook working. I don't have money to throw at parts I don't need. If anyone has experienced this issue before and has any insight please let me know. I'm a starving web programmer and I need to be able to bring my MacBook with me to meet with clients.
    Thanks,
    Steven
    Battery Information:
    Model Information:
    Serial Number: DP-ASMB016-3738-3b2a
    Manufacturer: DP
    Device name: ASMB016
    Pack Lot Code: 0002
    PCB Lot Code: 0000
    Firmware Version: 102a
    Hardware Revision: 0500
    Cell Revision: 0102
    Charge Information:
    Charge remaining (mAh): 4211
    Fully charged: No
    Charging: No
    Full charge capacity (mAh): 4939
    Health Information:
    Cycle count: 232
    Condition: Good
    Battery Installed: Yes
    Amperage (mA): 0
    Voltage (mV): 12158
    System Power Settings:
    AC Power:
    System Sleep Timer (Minutes): 0
    Disk Sleep Timer (Minutes): 10
    Display Sleep Timer (Minutes): 20
    Automatic Restart On Power Loss: No
    Wake On AC Change: No
    Wake On Clamshell Open: Yes
    Wake On LAN: Yes
    Display Sleep Uses Dim: Yes
    Battery Power:
    System Sleep Timer (Minutes): 5
    Disk Sleep Timer (Minutes): 10
    Display Sleep Timer (Minutes): 1
    Wake On AC Change: No
    Wake On Clamshell Open: Yes
    Display Sleep Uses Dim: Yes
    Reduce Brightness: Yes
    Hardware Configuration:
    UPS Installed: No
    AC Charger Information:
    Connected: Yes
    Charging: No

    Do you think it is software. It will not even boot when the power is not connected. I was thinking it was a problems with ACPI in the EFI BIOS. The strange thing is just a moment ago the magsafe went orange and the power states calculating. This is the first time I've seen the magsafe orange since this started four days ago. I came back to this thread to update it with this little tidbit and saw your reply.
    This is my current power information from system profiler:
    Battery Information:
    Model Information:
    Serial Number: DP-ASMB016-3738-3b2a
    Manufacturer: DP
    Device name: ASMB016
    Pack Lot Code: 0002
    PCB Lot Code: 0000
    Firmware Version: 102a
    Hardware Revision: 0500
    Cell Revision: 0102
    Charge Information:
    Charge remaining (mAh): 4199
    Fully charged: No
    Charging: Yes
    Full charge capacity (mAh): 4939
    Health Information:
    Cycle count: 232
    Condition: Good
    Battery Installed: Yes
    Amperage (mA): 0
    Voltage (mV): 12148
    System Power Settings:
    AC Power:
    System Sleep Timer (Minutes): 0
    Disk Sleep Timer (Minutes): 10
    Display Sleep Timer (Minutes): 20
    Automatic Restart On Power Loss: No
    Wake On AC Change: No
    Wake On Clamshell Open: Yes
    Wake On LAN: Yes
    Display Sleep Uses Dim: Yes
    Battery Power:
    System Sleep Timer (Minutes): 5
    Disk Sleep Timer (Minutes): 10
    Display Sleep Timer (Minutes): 1
    Wake On AC Change: No
    Wake On Clamshell Open: Yes
    Display Sleep Uses Dim: Yes
    Reduce Brightness: Yes
    Hardware Configuration:
    UPS Installed: No
    AC Charger Information:
    Connected: Yes
    Charging: Yes

  • My office professional will not run with windows 8.1

    my office professional will not run with windows 8.1 It ran fine on 7 and 8 but not 8.1

      Microsoft Windows 8.1 officially supports all currently supported Microsoft Office versions including Office 2013 / 2010 / 2007 / 2003 , and may be even earlier versions unofficially. I use Microsoft Office Professional Plus on my Windows 8.1 and it runs fine with no issues.   Could you try what has already been suggested by others including Big_Dave and reinstall Microsoft Office with complete reboot/restart  between uninstall/new installation <restart, not shut down and start over>. If this doesn't work, please post again if installation went fine, what exactly is the error code (if any), what is the problem exactly, any screenshots ?

  • BC Web Form check boxes running into text

    How to fix alignment of BC web form.
    check boxes running into text.
    see screen shot

    Anything that looks bad on a website can be fixed by CSS? The best bet for you is to edit the markup of that form with the checkboxes and add a class to those checkbox input elements... for instance a class of "form-checkbox" and then in your CSS file, include this CSS code:
    .form-checkbox { margin-right: 5px; }
    or even:
    .form-checkbox { margin-right: 1em; }
    That will put a margin to the right of your checkbox input elements either 5px wide or 1em wide (which is essentially one length of your font size).
    If you don't know how to add/edit html markup to your form then you could try adding this CSS to your CSS file:
    form input[type='checkbox'] { margin-right: 5px; }
    or
    form input[type='checkbox'] { margin-right: 1em; }
    if you want to use EMs instead of pixels.  I would highly recommend learning a bit more about CSS and HTML because it would save you time posting to these forums for these simple fixes.  CSS styles your webpage's content and every web designer should know CSS and fix this issue pretty quickly.  Muse is a good tool but unfortunately it doesn't teach you the underpinnings of the web which you'll need if you want to do any sort of customization outside of what Muse or other WYSIWYG tools.
    Good luck. Let me know how it goes.

Maybe you are looking for

  • J2EE ENGINE Takes a lot of time to start

    Hi Whenever we restart the J2EE ENGINE it takes it about and hour and half to start We upgraded our R/3 to Unicode , but XI Is still non-unicode ( I dont know its connected ) The defaultrace log when it tries to start  is : #1.5#001125A56002001800000

  • Any function module to get Stock and value of material on a given date?

    Hi Friends Is there any function module available to get Stock/and  value of material on a given date? Thanks Harish

  • 3rd party report

    Hi Experts, I am looking 3rd party report for sales order. we plan to run every week 3rd party report for the sales order.It's there any standard report is there or can you please provide how to create SQVI report for 3rd party. Thanks and Regards, D

  • Timeline Clip Encoding

    This queery is pertinent to CS4 in particular. In previous versions of premiere pro2 and cs3 if I wanted to export a series of small eg. 10 second clips from the timeline to use in another app I would use the export movie option or adobe media encode

  • WSFC Cluster and Availability Group Alert Variables

    Is there a way to include the SQL instance name and/or the server name(s) in the alert for Cluster offline and Availability Group offline alerts? Usually the Full Path Name contains the server name, but for these alerts the server name is nowhere to