Content Management and Capture

 View Only
Expand all | Collapse all

search result Properties Pane ,edit save and cancel buttons behavior

  • 1.  search result Properties Pane ,edit save and cancel buttons behavior

    Posted Wed October 21, 2020 08:20 AM

    Dear support,

    I am using navigator 3.0.3(and also test it on 2.0.3) with basic EDS.

    I am run simple search with Details view,

    after the search finish and show the search result set i am clicking on one document and press "edit" on the Properties Pane.

    if i change some value and press "save", the "save" button and the "cancel" button are stays on.

    there is no logic to keep the save and the cancel buttons "on" after user already save the changes, instead the user are expected to see again the Edit button.

    if the user press save, he is expecting to know that the save success and move to some other row .

    if the EDS is working, and the user click on other row, the is some confirmation dialog that ask "do you want to save your changes?" again and again after each row he picks on the search result search, till the user press cancel on the properties pane.

    if the EDS is off, the same behavior of the "save" and "cancel" buttons but the confirmation dialog is not pop up, as expected.

    but still, if you press "edit" on one document and then press "save", while you move to some other row, the edit mode is still on for all other documents, until you will press once on "cancel" button.

    how can a change the behavior of the cancel button after save?

    for example, turn off the save and cancel button after the user save once and tern on the edit button.

    there is some IBM fix for this issue in other versions?



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 2.  RE: search result Properties Pane ,edit save and cancel buttons behavior
    Best Answer

    Posted Fri October 23, 2020 12:09 PM


  • 3.  RE: search result Properties Pane ,edit save and cancel buttons behavior
    Best Answer

    Posted Sun October 25, 2020 07:30 AM

    Thank you Angie,

    can you please write the 2 lines how to override the global ecm.widget.ContentListEditPane.js, onSane() function

    ?



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 4.  RE: search result Properties Pane ,edit save and cancel buttons behavior
    Best Answer

    Posted Sun October 25, 2020 08:13 AM

    Is it should be something like ?

    aspect.after(ecm.widget.ContentListEditPane,"onSave",lang.hitch(this,myfunction)

     );

    thank you



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 5.  RE: search result Properties Pane ,edit save and cancel buttons behavior
    Best Answer

    Posted Sun October 25, 2020 11:55 AM

    ok, i think i found the way to override the original on save function,

    aspect.around(ecm.widget.contentListEditPane.prototype,"onSave",function(originalFunction){

    return function(){

    }})


    but i cannot find the way to change the Save and Cancel button to disable,

    any tips?



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 6.  RE: search result Properties Pane ,edit save and cancel buttons behavior
    Best Answer

    Posted Tue October 27, 2020 08:19 AM

    Hi,

    Another way to override the function is

    ContentListEditPane.prototype.onSave=function() {}

    You may look into _showButtons() and _enableButtons() functions in ContentListEditPane.js to hide or disable the buttons.

    Regards,

    Angie



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 7.  RE: search result Properties Pane ,edit save and cancel buttons behavior
    Best Answer

    Posted Tue October 27, 2020 09:28 AM

    i just copy the onSave function content to

    ContentListEditPane.prototype.onSave=function() {}


    inside the OnSaveCallback i add one line

    this.onCancel(), and it is work as expected.

    i hope this is ok.


    **because when you save document and after that you press the cancel button, navigator dose not show the confirmation dialog, and work as expected.

    so after save, it sounds rational to me to duplicate this behavior by call to onCancel func.



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 8.  RE: search result Properties Pane ,edit save and cancel buttons behavior
    Best Answer

    Posted Wed October 28, 2020 07:07 AM