How to check if logins are enabled? - advantage-database-server

So I can call sp_ModifyDatabase( 'LOGINS_DISABLED','False' ) to modify the state of LOGINS_DISABLED, but I can't find how you check the current state of the setting. Anyone know where that is?

The system.dictionary system table contains that information:
SELECT Logins_Disabled FROM system.dictionary;

Related

How to Hide some document type from document type as per community (Umbraco)

I want to hide some document type in setting -> document type. As per community wise. Is this possible to get this with some event handler or via any package or some custom code.
e.g :There is one document type News and there 2 community i want to give this document to community1 which is in Admin and hide from community2.
Thank you.
I find the solution. I can get the list of all the document type by using
TreeControllerBase.TreeNodesRendering event and we can remove particular or remove all the node also.
Thank you.

Changing task owner in a GXFlow business process diagram

I'm working with GeneXus and I'm developing a business process diagram for GXFlow.
I need that the user can select the owner of the next task.
I can retrieve the list of the users of the specific role with this code:
&WorkflowServer.Connect('WFADMINISTRATOR','WFADMINISTRATOR')
&WorkflowOrganizationalModel = &WorkflowServer.GetOrganizationalModel()
&WorkflowFilter.Role = &WorkflowOrganizationalModel.GetRoleByName('RoleName')
&WorkflowUsers = &WorkflowOrganizationalModel.ListUsers(&WorkflowFilter)
//Adding users to a combobox
For &WorkflowUser in &WorkflowUsers
&users.AddItem( &WorkflowUser.Id.ToString(),&WorkflowUser.Name)
EndFor
In this case a user can select the owner of the next task from a combobox. How I can set the selected user as owner of the next task?
I found the best solution for my question. I hope it can be useful also for you:
You can save the selected user in a relevant data variable.
In the target task properties you can change the property "Assign from a user in a relevant data" and assign the previous created variable to it.
This works good for me.
You can use the "Is Ad-Hoc" property for a task and GXflow will do this automatically for you. Please see this documentation for more details about this option https://wiki.genexus.com/commwiki/servlet/wiki?11875,Is+Ad-Hoc+Property

Is it possible to annotate access to a user function in Neo4j?

In user defined procedures I can limit access with the allowed annotation like this:
#Procedure(value = "search",allowed = "admin",mode = Mode.READ)
public Stream<Node> search( #Name("label") String label)
{
...
Is it possible to limit the access with annotation to a #UserFunction too?
Actually, in the recent 3.2.x versions things have changed with regards to this. Everything is now being managed by neo4j.conf configuration settings. Check http://neo4j.com/docs/operations-manual/current/reference/configuration-settings/#config_dbms.security.procedures.roles for more details. User functions are covered too.
You'll notice that #Procedure do no longer have the "allowed" option.
Hope this helps.
Regards,
Tom

More info about DbUpdateException while deleting entity

I'm having some troubles with handling UpdateException. I mean, i know what is casuing it ( it is thrown after I want to delete Group which still contains Students ). But is it possible to get from that exception information, which constraint is being broken or something similar so i could give a proper info to user of my application ? Hope you can help me. Thanks in advance.

SharePoint - checking Content Approval change status in event receiver

I have a SharePoint list with Content Approval enabled. The business requirement is that once the new list item is approved it should stay approved despite further updates by any user.
My first thought was to handle the ItemUpdating method, and if the corresponding before property is Approved then set the after property to Approved. This doesn't work however.
In the ItemUpdating method the "Approval Status" column does not show up in properties.BeforeProperties or properties.AfterProperties. properties.ListItem["Approval Status"] and properties.ListItem.ModerationInformation.Status both show the "before" value. In the ItemUpdated method the situation is the same, except instead the values shown are the "after" values.
Is there a way in either method to identify both the before and after methods? I can work around this by creating a new hidden column that I set when the item is approved but that doesn't seem best.
Should I be approaching this from a workflow perspective?
Would this help?
http://www.synergyonline.com/blog/blog-moss/Lists/Posts/Post.aspx?ID=25
Use field's internal name with AfterProperties or BeforeProperties.
i.e. properties.AfterProperties["internal name"].
It works for me
Please refer to the following properties in the AfterProperties section for a document library.
Document libraries are a bit different than lists. the doc libraries have .AfterProperties["vti_doclibmodstat"] and .AfterProperties["vti_doclibmodcomm"].

Resources