I am in the process of designing a system to record meeitng minutes.
In the top portion of the frame, the user can search the database for minutes by Date, Topic, or Keyword. Here, specified users may also add new minutes.
In the bottom frameset, I have an agent - QueryData - that displays the results of the search.
I have two questions.
When the user selects the Add Minutes button from the top frame, a window opens allowing the user to enter the date, topic, region and description. When the user presses the save button (@Command([FileSave])), I would like the agent in the bottom of the frameset to refresh.
I have the following code in the agent:
Print |<html>|
Print |<script language=javascript>|
Print |function openWin(url)|
Print|{|
Print |window.open(url,"myWin","width=800,height=450,top=0,left=0,location=no,toolbar=no,title=no,resizable=yes")|
Print |}|
Print |function refreshData()|
Print |{|
Print |setTimeout('window.location.reload()',1000);|
Print |}|
Print "</script>"
This code doesn’t work - perhaps because it is in the agent??
I know it is possible to refresh the underlying agent, I have seen it in action and used it once before, but I have been unable to get anything working in this application.
My next question is concerns deleting documents. The window that allows the user to add a new item also contains a delete button (if ( confirm(‘Delete this document?’) ) window.location.search = ‘?DeleteDocument’;). When clicked, the window moves to a generic page setup by our company indicating that the username or password is not correct.
When I return and refresh the agent manually, the document is deleted. How can I get a the document to delete and the agent to refresh automatically, similar to the add new minutes item?
Any ideas or suggestion would be greatly appreciated. Thanks in advance.