XPath Filter for UOCTextbox
Hi, Can I use xpath filters for UOCTextBox?In the "create user" screen I need to 1. Show current users accountname/alias2. Pre-populate some attributes of another custom resource type.
January 13th, 2010 12:22am

Not in that control... Your best bet to create unique account names is to generate them in a custom workflow activity that can check/gurantee uniqueness. To "pre"-populate attributes, I'd say use the UOCIdentityPicker control to have them choose the custom resource (which will set a reference GUID) and the use the Built-in Function Action to get the values from the custom object (thing [//Target/ResourceRef/Attribute] and populate the new object.EricEric
Free Windows Admin Tool Kit Click here and download it now
January 14th, 2010 8:50pm

Thank You for the reply Eric. Yes, I am clear on the account uniqueness. But I do not understand the built in action you are referring to. Can you please elaborate.Here is my scenario.1. I created a custom reference attribute 'UserComputer' and bound it to the 'Person' resource type.2. I have created a custom resource type 'Computer' and it is bound to attributes accountname, etc.Now in the RCDC (xml) for User CreateI add the following control <my:Control my:Name="UserComputer" my:TypeName="UocIdentityPicker" my:Caption="User's Computer" my:Description=""> <my:Properties> <my:Property my:Name="Required" my:Value="{Binding Source=schema, Path=UserComputer.Required}"/> <my:Property my:Name="Mode" my:Value="SingleResult"/> <my:Property my:Name="ObjectTypes" my:Value="Computer"/> <my:Property my:Name="AttributesToSearch" my:Value="DisplayName, AccountName"/> <my:Property my:Name="Filter" my:Value="/Computer[contains(DisplayName, 'testcomputer')]"/> <my:Property my:Name="ResultObjectType" my:Value="Computer"/> <my:Property my:Name="Value" my:Value="{Binding Source=object, Path=UserComputer, Mode=TwoWay}"/> </my:Properties> </my:Control>And when a user clicks on the New button to create a 'User'. (On Page load) I need to populate this control with the filtered/default computer value. How do I go about doing this ??Thanks.
January 14th, 2010 11:31pm

1. Create an Action Workflow activity... 2. Add The function Evaluator 2.a Activity Display Name = Set Computer Name 2.b Target Attribute = [//Target/ComputerName] 2.c Value = [Custom Expression] [//Target/UserComputer/DisplayName] <EH> I usually encapsultate this in a TRIM functon but it should work this way.3. Save4. Add an MPR on change to UserComputer attribute with your new workflow activity in placeThis will copy the "Friendly value" to an attribute on the Person object allowing you to send the friendly value to any connected system.The one downside is that I don't believe it will clear the ComputerName when the UserComputer value is deleted. I have a custom activity for that but if that doesn't bother you then you'll be fine.EricEric
Free Windows Admin Tool Kit Click here and download it now
January 15th, 2010 6:57pm

Hi all,I tried your solution with my custom ressource and it doesn't work.Custom ressource name = RoleASAttribute Name (bind on User Objet) = AttRoleASIn Workflow, my custom expression looks like [//Target/AttRoleAS/DisplayName] I verified displayname of my custom object and it's reached....I also tired this with Manager Attribute and my custom expression is [//Target/Manager/DisplayName] and it works very well!!!!!In conclusion, WF settings, MPR settings are good... so could you tell me what I have to add???ThanksVictor
March 3rd, 2010 2:30pm

Hi,I have another question :Even if it doesn't work for me with 1 object, Is it working if there are more than 1 object???Because, in my case, the new ressource is a role object. I want to set several roles per user...ThanksVictor
Free Windows Admin Tool Kit Click here and download it now
March 3rd, 2010 7:13pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics