Reply
 
LinkBack Thread Tools Display Modes
Old 08-03-2009, 08:02 PM   #1 (permalink)
Junior Member
 
Join Date: Apr 2008
Location: San Diego
Posts: 21
aantrim is on a distinguished road
Default updated member listing for ReportUtilities.

I was wondering if there is an updated member listing for all of the helpers in Report Utilities. I am designing a new service order and would like to include the resource's email address. I have tried to use some logical naming formats to see if I could get lucky but I haven't yet. The resources are tied to ServiceOrder.GetResources. Don't know about the email though. Any thoughts or advice?
aantrim is offline   Reply With Quote
Old 08-04-2009, 10:29 AM   #2 (permalink)
Senior Member
 
Join Date: May 2009
Location: Chennai, India
Posts: 157
nkarthick is on a distinguished road
Default Try this script to extract Service Order Resource email

You can get the email list of service order by iterating through the service order resources which is demonstrated in the below sample script.

Sample Script Code –

Code:
Imports  DTools.SystemIntegrator.Common.Scheduling

Sub ActiveReport_ReportStart
	If ReportUtilities.ServiceOrder IsNot Nothing  AndAlso ReportUtilities.ServiceOrder.Resources IsNot Nothing Then
		Dim emails As String = String.Empty	
		'Iterate through Resource list of Service Order
		For each res As IResource  in ReportUtilities.ServiceOrder.Resources		
			'Get the email of the service order resource
			emails = emails + "  " + res.Email
		Next	
		emails = emails.Trim()
		'Assign the email list to the appropriate control of the custom report.
		ReportUtilities.SetTextBoxValue(rpt, "grpCompany", "txtEmail", emails)
	End If
End Sub
Hope it helps.
__________________
Narayana Karthik

Last edited by nkarthick; 08-08-2009 at 04:39 AM. Reason: Updated the code
nkarthick is offline   Reply With Quote
Old 08-07-2009, 07:52 PM   #3 (permalink)
Junior Member
 
Join Date: Apr 2008
Location: San Diego
Posts: 21
aantrim is on a distinguished road
Default

When running the new service report an error comes up stating that IResource is not defined. How do I define this?
aantrim is offline   Reply With Quote
Old 08-08-2009, 04:44 AM   #4 (permalink)
Senior Member
 
Join Date: May 2009
Location: Chennai, India
Posts: 157
nkarthick is on a distinguished road
Default Include Imports line in your script

Make sure you have included the below line at the top of the script.

Imports DTools.SystemIntegrator.Common.Scheduling

Also i have updated the sample script code
by changing the line
from
Dim emails As String
to
Dim emails As String = String.Empty

make sure to include the changes in your script.


Hope it helps.
__________________
Narayana Karthik
nkarthick is offline   Reply With Quote
Old 08-12-2009, 03:19 PM   #5 (permalink)
Junior Member
 
Join Date: Apr 2008
Location: San Diego
Posts: 21
aantrim is on a distinguished road
Default

That definitely helped, thank you very much. Another similar question. Are the resources in the resource manager (scheduling) linked to the Staff Types and Members in the Application settings? I am also trying to include the sales rep and his contact info onto the service order. I don't think this is possible but maybe you have some insight.
aantrim is offline   Reply With Quote
Old 08-13-2009, 05:09 AM   #6 (permalink)
Super Moderator
 
NareshN's Avatar
 
Join Date: Nov 2006
Posts: 430
NareshN has a spectacular aura aboutNareshN has a spectacular aura aboutNareshN has a spectacular aura about
Default

The resources in Resource Manager (scheduling) and Staff Types are not linked now.
NareshN is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:00 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0
D-Tools, Inc.