| Status | ID | Priority | Type |
| Closed | 39411 | Major | Question |
| Profile | Reply |
kakembo richardClient | In your dockflow sample you add these settings to app.config how can i set these in code?I dont want end user administrators to alter them. |
| User | Description | Posted On |
kakembo richardClient | ||
MariyaVoytovichAgent | Hello! It looks like the example of the settings you gave are lost Regards, | |
kakembo richardClient | how can i set these in code?I dont want end user administrators to alter them. | |
kakembo richardClient | how can i set these in code?I dont want end user administrators to alter them. Attached files: | |
MariyaVoytovichAgent | Hello! These settings are used by two Xafari services: All specified settings are read from the configuration file by the services during initialization. Example: public class DemoModule: XafariModuleBase
{
public override void Setup(XafApplication application)
{
application.SetupComplete += (sender, args) =>
{
DocflowManager.Instance.Initialized += DocflowManager_Instance_Initialized;
TasksManager.Instance.Initialized += TasksManager_Instance_Initialized;
};
}
private void TasksManager_Instance_Initialized(object sender, EventArgs e)
{
TasksManager.Instance.UseHistory = true;
TasksManager.Instance.AllowCheckPermissions = true;
}
private void DocflowManager_Instance_Initialized(object sender, EventArgs e)
{
DocflowManager.Instance.UseHistory = true;
DocflowManager.Instance.AddParticipants = true;
}
}
Feel free to contact us if you have any questions. Regards, | |
kakembo richardClient | DocflowManager.Instance.AddParticipants is readonly | |
MariyaVoytovichAgent | Yes, this parameter is read-only. For example, you can change the method Instance_Initialized like this
private void Instance_Initialized(object sender, EventArgs e)
{
var config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
var settings = config.AppSettings.Settings;
settings["Docflow.AddParticipants"].Value = "True";
settings["Docflow.UseHistory"].Value = "True"
DocflowManager.Instance.Configuration = config;
}
Feel free to contact us if you have any questions. Regards, |
Write US