Button with action "redirect to page in this application" and dynamic actions - oracle-apex

I migrated an Apex application from "BLEU-LIGNT" theme to "universal theme", and compatibility mode from 4.1 to 19.2/20.1/20.2.
I fixed the JavaScript errors and other errors but I have an error that I can't seem to fix: I have buttons in my application that have dynamic actions (to validate data) and inside there are apex.da.cancelEvent.call(this); (so the execution must stop) but in my application, the execution continues and the button redirects to the designated page.
I don't know how to correct the situation.
I changed the button action to 'defined by dynamic action' and added a 'true dynamic action' with the PLSQL code APEX_UTIL.REDIRECT_URL BUT IT DOESN'T WORK

Related

Apex Oracle 4.2 - How to edit the page template HTML

I can't find the proper way to edit the HTML of the page template I'm using. What I want to do is to edit the "Welcome User" section on top right of the page, and add a dropdown menu to add some functionalities for the user, like a "Change Password" section.
If I go to Application Builder -> Application -> Shared Components -> Templates I can see the HTML of the body section, but I'm not able to edit it. When I save some edit I'm always getting this error that says that the page does not work.
Thanks.
This error is caused by the new version of Chrome browser but all changes you did in the template was saved in database.

Sitecore 7 - Use Web Forms for Marketers Form in popup modal

I'm working on setting up a gateway form on a Sitecore 7.2 site using the Web Forms for Marketers module that installed and the fancybox plugin that the site has (the site is using fancybox version 1.3.4, and I cannot update this version or it may break other features on the site that are using this plugin).
This is how the form is supposed to work: The user clicks a link on a page and this opens a popup window with a form they must fill out before they can access a download.
So far, I have gotten things working so that, when a link is clicked on a page, the fancybox modal opens and displays the WFFM form.
Here is the jQuery that does this:
jQuery.noConflict();
(function($) {
$(document).ready(function() {
// Open the gateway form into a fancybox modal
//check to see if there is a gateway form link on the page
if ($(".protected-item").length > 0) {
//if so, then we want to target the click event
$('.protected-item').click(function(event) {
event.preventDefault();
//Get the value of the href of the link since this url will contain the page with the gateway form
var url = $('.protected-item').attr('href');
//open the page with the gateway form in the fancybox modal
$.fancybox({
'autoDimensions': true,
'height': 400,
'width': 400,
'scrolling': 'no',
'href': url,
'autoScale': true,
});
});
}
});
})(jQuery);
What I have done is created a generic page in Sitecore (I called in Gateway Form Test Page) and inserted the test gateway form onto it. Then, on the page I want to feature the gateway form on, I have linked some text ("click here") to that Gateway Form Test Page.
The problem is that, upon hitting the submit button for the WFFM form, the page sends me to the url where the form is located (i.e. domainname/OtherPages/GatewayFormTestPage.aspx) instead of just reloading the fancybox window and displaying the success message or an error message if not all fields are filled in.
I tried setting the type to 'iframe' for the fancybox modal, but all that did was render an empty popup (no content displayed in the fancybox-content block, either--I inspected the element in Chrome's dev tools).
Is there a way that I can wrap the WFFM form in an iframe so I can avoid going to another page when clicking "submit?" I want the user to stay within the popup modal at all times.
Thanks, and I know this is probably a convoluted process, and I wish I could choose a better solution but this is what I must work with.
I think that using iframe is not right approach for your task. It is better to use AJAX requests instead of iframe.
You should check "Is Ajax Mvc Form" on form item to reload only form without page postback. It will allow you get form update without full reloading page.
If you are using WebForms(not MVC) then you can wrap WFFM form into update panel.(not very good for performance and transparency)
And tip about usage WFFM: you should use it only in cases when fields/actions will be managed by marketers. You don't need to use it for all forms on site. Make sure that it is not your case.

Init.js failed to load in sharepoint 2013

I get the Init.js failed to load error when I click on the Share Point link.
It looks like there is some issue in loading the page.enter image description here
If you have any scripts running globally via the master page or specifically on that page - disable them first.
If you have any solution (your custom code / feature) running on your SharePoint, go to site settings >> site features (or site collection features in site collection settings) and disable it.
Then, open the page in browser debugger (F12 in browser) and in "exception behavior" choose "break on all exceptions".
This will show you exactly where the error occurs.

Sitecore menu items not working - javascript errors

So I'm just starting to work in sitecore and for some reason none of menu options are working in Page Editor mode for the site that I'm working on. We pretty much have the sitecore website and add some extra page content (MVC app files) to it. I'm getting a variety of javascript errors.
In content Editor, if I click the Sitecore logo and click on Properties I get
TypeError: contentIframe.dialog is not a function
In page editor if I click on the blue components button I get:
TypeError: i.widget is not a function
I'm guessing maybe it's a conflict between jquery that we're using for this website and whatever Sitecore is using. I think it's 7 - but I can't see it via the menu option :)
That guess could be wrong - it could in fact be a browser issue, but I've ensured Firefox is not blocking popups. It doesn't work in Firefox, IE or Chrome though.
The weird thing is that no one else on the project is having this issue it's only on my computer.
Edit - I've also just tried re-installing (7.2) without any local code changes I still can't click on a page and go to Presentation, Details (Layout) - I get a TypeError: contentIframe.dialog is not a function
Edit 2 - I've noticed that I can use sitecore in the QA environment and the dialogs work fine there. So it's something specific to my local build of the site we have (sitting on top of sitecore). But the dialogs just throw jquery errors when I do stuff locally. I was hoping it would be a browser setting but doesn't look like it.
Edit 3 - What I've tried this morning.
Same thing happens in all browsers (FF, IE, Chrome) and I’ve cleared
my browser cache I can access the QA site and the dialog appears as
expected
Copied across the QA site files, pointed my local Digital
site in IIS to the new folder – dialogs don’t work
Team member tried accessing the site from his machine (pointing to my IP address) and
dialogs work for him
I tried seeing if another local sitecore site dialogs were working – but the menu items for that are opening as new windows (so I’m guessing it’s a sitecore 7.2 feature that they appear as jquery dialogs??)
So after googling for rejected-by-urlscan it turns out there's a program called UrlScan from microsoft that was blocking my dialogs. Uninstalled that and I now have dialogs appearing for sitecore. Very exciting :)
I guess it is a problem with some browsers plugin. Sitecore is sensitive to scripts that are used(different versions of jquery or prototype.js). Plugins can inject scripts to HTML source of pages and it can cause errors.
Try to switch off all plugins at least at one browser and check the results.

Sitecore RTE inside custom form

I am writing an page inside Sitecore where users can create Sitecore items by entering some very basic information. One of the requirements is to the Sitecore RTE inside this form. The RTE should have all the command buttons available and working like linking to 'Media Library', 'Flash', 'Items', etc that come as defaults.
The control is working fine but I can't get any of the Sitecore commands to work. I get a -
Web.config registration missing! The Telerik dialogs require a
HttpHandler registration in the web.config file. Please, use the
control's Smart Tag to add the handler automatically, or see the help
for more information: Controls > RadEditor > Dialogs > Introduction.
I have checked all the Telerik settings and the handler is registered. I am not sure what else I can do to resolve this.
This is very crucial for the client. Also, if there are any alternatives you can suggest would be awesome.
Thanks
You can try the suggestions provided in the following help article: http://www.telerik.com/support/kb/aspnet-ajax/editor/error-web-config-registration-missing-the-telerik-dialogs-require-a-httphandler-registration-in-the-web-config-file.aspx