Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I have a custom Character Sheet I built in Google Sheets. Among the tabs I also have some custom tools I've built to create items.
I would like to be able to export the items created to a new Google Sheet after creating the item in the main sheet.
Basically, I would like to create a button that when clicked, it copies the values (not the formula) from a certain range into a new Google Sheet.
The button, when clicked, would have the following tasks:
Create a new Google Sheet with the name of {Cell A1}
Copies/Exports Cell Range Values (not formula) {A1:G25} to the new Google Sheet it created in #1 above.
For clickable scripts you've got two options; use a Drawing to draw a button, and you can set a script to run on click. Otherwise, using the UI class, you can add a menu that can run a script.
As far as new sheet creation, you'll be using create(name) or create(name,rows,colums).
In order to pull values, you'll simply use getValues in the RANGE class. If you do end up needing it to pull a formula, you can use getFormulas.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I would like to know how do i setup auto refresh facility on smart window which should get auto refresh whenever new records gets updated in db.
I could setup refresh button on browser and inside that call the program for retrieve. But the concern here is each and every minute new records gets updated to db so that i need to click the button if i want to see on the browser as its having only initial fetched record while opening.
So i am questioning here is that is open edge have the facility of real time update? i.e will window get automatic refresh once new records uploaded to the specific database table.
I am new and don't know how can I write a query for this. Please throw a lamp here to bright. It would be better.
Sorry if i am wrong.
There is no automatic, built-in auto refresh capability for OpenEdge.
Your idea of coding a refresh button is a good start. If you start with that, and get a manual refresh working to your satisfaction you can then focus on automating the button press.
There are a number of ways that you might choose to do that. The specifics are dependent on your platform and the application framework that you are using. You mention "smart window" so I am guessing you must be on Windows and using the really old and crusty stuff.
For that environment you probably just want to add a "pstimer" ActiveX. That's not really the modern way of going about things but it might be the best fit for the world that you actually live in.
There are many Progress kbase articles on how to do that. This might be a good start: https://knowledgebase.progress.com/articles/Article/19064
There are probably perfectly good .NET equivalents too. The key is to first code your "refresh button" so that the critical logic just needs to be triggered from time to time.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I am supporting an old classic asp application which is built on VB6.The problem is when I click the submit for approval button in the below
The frame is getting repeated as below...
But when I click on any option of leftmost menulist(For ex: Leave and Attendance Management in the left most menu list) or when I refresh the whole page, The page is displayed finely as below.
As the code is in classic ASP I was unable to debug the code.I am attaching the .asp code of Leave application form page (i.e., the code of first screen shot ) below.
Due to lack of space I am giving you a shared link : Click here...
Code is bit big.Kindly help me.Thanks in advance
Based on your screenshots and the code it looks like the leave application form is being loaded within an iframe on the page of your first screenshot, so when you submit you are loading the posted page into the same iframe. The code (in your shared link) at line 50 seems to target one frame over another depending on a querystring. I would debug the parent page to ensure you have the correct name or target _top to ensure the posted page takes over the whole screen
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
The community reviewed whether to reopen this question 1 year ago and left it closed:
Original close reason(s) were not resolved
Improve this question
Am I right in thinking that there's only ONE icon included in google maps, and to use anything other than that you have specify a URL for an image, and a URL for a shadow, etc etc?
Basically I'm shocked that all of the icons you can see if you create a "My Maps" map aren't available in the API. It should be as simple as saying "icon: greenPin", "icon: parking", "icon: tent", surely?
Seems bizarre that they've not included such a basic thing given how powerful the rest of the API is - why make us jump through hoops giving specific URLs to images & shadows?
Am I missing something?
At the very least where can I find a list of the official google URLs for these "built in" images, as I'm struggling even with that.
:-S
Google has refreshed the look of the icons (and other things).
The new default icon is
this one here.
Other icons with this look can be found/made here.
^(By editing that URL, you can get the icons with letters inside, other colors, different sizes, &c.)
Yes you are right, google default image is only one and if you want to another image you have to use URL.
http://www.google.com/intl/en_us/mapfiles/ms/micons/blue-dot.png
http://www.google.com/mapfiles/marker" + letter + ".png"
here you can replace the letter with any alphabet.
The list is here & hosted by google. This lists them all(or most of them) out with the url to point to them.
Remember: They work with HTTPS:// and HTTP://
Using it:
marker = new google.maps.Marker({
position: latLng, // this var would be set before calling this
map: map, // this var would be set on initiating the api
title: 'The location of the Million Dollars!',
icon: 'https://maps.google.com/mapfiles/ms/icons/green-dot.png' // This is where you put the icon url
});
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Our current application is working fine but when you try to misbehave like we found out that When login with same user in multiple tab with different organization(there is a organization dropdown in the master page which sets the cookie whenever it is changed.)
in tab one it is org 1 and tab 2 it is org2 , cookie has the later org 2 in it but when we go back in tab1(which had org1) and save the record org 2 will be saved with the record
So can some one share some sort of a checklist with us which address these types of problem.
Unfortunately there is not much you could do about this. Browsers share cookies between tabs. And forms authentication uses cookies to track users. That's the same behavior you will get with other sites as well such as gmail for example.
you can add hidden field with data for recognize each view.
you store all data in server side such as session,cache,Database and serve "unique" view
I hope you'll find an elegant solution to this problem, but AFAK one instance of browser simply shares one identity.
To deal with this situation we use HIDDEN on master page, that is a part of main form. Its value is randomly generated when first page loads. Later, the value is kept between requests. Session values are stored with HashTable key of hidden value.
2 more hacks needed to get it work.
Response.Redirect is done with simple form that uses POST method to pass HIDDEN value to the new page.
All hrefs clicked with left button also posting HIDDEN value (if user uses 'Open in new TAB/Window' direct redirect without post simply creates new HIDDEN value - new subsession.)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 5 years ago.
Improve this question
I found javascript solution for removing gridlines on Google docs spreadsheets (using "download as HTML" and then past javascript in Web Address Bar): works great !!
javascript:var v="none",e="defaultView",o="border",m="Color",w=function(a,b){if(document[e]){if(document[e].getComputedStyle(a,null)[o+b+m]=="rgb(204, 204, 204)")a.style[o+b]=v}else if(a.currentStyle[o+b+m]=="#ccc")a.style[o+b]="none"},q=function(a){a=window.document.getElementsByTagName(a);for(var b=0;b<a.length;b++){var c=a[b];w(c,"Left");w(c,"Right");w(c,"Bottom");w(c,"Top")}};q("td");q("table");
Was wondering if it is possible to make a comparable javascript to remove the header and footer for docs "publised" to the web?!
Published spreadsheets have a
-> header: filename + sheetname;
-> footer: "Edit this page (if you have permission) – Published by Google Docs – Report Abuse – Updated automatically every 5 minutes"
-> example: TEST (I already added "&gridlines=false" to the url to remove gridlines).
Why is previous solution not sufficient ?!
I want some people to view and print the result of a spreadsheet (via publish to web) without giving them access (view) to the spreadsheet itself. Therefore they can't use "download as HTML" + your javascript, but want to provide a url to view a published site and be able to make a neat print without the Google header and footer.
Would be great if anyone could help out!
Regards,
Thankfully the layout on this page is super simple.
<div id="header">...</div>
<div id="content">...</div>
<div id="footer">...</div>
You could write a function like this to hide the header and footer.
var f = function(id)
{
document.getElementById(id).style.display = "none";
};
f("header");
f("footer");
Or the copy paste version:
javascript:var f=function(id){document.getElementById(id).style.display="none";};f("header");f("footer");
I built an app that does just this + improves the default layout. Check it out: http://gdoc.pub
You can use the range parameter to get rid of the headers and footers, as described here.