Another Way to Change the definition of the default Theme42 template
So there are two recommended ways to modify a template definition.This template is subscribed to the corresponding template in the master theme. To modify this template, edit the master template and then refresh the theme. Alternatively you can create a local, unsubscribed copy of this template. Unsubscribed templates are editable and will not get overwritten by a theme refresh.
However, there is another scenario. I want to change the definition of the Standard region template frequently but I don't want to copy out, rename and reassign previous regions to the new template.
Here is a quick solution for this case. Just execute sql below to unlock the subscription.
1 2 3 | -- give correct application id in line 3 update apex_050100.wwv_flow_page_plug_templates s set s.reference_id = null where s.flow_id = 200; |
Note: this method is for developing, debugging and testing. Please do not use this on production. Because it's risky to modify app's metadata.
After developing, debugging and testing, we might need to re-subscribe the template to theme42 or might not. If need, we can execute update statement below and commit to restore the data.1 2 3 4 5 6 7 | -- adjust proper interval for flashback in line 4 update apex_050100.wwv_flow_page_plug_templates r set (reference_id, template) = ( select reference_id, template from apex_050100.wwv_flow_page_plug_templates as of timestamp (systimestamp - interval '50' minute ) t1 where t1.flow_id = r.flow_id and r.id = t1.id) where r.flow_id = 200 |
Comments
Post a Comment