Search result : show for each line first node of list

Five Stars

Search result : show for each line first node of list

Hello,
In MDM web UI,
for an entity which have a complex-type,
we would like to show in the result list, for each line, an attribute of the first complex-type.
When we define the simple XPath <entity>/<complex-type>/<attribute>
we get a result list where one entity snow multiple occurence...
How to show only the value of an attribute of the first complex-type of the complex-type list ?
Regards
Employee

Re: Search result : show for each line first node of list

Hi Vianney,
If you have the following kind of document :
<entity>
<complexType>
<attribute>test</attribute>
<attribute>anotherTest</attribute>
</complexType>
</entity>

you can use this kind of XPath query :
/entity/complexType/attribute

PS : Beware of the loop you set if you're using a tMDMInput.
HTH,
Five Stars

Re: Search result : show for each line first node of list

Thank you for your reply
My question is about the web UI view.
I already tried the XPath you suggested (cf. screenshot)
But I get the following error
2014-04-11 09:28:59,883 ERROR ##### Error during fetch operation #####
2014-04-11 09:28:59,885 ERROR Unable to single search: : com.amalto.xmlserver.interfaces.XmlServerException: java.lang.RuntimeException: java.lang.RuntimeException: Exception occurred during fetch operation
com.amalto.xmlserver.interfaces.XmlServerException: java.lang.RuntimeException: java.lang.RuntimeException: Exception occurred during fetch operation
at com.amalto.core.delegator.IItemCtrlDelegator.viewSearch(IItemCtrlDelegator.java:274)
at com.amalto.core.ejb.ItemCtrl2Bean.viewSearch(ItemCtrl2Bean.java:420)
(...)
Caused by: org.apache.commons.lang.NotImplementedException: Code is not implemented
at com.amalto.core.query.user.VisitorAdapter.visit(VisitorAdapter.java:221)
at com.amalto.core.query.user.IndexedField.accept(IndexedField.java:34)
at com.amalto.core.storage.hibernate.SelectAnalyzer.visit(SelectAnalyzer.java:83)
(...)
Highlighted
Employee

Re: Search result : show for each line first node of list

Hi,
Looks like you've found a bug. Please report this on jira.talendforge.org (same credentials as forum for the login).

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

APIs for Dummies

View this on-demand webinar about APIs....

Watch Now

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog

Why Companies Move to the Cloud: 7 Success Stories

Learn how and why companies are moving to the Cloud

Read Now