Question Comments
Added By:
Ad de Rijke at:
5/19/2014 4:52:28 AM The Web project does not compile: 'The type or namespace name 'WinWebSolutionAspNetApplication' could not be found (are you missing a using directive or an assembly reference?)'
Added By:
Dennis (DevExpress Support) at:
5/20/2014 3:31:16 AM @Ad: For some reason the WebApplication.cs file was emptied. I have attached a working sample for your reference. I will also update this example as well.Added By:
Ville Virtanen at:
12/4/2015 11:06:39 PM When trying to run it gives an error: Another rule with ID = 'EventIntervalValid' already exists.
When I commented following lines, it worked, but how I disable the BaseImpl rule?
//[NonPersistent]
//[Browsable(false)]
//[RuleFromBoolProperty("EventIntervalValid", DefaultContexts.Save, "The start date must be less than the end date", SkipNullOrEmptyValues = false, UsedProperties = "StartOn, EndOn")]
//public bool IsIntervalValid { get { return StartOn <= EndOn; } }
Added By:
Dennis (DevExpress Support) at:
12/7/2015 5:41:37 AM @Ville: You can simply rename this rule without commenting it out to avoid this error. Or, you would better not to use the default Event class from the DevExpress.Persistent.BaseImpl library in your project.
Added By:
Nate Laff at:
2/17/2016 7:43:43 AM Can we see an update to this for 15.2? Things are currently pretty broken. In Activity.UpdateEmployees() the XML is coming back much different than it previously did.Added By:
Dennis (DevExpress Support) at:
2/17/2016 8:09:23 AM @Nate: We will unlikely update this code for v15.2 for the reasons described in point #2 of the important notes to this example. The example's Activity class code is pretty much the same as the code of the Event class (similarly, Employee is an analog of the Event's Resource and security User classes) and we would like to avoid synchronization and maintenance problems for our users going forward.
In the future, I will probably rework this article to be more like a codeless KB article that would focus not on specific implementations, which are different for each concrete business scenario, but rather on the main points of such an integration, which are the same for all cases. I hope this makes sense.
Added By:
Paul van Keulen at:
5/25/2016 3:56:20 AM While compiling this project it gives an error: Error 1 The type or namespace name 'IXpoCloneable' could not be found (are you missing a using directive or an assembly reference?)
Added By:
Paul van Keulen at:
5/25/2016 4:01:17 AM When I remove the IXpoCloneable code I can compile.
After creating an event:
Employee activityUser = Session.GetObjectByKey<Employee>(new Guid(xmlNode.Attributes["Value"].Value));
raises an error.
I'm using 15.2.5. Added By:
Dennis (DevExpress Support) at:
5/25/2016 4:14:18 AM @Paul: This example code should not be used with v15.2 or later (the version selection is also limited via the example's web page UI). Please refer to point #2 under the Important notes section to learn more on how to proceed with the latest versions. Let us know in case of any further questions on how to apply this guidance.
Added By:
Ville Virtanen at:
8/12/2016 2:59:33 PM Do you plan to update this example to latest version?
Added By:
Michael (DevExpress Support) at:
8/15/2016 12:22:42 AM @Ville: It is unlikely that we will update this example, because the old security system is rarely used nowadays. As mentioned in the description of this ticket, you can find the actual implementation of the Event and Resource classes in the source code shipped with components. As for creating custom security classes, refer to the articles mentioned in the
New Security System help topic.Added By:
Albert Ortiz Mirabete at:
8/2/2017 5:01:06 AM Hello,
I use this example to filter resources but the resources are null when executes FilterResources, and never apply the criteria.
[C#]
protectedvirtualvoidFilterResources(XPCollectionresources,CriteriaOperatorcriteria){if(resources!=null&&!ReferenceEquals(criteria,null)){resources.Criteria=criteria;}}
But I have resources and the Scheduler shows all of them when is loaded.
Thanks,
Albert
Added By:
Michael (DevExpress Support) at:
8/3/2017 2:24:57 AM @Albert: Please refer to the T533005 ticket where a similar issue was discussed. If this doesn't help, submit a new ticket and attach a sample project demonstrating the issue.
Added By:
Albert Ortiz Mirabete at:
8/4/2017 7:33:30 AM Thanks, it works!