Q.What is a dashboard.
Set default dashboard for user
Use List , View , Personel view in dashboard.
Use web resource in Dashboard.
Set default dashboard for user
Use List , View , Personel view in dashboard.
Use web resource in Dashboard.
First Name
|
Last Name
|
Phone
|
Email Address
|
John
|
Smith
|
312-888-8888
| |
Darren
|
Liu
|
312-999-9999
| |
Adam
|
Johnson
|
312-555-5555
|
1: CREATE TABLE [dbo].[Contacts](
2: [ContactId] [int] IDENTITY(1,1) NOT NULL,
3: [FirstName] [varchar](50) NULL,
4: [LastName] [varchar](50) NULL,
5: [Phone] [varchar](50) NULL,
6: [Email] [varchar](50) NULL,
7: CONSTRAINT [PK_Contacts] PRIMARY KEY CLUSTERED
8: (
9: [ContactId] ASC
10: )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
11: ) ON [PRIMARY]
12: GO
13:
14: INSERT INTO Contacts (FirstName, LastName, Phone, Email)
15: VALUES ('John','Smith','312-888-8888','jsmith@crowe.com')
16:
17: INSERT INTO Contacts (FirstName, LastName, Phone, Email)
18: VALUES ('Darren','Liu','312-999-9999','dliu@crowe.com')
19:
20: INSERT INTO Contacts (FirstName, LastName, Phone, Email)
21: VALUES ('Adam','Johnson','312-555-5555','ajohnson@crowe.com')
22: GO
Imports Crm.Proxy.CrmSdk
Imports System.Xml
Imports System.Web.Services
1: Public Class ScriptMain
2: Inherits UserComponent
3: Dim Service As CrmService
4:
5: Public Overrides Sub Input0_ProcessInputRow(ByVal Row As Input0Buffer)
6:
7: ‘Create Contact object
8: Dim contact As New contact()
9:
10: contact.firstname = Row.FirstName
11: contact.lastname = Row.LastName
12: contact.telephone1 = Row.Phone
13: contact.emailaddress1 = Row.Email
14:
15: Service.Create(contact)
16: End Sub
17:
18: Public Overrides Sub PreExecute()
19: MyBase.PreExecute()
20:
21: ‘Create CRM Service
22: Service = New CrmService()
23: Service.Credentials = System.Net.CredentialCache.DefaultCredentials
24: Service.Url = "http://localhost:5555/MSCrmServices/2007/CrmService.asmx"
25: Dim token As New CrmAuthenticationToken()
26:
27: ‘In this example, my organization name is MicrosoftCRM
28: token.OrganizationName = "MicrosoftCRM"
29: Service.CrmAuthenticationTokenValue = token
30: Service.PreAuthenticate = True
31: End Sub
32:
33: End Class
1
|
var
varMyValue = Xrm.Page.getAttribute("CRMFieldSchemaName").getValue()
;
|
1
|
Xrm.Page.getAttribute("po_CRMFieldSchemaName").setValue('My
New Value');
|
1
2
|
Xrm.Page.ui.tabs.get(5).setVisible(false);
Xrm.Page.ui.tabs.get(5).setVisible(true);
|
1
|
Xrm.Page.getAttribute("CRMFieldSchemaName").fireOnChange();
|
1
|
Xrm.Page.getAttribute("CRMFieldSchemaName").getSelectedOption().text;
|
1
2
3
|
Xrm.Page.getAttribute("CRMFieldSchemaName").setRequiredLevel("none");
Xrm.Page.getAttribute("CRMFieldSchemaName").setRequiredLevel("required");
Xrm.Page.getAttribute("CRMFieldSchemaName").setRequiredLevel("recommended");
|
1
|
Xrm.Page.getControl("CRMFieldSchemaName").setFocus(true);
|
1
|
event.returnValue
= false;
|
1
|
Xrm.Page.context.getUserRoles()
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
function
setVisibleTabSection(tabname, sectionname, show) {
� var tab = Xrm.Page.ui.tabs.get(tabname);
� if (tab != null) {
� if (sectionname == null)
� tab.setVisible(show);
� else {
� var section = tab.sections.get(sectionname);
� if (section != null) {
� section.setVisible(show);
� if (show)
� tab.setVisible(show);
� }
� }
� }
}
|