Forum Discussion
PaulVorster1
8 years agoQrew Cadet
Can you then also do an "if statement" in the URL field, to say "IF field=add, then use specific URL, of field=view, then use specific URL, otherwise use Edit URL"?
_anomDiebolt_
8 years agoQrew Elite
It can be easily accomplished with script using the IOL technique. In fact the generic module.js template used with the IOL technique decodes precisely what page you are on to decide what modifications are appropriate for each type of page.
I would ask a new question asking for the precise behavior you want as the original question is three years old.
Here is the generic IOL module.js template:
I would ask a new question asking for the precise behavior you want as the original question is three years old.
Here is the generic IOL module.js template:
(function(){
var querystring=document.location.search;
if (/dlta=mog/i.test(querystring)) {
//GRID EDIT PAGE ========================================
alert("You are on the Grid Edit Page");
} else if(/a=er/i.test(querystring)) {
//EDIT RECORD PAGE ========================================
alert("You are on the Edit Record Page");
} else if (/a=API_GenAddRecordForm/i.test(querystring)) {
//API_GenAddRecordForm PAGE ========================================
alert("You are on the GenAddRecordForm Page!");
} else if (/a=GenNewRecord/i.test(querystring)) {
//ADD RECORD PAGE ========================================
alert("You are on the Add Record Page");
} else if (/a=nwr/i.test(querystring)) {
//ADD RECORD PAGE ========================================
alert("You are on the Add Record Page");
} else if(/a=dr/i.test(querystring)) {
//DISPLAY RECORD PAGE
alert("You are on the Display Record Page");
$("img[qbu=module]").closest("td").css("background-color","#FFFFFF");
} else if(/a=q/i.test(querystring)) {
//REPORT PAGE ========================================
alert("You are on the Report Listing Page");
} else if(/a=td/i.test(querystring)) {
//TABLE DASHBOARD PAGE ========================================
alert("You are on the Table Dashboard Page");
} else if (/a=FinishEditRecord/i.test(querystring)) {
//FINISH EDIT RECORD PAGE ========================================
alert("You are on the Finish Edit Record Page");
} else if (/a=API_GenAddRecordForm/i.test(querystring)) {
//API_GenAddRecordForm ========================================
alert("You are on the API_GenAddRecordForm Page");
} else {
//OTHER PAGE ========================================
alert("You are on the Some Other Page");
}
})();