logo

The ConnectWise Control forum has moved to ConnectWise University! This forum has been locked and is in read-only mode. Click here for instructions on how to access the new forum.

Welcome Guest! You can not login or register.

Notification

Icon
Error

Options
Go to last post Go to first unread
pwskiold  
#1 Posted : Monday, January 31, 2011 1:34:40 AM(UTC)
pwskiold


Rank: Newbie

Medals: ScreenConnect Advisor: Focus Group Member

Joined: 1/31/2011(UTC)
Posts: 8
Location: Denmark

ScreenConnect Team: ScreenConnect has migrated to a SQL Database in the latest versions

Today screenConnect have a logfile where the sessions get registrated. Do you have any plans of extending this feature so it will include possibility to add a customer name to the session?

The reason for this is that we need to be able to find sessions for specific customers.

When we log on to a customer PC, we have a disclaimer that he agree to. If he is saying that he did not agree to a session we need to be able to find the session in the log to use that if a lawsuit is made (only happen once some years ago).

Edited by moderator Wednesday, September 3, 2014 6:35:21 PM(UTC)  | Reason: Not specified

Jake  
#2 Posted : Monday, January 31, 2011 12:07:42 PM(UTC)
Jake


Rank: Administration

Medals: Level 4: Wise Old Owl! Received 100 Thanks!

Joined: 4/9/2010(UTC)
Posts: 2,061

Thanks: 1 times
Was thanked: 393 time(s) in 188 post(s)
This will be tricky with upgradability because of the modification of the code files, but you can add a customer name box to the disclaimer dialog.

First in your Guest.aspx, change these lines:

Code:

			if (<%= DR.DisclaimerPanel_Visible %>)
				this.showModalPrompt(.....);
			else
				this.showJoinDialog(sessionInfo);


To this:

Code:

			if (<%= DR.DisclaimerPanel_Visible %>)
				this.showDisclaimerDialog(sessionInfo);
			else
				this.showJoinDialog(sessionInfo);


Get rid of this line:

Code:

			PageMethods.SelectSession(sessionInfo.ClientLaunchParameters.SessionID);


Then add a showDisclaimer function like this:

Code:

		function showDisclaimerDialog(sessionInfo) {
			var panel = this.createElement("DIV", null, "padding: 15px;");

			this.addElement(panel, "P", null, null, <%= DR.DisclaimerPanel_Message.ToClientString() %>);

			var textBoxParagraph = this.addElement(panel, "P");
			var textBox = this.addElement(textBoxParagraph, "INPUT", { type: "text" }, "font-size: 12pt;");

			var buttonCallback = function() {
				PageMethods.SelectSession(sessionInfo.ClientLaunchParameters.SessionID, textBox.value);
				showJoinDialog(sessionInfo);
			};

			var buttonParagraph = this.addElement(panel, "P", null, "margin: 20px 0px 0px 0px; text-align: center;");
			var button = this.addElement(buttonParagraph, "INPUT", { type: "button", onclick: buttonCallback, value: <%= DR.DisclaimerPanel_ButtonText.ToClientString() %> }, "font-size: 12pt;");
			this.showModalDialog(panel, 350, 175, <%= DR.DisclaimerPanel_Heading.ToClientString() %>, <%= DR.DialogPanel_CancelButtonText.ToClientString() %>, null);
			button.focus();
		}


In your Guest.aspx.cs, change the SelectSession method to look like this to take a "data" parameter:

Code:

		[WebMethod]
		public static void SelectSession(Guid sessionID, string data)
		{
			using (var sessionManager = ServerExtensions.SessionManagerChannelFactory.CreateChannel())
				sessionManager.AddSessionEvent(sessionID, ProcessType.Guest, SessionEventType.SelectedSession, data);
		}


You'll need to make sure the disclaimer is turned on in administration->appearance, and that the disclaimer message instructs them to enter their company. This disclaimer should have a textbox, and in your disclaimer message you can ask them to type their company. Their company name will then appear in the logs for the SelectedSession events.
ScreenConnect Team
pwskiold  
#3 Posted : Tuesday, February 8, 2011 3:17:58 AM(UTC)
pwskiold


Rank: Newbie

Medals: ScreenConnect Advisor: Focus Group Member

Joined: 1/31/2011(UTC)
Posts: 8
Location: Denmark

Thank you Jake.

3 times I 've tried to modify the files as described and the result is a Guest page that doesn't load (no errors) just blank. Just to test, could you send me complete files with the modification. Perhaps I've changed or deleted this I shouldn't have :-/.
Jake  
#4 Posted : Thursday, February 10, 2011 11:52:51 PM(UTC)
Jake


Rank: Administration

Medals: Level 4: Wise Old Owl! Received 100 Thanks!

Joined: 4/9/2010(UTC)
Posts: 2,061

Thanks: 1 times
Was thanked: 393 time(s) in 188 post(s)
Haven't forgot about you ... just been busy. Will test again soon.
ScreenConnect Team
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.