Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MDI related

Status
Not open for further replies.

rjoshi3

Programmer
May 27, 2004
7
0
0
US
I am modifying code I found in previous post and here is the weblink:


The problem occurs after I determine that window is already open and bring it to the top. I then want refresh the Window and bring up a different record by passing it a new ID. Here is my code:

window w_instance
window list[]
integer cnt,i
string temp

if uf_is_open(name) then // if it is already open then list the open sheetsse
cnt = uf_list_sheets(list)
for i = 1 to cnt
temp = temp + list.tag + '~r~n'

IF name = list.tag THEN //Found
list.BringtoTop = TRUE
// Here is where I am having a problem
//w_tab_member.trigger event ue_refresh_id(ar_id)
//parent.Event Dynamic ue_refresh_id(ar_id)
//w_tab_member.Event Dynamic ue_refresh_id(ar_id)
w_tab_member.trigger Event Dynamic ue_refresh_id(ar_id)
END IF

next
//messagebox('Warning',name +' is already open. The list of open sheets is below.~r~n~r~n'+temp,exclamation!)
else
// opensheetwithparm(w_instance,name,parentwindow,0,original!)
OpenSheetWithParm(w_instance,ar_id,name,w_pb12_frame,0,layered!)
end if

Any help would be appreciated.

Thanks,
Ravi
 
Yes, that is the problem I can not trigger an event in the sheet.
 
no time to check the call to the event syntax but this might help?

declare another variable like:
w_tab_member lwtab


(once found the sheet:)
lwtab = list
lwtab.event ue_refresh_id(ar_id)

so this is the way to do it without being dynamic.
if you want the dynamic way remember to include the w_tab_member in a PBR file or be sure to be using it somewhere (in a non dynamic way) in the application, before this dynamic call you're using.

(sorry a litte bit rusty)


regards,
Miguel L.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top