Then that will be simple. this.searchForm._searchTemplate in that method has all information from the search. Including id, name....
Original Message:
Sent: Mon December 11, 2023 04:29 AM
From: Andreas Baaserud Hauge
Subject: How to retrieve name or title of opened search with JavaScript in a Content Navigator Plugin
Thanks for your reply,
The purpose here is that when the user submit the search - I will make a call to an external webservice including the search name.
What I have done is that I have extended the _search function from ecm/widget/search/SearchTab - inside the _search function I will need the name of the search
_search: function (callback) { // somewhere here I will need the name of the search}
------------------------------
Andreas Baaserud Hauge
Senior Consultant
tietoevry
Original Message:
Sent: Fri December 08, 2023 01:36 AM
From: JIE ZHANG
Subject: How to retrieve name or title of opened search with JavaScript in a Content Navigator Plugin
Hi Nanda,
Agree. We cannot know which one is the user viewing for now.
Hi Andreas,
Would you please help us to know what is the purpose of it? When the search is submit to backend to do anything, I'd think the search name will be with it.
------------------------------
JIE ZHANG
Original Message:
Sent: Thu December 07, 2023 12:38 PM
From: Nanda Pilaka
Subject: How to retrieve name or title of opened search with JavaScript in a Content Navigator Plugin
hi Andreas,
It may not be possible to retrieve the name or title of the search the user is currently viewing - assuming he has multiple searches opened.
But we will review this a bit more and update.
------------------------------
Nanda Pilaka
IBM Content Navigator Support
Original Message:
Sent: Thu December 07, 2023 08:35 AM
From: Andreas Baaserud Hauge
Subject: How to retrieve name or title of opened search with JavaScript in a Content Navigator Plugin
@Christoph Sünderkamp or @JIE ZHANG - you guys have an idea?
------------------------------
Andreas Baaserud Hauge
Senior Consultant
tietoevry
Original Message:
Sent: Thu December 07, 2023 08:33 AM
From: Andreas Baaserud Hauge
Subject: How to retrieve name or title of opened search with JavaScript in a Content Navigator Plugin
Hi,
I need to retrieve the name or title of the search user is viewing. Even if there are multiple searches opened - I only want the one the user is using.
For reference - I retrieved user id with ecm.model.Desktop.userid - are there any equivalent functions for retrieving the name or title of an opened search?
Content Navigator 3.x
Repository: Content Manager OnDemand
------------------------------
Andreas Baaserud Hauge
Senior Consultant
tietoevry
------------------------------