Displaying documents in application scope perspective

We created a custom dialog. From the custom dialog we open a application scope perspective with a dql to display objects. Doing it the first time everything works fine. But if we want to execute another query the view doesn´t refresh. Only after a refresh by hand the results of the second query will be displayed.

Is there a possibility to do an automatic refresh?

Answers

  • Michael McCollough
    Michael McCollough E Community Moderator

    Could you perhaps give some visual/flow/details? I am not sure I am understanding the question. The more details you add, the better chance someone will understand what you are trying to do, what you have done and the results given/expected. What is a "refresh by hand" for example?

    Sorry if I am just not understanding but those are my thoughts if you do not receive other's answers.

  • Jerome K
    edited October 6, 2023 #3

    We have a dialog where we call our AI to generate a query. After we generated the query we want to display the results by clicking another button by a action.

    This works fine so far and the document list is displayed.

    If we call our dialog again and ask our AI for another query, clicking the button and calling the action, the document list opens with the "old" query results. Only after clicking the refresh button

    for the document list the "new" results will be displayed. This also happens if we go back to the landing page or any other view and call then our AI to generate a query and then trying to display it

  • Michael McCollough
    Michael McCollough E Community Moderator

    Still not certain here I have to make some assumptions:

    I don't see a chat/dialog flyout in your doclist display so assuming:

    1. Open chat side panel/dialog
    2. Issuing chat question/answer
    3. You tell it you want to locate the result(s) where you click and it should show the results and the dialog closes?
    4. You open the dialog again adn next time you tell it to locate, it does not refresh the doclist?

    Or does the chat/AI dialog stay somewhere open I am not seeing. When you click "locate those results" or similar function you are doing, what calls are you making?

  • Your assumption is correct after calling the dialog the first time and it closes the results are displayed correctly. The second time it doesn´t work. Only after refreshing the view the results are displayed but without calling the dialog again.

    We call an action to open an url (for the application scope perspective) and deliver a dql for the collection. For some reason the view will be opened with the previous results

  • Michael McCollough
    Michael McCollough E Community Moderator

    Any chance you could record a quick video showing this? I am hoping I have enough details for engineering to review in their morning for Wed but the more technical details:

    Recording:

    1. Here is my code, here is how to query is formualted and the perspective called with the query
    2. You can see the results
    3. Now I close the chat dialog, re-open it and start new chat
    4. Upon clicking locate of the new results, the list is displayed with the previous results and I have to hit the "refresh button"

    Just a quick 3-5 min video. You can send a link to it to d2sdkchallenge@opentext.com

    I would like to get to the bottom of this as it sounds like something others may hit so having an answer to this will build our KB. Sorry for the delay getting back to you, it is OTWorld week and we have a lot of activity internally as well.

  • As per the requirement, User want to submit the newly generated AI query in dialog.
    When the dialog is submitted, document list need to refresh by itself without refreshing the table or browser.

    Document list can be refreshed in three ways.

    1.With D2-Config Menu Smart View Configuration
    Set "refresh Widget" as "true" in Menu configuration in D2-Configuration

    2.With Delta Menu configuration in plugin

    <menuitem id="menuRefreshDialog">
    <dynamic-action class="com.emc.d2fs.dctm.ui.dynamicactions.actions.U4ShowDialog"
    dialog="CustomDialog"
    locateAndRefresh="false"
    refreshWidget="true"
    refreshCheckoutState="false"/>
    </menuitem>

    3.With "validDialog()" method in Dialog implementation class

    Set "refreshWidget" attribute as "true" in result

    Note: This fix will work only with the latest D2SV-SDK-23.2.0 patch provided for the partner challenge.

  • Jerome K
    edited October 11, 2023 #8

    @Gowtham Janardhanan I already tried it as described under 2.

    Unfortunately it doesn´t work.

    3. doesn´t fit for our plugin because we don´t call our url from the method validDialog. We open it with a js DialogAction.

    @Michael McCollough I will record the video later today or tomorrow. Where do you want me to upload the video?

    No problem if it takes some time :)