/* ajax call back process name "calculate" and here "calculate" should be same */
apex.server.process( "calculate", {
x01: "test",
}, {
success: function( data ) {
if (data.result=='success'){
var total_hour=data.total_salary;
var txt="<div style='color:red;border-style: solid'><center>hello--"+total_hour+"</center></div>";
$('#abc_toolbar').after(txt);
}
},
error: function( jqXHR, textStatus, errorThrown ) {
console.log(jqXHR+'--'+textStatus);
}
} );
Swarup
Can it be possible to design this
afzal
step-1 give static id for your report, like = abc
step2- create page load dynamic action
action -- execute javascript code
$('#abc_toolbar').after("<div style='color:red'><center>hello</center></div>");
Swarup
thnx for you support how to get data from db in place of hello
eg:Total Hours: (it is calculating dynamically )
afzal
step 1-- create a ajax callback process
name -- getTotalHours
pls/code
step -2 create a page load dynamic action
action- javascript
Zulqarnain Haider
Hi Afzal
I want to show Total Sal on top of the IR. I follow this step but no result any solution???
afzal
step-1 give static id for your report, like = abc
step-2 create ajax callback process name-- calculate
step -3 create dynamic action name-- add_header
event- page load
action-- execute javascript code
afzal
output like
Zulqarnain Haider
Thankx sir it works..