Inline-Edit of a Component in a Display View JS - WEM 16.2
Hello,
I’m using a DisplayView JS in the WEM 16.2, but I have a problem to use the Inline-Edit in a Component (SmartList). When I click in edit in the preview, I can edit and change the text, but when I click in Save, and try to see the result, the text continues with the original value
Javascript Code:
var component = otDisplayView.getComponentBean();
var titleInline = otDisplayView.textInlineEdit(component.system.id, "title", component.title);
Template Code:<h2>{{{titleInline}}}</h2>
The HTML generated in preview:<h2> <div id="inline-text-de8c16dacbd8d610VgnVCM1000004000000aRCRD-title" contenteditable="false" formattingtoolsenabled="false" oid="de8c16dacbd8d610VgnVCM1000004000000aRCRD" attributexmlname="title" relationidentity="" isvalid="true" iscomponent="true" class="" showcontextmenu="false">Lists of Contents</div> </h2>
Thanks.
Answers
-
Did you try refreshing the page? Does the value appear after that?
textInLineEdit() function probably ends without refreshing the component or the page, thus shows original cached value.0
Categories
- All Categories
- 117 Developer Announcements
- 52 Articles
- 147 General Questions
- 136 Services
- 56 OpenText Hackathon
- 35 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 912 Cloud Fax and Notifications
- 82 Digital Asset Management
- 9.3K Documentum
- 30 eDOCS
- 175 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 6 XM Fax