Is possible to capture the SP username of who is making submission of the data from an InfoPath 2010 form?

Hi all,
Does anyone know how to capture the SP username of who is making submission of the data from an InfoPath 2010 form? I looking to avoid the user need to type extra information like username/ manager name, etc; and then use code behind to be doing validation
before to push that data to an sql server.
Any suggestion , book reference , link is acceptable 
thanks in advance
CRISTINA& MICROSOFT Forum

Hi Cristina,
Please check the following article with using web service UserProfileService.asmx to get the current user profile in InfoPath code behind and use the validating event to do some complex validation, it should help.
http://blogs.msdn.com/b/infopath/archive/2007/03/07/get-the-user-profile-through-moss-web-services.aspx
http://codesupport.wordpress.com/2010/04/05/sharepoints-userprofileservices-getuserprofilebyname-method/
http://www.bizsupportonline.net/infopath2007/infopath-basics-3-ways-validate-data-infopath.htm
http://henry-chong.com/2010/12/infopath-validation-gotcha/
Thanks
Daniel Yang
TechNet Community Support

Similar Messages

  • Saving the data from two info path forms in to a single list in share point 2010

    Hi ,
    I have two  info path forms are in share point page FM 1 and FM 2.
    In FM 1 I am getting data from lists by using drop down and casket drop down  and FM 2 i need to enter manually after entering
    i want to save both forms information(FM 1 & FM 2 ) in to a single list of  share point 2010
     If any knows the solution please reply me  
    Thanking You,
    Arun Darly

    Hi,
    Based on your description, my understanding is that you want to save the data from two info path forms in to a single list in share point 2010.
    We can't save the data from two info path forms in to a single list, but we can
    save the data from two info path forms in to a single library.
    Open the  FM 1 and FM 2 in Infopath(you have save it Locally once).
    Publish the FM 1 and FM 2 as content types named FM 1 and FM 2.
    Add the content types FM 1 and FM 2 into a document library, Then you can save the data
    from two info path forms in to a single library.
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • I am going to purchase the latest Mac Book Pro. How do I transfer data from my very old Macbook running OS 10.4?

    I am going to purchase the latest Mac Book Pro. How do I transfer data from my very old Macbook running OS 10.4?

    You may want to use the Migration Assistant, which appears the first time you start up the new machine during setup, and also is available later (it is found in /Applications/Utilities.) Note that if you are running 10.4.x on the old MacBook both machines need to use FireWire to do this, but the late 2006 MacBook has that. You will need a special 4 pin to 6 pin FireWire adapter cable, as the FireWire ports on the newest MacBook Pros are different.

  • Need solution for the following sync error: "iTunes could not sync calendars to the iPad "iPad name" because an error occurred while sending data from the iPad"

    Need solution for the following sync error: "iTunes could not sync calendars to the iPad "iPad name" because an error occurred while sending data from the iPad"

    I want to add that I deleted all the old back-ups and created a new back-up without any issues except sync problem.

  • Hi, I followed the instructions to apply for the Made For iPhone Program. After submission of the necessary documents and information, I have not heard back from Apple. How to track the application progress? Can someone help?

    Hi, I followed the instructions from Apple MFI website, to apply for the Made For iPhone Program. After submission of the necessary documents and information, I have not heard back from Apple for couple weeks. How to track the application progress? Can someone help? < Edited by Host >
    Thank you.
    Best Regards,
    Gerald

    Hi Gerald
    This is a user-to-user forum, and your message will not be received by Apple. You will need to sign into your Developer/MFI account, and contact Apple that way. This can be done here.
    P.S Please do not post your e-mail address here.
    Taylor

  • Since installing Lion and moving to icloud, iCal won't let me click 'SHOW NOTIFICATIONS' anymore and has 'greyyed' it out on the menu :( It's important I see the notifications to see who has accepted or declined the invitations I send out. Can anyone hel

    Since installing Lion and moving to icloud, iCal won't let me click 'SHOW NOTIFICATIONS' anymore and has 'greyyed' it out on the menu It's important I see the notifications to see who has accepted or declined the invitations I send out. Can anyone help??

    I just updated to Lion and am having the same problem since moving to the cloud. iCal won't let me click on SHOW NOTIFICATIONS. It is greyyed it on the menu. Any advice is much appreciated. Thank you in advance!

  • The iPod "Username iPod" could not be synced because the sync session failed to finish.

    Is there any solution to failed iPod syncs with the following error message;
    "The iPod “Username’s iPod” could not be synced because the sync session failed to finish."
    I tried the Apple Support article at http://support.apple.com/kb/TS3697 without any improvement at all. I noticed this article had a problem when the sync I executed to remove all the photos from the iPod failed. Then subsequent syncs to resotre the photos also fail.
    I have about 15,000 photos, but there should be plenty of room on my 64GB 4th generation iPod.
    I started having this problem after ugrading to iOS5. Very, very frustrating.
    Any help would be appreciated.

    Disconnect the iPhone... Restart your Computer... Restart your Phone... Try again.

  • I can capture with iMovie 6, but not with FCP 6.0 ('no data from device')

    I didn't have any problem with FCP 5, but am getting nowhere with FCP 6 using the same settings (I think). FCP seems to see the camcorder, but can't control it and, even if I manually start the camera, reports 'no data from device' when I do a 'Capture Now'. Device control isn't critical, but I'd sure like to find out why it doesn't see the data stream from the camera (Sony HDR-HC7 / FW400). I must be missing a setting some place, but sure can't find it. On the other hand, I have full device control and zero dropout capture with iMovie (exact same hardware configuration). Any ideas?

    Wolfgang Matzl wrote:
    canopus works fine, as well as all other devices.
    i have tons of tapes and tried a few, none worked.
    i tried to capture on both my new imac and my mbpro, no way.
    but now i'm sure there is something wrong with the sony handycam, i tried to import with my old final cut studio, and it's not possible, also. fc pro says: waiting for timecode.
    so i'm confused now. does the sony dcr-trv not send a timecode? maybe, and this will explain the troubles. but on the other hand i imported successfully some footage with exact this device.
    maybe i used the canopus then to correct the timebase, i can't remember how i did it. but this would mean i have to accept loss of quality, since i have to connect the sony with s-vhs with the canopus and convert it.
    right now i'm importing a tape with imovie and will have a look how the result is, but as far as i remember, the audio has to be re-rendered when importing in fcpx…
    My finger is pointing to a Timecode issue.
    Is timecode enabled in the camera?
    Is it continuous on the tape?
    Al

  • Upload the data from excel sheet to form 6i

    hi all,
    i am using Forms [32 Bit] Version 6.0.8.24.1 (Production)
    my requirement is to import data from excel to forms.
    i have gone through the help, they have mentioned as below
    To build this demo:
    1     Create a spreadsheet containing the initial data and formulae that you want to appear in your form.
    2     In the Layout Editor, click the OLE container tool and drag out the area where you want to display the spreadsheet.
    3     From the pop-up menu on the OLE container, click Insert Object. 
    4     Click Create from File.  Enter the name of the spreadsheet.  Click OK.
    5     In the Object Navigator, attach the library EXCEL.PLL.
    6     To get the value of a cell, call the function GETCELL from the SPREADSHEET package contained in the EXCEL library.
    To get the value of a cell, call the procedure SETCELL from the same package.
    7     To add other interactions with the spreadsheet, use the OLE2 built-in package.  Consult the Excel documentation
    for details of Excel’s object model.but if anybody explain this with sample then it will be useful for me..This is first time i am comming such type of requirement across.
    Thanks..

    hi,
    i have some sample code(taken from some source)
    DECLARE
    application ole2.obj_type;
    workbooks ole2.obj_type;
    workbook ole2.obj_type;
    args ole2.list_type;
    worksheets OLE2.OBJ_TYPE;
    worksheet OLE2.OBJ_TYPE;
    BEGIN
    application:=ole2.create_obj('Excel.Application');
    ole2.set_property(application, 'Visible', 'True');
    workbooks := OLE2.GET_OBJ_PROPERTY(application, 'workbooks');
    args:=ole2.create_arglist;
    ole2.add_arg(args, 'FILE_NAME');
    workbook:= ole2.invoke_obj(workbooks, 'Open',args);
    ole2.destroy_arglist(args);
    args:=ole2.create_arglist;
    ole2.add_arg(args, 'c:\Pasta1!teste'); --how to pass the arguments
    ole2.invoke(application, 'Run', args);
    ole2.destroy_arglist(args);
    ole2.release_obj(workbook);
    ole2.release_obj(workbooks);
    ole2.release_obj(application);
    END; but i don't know how to pass the arguments(i have to pass the excell cell values(data)as an arguments)
    Suggest me to proceed further..
    Thanks..
    Edited by: user13329002 on Nov 13, 2010 1:16 AM

  • Saving the data from an interactive adobe form

    Hi Gurus,
    I want to know how to upload the data from an interactive form (i.e the data sent by a person via email or URL.It is in XML format)  into the SAP database.
    Thanks,
    Raj

    Hi Vaibhav,
          I have designed an the interactive form which works both online and offline.In offline scenario when i am uploading the form the data form fields which has cardinality 1:1 are being fetched but how wil i fetch the data for the node of cardinality 0:n. i have used the code :
    node = document->find_from_name( name = 'attr' ).
    attr = node->get_value( ).
    attr is the attribute name of some node named node_info.
    When i use this code it fetched only the first line of the table i.e only the first value.
    How will i fetch the values for rest of the rows.Can u please guide me on this
    will reward points for sure.
    Thanks and Regards,
    srividya.

  • My daughter got an ipad, I now have her ipod. Both have the same username and password so when I sinc the ipod on my computer it downloads all of her games/music. Is there a way to delete everything and start over so that I can have only my apps/music?

    My daughter got an ipad so I took her ipod. The problem is both of them have the same user id and password so when I sinc the ipod to itunes, it downloads all of her apps/music that I don't want to the ipod. Is there a way to wipe out everything on the ipod and change the username/password (I guess) so that when I sinc it, it doesnt download her stuff?  Also, there are a few songs that I have purchased through iTunes that I would like to keep, can I do this or will I have to re-purchase the music again?

    (I think the daughter got he better end of the deal!)   I believe if you change the password and user id one of the devices it will stop that from occurring. But I'm not the one to tell you how to do it; someone like "Illaass" (Illaass seems to know how to correct / fix almost anything!) will know how if you don't. Just look for the "cat" icon.

  • Resetting username and password, but I have two iPhones using the same username and password. Can I delete the App Store user name on one device without affecting the other phone?

    When we bought our daughter her iPhone I thought it would be a great idea for her to use my username and password for her App Store. As she is learning to download and search off apps, it appears that this May not hand been a good idea as the apps I have on MY iPhone, are showing as already downloaded and on our cloud. I'd prefer to change the username on her device, but in looking I am noticing that I will probably be deleting the username and password on both of our devices and then I will have to reset for both of us. Am I correct?

    If you create an Apple ID for your daughter, signing out of the existing Apple ID with the iTunes & App Store on her iPhone will not change anything on your iPhone.
    All apps include DRM protection which is tied to the Apple ID that was used to download the apps.
    If she starts using her Apple ID to download apps, when there is an app update for an app on her iPhone that was downloaded with the current shared Apple ID, she will need to use that Apple ID and password to download the app updates.

  • Is it possible to populate recipient email as a drop down so that the results go directly to them upon submission of the form?

    I know that the 'email' feature can be added but it requires you to input the recipients name manually.  Instead, I'd like to add the email recipients in order to choose from a drop down.  Is there a way to do this?

    Hi Steven,
    Yes, Its possible which behaves as system CFL.
    Design the form like cfl having grid, choose button, cancel button and edittext of find. When you tab on edittext on form open the CFL form and after load form fill the grid by Datatable using sql query. Write code for select grid line on click of grid. Write the code on choose button which retrive value from grid.
    Thanks,
    Mahesh

  • I have an iPhone 4 now and I just got the iPhone 4s so how do I backup all my data from old phone to new?

    I have  the iPhone 4 and just upgraded to iPhone 4s how do I backup my data before I activate my iphone 4s? Please help!!

    iOS devices are designed to be sync'd with a single computer, so thinking of future updates, backups and so forth, yes, it would be best to do it on your computer - the one you normally use for iTunes.
    Note that backing up also does not backup everything in iTunes.  Contacts, for example, will be backed up into whatever contact management program you normally use on your computer (eg. outlook on a Windows PC, contacts on a Mac).
    If you have never backed up your iPhone, now is the opportune time to do so and learn how.  Not having a backup means if anything goes wrong with your phone (or you loose it or it is stolen), you risk losing everything on it.

  • I just got the new IPad and managed to transfer most of my data from the old IPad.  I figured out how to download the books through bookstore but I have realized now that I have two accounts. Can I go back to the old acct to get the books on iPad

    I was able to transfer most everything from my old iPad to the new one except the books.  It seems that I have two accounts to buy books and can only download from the newest one.  Can they be merged, or can I somehow go back to the old one to get the rest?  I think both accounts are still active.

    No, all purchases made with an Apple ID remain with that Apple ID and cannot be accessed using the other Apple ID.
    I know this is a pain but that's the way it is. As far as anyone knows individual accounts will always be "active", but they cannot be merged.

Maybe you are looking for