Solved

Automate Computer Name in SharePoint form field

Posted on 2011-03-18
4
782 Views
Last Modified: 2012-05-11
Is there any way I can retrieve the computer name when a user submits a form in SharePoint?  This is for an IT HelpDesk site, so when a user reports an issue, it would be great to have an automated way to retrieve the computer name from where they submit.
Another alternative (with many holes) is to create a shortcut on all desktops that includes the name of the computer in the link, such as: http://sharepoint/site/lists/listname/inputform.aspx?ComputerName=ABCDE.  Is there an easy way to generate this link on a computer without manual input?
Thanks,
Troy B.
0
Comment
Question by:troybruning
  • 2
4 Comments
 
LVL 14

Accepted Solution

by:
GeorgeGergues earned 250 total points
ID: 35167326
that is a browser security limitation .

I would think you should not relax your IE security to do this.

There are better ways to do that if you use the Sessions and Context object

this.Context.Request.UserHostName

Open in new window


Best of luck
0
 
LVL 11

Assisted Solution

by:FastFngrz
FastFngrz earned 250 total points
ID: 35171778
Using sharepoint designer, you could likely create an aspx page with server side code that could read the hostname (which is part of the http query) and then redirect to your form. You'll need to open web.config to allow your executable to run from whatever site/folder/library you put your aspx in.
0
 

Author Closing Comment

by:troybruning
ID: 35194233
Thanks for the responses.  I'm not programmer-savvy enough to use these solutions, but hopefully they will be useful to others.
0
 

Author Comment

by:troybruning
ID: 35224534
I was able to stumble upon a solution for our organization.  We use another web-based app from a partner that requires a small application be installed for controls on their website.  I noticed when going to their site that our computer names were in the URL, so I borrowed thier ASP page code and, by using the same application, was able to forward from another web page to our SharePoint site with the computer name in the URL....  Difficult to explain in writing, but it worked out well for us.
Troy B.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

There is one common problem that all we SharePoint developers share: custom solution deployment. This topic can't be covered fully in this short article, so all I want to do in this one is to review it from a development-to-operations perspectiv…
For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
This video discusses moving either the default database or any database to a new volume.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now