Forum Discussion
EstherGrandal_D
8 years agoQrew Cadet
Hi, I did what is supposed I should be doing but I am no able to make it works.
This is the "paste" I used,
(function(){
var querystring=document.location.search;
var urlChart = URLRoot() &"db/bniy76a59?a=q&qid=11";
$(win.document).ready(function() {
console.log("hi");
setTimeout(function() {
var injectedScript = "<script>";
injectedScript += "var chart = Highcharts.Chart[0];";
injectedScript += "var options = chart.options;";
injectedScript += "chart.destroy();";
injectedScript += "options.yAxis[0].min = 0;";
injectedScript += "options.yAxis[0].max = 80;";
injectedScript += "new Highcharts.Chart(options);";
injectedScript += "</script>";
win.$(win.document.body).append(injectedScript);
}, 2000);
});
})();
If any one was able to made it work I would be thankful to get the script he used
Thanks.
This is the "paste" I used,
(function(){
var querystring=document.location.search;
var urlChart = URLRoot() &"db/bniy76a59?a=q&qid=11";
$(win.document).ready(function() {
console.log("hi");
setTimeout(function() {
var injectedScript = "<script>";
injectedScript += "var chart = Highcharts.Chart[0];";
injectedScript += "var options = chart.options;";
injectedScript += "chart.destroy();";
injectedScript += "options.yAxis[0].min = 0;";
injectedScript += "options.yAxis[0].max = 80;";
injectedScript += "new Highcharts.Chart(options);";
injectedScript += "</script>";
win.$(win.document.body).append(injectedScript);
}, 2000);
});
})();
If any one was able to made it work I would be thankful to get the script he used
Thanks.
- _anomDiebolt_8 years agoQrew EliteYou are mixing QuickBase formula language into the JavaScript with this statement:
var urlChart = URLRoot() &"db/bniy76a59?a=q&qid=11"
You may have other problems but I can't tell from your message. - EstherGrandal_D8 years agoQrew CadetThank you Dan,
The true is that I tried writing directly my QB web ( I did not want to write it here) but it does not work, but for sure there are more problems, I only wanted to know if anyone was able to make it work. Someone that wanted to share his full script here.
Thank you again Dan, I am one of your followers. - _anomDiebolt_8 years agoQrew EliteI am sure it is something simple but "it does not work" does not give me anything to debug. If you need individual help feel free to contact me off-world using the information in my profile:
https://getsatisfaction.com/people/dandiebolt/ - EstherGrandal_D8 years agoQrew CadetThank you Dan, I do not give you anything to debug because , I followed all your instructions in the "IOL Tecnic" and I just copy your script in my "module.js" changing your data with mine and I did not get it work.
Dan, I know you are a very busy person, I only wanted to know if anyone, besides you, made it work and can help me, someone that tried it before and can give a me a key.
You are a deep expert of the scrip tools, you can gave some knowledge for granted, or obvious , something that for the citizen developers, as me ,could be not so intuitive.
This is the script I copy from your link.
https://haversineconsulting.quickbase.com/db/bgcwm2m4g?a=dr&rid=523&_ga=2.60174317.192693694...