Regarding Stream serve version 5.6.2 [ST]
In Storyteller, we have lines in Block_Lines/Block_Line
Requirement is to suppress duplicate item if exits
I have added a logic to identify the duplicate item and push a value in variables and in line repeater have added condition in XPath
It does not work
Any suggestion how to fix it.
Answers
-
For list of lines with unique ItemNumber, did you try pure XPath? Something like
Block_Lines/Block_Line[not(ItemNumber = preceding-sibling::Block_Line/ItemNumber)]
Translated to human, the condition reads: select all Block_Line elements that have ItemNumber that does not match any of the previous Block _Line element’s ItemNumber.
Elegant as it is, keep in mind that there will be performance concern if there are thousands of Block_Line elements. But that is probably the same with FindInArray in your script.
Dave Bares
Product Manager0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 151 General Questions
- 148 Thrust Services
- 57 Developer Hackathon
- 37 Thrust Studio
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 32 eDOCS
- 186 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 8 XM Fax
- Follow Categories