Customer Directory export in WCM or PublicView

Our customer wants the ability to export Customer Directory for its members. I saw that this ability is available in Customer Directory of Web View which is not available to members.

Most members connect to WCM site and the Customer Directory of WCM or Public View does not provide abilty to Export to Excel or PDF or Word.

Please see the attached image and see the circled Export options I am talking about. Please let me know if you know the trick to make export buttons available in Public View or WCM.

 

 

AttachmentSize
Customer Directory in WCM View.jpg152.69 KB
Customer Directory in Web View.jpg142.82 KB

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Hi Sandeep,For public view

Hi Sandeep,

For public view if you want to enable export options, you can add a new lister control which does the same as QueryResultGrid.

Open "directory.aspx"  from "C:\Program Files (x86)\ASI\iMIS15\iMIS_public\Core" folder

put the following content in the content area.

 

 
<asiResultsViewer:QueryResultGrid  Visible="false" 
 runat="server" ID="CustomersGrid"
 QueryPath="$/ContactManagement/DefaultSystem/Queries/Directory/Contacts" />
    
  <asiweb:Lister2 id="CustomersGrid2"
        runat="server"
        AjaxEnabled="true"
        SortingEnabled="true"
        PagingEnabled="true"
        PagerMode="Advanced"
        PageSize="20"
        ColumnReorderingEnabled="false"
        DataSourceDocumentPath="$/ContactManagement/DefaultSystem/Queries/Directory/Contacts"       
 DeleteColumnLocation="None"        
        ExportButtonLocation="TopRight"         
        LinkTargetBehavior="SameWindow"
        EditColumnLocation="None"
        SelectColumnLocation="End"       
        EnableClientSideDelete="false"       
 UseUniformKey="false"       
        LinkTargetHeight="95%"
        LinkTargetWidth="95%"
        HideResultsOnInitialLoad = "Visible"
    />
 

 

Balaji, Thankyou for your

Balaji,

Thankyou for your suggestion. It worked for Public View page for Excel Export and Word Export. PDF export is all mangled up, I think because we have too many columns in result.

For WCM, the export options do not show up. Unfortunately I do not see an option to attach screen shot this time, so I cannot show you.

I thought Directory in WCM is using the same page as public view, but it is not showing the export options. Is it because of the style or page size in the template ?

Appreciate any help.

Sandeep

 

 

Screen shot - Customer Directory in WCM View.jpg

I have attached the screen shot Screen shot - Customer Directory in WCM View.jpg to the original question. As you can see in the screen shot, it doesn't show the export options for directory in WCM even after the change you suggested.

Please add this line after

Please add this line after  <%@ Page  .....

 

<script runat="server">
    protected override void  OnInit(EventArgs e)
{
    base.OnInit(e);
        CustomersGrid2.ExportButtonLocation = ListerButtonLocation.TopRight;
      //  CustomersGrid2.ExportFormatsAvailable = ListerExportFormat.Word;
}
   
</script>

 

 

thanks ..

Thanks again for your suggestion.

I was able to fix directory export on WCM by making the change you suggested to Directory.aspx located in C:\Program Files\ASI\iMIS15\Net\Core.

I was wrong to assume that WCM uses objects from Public View.

thanks again for all your help on this.

Sandeep