Home
TeamSite
dct get AD attribute?
System
Dear all
I want that one filed of the DCT can be auto produce:User New DCR ,and his name from the "name" attribue of hist AD account Can auto fill in one field of DCR.
somebody can help me?
Find more posts tagged with
Comments
Adam Stoller
Look at the TeamSite Templating Developer's Guide (for 5.5.2 start around p. 65) for information about 'inline' scripts - one of the environment variables passed in is IW_USER - which would be the userid of the person initiating the new DCR - you could either use that, or perform some kind of lookup to (LDAP, AD, native OS) to find their actual name.
--fish
(Interwoven Senior Technical Consultant)
Migrateduser
I can't use it in text field,becuase text field cann't be supported by 'inline' scripts.
Adam Stoller
I realize this is kind of old - but I'm still catching up with posts from my 30+ day absence from the forums ...
What do you mean
text field [cannot] be supported by 'inline' scripts.
? You can use an 'inline' script for practically anything that is to be configured when the DCT is being rendered - and text fields support
<default>
elements which can be filled in via inline scripts.
--fish
(Interwoven Senior Technical Consultant)
MattP
Keep in mind, without a little formAPI code, this will only work the first time the user created the DCR. Subsequent updates to the DCR will not update the user id. From what I can tell the inline will return
domainname
/
userid
(ie my_domain\petitjm). Sometimes not very useful.
Matt
PS-
I was wondering where you had been lately?
Matthew Petitjean
BOC Group
Murray Hill, NJ 07974 USA
Migrateduser
Hi,
Can i do like this as per ur post on inline with Text
<textarea>
<default>
<inline ='path'/>
</default>
</textarea>
Thanx in advance
MattP
this may help. Obviously you can remove the setVisable part
http://devnet.interwoven.com/site.fcgi/techlib/49773
Matt
Matthew Petitjean
BOC Group
Murray Hill, NJ 07974 USA
TASKSPACE_.pdf
Documentum_Taskspace_411.pdf