Error Creating Control Ektron
Controls Using Drag and Drop), you can insert one programmatically. You might prefer to insert server controls programmatically for several reasons, such as you want the control to be loaded into memory only under certain conditions. In this case, insert the logic that only displays the control if the condition exists. you want to display only certain properties of an object, such as the title of last edited date of a content block. Note that you can drag and drop controls on your page then customize them using code-behind. For more information, see:Using Drag & Drop and Programmatically Together. Steps to Insert a Server Control Programmatically To insert an Ektron server control programmatically, follow these steps. Step 1: Declare the Namespace Step 2: Create an Instance of the New Control Step 3: Set the Properties Step 4: Call the Fill Method Step 5: Use .text Property to Display the Control Each step is described below. These steps show an example of using the Collection Server Control. Step 1: Declare the Namespace Before inserting the server control, you can declare the namespace at the top of the code-behind Visual Basic file, as shown below. Show me. NOTE: You do not need to declare a namespace. However if you do not, you must fully qualify objects that you create. Best Practice For any customization of the CMS, classes or controls that inherit from Ektron classes, it is recommend that you create your own namespace within 'Ektron.Cms.Custom'. For example, if your company is 'AcmeExampleTech, Inc.' you should create all of your custom classes within the namespace 'Ektron.Cms.Custom.AcmeExampleTech'. Step 2: Create an Instance of the New Control Next, declare a control as an object in the code-behind. In this example, we create a collection named MyColl. Ektron.Cms.Controls.Collection MyColl = new Ektron.Cms.Controls.Collection(); You can declare any server control as an object by using the server control name in the List of Server Controls. Another example would be: Dim MyMdl as New MetaDataList. Step 3: Set the Properties NOTE
social network controls—all to provide out-of-the-box markup and functionality. Ektron’s server controls provide a great deal of flexibility. In addition to having a set of properties that you can use to change the controls' output and behavior, you can access the Server Control API. Overview Overview Ektron’s server controls let you insert many standard methods and properties within the Visual Studio environment. This means that you can see the effect of your changes in http://documentation.ektron.com/cms400/v85/webhelp/Server%20Controls/Inserting_Server_Control.htm real time—you don’t have to modify a page then compile a sample project to see the results. You can insert server controls using drag and drop or programmatically. You can also use databinding to retrieve and display data from Ektron. Additional information and examples for Ektron Server Controls are available online after you install the http://documentation.ektron.com/cms400/v8.50/reference/rev2/mobile/advanced/content/Server_Controls/Working_with_Server_Controls.htm sample site. Here is the path: http://localhost/samplesite/Default.aspx Replace localhost with the webroot where you installed the sample site. IMPORTANT: For improved security,you should rename or remove the Web services file when you move it to your production server. After installation, this file is named ServerControlWS.asmx in the /siteroot/Workarea/ folder in your Web root. ServerControlWS.asmx is the Web service that lets server controls communicate withEktron. The path is coded in the web.config file, as follows. Edit this line if you change the location or name of the ServerControlWS.asmx file.
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies http://stackoverflow.com/questions/tagged/ektron?sort=unanswered of this site About Us Learn more about Stack Overflow the company Business http://martinondotnet.blogspot.com/2010/06/ektron-fix-for-primary-key-constraint.html Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question Tagged Questions info newest frequent votes active unanswered This tag refers to the Ektron CMS400.NET content management system. learn more… | top users | synonyms 4 votes 0answers 125 views error creating Multivariate Testing in Ektron I am working in Ektron 8.6. I am working with Multivariate Experiment. After setting an experiment, I could see proper results in experiment widget (both HITs and Conversions). But the issue is with ... ektron asked Jan 17 '13 at 14:11 Bisileesh 1,0751928 3 votes 0answers 122 views Adding new connector to DxH in Ektron I am working error creating control in Ektron 8.6. I am trying to add a sample connector to the DxH,I created a "Sample Connector" class library which comprises of a class that implements from Ektron.DxH.Common.IConnector,... ektron asked Mar 20 '13 at 12:42 Bisileesh 1,0751928 2 votes 0answers 280 views Items in .NET cache not expiring as expected I am not very familiar with exactly how the cache works, so I hope I'm including enough information. Basically, my problem is that we're caching items, and they appear to be added to the cache all ... c# .net caching ektron asked Apr 7 '15 at 19:31 user0474975 277 2 votes 0answers 18 views Missmatch date and time with time zone in ektron An ektron site is hosted in server following IST time zone. when the user come from out of IST and tries to edit or create document, then corresponding history is updated with IST as same. iis hosting ektron asked Jan 22 '15 at 6:49 SULFIKAR A N 318111 2 votes 0answers 120 views Can AngularJS v1.3 work with Ektron v8.7 and its FormBlock server control? I've been trying to implement AngularJS v1.
users in our Ektron 8.0.1 installation where we could no longer create users. The error we got was: Error cms_addUser: Error[cms_SetupDefaultNotificationPreferencesForUser]: Violation of PRIMARY KEY constraint 'PK_notification_preference_default'. Cannot insert duplicate key in object 'dbo.notification_preference_default'. [EkUser->AddUserv2_0][UserApi->AddUser] Scary Stuff. Still, the Ektron provided fixes are simple enough (although by no means intuitive!): Simple Fix Restart Ektron Windows Services Perform a full eSync (from Synchronisation screen) Complex Fix If the above doesn't work try this: Backup database…just incase Remove any entries from [perform_action] table with an action_priority of -8 Get the maximum PreferenceID from [notification_preferences_default] SELECT MAX(PreferenceID) FROM [notification_preferences_default] If the [max_table_number] value in [max_entries] table for [table_name] notification_preference_default is less than the maximum preference id then update it to the maximum value plus two. To save any potential issues with this, I've written a quick SQL script: 1: BEGIN TRANSACTION; 2: 3: /* Rows that need deleting */ 4: SELECT * FROM [perform_action] WHERE [Action_priority]=-8 5: 6: DELETE FROM [perform_action] WHERE [Action_priority]=-8 7: 8: DECLARE @MaxPreferenceId BIGINT 9: 10: SELECT @MaxPreferenceId = MAX([PreferenceId]) 11: FROM [dbo].[notification_preference_default] 12: 13: /* Before! */ 14: SELECT [table_name], [max_table_number], @MaxPreferenceId AS MaxValue 15: FROM [max_entries] 16: WHERE [table_name]='notification_preference_default' 17: 18: UPDATE [max_entries] SET [max_table_number] = @MaxPreferenceId + 2 19: WHERE [table_name]='notification_preference_default' AND [max_table_number]<@MaxPreferenceId 20: 21: /* After! */ 22: SELECT [table_name], [max_table_number], @MaxPreferenceId AS MaxValue 23: FROM [max_entries] 24: WHERE [table_name]='notification_preference_default' 25: 26: /*Change To COMMIT TRANSACTION when happy */ 27: ROLLBACK TRANSACTION; NOTE: All the changes are performed in a transaction (which is rolled back), you'll need to change the script so that it Commit the results when you're happy. Posted by Martin Jarvis at 18:25 Reactions: Email ThisBlogThis!Share to TwitterShare to FacebookShare to Pinterest Labels: Ektron, Exception Handling, SQL, Troubleshooting 1 comment: spongeboy19 November 2010 at 00:29Thanks for posting this. Ektron support has mentioned that they have an update to one of the user create stored procs if this is a consistent problem. The fix should hopefully be in whatever release comes after 8.0.2.ReplyDeleteAdd commentLoad