Browsercript and 8.1.1.11/Open UI
We are in the process of upgrading from 8.1.1.3 SEA to 8.1.1.11 SIA.
The following browser script used to work in the Applet_PreInvokeMethod event:
if (name == "PropertyProfile")
{
var PropertyProfileUrl = theApplication().GetProfileAttr("PropertyProfileUrl");
window.open(PropertyProfileUrl);
return ("CancelOperation");
}
It no longer works. When I click on the button that calls the script, nothing happens. However, if I hardcode the PropertyProfileURL to the value that is showing up in the debugger during the event that is set, it works fine.
For example, if I update the above code to
var PropertyProfileUrl = "https://portalqa1.oakwood.com/c/portal/layoutp_l_id=26.1&p_p_id=EXT_10&p_p_action=1&p_p_state=maximized&p_p_mode=view&p_p_col_order=w1&p_p_col_pos=0&p_p_col_count=1&_EXT_10_struts_action=/oakwood/pps/property_edit_overview&propertyId=22&redirect_path=/c/portal/layout?p_l_id=26.1&p_p_id=EXT_10&p_p_action=1&p_p_state=maximized&p_p_mode=view&p_p_col_order=w1&p_p_col_pos=0&p_p_col_count=1&_EXT_10_struts_action=/oakwood/pps/property_edit_overview&propertyId=22
The following browser script used to work in the Applet_PreInvokeMethod event:
if (name == "PropertyProfile")
{
var PropertyProfileUrl = theApplication().GetProfileAttr("PropertyProfileUrl");
window.open(PropertyProfileUrl);
return ("CancelOperation");
}
It no longer works. When I click on the button that calls the script, nothing happens. However, if I hardcode the PropertyProfileURL to the value that is showing up in the debugger during the event that is set, it works fine.
For example, if I update the above code to
var PropertyProfileUrl = "https://portalqa1.oakwood.com/c/portal/layoutp_l_id=26.1&p_p_id=EXT_10&p_p_action=1&p_p_state=maximized&p_p_mode=view&p_p_col_order=w1&p_p_col_pos=0&p_p_col_count=1&_EXT_10_struts_action=/oakwood/pps/property_edit_overview&propertyId=22&redirect_path=/c/portal/layout?p_l_id=26.1&p_p_id=EXT_10&p_p_action=1&p_p_state=maximized&p_p_mode=view&p_p_col_order=w1&p_p_col_pos=0&p_p_col_count=1&_EXT_10_struts_action=/oakwood/pps/property_edit_overview&propertyId=22
0