我有一个单一的模式页面创建,编辑和删除产品.
当P2_TYPE=‘UPD’时,显示更新按钮,当P2_TYPE=‘DEL’时,显示删除按钮,当P2_TYPE=‘ADD’时,显示新按钮.
我已经创建了一个在页面加载时使用Java脚本执行的动态操作.
function cambiarTitulo(){
var type;
type = apex.item( "P2_TYPE" ).getValue();
if ((type == 'UPD' ) || (type == 'DEL' )){
apex.util.getTopApex().jQuery(".ui-dialog-content").dialog("option", "title", "Details")
}else{
apex.util.getTopApex().jQuery(".ui-dialog-content").dialog("option", "title", "New")
}
}
But it is not working, it does not change the title个