<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello Merve,</p>
<p>sorry for the late answer.</p>
<p>It can be done in this way:</p>
<p><tt> column = new
AbstractColumn<SelectableBean<UserType>, String>(</tt><tt>createStringResource("pageUsers.tckn"))
{</tt><tt><br>
</tt></p>
<p><tt> @Override</tt><tt><br>
</tt><tt> public void
populateItem(Item<ICellPopulator<SelectableBean<UserType>>>
cellItem,</tt><tt><br>
</tt><tt> String componentId,
IModel<SelectableBean<UserType>> model) {</tt><tt><br>
</tt><tt> String tckn = null;</tt><tt><br>
</tt><tt> UserType user =
model.getObject().getValue();</tt><tt><br>
</tt><tt> if (user != null &&
user.getExtension() != null) {</tt><tt><br>
</tt><tt> PrismProperty<String>
tcknProperty = <br>
user.getExtension().asPrismContainerValue().findProperty(new
QName("tckn"));</tt><tt><br>
</tt><tt> if (tcknProperty != null) {</tt><tt><br>
</tt><tt> tckn =
tcknProperty.getRealValue();</tt><tt><br>
</tt><tt> }</tt><tt><br>
</tt><tt> }</tt><tt><br>
</tt><tt> cellItem.add(new Label(componentId,
tckn));</tt><tt><br>
</tt><tt> }</tt><tt><br>
</tt><tt> };</tt><tt><br>
</tt><br>
</p>
<p>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</p>
<p>And then it looks like this (place the column appropriately for
your situation):<br>
</p>
<p><img src="cid:part1.6FE5B3CF.662D5C5A@evolveum.com" alt=""></p>
<p>You could probably replace <tt>new QName("tckn") </tt>with <tt>UserType.EXTENSION_TCKN</tt>
- I assume you manually added this constant. (Although beware that
UserType is a generated class, so this constant probably gets
overwritten at "mvn clean install".)</p>
<p>Hope this helps,<br>
</p>
<pre class="moz-signature" cols="72">Pavol Mederly
Software developer
evolveum.com
</pre>
<div class="moz-cite-prefix">On 24.01.2017 7:13, mceylan wrote:<br>
</div>
<blockquote
cite="mid:CADu1p_jFKfFJ_3YTeaw7_3MHogM6Nz9dOWsAYDtRuuzSRRbxpA@mail.gmail.com"
type="cite">
<div dir="ltr"><span style="font-size:12.8px">hi,</span>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">create custom extension schema
"tckn"</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">I want Tckn is add admin page
users list column. For Example </div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">name name givenName familyName
tckn emailAddress</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px"> </div>
<div style="font-size:12.8px">
<div><br>
</div>
<div>PageUsers.java </div>
<div><br>
</div>
<div>
<div>column = new PropertyColumn(<wbr>createStringResource("<wbr>Usertype.tckn"),UserType.<wbr>EXTENSION_TCKN.getLocalPart(),<wbr>SelectableBean.F_VALUE
+ ".tckn");</div>
<div><span class="gmail-m_5833605331154335239gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>columns.add(column);</div>
<div><span class="gmail-m_5833605331154335239gmail-Apple-tab-span" style="white-space:pre-wrap"> </span></div>
</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
-- <br>
<div class="gmail_signature">
<div dir="ltr">Merve CEYLAN</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
<br>
</body>
</html>