How to add image in OBIEE? - obiee

I am coding some basic html code just to display an image banner to our OBIEE dashboard but failed to do so. I am a newbie in terms of programming so feel free to correct me in anyway. So, here's the detail.
I am currently working in the static text layout where the old banner was coded, I remove them and replace with a basic code that only import an image see here.
*Oracle Business Intelligence 12.2.1.4.0
I have tried coding it thru HTML,CSS, & Javascript those only the few I basically know. I did my research and follow some tutorials but no glimpse of hope to it, it does work when I relay the output in a browser while coding it in Visual Studio.
What I want is just to display it successfully and not to show a image icon. Hope someone can help me out. Thank You :)

I am struggling to comprehend where Visual Studio comes into this but assuming you want to just have an image on a dashboard then there are lots of options
It looks like you are trying to insert a remote image which is going to cause all sorts of security issues that are likely to mean it will get blocked.
The simplest is to just add a "link or Image" object and use a local image. If you click on the select image button there is an option to upload image and select it for display.
If you want to use html then you just need to add a text object and add the img html
<img src="https://someurl.com/img.jpg" />
but you are going to need to change lot of security policies to allow the content to be displayed.
There are other options to host the file locally such as a shared folder (https://gianniceresa.com/2017/02/obiee-12c-custom-style-using-shared-folder/) but the upload is far simpler.
If you insist of using a remote image you will need to understand security policies (CSP, XSS etc.) which aren't OBIEE specific but standard web server

Related

Get image from URL - Power Apps

I'm building a simple app, which shows news from different websites, e.g. https://techcrunch.com/2020/07/28/transferwise-five-unicorns/
My source is a database with news URLs.
Each article comes with an associated image. I do not have a URL of the image, only URL of news itself.
My question is, how can I get the associated image to appear in my Gallery? Is there a function I could use?
Here is an effect I'm trying to achieve:
Help please,
Thanks!
Maciej
Ps. I know it is possible, as all rss readers (like Feedly) or even SharePoint news webpart easily pull image just from provided link.. but how?
Are you unable to copy the image path and manually input it into where you want it to go?

Uploading and referencing custom images in BigCommerce/Stencil

Recently started work on a BigCommerce project and on the homepage I want to have a theme area where normal site admin users can upload their own images based on holidays (Xmas, halloween etc) in the theme editor.
I know how to add in some custom elements in the theme editor using the Schema and Config files (headings, text, font colours etc), and how to reference them in the homepage. I'm also fine with referencing set images in the assets folder which aren't going to change, and manually coding references to them.
However I can't quite seem to work out how to add a custom image upload to the theme editor, or how to reference it in a page. Can't seem to find any answers in the Stencil documentation or usual Google searches etc either.
The Stencil Theme Editor currently only supports the file upload data type in the Optimized One-Page Checkout customization settings, but there are a couple of possible workarounds to allow the user to upload their custom background image and then reference it in Theme Editor settings:
One option would be to have the user upload their image to WebDAV, making sure that their image followed a naming convention that you specified. For example, the Halloween image could be required to have the file name halloween.png. You could map that value to a Theme Editor dropdown setting for Holiday Background>Halloween.
Another solution might be to have the user upload their image to WebDAV as mentioned above, but instead of a dropdown menu, you could have the user type their file's name into a text input setting in the Theme Editor. Keep in mind though that there's a 64 character limit for input values.
Hope this helps!
There are 4 ways to get images into the BigCommerce store.
You can:
Upload into the content folder through webdav. Then the images would be referenced like url.com/content/image.jpg. This does require a webdav connection and while everything does point you to using file managers like cyberduck, you can actually map a drive to a network resource to make this super easy. This mean you can create a z drive that is actually your bigcommerce content upload through webdav. It's pretty easy to set up and for customers to use. The drawback is that these files do not get put on a CDN so there's a little loss of performance.
Upload into the theme's images folders. This is complex and would require your client to figure out the stencil local dev connection and push versions up to their store. This would allow the images to be CDN'd but is super complex and your clients won't figure it out... It could also expose you to some long-term version control issues as they may be overwriting you or vice versa.
You can use the media manager to upload images. If you're referring to them in code, an easy trick is when your clients want to replace an image, to delete it and upload a new one with the exact same name... then the reference doesn't break. This is the easiest way to deal with site-wide issues from the client-side. Images are CDN'd this way as well.
You can consider using the marketing banner function for semi-temporary marketing messages. This is what it is made for, the images will be CDN'd and it's full GUI with no techy connections for your clients to figure out. This is perfect for banners that span a single page, but I don't think there is currently a side-wide setting for locations.

How to add RichText editor to a page as component in HippoCMS?

I'm creating some project using HippoCMS 10 and I need to add RichText editor as part of the page, so that customer can use it and fill something there. This editor must act exactly the same way as in Document Editor (customer can click Image button in toolbar and select image from ImagePicker dialog box).
Can't find anything about it in HippoCMS official documentation. I learned how to create custom plugins and how to integrate CKEditor into page separately, but for image picking, I need default behaviour as in Hippo.
How can I achieve this? Any help will be appreciated!
I think your question was answered on the community group. The answer there was:
"it should be quite easy to have a CKEditor in the website.
However, it doesn't really make sense to me to have site visitors able to pick CMS documents and images from the site. The picker dialogs are designed to work inside the CMS only. You should be able to create your own picker dialog that can read from a REST service that exposes the images/documents.
I don't think it will be possible to reuse the CMS picker dialog in the site."
and
"your use case is fine, when I said "it doesn't really make sense", I was really referring to the technical limitations of the pickers. You should be able to achieve what you want with a custom dialog that plugs into a REST service though. Unfortunately there is no quick solution for this that I can think of."
Just adding this for future reference.

Outlook truncating images

I'm designing an e-mail template for a company and it tests great in everything besides Outlook. For some reason the bottom images of the email look like they're loading half way and then stop. I've found information online that Outlook won't load images with a height greater than 1728px, but the tallest image we have is much shorter than that. There are images beyond 1728px on the page that are loading just fine, so I'm not sure that's the issue. Does anyone have any experience with this? Any advice would be helpful.
Hi Here is a quick solution for this to be done in the outlook.
Use photoshop and follow this steps:
Once the design is over, slice up the image parts / height(1728px as per yout example).
Save this as, File->Save for web and device. click save. you will get option under save box
Under format change this to HTML and image from drop down.
Save them in one folder. A new HTML file and image file will be created in this folder.
Open this HTML file in a browser.
Just copy and paste the content in the outlook using a single cell table.
That's you are done. Now your image will load without any problem.

Embed Powerpoint viewer on a web page (PHP)

I am building a PHP application where the user upload Powerpoint files. I want the other users to view it online instead of downloading. (Using a third party apps like google docs might be a little cumbersome for the users) Is it possible to write a powerpoint viewer code in PHP?
You could automate the process of using google docs with php.
Google provides a ppt viewer that can be embed into webpages using the following code
<iframe src="http://docs.google.com/gview?url=http://www.domainname.come/presentation.ppt&embedded=true" style="width:550px; height:450px;" frameborder="0"></iframe>
Now im assuming php handles the uploads your users make, thus it would be easy to find the url to the specific ppt file. You could store this url either in a variable or a database, fetch it when needed and place it in the code above.
I hope I have been able to explain the logic im trying to apply, do let me know if you need more specifications.
I suspect it would be much easier to reduce the powerpoint slides to .PNG files, and build a simple PHP script to cycle through the images.
You want to re-write Powerpoint in PHP? I'm gonna say... very difficult at best. There are, however, tools out there that make your life easier. Also, there's a "Save as web page" option in Powerpoint, so maybe you could have your uploaders save the powerpoint as a web page, and upload that output, which I would imagine would be pretty easy for you to subsequently put up on the web.
Alternatively, if you're feeling more ambitious, you could read up on the Google docs APIs, and possibly create a portal to upload to Google docs for the contributors, and view Google docs for your visitors. Your PHP frontend could leverage the power of Google docs, but eliminate the cumbersomeness (I'm kind of surprised that's a real word).
"Is it possible to write a powerpoint viewer code in PHP?"
Yes. Unfortunately, if you are asking this question, you probably won't be able to do it yourself.
If you want to try it anyways, here's a good place to start:
http://msdn.microsoft.com/en-us/library/cc313106(office.12).aspx
Or you can look for a library that does that. They are probably out there, just Google it.
EDIT: Found one here:
http://phppowerpoint.codeplex.com/
Powerpoint files can be embedded on a webpage using the API provided by Microsoft.
<iframe src="https://view.officeapps.live.com/op/embed.aspx?src=https://yourdomainname.com/your_powerpoint_file.pptx" width="100%" height="565px" frameborder="0"> </iframe>

Resources