AppSheet + Spreadsheet: AppSheet won't display formulaically generated image - image

I am stuck on this problem and request your guidance. Appreciate it in advance!
I am trying to display QR code images on the Appsheet. The images need to come from spreadsheet where they are stored in a column named QR code. The QR codes are unique for each row and are formulaically generated by an array formula in the first row of this column like this:
=ArrayFormula(if(isblank($A$2:$A), "", image("https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl="&$A$2:$A)))
In the appsheet I have tried making this column of type image, drawing, thumbnail etc. But none of it is working.
I read somewhere that such dynamically generated images don't work with appsheet. It would be really a bummer for me.
I also explored an option to add one more column in the spreadsheet where the image.png could be statically stored somehow. But I was not successful in that.
It would be really great if you could please help me solve this problem.
Thank you so much folks!

Just use the formula in your spreadsheet
=ArrayFormula(image("https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl="&$A$2:$A))
https://www.youtube.com/watch?v=hrfPldfrOcc

Related

Replace specific strings with specific images in Google Sheets

Essentially I am trying to build a google sheet that will convert specific strings into specific images for a Magic the Gathering google sheet.
For example, if I have the text {3}{G} I'd like to replace the {3} with and the {G} with .
I tried to use the substitute function, referencing cells where I had the images stored, but it didn't work. Any help anyone could provide would be much appreciated!
with some compromises, you can do:
=ARRAYFORMULA(IFERROR(VLOOKUP(""&REGEXEXTRACT(""&A2:A,
REPT("(.)", LEN(A2:A))), {F1:F&"", G1:G}, 2, 0)))

How to overlap Label and Data fields over an image in BIRT

Using BIRT. Added Image in a Grid. Unable to put label and data fields over image in certain region. Please advise if you achieved it.
Thanks,
Yasar
I think all you can do is use the image as background-url. AFAIK this only works for images that actually come from an URL, but not for images that come from e.g. a database BLOB (but you might download the BLOB to a temporary file and use the file name as URL).

xpath to skip missing table images

I'm scraping image urls and text from tables and I want to know how to collect nothing (or at least no url) for a cell whose image is missing. I don't want to remove any rows since I want to reproduce the table as is. Here's an example of a table with missing images and the html to the right.
I'm using the following in google sheets:
=importxml(D1,"//div[#class='colsx immagine']/img/#src")
=importxml(D1,"//div[#class='coldx domanda']")
which works fine to get the image urls and text for each row if the images are all there (as on this page). But if any images are missing then I collect an url for the (wrong) image below in the table. I want to skip url collection if there's no img url.
I just starting to learn xpath, and I suspect I need to use the | or not to fix this, but need some help because nothing I've tried works.
Thanks
You can solve this by adding another predicate. So assuming that you want to list the URLs of the //div[#class='lista'] with an image, you can use
=importxml(D1,"//div[#class='lista' and div/img]/div[#class='colsx immagine']")
=importxml(D1,"//div[#class='lista' and div/img]/div[#class='coldx domanda']")
=importxml(D1,"//div[#class='lista' and div/img]/div[#class='coldx risposta active gius']")
and so on.
This should skip all class 'lista' div's without an img tag and select its URLs.

Rotativa Issue printing RAW HTML

(More specific Giorgio Bozio)
I have been using Rotativa for the last year to print simple html to pdf and its been working fantastic. Very happy with product, but now recently i have been trying to do something a little more advance and i keep having the same issue.
Normally i would send Rotativa a simple invoice view (Predefined HTML) with model data populated via Razor and this worked well, but now i am trying to implement template's for my invoices. Customers can create their own template layouts with a custom 3rd party form designer and then upload its template file into my site. I take this file and parse it and generate the elements of the invoice with stringbuilder and div tags. I then send the generated HTML to the view that uses a #HTML.Raw() to populate the invoice html. Rotativa then takes this View and generates a pdf, but when it generates the pdf its quality of the text is horrible and blurry. Thus it generates the template correctly, but does some sort of shrinking or something to make the text not look crisp.
I have tried everything, from playing with custom switches to playing with the dimensions of the html.
When i copy the generated html to a view and just generate the pdf plainly then it prints fine, but as soon as i push the html to the view with HTML.Raw i seem to land up with fussy text.
Giorgio Bozio, does Rotativa have a issue with Html.Raw? or can you perhaps open a dialog with me to try and resolve this issue? Really hope you can help me...or someone can help me. Desperate and dont really want to change Rotativa for something else.
Please help.
Resolved Text printing issue by removing background-color definitions on Div containers.
Resolved extra blank page printing issue by reducing PageHeight on Rotativa Customswitches
:-)

Backend Product Info Grid Modificaiton

I want to create a new text field right under the SKU text field in the Product Information > General tab and populate it with the product's attribute set value. What I want can be seen in the picture below.
Unfortunately, for the past 4 hours I have been trying to locate the file that includes the code which produces the specific layout but so far I had no luck. I 'd be really grateful if anyone could give me a heads up.
Thank you for your time!
Enable backend path hints to find out which file it is. You can do it this way.
http://www.classyllama.com/development/magento-development/enable-templateblock-hints-in-admin-panel
Please note this is basically hacking. A better way to do it would be to follow something like this
http://www.marketingadept.com/blog/2014/01/magento-developers-add-a-custom-field-to-the-category-admin-page/
It's up to you, speed or do it the right way. Goodluck

Resources