<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello.</p>
<p>I cannot see the screenshot in detail. What's the problem,
exactly? Maybe you see "pageUsers.tckn" as the column name. In
that case, be sure to either replace <tt>createStringResource("<wbr>pageUsers.tckn")</tt>
with the exact string you want to have as a column label, or
create a "pageUsers.tckn" entry in midpoint.properties file.</p>
<p>
<blockquote type="cite"><span style="font-size:12.8px">I don't
know manually added</span></blockquote>
Ah I see. It's OK then. Nothing more should be necessary, other
than fixing the column name.</p>
<p>Or is there any other problem?<br>
</p>
<pre class="moz-signature" cols="72">Pavol Mederly
Software developer
evolveum.com
</pre>
<div class="moz-cite-prefix">On 24.01.2017 13:10, mceylan wrote:<br>
</div>
<blockquote
cite="mid:CADu1p_ipbqq1wbLkmVp1f=nssKLfo5dmf4p8jAnNwsP_sEH76g@mail.gmail.com"
type="cite">
<div dir="ltr">Thanks for you answer. I used the way you write. <span
style="font-size:12.8px">And then it looks like this</span>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px"><img
src="cid:part1.67BCD013.3AD6367E@evolveum.com" alt="Satır
içi resim 2" height="313" width="562"><br>
</span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px">and create tckn.xsd schema
file. Ant hen it looks like this </span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div>
<div><span style="font-size:12.8px"><?xml version="1.0"
encoding="UTF-8" standalone="yes"?></span></div>
<div><span style="font-size:12.8px"><!--</span></div>
<div><span style="font-size:12.8px"> ~ Copyright (c)
2010-2013 Evolveum</span></div>
<div><span style="font-size:12.8px"> ~</span></div>
<div><span style="font-size:12.8px"> ~ Licensed under the
Apache License, Version 2.0 (the "License");</span></div>
<div><span style="font-size:12.8px"> ~ you may not use this
file except in compliance with the License.</span></div>
<div><span style="font-size:12.8px"> ~ You may obtain a copy
of the License at</span></div>
<div><span style="font-size:12.8px"> ~</span></div>
<div><span style="font-size:12.8px"> ~ <a
moz-do-not-send="true"
href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a></span></div>
<div><span style="font-size:12.8px"> ~</span></div>
<div><span style="font-size:12.8px"> ~ Unless required by
applicable law or agreed to in writing, software</span></div>
<div><span style="font-size:12.8px"> ~ distributed under the
License is distributed on an "AS IS" BASIS,</span></div>
<div><span style="font-size:12.8px"> ~ WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.</span></div>
<div><span style="font-size:12.8px"> ~ See the License for
the specific language governing permissions and</span></div>
<div><span style="font-size:12.8px"> ~ limitations under the
License.</span></div>
<div><span style="font-size:12.8px"> --></span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px"><!-- This is a runtime
schema that defines data types used in the</span></div>
<div><span style="font-size:12.8px"><extension> part of
the objects. --></span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px"><xsd:schema
elementFormDefault="qualified"</span></div>
<div><span style="font-size:12.8px">
targetNamespace="<a moz-do-not-send="true"
href="http://prism.evolveum.com/xml/ns/demo/extension-electra">http://prism.evolveum.com/xml/ns/demo/extension-electra</a>"</span></div>
<div><span style="font-size:12.8px"> xmlns:tns="<a
moz-do-not-send="true"
href="http://prism.evolveum.com/xml/ns/demo/tckn">http://prism.evolveum.com/xml/ns/demo/tckn</a>"</span></div>
<div><span style="font-size:12.8px"> xmlns:a="<a
moz-do-not-send="true"
href="http://prism.evolveum.com/xml/ns/public/annotation-3">http://prism.evolveum.com/xml/ns/public/annotation-3</a>"</span></div>
<div><span style="font-size:12.8px"> xmlns:c="<a
moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>"</span></div>
<div><span style="font-size:12.8px"> xmlns:xsd="<a
moz-do-not-send="true"
href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>"></span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px"> <xsd:complexType
name="UserExtensionType"></span></div>
<div><span style="font-size:12.8px">
<xsd:annotation></span></div>
<div><span style="font-size:12.8px">
<xsd:appinfo></span></div>
<div><span style="font-size:12.8px">
<a:extension ref="c:UserType"/></span></div>
<div><span style="font-size:12.8px">
</xsd:appinfo></span></div>
<div><span style="font-size:12.8px">
</xsd:annotation></span></div>
<div><span style="font-size:12.8px">
<xsd:sequence></span></div>
<div><span style="font-size:12.8px">
<xsd:element name="tckn" type="xsd:string"
minOccurs="0" maxOccurs="1"></span></div>
<div><span style="font-size:12.8px">
<xsd:annotation></span></div>
<div><span style="font-size:12.8px">
<xsd:appinfo></span></div>
<div><span style="font-size:12.8px">
<a:indexed>true</a:indexed></span></div>
<div><span style="font-size:12.8px">
<a:displayName>TCKN</a:displayName></span></div>
<div><span style="font-size:12.8px">
<a:displayOrder>120</a:displayOrder></span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px">
</xsd:appinfo></span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px">
</xsd:annotation></span></div>
<div><span style="font-size:12.8px">
</xsd:element></span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px">
</xsd:sequence></span></div>
<div><span style="font-size:12.8px">
</xsd:complexType></span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px"></xsd:schema></span></div>
<div style="font-size:12.8px"><br>
</div>
</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px"><br>
</div>
<div><span style="font-size:12.8px">You: I assume you manually
added this constant</span><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px">I don't know manually added</span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px">Thanks,</span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2017-01-24 11:14 GMT+02:00 Pavol
Mederly <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:mederly@evolveum.com" target="_blank">mederly@evolveum.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div 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<<wbr>UserType>,
String>(</tt><tt>createStringResource("<wbr>pageUsers.tckn"))
{</tt><tt><br>
</tt></p>
<p><tt> @Override</tt><tt><br>
</tt><tt> public void
populateItem(Item<<wbr>ICellPopulator<SelectableBean<<wbr>UserType>>>
cellItem,</tt><tt><br>
</tt><tt> String componentId,
IModel<SelectableBean<<wbr>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().<wbr>asPrismContainerValue().<wbr>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> </p>
<p>And then it looks like this (place the column
appropriately for your situation):<br>
</p>
<p><img src="cid:part9.9AA2A207.B2ADFAC4@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="m_1345948681106112499moz-signature" cols="72">Pavol Mederly
Software developer
<a moz-do-not-send="true" href="http://evolveum.com" target="_blank">evolveum.com</a>
</pre>
<div>
<div class="h5">
<div class="m_1345948681106112499moz-cite-prefix">On
24.01.2017 7:13, mceylan wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<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(createStringRes<wbr>ource("Usertype.tckn"),<wbr>UserType.EXTENSION_TCKN.<wbr>getLocalPart(),SelectableBean.<wbr>F_VALUE
+ ".tckn");</div>
<div><span class="m_1345948681106112499gmail-m_5833605331154335239gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>columns.add(column);</div>
<div><span class="m_1345948681106112499gmail-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="m_1345948681106112499gmail_signature">
<div dir="ltr">Merve CEYLAN</div>
</div>
</div>
<br>
<fieldset
class="m_1345948681106112499mimeAttachmentHeader"></fieldset>
<br>
</div>
</div>
<pre>______________________________<wbr>_________________
midPoint mailing list
<a moz-do-not-send="true" class="m_1345948681106112499moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a moz-do-not-send="true" class="m_1345948681106112499moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a>
</pre>
</blockquote>
</div>
______________________________<wbr>_________________
midPoint mailing list
<a moz-do-not-send="true" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a moz-do-not-send="true" href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a>
</blockquote></div>
<div>
</div>--
<div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Merve CEYLAN</div></div>
</div>
<fieldset class="mimeAttachmentHeader"></fieldset>
<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>
</body></html>