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
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