You are viewing limited content. For full access, please sign in.

Question

Question

Web Access custom Tab disappear after multiple selection

asked on October 27, 2020

I am trying to create a custom tab which show an external web page. It  works fine when there is no selection (thus choose current folder) and single selection (the object). However whenever I multi-select the pane display "multiple entries selected" which defeat my purpose as the tab function should work under multiple selection. See picture below:

 

when multi-selection

 

How to enable the custom tab content under multi-selection?

 

thanks.

 

1 0

Replies

replied on October 27, 2020

Can you talk more about your use case? The challenge with multi-select is being able to specify how the different token values should be inserted into the url so that the remote server would be able to read them. What kind of a url are you trying to load? Do you also control the remote server?

0 0
replied on October 27, 2020

Hi Brian, all my recent questions are related.

We have developed something for Laserfiche Windows Client using CAT library which allow user select folders, documents and by click a custom button, display a dialog (modal) that bring up some choices user can make, some complicated GUI involve read from Database to get some data in list. It then doing something (use SDK) for those selected entries or invoke workflow to finish something in backend. It works perfectly in all the scenario.

Now we want to migrate the whole set of functions to Web Client. We first look at "Custom Actions”. We were happy with "waWindow.getAvailableDlg()" from the early V9 samples. But then found it got removed from version 10. I searched the whole "Answers" but no replacement of such Dialog from my reading.

Then we look at “Custom Tab” solution which use "iframe" to display user web page.  It looks easy at first look but immediately I found the issue as described in the title. The web page/URL we put in doesn't require pass in any id/token because we dealt with multiple selection. (on the custom tab config page there is no such choices for multiple selection).  Now that whenever we have multi-selection and the custom tab page just disappear. Thus the question of how to enable it.

If both choices can’t resolve our need, do you have any idea what can we do to bring up a modal dialog upon multiple selection of entries on WA windows? 

Hope to get some help from you with this question as we’re in tight schedule to find the solution or we fail (integration with Laserfiche WA). Thanks.

0 0
replied on October 27, 2020 Show version history

Hi Brian, I revisit the "Dev202_HowToIntegrateWithTheWebClient". Looks like to resolve the "hide/show" for multi-selection, the web page have to include "WebAccessExtension.js" and some code to enable/disable tab content. Am I right?

In other situation if custom tab just need include a LF Form instance, how can it support multi-selection as in current tab configuration dialog, only allow single Id (token) to pass-through. Plus if do multi-select, the same thing happen to the Form will disappear.

 

Hope you still can give me help for the "modal dialog" fired from custom action.

0 0
replied on October 30, 2020

The web client has several integration points, but it's hard to make any kind of suggestion about the right one for you with as little information about what you are trying to do as I have.

But to answer your questions, custom tabs are not shown for multi-select, due to the challenge I mentioned about how to pass that information about the multiple entries to the other page.

Custom actions (which are a totally different thing) can handle multi-select. That is the integration point that involves WebAccessExtensions.js. They don't provide a hook into the UI, but you could open a new tab or something. This is where you could add your own button to the toolbar.

0 0
replied on October 30, 2020 Show version history

Our goal is like this:

In Browser/folder view, people can multi-select items, and click a button, pops up a MODAL dialog (to avoid user then switching folder, unselect item after dialog popup), make some selection/choices on the dialog GUI, then call backend function to process meta/invoke workflow to those selected entries.

In Doc View, people can multi-select pages, and click a button, pops up a MODAL dialog, make some choices on the dialog GUI, then call backend function process meta/invoke workflow to current document.

 

It's most similar to current build in "Email" action which after selection, click the "Email" button, bring up a MODAL dialog then process once finish other settings and click "Send" (or cancel).

 

The biggest challenge when use "Custom Action" as the way of config it. The "Command" field suppose to put in JS code only. It can bring up a dialog using "window.open" but it's non-modal. To make a modal dialog with JQuery/Bootstrap it requires a modal object in the current window (DOM) to display which I didn't find a good way to do use JS.

 

------------------------------------

For "Custom Tab", I did read if you build the page with "WebAccessExtensions.js" then it can get multi-selection from WA window. The page (URL) itself not always need an entry ID or some parameters to work.   So why not put in a flag allow display under multi-selection scenario and let the custom Tab/page to decide? The same if we click "Fields" tab it always display something instead of hide it with "Multiple entries selected" . 

 

Again thanks for the explanation.

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.