Adding a hyperlink on a shape in Google Spread Sheet - hyperlink

I need to add a hyperlink on a shape in Google spread sheet. The shape is drawn using Drawing option in insert menu. When I click the shape (which is hyperlinked), it needs to go to another tab available in the same spreadsheet.
Is it possible to do make this?
Thanks

Issue and workaround:
In the current stage, unfortunately, the drawing images on Spreadsheet cannot be managed by Sheets API, and also, the hyperlink cannot be added to the drawing.
But, fortunately, I thought that there is a workaround.
About managing the drawings, when Google Apps Script is used, this can be achieved.
Unfortunately, the hyperlink cannot be added to the drawing by Google Apps Script. But, from When I click the shape (which is hyperlinked), it needs to go to another tab available in the same spreadsheet., in this case, I thought that this can be achieved using Google Apps Script.
When these are reflected in the flow, please do the following flow.
1. Prepare a sample drawing.
From The shape is drawn using drawing option in insert menu., please create a new sample drawing on the Spreadsheet.
2. Prepare sample script.
Please copy and paste the following script to the script editor of Spreadsheet and save the script.
function sample() {
const sheetName = "Sheet2"; // Please set the target sheet name you want to move.
SpreadsheetApp.getActiveSpreadsheet().getSheetByName(sheetName).activate();
}
3. Assign function.
Please select the drawing on the Spreadsheet and please click the 3 dots at the top right of the drawing. And, please select "Assign script". And, please input sample to "What script do you want to assign?", and click the "OK" button. Ref
By this, when you click the drawing as a button, the script is run, and "Sheet2" is activated.
References:
activate()
Clickable images and drawings in Google Sheets

Related

Get URL of inserted cell image from google sheet

I have a spreadsheet with 5000 images in one cell and I would like to get in another cell the image hyperlink. Like the following:
My struggle is I am unsure where the image is saved, cause I cannot extract a hyperlink from the image.
Find below my example:
https://docs.google.com/spreadsheets/d/1gmPHXn8avgiOTN-GoASw7410FzBmXhpClDh6rjq9_Ds/edit?usp=sharing
I'm writing this answer as a community wiki, since the issue was resolved from the comments section, in order to provide a proper response to the question.
Based on the images in the sample sheet you shared and to answer your question "My struggle is I am unsure where the image is saved" it seems that images were manually added Insert > Image > Insert image in cell. Unfortunately, currently there isn't a method to get the images inserted in a cell, if you use the method spreadsheets.get it doesn't return the data.
In addition to the Google Issue Tracker shared above, you can also check this one.
If you are looking to download the images in the sheet, looking for alternatives I found this thread and tested Pattern 1 from that answer and it exports images to your Google Drive.
The OP has 5,000 images so a manual process is not particularly helpful. But for anyone who wants to try the manual process...
open the spreadsheet
select a cell containing an image
right click on the cell, a popup menu will appear
select "Show edit history" (about half way down the menu)
if the history is "Added 'image'", then you can access a copy of the image
right click the word 'Image'
select "Save link as" OR "Open Link in new tab"
save the image
Show edit history
Edit History

is there any option for a mouse hover in google sheet?

Is there any options for mouse over in google sheets programmatically ? that mouse hover have to happen without setting the note manually. for little more clarification am adding a google sheet along with this query.
https://docs.google.com/spreadsheets/d/1WJAVZ0pR9r3oNSQ20lbPvq3RxhaC2feKDV5TVzbA_jk/edit?usp=sharing
No there isn't any feature for hover in google sheets but there is an alternative to it. You can read it here:
https://support.google.com/docs/thread/5680193?hl=en
The response of "Platinum Product Expert" explains.

Tool tip text in Google App Maker

Is there a simpler way to do tool tip text when ever I hover thru the following button in Google App Maker?
Go to the Other section of the Property Editor. The title field should give you what you need.
This works well. I know there is a way to inject JQuery into the AppMaker, and from there its just determining when the DOM is loaded and you can modify the element with a script.

Cognos Report Studio Text box prompt not function proporly

I use conditional block to show different text box prompt when user choose different filter in my first prompt page. Now, I set the text box with same setting(no required, multi-select:yes, multi-line:yes, other are no) and similar filter script in my queries. However, when I run the report, I can't get the same output. My first text box miss right half of text space. How can I fix it? Thanks!
Click here for the first screen shot.
Click here for the second screen shot.
A sample report spec would be helpful but based on the screen shot, one of two things is happening:
The first prompt does not actually have the multi-select option set.
OR
The filter item in the actual query that the first prompt is populating is not multi-select friendly.
An example of #2 would be if you tried to set enable multi-select values but then the filter it is populating into is set to something like:
[table].[field] = ?firstPrompt?
Instead of:
[table].[field] in (?firstPrompt?)
If this isn't the case, definitely edit in a simple sample report specification so we can see more of what you're doing.

How to insert image in Tableau worksheet

anybody know how to insert image in Tableau worksheet and doing the hyperlink?
i only can add image in dashboard, and in dashboard i also cannot use the image as hyperlink.
From the Tableau on-line help
You can add static image files to the dashboard. For example you may
want to add a logo or descriptive diagram. When you add an image
object you are prompted to select an image from your computer. You can
also type a URL for an image that is hosted online. When you add an
image to a dashboard, you can customize how the image displays by
selecting an option on the images's menu. For example, you can select
whether to Fit Image, which scales the image to the size of image
object on the dashboard. You can also select whether to Center Image,
which aligns the image to the center of the image object on the
dashboard. Finally, you can Set URL, which turns the image into an
active hyperlink on the dashboard.
One of the easiest way to add image into dashboard as
To add image as hyperlink Go to dashboard Icon > Action > URL and in that paste your link as
Tableau image management is still a bit basic, and it's only available in dashboards.
Images can be copied into a dashboard by referencing an external URL in a web object, or a local file path.
You can then use the image object's menu to set a URL to open by clicking on the image.
When clicked, the web page will open in your default browser.
You can also add visuals to dashboards by using a web object to reference a URL - which might give you a more dynamic option, depending on your requirements.
There's a gotcha in Tableau sServer with that approach though - if a report is subscribed to, under the scheduler, a web object just renders as blank in the PNG file that gets emailed. This is also true for manual exports (e.g. to PDF) from Desktop.
So if you want to print/ export your dashboard with images, the image object is the best way to go.
To add an image in a worksheet, you need to use Marks Shape.
This is the process:
1.- Copy you image file to a folder in C:\Users\<username>\My Documents\My Tableau Repository\Shapes\My Image
Note that you need to create the folder My Image
2.- Create a calculated field with the formula: image
3.- Drag that calculate field to Rows shelf
4.- In Marks card, select Shape
5.- click on Shape button in Marks card and click on More Shapes....
6.- In dialogue Edit Shape, click on Reload Shapes, then select the Shape Palette My Image and select your image as a shape
Click on OK
Regulate the size of the shape on the view using Size button on Marks card
You can take advantage of the capacity of adding images to a dashboard. It a simpler approach.
In this case, you only need to create a dashboard and click on Image object (left-side of the dashboard) and select the image file in you disk. As a result the image in embedded in the dashboard.
Credits: Ramon Martinez on tableau community
Hope this helps.

Resources