How do I populate machine name in control? - InfoPath Dev
in

InfoPath Dev

How do I populate machine name in control?

Last post 03-20-2013 12:14 PM by Hilary Stoupa. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 03-28-2012 06:51 AM

    How do I populate machine name in control?

    Hello,

    In InfoPath 2010, I can populate a control with the name of the signed in user. How do I pull his/hers machine name and popluate a control?(textbox)

    Thanks,

    Ed

  • 04-02-2012 09:40 AM In reply to

    Re: How do I populate machine name in control?

    Hi there,

    You could try using System.Environment.MachineName.  This would work for client forms, but might not work for browser forms.  I believe in the latter case it would return the server name instead. 

    Anson Hidajat
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™

  • 03-20-2013 09:38 AM In reply to

    • Pasu
    • Not Ranked
    • Joined on 12-13-2006
    • USA
    • Posts 24

    Re: How do I populate machine name in control?

    Anson Hidajat:

    Hi there,

    You could try using System.Environment.MachineName.  This would work for client forms, but might not work for browser forms.  I believe in the latter case it would return the server name instead. 

    If this is achievable using qRules, I would like to see a new command (with the option of pulling other system properties) in a future version. Thanks!

     

  • 03-20-2013 12:14 PM In reply to

    Re: How do I populate machine name in control?

     Thanks for the suggestion - I've added this to our bug tracking system as a possible future feature!

    Hilary Stoupa

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