oracle apex: display an image based on url as a report column - oracle-apex-5.1

On my classic report I have a column that stored a URL to an image. Is it possible to have an image loaded on a classic report? Or is there another way to display an image as a column in the report?

Apply HTML tags to the URL.
For example, if this is your table:
create table images
(id number,
url varchar2(100));
insert into images (id, url) values (1, 'http://www.my_site.com/my_car.jpg');
then the Apex classic report's query should look like this:
select
id,
'<img src=' || URL || '>' url
from images
Navigate to URL column's properties and set "Escape special characters" to NO (because you want Apex to properly interpret the IMG tags).
Run the report and you should see all the images.

Select the particular Column under columns.
In the column attrbutes, Under Link Select Target as "URL" and provide the column name format as &.

Related

Add image column with AddColumns in Power Apps

I am trying to populate a browse gallery with data form Table1 grouped by PRODUCTO, and I want to add as well an image colunm from the original table, but Power Apps cannot recognize this new column as image data. I tried to use [image] after the name of the new column as it is required in excel files, but unsuccesfully.
This is the code I am using:
SortByColumns(Search(Filter(AddColumns(GroupBy(Table1;"PRODUCTO";"NuevaTabla");"TStock";Sum(NuevaTabla.STOCK;STOCK);"TMin";Sum(NuevaTabla.MINIMO;MINIMO);"IMAGEN";NuevaTabla.IMAGEN);TMin -TStock >0);TextSearchBox1.Text; "PRODUCTO");"PRODUCTO";If(SortDescending1; SortOrder.Descending; SortOrder.Ascending))
Image files are stored in OneDrive and the link is in an excel table with the following format:
.\images\abrillantador.jpg
It works fine in the application but when the column is created with the command AddColumns that it is recognized as text instead of a url link.

URL to be used in Text Field

I have a url 'http://example.com' as one column value in a table. I want to use this column value in my page as page item text box. Furthermore, if I click on that link, it should navigate to http://example.com.
When I tried to retrieve it from database as
Select attachment --my column name, in which url is stored
into :P_40_ATTACHMENT
FROM xxtable
where sno=1
I was able to get the values example.com but I am unable to find the hyperlink.

Oracle APEX Cards not displaying all data

I have an Oracle APEX application (current release) that is using CARDS. I WANT an icon with 4 text columns to be displayed. I am getting an icon with 3 text columns displayed, and I don't know what I am doing wrong. The column card_subtitle is the column not showing. The SQL I am using returns data for all attributes…
select
path_id,
name card_title,
description card_subtitle,
owner card_text,
'Benchmark data' card_subtext,
path_id card_initials,
…
When I run the query from SQL, card_subtitle does have data. It is defined as varchar2 like the other columns. I have set template options to show 4 lines. As an alternative, I have tried taking two columns and concatenating them together with an HTML break ('< b r >') in between, but < b r > is displayed, instead of causing a line break. (Note I had to put in extra spaces so that SO would actually show the code...)
When run, the card displays as:
My template options are defined as:
select the column and in the security tab under "Escape special characters" choose the option NO.
this is for the line break to work
Please follow the below steps
1.Select the region
2.select the region attribute
3.goto the card region template
4.select the body text auto it will show the full content
there is only one disadvantage, that means, if you are enabled body text auto, the card alignment issue will came.

Oracle APEX: URL column in interactive grid cannot be edited

I have an interactive grid in an APEX application, and one of the columns (header ATTACHMENT) has URLs that open in a new tab. However, as part of the functionality of an interactive grid, I am unable to edit the URL within this column. All the columns are editable, but since I changed this column to a 'Link' the user cannot edit it. I also tried single row view, but same.
Is this possible?
Thanks
See my interactive grid
How about specifying the same column (attachment) twice? One would be used for editing purposes, and another one as a link. Something like this:
select
id,
attachment edit_url,
'Link' link_url
from your_table
ID is the primary key column
EDIT_URL is a usual Text Field
LINK_URL is a Link column
its "Query only" property has to be set to "Yes"
"Escape special characters" set to "No"
When you run the page, it'll show 3 columns; EDIT_URL will be editable. Once you modify that column's value and save the changes, LINK_URL will reflect that change and - when you click the "Link" word in that column, it'll lead you to the modified URL.

Display Column and Return Column LOV

I am working in Oracle APEX(Application Express). When I want to create a List of Values (LOV) it gives me only one option for displaying and returning value. Is there any method in APEX so that it can Display me more than one column.
No, there is no way to display more than 1 column by default.
You could alter your lov query to concatenate multiple column values into a display columns
select empno return_value, empno||': '||ename||' - '||job display_value
from emp
You can steer markup through the Popup LOV template too, if you'd want to use a fixed width font.
Use a plugin such as the SkillBuilders SuperLov. However, this plugin does not work in tabular forms.
Roll your own by using for example modal pages (again, SkillBuilders have an excellent plugin for modal pages), or through the use of javascript (ex creating new windows and handling returns)

Resources