Cambiar el estilo actual de un tema
Crear un proceso que ejecute el siguiente código PL/SQL al hacer clic en un botón que haga un submit.
if :P7_DESKTOP_THEME_STYLE_ID is not null then
for c1 in (select theme_number
from apex_application_themes
where application_id = :app_id
and ui_type_name = 'DESKTOP'
and is_current = 'Yes')
loop
apex_theme.set_current_style (
p_theme_number => c1.theme_number,
p_id => :P7_DESKTOP_THEME_STYLE_ID
);
end loop;
end if;
Generar una lista de valores con la siguiente información
select s.name d,
s.theme_style_id r from apex_application_theme_styles s, apex_application_themes t where s.application_id = t.application_id and s.theme_number = t.theme_number and s.application_id = :app_id and t.ui_type_name = 'DESKTOP' and t.is_current = 'Yes' order by 1


Comments
Post a Comment