cancel
Showing results for 
Search instead for 
Did you mean: 

Reloading The Document Library

linkinmal
Champ in-the-making
Champ in-the-making
I want my document library to be refreshed when my action creates a new file, like it is when we delete a file. I guess I should tell some tree component to refresh or something. Can anyone help?
2 REPLIES 2

mikeh
Star Contributor
Star Contributor
It would be a good idea for you to look at our code and see how existing actions work…

Depending on which particular method your action uses:

  1. genericAction(). Ensure the success object contains a metadataRefresh event object
  2. this.modules.actions.genericAction(
    {
       success:
       {
          event:
          {
             name: "metadataRefresh"
          },
       …

  3. Custom code. Call the metadataRefresh event manually.
  4. YAHOO.Bubbling.fire("metadataRefresh");
Thanks,
Mike

linkinmal
Champ in-the-making
Champ in-the-making
Thank you, I couldn't make it work yet though, it didn't do anything, but I'll keep on trying. Let's see where it goes.