Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Question about Microsoft Research Pane  RSS feed

 
Shane Burgel
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to create a jump box using the microsoft research pane. At this point what I want is to just have an Edit form that takes an int, which would then become the new startAt value for the requery. The problem is that I don't know how to submit the form with state. How can I submit the form, and have it know what the current query was, and assign it a new startAt value. Is there a way to do this at all? Is there a better way of going about this. How do you submit an Edit form?

Here is my code, thanks in advance

NestedFormGroup ng = new NestedFormGroup();
Edit edit = new Edit();
NCName name = new NCName();
name.setValue("JumpToBox");
edit.setId(name.toString());
edit.setAction(HyperlinkFormTypeActionType.REQUERY);
edit.setLimit(5);
EditText text = new EditText();
text.setContent("Jump To:");
edit.setEditText(text);
edit.setWidth(5);
ng.setEdit(edit);
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First, I had no idea what the "Microsoft research pane" was, so I Googled it: is it this?

Second, I don't recognize the names of the classes you're using, so I Googled some of them, and found pages related to the "Microsoft research pane" as well; those pages didn't seem to be Java-related though.

So is this a Java question? Does MS provide some kind of Java API for Microsoft Office that no one else knows about? Or is this a "J#" kind of thing? I'm afraid I'm not going to be any help here, but your question is coming from some distant universe, as far as I'm concerned, and it's piqued my curiosity. Can you give us some background?
 
Shane Burgel
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure, I'll try to provide as much background as I can.

First off the research pane is a tool inside of office 2003/IE that allows you to search third party databases, and then cut and paste info from that search into your document(s). To see the pane, and the default db's you can search, just open IE, click on View-Explorer Bar-Researh.

What I'm trying to do, is create a java web service that will allow a user to use the research pane to search our databases. The user would be able to register our service inside the pane and then search the databases that we have available.

Microsoft provides a WSDL that generates the Microsoft.Search packages that can be used to set up your response to the service and know what to expect in return from a query. My main problems stem from the formulation of the response packet.

The response packet can consist of three main types: Form, Content, and Document. Each has an XSD that define what the service expects to see. The problems that I'm having are in trying to understand how to properly build those pieces to get the functionality that I want to work properly on the page. I can create buttons, hyperlinks, edit boxes, etc, etc, but I can't seem to find a way to get them to actually call my service again, or a way to pass the current state of the user's search once I do. I want to create a jump bar that allows the user to jump ahead several pages of results at once. There is a Range type inside of the QueryPacket objects that will allow you to set a startAt value that will affectively jump to the results you want, but as I said above, I can't find a way to link one of the on screen objects to any kind of state, or submit them to my service.

I hope that makes some sense. It would help if Microsoft fixed the links on their help page (all the ones in regards to formulating a response object are broken).

Shane
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well then let's move this to a more appropriate forum.
 
Shane Burgel
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, but I tried posting in this forum already and no one replied. I posted in the advanced java forum hoping that someone else had done this before.
 
Shane Burgel
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well if anyone is curious I figured it out. The ID that gets set for each form object gets added to the xml that is sent back to the webservice as a string, and it just looks like a normal tag. You just have to look for <JumpToBox>99</JumpToBox> in the qeuryText that comes back and substring out the value, and then you know your state and can make decisions accordingly.

Whew, glad that's over......
[ February 23, 2006: Message edited by: Shane Burgel ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!