Navigation:


FORUMS > SentryFile Version 5 Topics > SF5 - API Integration / Programming Assistance < refresh >
Topic Title: Navigate to search_browse.aspx
Created On Mon October 01, 2012 1:16 PM
Topic View:

View thread in raw text format


slundeen

Posts: 46
Joined: Feb 2010

Mon October 01, 2012 1:16 PM
User is offline View users profile

I want to programatically navigate the user to the search_browse results. I have tried variations of the URL below with no success. What am I missing? Thanks.

http://www.server.com/sentryfile/search_browse.aspx?repository_id=2&sortby_field_id=4&sort_order=ASC
 
Reply
   
Quote
   
Top
   
Bottom
     



SupportRep

Posts: 6587
Joined: Feb 2004

Mon October 01, 2012 1:22 PM
User is offline

I *think* that is doable. But, here's what you need to do:

1. Get a sessionid for the user. You can call the Session_SignIn method through the Docucore web services to get the session string.

2. Then, launch a browser with this set of parameters:

http://www.server.com/sentryfile/application.aspx?redir=search_browse.aspx&sessionid=SESSIONIDGOESHERE&repository_id=2&sortby_field_id=4&sort_order=ASC

Replace the session id above (SESSIONIDGOESHERE) with an actual session ID that you got in step 1. The "redir" parameter tells SentryFile to redirect your user to a different page. The rest of the url parameters will be forwarded to the redirection page.

Let us know if this does the trick!

Cheers,

-------------------------
-SentryFile Support
 
Reply
   
Quote
   
Top
   
Bottom
     



SupportRep

Posts: 6587
Joined: Feb 2004

Mon October 01, 2012 1:27 PM
User is offline

Oops... I think I made a typo.

Instead of "redir" the parameter should be "page" like this:

http://www.server.com/sentryfile/application.aspx?page=search_browse.aspx&sessionid=SESSIONIDGOESHERE&repository_id=2&sortby_field_id=4&sort_order=ASC

Sorry about that...

-------------------------
-SentryFile Support
 
Reply
   
Quote
   
Top
   
Bottom
     



slundeen

Posts: 46
Joined: Feb 2010

Mon October 01, 2012 1:40 PM
User is offline View users profile

It's still displaying the screen instead of the results. Am I missing a results mode parameter?

http://server.com/sentryfile/application.aspx?page=search_browse.aspx&sessionid=FEUMCIEFNQVRGOCAUJPXKDTEKQYFXNLFJBGVYTKAPHFHWCGDOM&repository_id=2&sortby_field_id=4&sort_order=ASC
 
Reply
   
Quote
   
Top
   
Bottom
     



SupportRep

Posts: 6587
Joined: Feb 2004

Mon October 01, 2012 1:43 PM
User is offline

It looks correct. One thought:

Typically SentryFile is installed as a virtual directory called "SentryFile" under IIS. The URL to access is is http://www.server.com/sentryfile/. However, the application.aspx is under another subfolder. So the url to access it is usually http://www.server.com/sentryfile/sentryfile/application.aspx.

Is it possible that you need to change your url to:

http://www.server.com/sentryfile/sentryfile/application.aspx?page=search_browse.aspx&sessionid=SESSIONIDGOESHERE&repository_id=2&sortby_field_id=4&sort_order=ASC

Thoughts?

-------------------------
-SentryFile Support
 
Reply
   
Quote
   
Top
   
Bottom
     



slundeen

Posts: 46
Joined: Feb 2010

Mon October 01, 2012 2:01 PM
User is offline View users profile

I tried adding the /sentryfile path but got a 404 error. My Physical Path points to the root of Sentryfile and it is locating the apsx pages.

I also tried adding &recordsmode=false to the URL, still shows browse screen instead of the results.

 
Reply
   
Quote
   
Top
   
Bottom
     



SupportRep

Posts: 6587
Joined: Feb 2004

Mon October 01, 2012 2:36 PM
User is offline

Hmmm...

We're just reviewing the source code. It appears that the redirection stuff that I provided only works for certain pages within the application.

The browse search doesn't accept url parameters to initiate a search.

The redirection syntax is only used to redirect a user to Quick Search results pages using the SentryFile Satellite hotkey function.

I don't think it will work for a browse search. Could you use Quick Search instead?

-------------------------
-SentryFile Support
 
Reply
   
Quote
   
Top
   
Bottom
     



slundeen

Posts: 46
Joined: Feb 2010

Mon October 01, 2012 3:24 PM
User is offline View users profile

I'm trying to display all documents in the Cabinet, so I don't think Quick Search will work. I could use Index Search and pass created_dt > 1/1/1900, but I don't think I can control the sort order with this method. I'd like to display the documents with date created in descending (most recent) order.
 
Reply
   
Quote
   
Top
   
Bottom
     



SupportRep

Posts: 6587
Joined: Feb 2004

Mon October 01, 2012 7:08 PM
User is offline

Hmmm... I don't think that is possible. The Index Search doesn't work through the Satellite HotKey (Only Quick Search).

Alternatively, you can perform the search through the web services by calling "search_browse", then display the results within your own application.

Would something like that work?

-------------------------
-SentryFile Support
 
Reply
   
Quote
   
Top
   
Bottom
     



slundeen

Posts: 46
Joined: Feb 2010

Mon October 01, 2012 7:18 PM
User is offline View users profile

Ok. Thanks for your research and response.
 
Reply
   
Quote
   
Top
   
Bottom
     

View thread in raw text format
FORUMS > SentryFile Version 5 Topics > SF5 - API Integration / Programming Assistance < refresh >

Navigation:

FuseTalk 4.0 © 1999-2003 FuseTalk Inc.