• Post Reply Bookmark Topic Watch Topic
  • New Topic

Microsoft Research Pane XSD question

 
Shane Burgel
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm setting up a web service to interact with the microsoft research pane (available in IE and office 2003), and I'm having some trouble setting up the response to do what I want. Basically I want to set up a jump bar that consists of a "next" and a "previous" button that does a requery with a startAt value of +1 or -1 respectively. The problem is that I can't figure out how to set that up in the response. I can create the buttons based on the response objects that are available in the xsd's but I can't find any way to send it the current "state" or the search that the requery is based on, or a way to tell it the new startAt value. My code is for the buttons is below. I removed the server location for security reasons, any help would be appreciated.

private void addJumpBar(String query, Form form){
NestedFormGroup ng = new NestedFormGroup();
Button prevButton = new Button();
ButtonText bt = new ButtonText();
bt.setContent("Previous");
prevButton.setButtonText(bt);
prevButton.setSubmitUrl("server location");
NCName name = new NCName();
name.setValue("Previous");
prevButton.setId(name.toString());
prevButton.setAction(HyperlinkFormTypeActionType.REQUERY);
ng.setButton(prevButton);

NestedFormGroup ng2 = new NestedFormGroup();
Button nextButton = new Button();
ButtonText bt2 = new ButtonText();
bt2.setContent("Next");
nextButton.setButtonText(bt2);
nextButton.setSubmitUrl("server location");
NCName name2 = new NCName();
name2.setValue("Next");
nextButton.setId(name2.toString());
nextButton.setAction(HyperlinkFormTypeActionType.REQUERY);
ng2.setButton(nextButton);
}
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!