Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 3:26 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Search dialog box
PostPosted: April 19th, 2007, 4:19 pm 
Offline

Joined: November 5th, 2004, 2:01 pm
Posts: 17
Location: Preston
I have a publication that requires a publication search, I can get it to work using the default windows dialog box but thought I'd be clever and use the interface supplied in the components gallery as it looks a lot nicer. I know it must get the keywords for the search from a different location to the standard windows search dialog - but where do they need to be. I'm new to scripting and have been going round in circles for the past couple of days. Any help would be greatly appreciated.

Thanks

David


For this message Davinor has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: April 19th, 2007, 7:55 pm 
Offline

Joined: November 3rd, 2004, 8:12 pm
Posts: 129
Location: New Brunswick, Canada
Opus: 8.6
OS: Win 8 (ASUS) - Win 7: (ASUS)
System: Asus - Windows 7 - 8 - Intel Core 3 - 4RAM - 16RAM
Davinor,

I not sure what you are asking. You can create keywords for a specific page in Opus using the Page | Properties | General tab.

To access right-mouse click on the page.

_________________
Leo Taylor
Win XP Home / Opus Pro 7.01 & 6.4 / P4-2.8 / 1.5 GB RAM / ATI All-in-Wonder 9600 /160GB-HD


For this message Leo Taylor has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: April 20th, 2007, 8:11 am 
Offline

Joined: November 5th, 2004, 2:01 pm
Posts: 17
Location: Preston
Hi Leo
I know that and have no problem doing that with the standard interface, however when using the custom interface supplied in the components gallery it doesn't use the keywords if you enter them in the page properties dialog. I just can't figure out how to make it work :(

David


For this message Davinor has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: April 20th, 2007, 9:19 am 
Quote:
it doesn't use the keywords if you enter them in the page properties dialog.


Have you tried selecting the words in the editor. right-click and add them through the context menu?

Same glass of beer, just a different approach.


Top
   
 
 Post subject:
PostPosted: April 20th, 2007, 4:58 pm 
Offline

Joined: November 5th, 2004, 2:01 pm
Posts: 17
Location: Preston
Hi Ray
Nope that didn't work, it's looking more and more like I am going to be using the standard windows search box. If I figure it out I'll post the solution.
Thank God it's Friday

David


For this message Davinor has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: April 20th, 2007, 5:53 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Hi Davinor,

If you take a hex editor to an IMP, you find the keywords embedded without anyway of getting to them outside of Opus.

However, there are a set of scripting commands that allow you to read the search information. EG

Search = OpenSearch()
Page = Search.GetFirstPage(mySearchString)
Debug.trace(Page)

The above opens a search (not a box, but an object), then searches for the first page that matches the mySearchString term and stores in in Page. This is displayed in a debug window for good measure. You should be able to use the commands to build a full functioning custom search box.

Mackavi

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 43 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group