Conditional expression HTML in a classic report-
Apex 4.2
I currently have a column of the report in a classic report that has an attribute of formatting of column as below. It works well, it displays a map icon that when you click on it turns off to google maps and put 2 geo points on a map. However, I need to change this report column so that the HTML expression will be different according to the value that is returned if the column returns the value 1 then the Expression HTML will be slightly different.
EXPRESSION OF HTML
< span class = "map_ #BROKE_GEO #_ #VALID_GEO_CODES #" > < a target = _blank href = "f? p = & APP_ID.:323: & SESSION.: P323_PARCEL_ID, P323_SCAN_ID, P323_PROP_ADDR1, P323_PROP_POSTCODE, P323_PROP_LAT, P323_PROP_LONG, P323_SCAN_LAT, P323_SCAN_LONG: & P341_PARCEL_ID, #SCAN_ID #, #LINE_1 #, #POST_CODE #, #PROPERTY_GEO_LAT #, #PROPERTY_GEO_LONG # #SCAN_GEO_LAT #, #SCAN_GEO_LONG #"> < img src =" #WORKSPACE_IMAGES #& P341_IMG_MAP_ #BROKE_GEO #. "alt ="Google Maps"title ="Google Maps"> < / has > < / span >"
I think I can do this in the source report directly with a case statement and include the HTML code for the column but how do you manage all the quotes in the SQL statement.
for example
Original request
SELECT
parcel_id
status
LOCATION
scan_date
scan_id
driver_comments
card_id
, valid_geo_codes - it's my html topic
property_geo_lat
property_geo_long
scan_geo_lat
scan_geo_long
broke_geo
line_1
post_code
OF vw_parcel_history_details
WHERE parcel_id =: p341_parcel_id
ORDER BY scan_date
New query
SELECT
parcel_id
status
LOCATION
scan_date
scan_id
driver_comments
card_id
(case
When valid_geo_codes = 1 then: p341_valid_geo_codes1
When valid_geo_codes = 2 then: p341_valid_geo_codes2
When valid_geo_codes = 3 then: p341_valid_geo_codes3
valid_geo_codes end)
property_geo_lat
property_geo_long
scan_geo_lat
scan_geo_long
broke_geo
line_1
post_code
OF vw_parcel_history_details
WHERE parcel_id =: p341_parcel_id
ORDER BY scan_date
I want to put: p341_valid_geo_codes1,: p341_valid_geo_codes2,: p341_valid_geo_codes3,: p341_valid_geo_codes4 be various iterations of this large html string but I do not know how to format because all the quotes off the coast?
Thank you
AndyLou wrote:
I think I can do this in the source report directly with a case statement and include the HTML code for the column but how do you manage all the quotes in the SQL statement.
With a lot of attention.
You are on the right track, yes you can do it. That's all just annoying because the single quotes must be doubled in your SQL to be escaped.
BUT the good thing is that the double quotes will not affect SQL only single quotes.
Then. I think that your new query will look like this:
SELECT parcel_id ,status ,LOCATION ,scan_date ,scan_id ,driver_comments ,card_id ,(case when valid_geo_codes=1 then '' when valid_geo_codes=2 then '' when valid_geo_codes=3 then '' end) valid_geo_codes ,property_geo_lat ,property_geo_long ,scan_geo_lat ,scan_geo_long ,broke_geo ,line_1 ,post_code FROM vw_parcel_history_details WHERE parcel_id = :P341_PARCEL_ID ORDER BY scan_date
Baring of typos that probably works.
I think you know that you need to change the display Standard for the HTML column displays in HTML format and not as text.
I would be remiss in my duty if I did not mention that your values (such as line_1, post_code, etc.) if not controlled can contain the code of script in them, and then you may be susceptible to Cross Site Scripting attacks. Not a problem for all the world, but it is worth noting.
Thank you
-Jorge
PS. I should add that right now all span three of HTML is the same, if they are going to be the same, then I would refactor this to a single line of HTML and instruction box on the inside for the three sectors of the P341_VALID_GEO_CODES. in any case, I think you get the idea.
Post edited by: jrimblas
Tags: Database
Similar Questions
-
Adding Tables HTML output of the classic report
Good day to all.
XE SUMMIT 4.2.5 11.2 theme 26.
Im trying to produce a classic report that looks like a Bill... Letterhead at the top and several integrated areas separate table that contain a mixture of static text and retrieved data.
No matter what I try, I can't get the embedded table borders appears... The data presents itself, and its all formatted and aligned correctly, but not of borders. Ive tried just about every report models...
The following is an example of my SQL: (obviously I would be inserting data in the tables at various points...)
Select ' < table border = "3" cellpadding = "1" cellspacing = "1" height = "134" width = "381" >
< tbody >
< b >
< td colspan = "2" style = "" text-align: center; "> < span style =" "are-size: 18px;" > invoice </span > < table > ""
< /tr >
< b >
< td >
< style p = "" left margin: 40px; "> date: < /p >"
< table >
< style td = "" text-align: center; ">"
< style p = "" margin-left: 40px; "> 23 - Sep - 2014 < /p >"
< table >
< /tr >
< b >
< td >
< style p = "" left margin: 40px; "> invoice No.: < /p >"
< table >
< style td = "" text-align: center; "> < table > 123456"
< /tr >
< / tbody >
< /table > '
of the double
I would appreciate if anyone knows how I can achieve this, (or ideas on how to create and invoice report type).
Kind regards
Richard
Richard Legge wrote:
XE SUMMIT 4.2.5 11.2 theme 26.
Page, region and report models? (Better yet, create an example on apex.oracle.com...)
Im trying to produce a classic report that looks like a Bill... Letterhead at the top and several integrated areas separate table that contain a mixture of static text and retrieved data.
I suggest that you create a custom report template (or several).
No matter what I try, I can't get the embedded table borders appears... The data presents itself, and its all formatted and aligned correctly, but not of borders. Ive tried just about every report models...
They are being replaced by CSS rules of the theme for the report model.
The following is an example of my SQL: (obviously I would be inserting data in the tables at various points...)
Select '
All of these attributes of table are obsolete and should be implemented using CSS instead (unless you need compatibility with IE6 and 7?).
I would appreciate if anyone knows how I can achieve this, (or ideas on how to create and invoice report type).
Tables (especially nested tables) may not necessarily be the way to do it in 2014. Can you put an illustration of the required provision?
Best way to get help with this would be to create the required tables in the DB with appropriate apex.oracle.com sample data and share identification information of developer comments for the workspace, so we could work on a custom report template.
Do you need to make this printable?
-
Highlight a line in the classic report based on condition
HI all the gurus
Apex 4.1.1 using oracle 11g linux oc4j
I want to emphasize a line where #column_value #= 'Y' to keep gray others like normal report parameters.
I have a simple sql query
SELECT PK_ID, FIRST_NAME, LAST_NAME, INITIAL_REG_DATE, MAIL_DATE, BEGIN_DATE, END_DATE, END_DATE-BEGIN_DATE as "#days", BEGIN_STATUS, END_STATUS, COMMENTS, DELETE_FLAG, case when DELETE_FLAG='Y' then 'GREY' else '#f0f0f0' end DELETE_FLAG , INITIAL_REG_DATE+(END_DATE-BEGIN_DATE) "New Reg end date" FROM SOR_TRACKING_DEL where pk2_id =:P216_Detail order by mail_Date desc
I created a dynamic action
who will be the tree on load, LINK on this classic report
$("input[name=f29]").each (function () {}
var lThis = $(this);
{if (lThis.is("Y"))}
lThis.parents("tr:eq(0)").children("td").css({"background-color":"GREY"});)
} else {}
lThis.parents("tr:eq(0)").children("td").css({"background-color":"#f0f0f0"});)
}
});
But it doesn't change color as expected...
Kindly help me!
Thank you
Scott and Tom
Thank you guys for looking into this.
Pls ignore my incorrect explanation and my inexperience with jquery.
I read some blog and trying to do the same on the classic report, but all blogs, I found to this day called interactive report or tabular report, that none of them mentions classic report.
I assume that using the classic report will not be a good idea to start with. :/
I don't know if this is the proper syntax and logic to highlight the line
$(
function
(){
var
DELETE_FLAG = $(this);
If DELETE_FLAG.is("Y"))
{
DELETE_FLAG.parents("tr
").children("td").css({"background-color":"GREY"});).}});
I also created app here
http://Apex.Oracle.com/pls/Apex/f?p=35155
get out of the workspace
Tester/testing
request 35155
Thanks again.
-
Sort a hyperlink column in the classic report
4.2.1
THM2:
Hi I have a classic report with a hyperlink column. And I need enable sorting on this. What I did is
Select '< a href = "somelink" >' | party_name | "< /a > ' party_name party_name table.
However, I just need to show the hyperlink column in the report. Couple of questions
1. How can I create party_name-based sorting logic using the updated classic sorting standard? Given that all a hyperlink names begin with < - sorting is random. I added the second party_name column an active by default sort on it, but given that the column can not be shown, is not a good way.
2. I was wondering if there is another way to sort this classic report hyperlink column as shown in the hyperlink and sorting is enabled on the report?
Thank you!
ryansun wrote:
Hi Fac586 - Yes, the requirements are not of the same report. We have several pages with the same type of aspect, however, some of them have a different feature. In this case, Yes, I too simplified it so that easier to understand. I use the hyperlinks on query sql rather that the link of the column is because we have about 5 unions in this query from different sources and each of those interviewing him, having a hypertext link and additional formatting like "BOLD", color etc, under certain conditions. Query1 will return only the party_name, the second query United would have hypertext links, the third would fat etc. The union of the request is not made to take into account this feature, but because of the nature of the data. While the apex feature works very well, the only question I hit is the hyperlink column sorting in a classic report. Where the simplified question. Individual responses, I've had have been very useful and have been applied successfully.
In this case, the request for a classic report that has column link, how to sort would work it would be on a regular character column.
Option 1 (deeply inelegant): Generate an HTML comment containing the sort at the beginning of the column value. The value must be sortable using the character comparison semantics, so dates must follow the format YYYYMMDD, numbers padded to the same length with zeros etc: Re: problem with the Date command
Option 2A: Expand the Expression HTML technique described in your previous thread (marking dynamically of columns in a "BOLD" for the highest value report) to include the tags.
Option 2b: Use the HTML Expression technique described in the previous thread to include custom data attributes and use these to add links to dynamic actions.
If this is done on several pages, and then create a view all the necessary logic and the columns which you can keep it in one place.
-
Replace a string in a classic report
Hello
I have a standard report on a page. Some data in this report must be formatted for display. For example, one of the fields, a CLOB, may contain zero, one or several line feeds [Chr (10)]. I would like the report to start a new line and display a line empty each time as a CHRI10) is encountered.
In a stored procedure, I use the following and it works fine:
Select references1 in l_reading1 from myTable;
l_reading1: = Replace (l_reading1, Chr (10), "< br / > < br / > '");
How would incorporate this substitute in a statement select Classic report?
Thanks for looking at this.
PhilMan2 wrote:
I have a standard report on a page. Some data in this report must be formatted for display. For example, one of the fields, a CLOB, may contain zero, one or several line feeds [Chr (10)]. I would like the report to start a new line and display a line empty each time as a CHRI10) is encountered.
In a stored procedure, I use the following and it works fine:
Select references1 in l_reading1 from myTable;
l_reading1: = Replace (l_reading1, Chr (10),")
');How would incorporate this substitute in a statement select Classic report?
Using this method, just include replace in the report query:
select replace(reading, chr(10), '
') reading from mytableSet the attribute to text to display as column column of Standard report (or Type as plain text and escape special characters No. in APEX 5.0).
However, the double break is an improper use of the
br
element and according to the nature of the data a single break can be as well. If the data consists of text paragraphs, use:select '
' || regexp_replace(reading, chr(10) || '+', '
') reading from mytable
in the source report and add a style sheet to the page Inline CSS attribute:
td[headers="READING"] p { margin: 1em 0; }
Another possibility is to mark the data as a pre-formatted text so that line breaks are rendered as breaks:
select reading from mytable
with an Expression of HTML in the column attributes:
#READING#
-
Default sort of the classic report does not seem to work
4.2.1
THM 2
I have a classic report consisting of an underlying sql with 3 unions. The columns include a party_name (varchar) and two numeric fields.
for example only select total_cost, cost_to_company, party_name, apex_item.checkbox2(1,party_id)
(
Select a.party_id, a.party_name party_name, a.cost_to_company, table a.total_cost when certain conditions
Union
Select a.party_id, a.party_name party_name, a.cost_to_company, table a.total_cost when certain conditions
Union
Select a.party_id, a.party_name party_name, a.cost_to_company, table a.total_cost when certain conditions
)
In our real-world scenario, these three applications are on different tables and different even if some elements are all the same (including the type of data, etc.), where the union
Because I need activate sorting using the report attributes. I put the tri reporting attributes such as 1 - total_cost desc, 2 - Party_name growing.
However, when we run the report, if the total_cost for different parts is 0, the sorting should be based on party_name. That does not seem to happen. It still sorts out randomly. I'm wonderingm if it's because there are trade unions and no order of in the query.
No idea how to solve this problem?
Nothing to do with unions.
It looks like it is connected to your thread previous marking dynamically of columns in a "BOLD" for the highest value report. Is it? If so, where are the links generated to conditionally and other HTML elements? They are more likely to cause sorting problems. Instead of posting question after question about one aspect of the problem after another, you get a solution much faster together by creating an example on apex.oracle.com and specifying the complete requirements.
-
How to set the column width in the classic report.
Dear friends
I use Apex 3.2.
I created Clasic report and I have the analytical column in my report this column I description of the problem, so I want to set the width of this column nn classic report.
I try a code in the expression of html
style = "width: 480px;" display: block; space: normal; do-size: 11px; ' >Dear Newcomb, greetings! Thank you very much for the new request, and we are pleased to confirm the availability of a single cabin in all three categories of cabin on the M.V. Mahabaahu. We wish to inform you that two departures on October 15, 2013 & 29 October 2013 (golden triangle with Cruise) are operational and attached are the prices for your kind attention. As a special promotion for October 15, 2013 start only, we offer 100 USD by reduction of the person on the triangle of gold, combined to the cruise portion. Please review and advise us to block accommodation as a result. Cordially... pepette<span>style="width: 480px; display: block; white-space: normal; font-size: 11px;">#ACTIVITY_SUMMARY#</span> {code after apply abovemention code that display me in my summary like this and not manage width of column.
How to fix Width of column in classic report. Thanks
Hi najet
Try this
#ACTIVITY_SUMMARY#
the * > * is removed.
Kind regards
Kees Vlek
-----
Company: http://www.orcado.nl
Blog: http://www.orcado.nl/blog/blogger/listings/69-kvlek
Twitter: http://www.twitter.com/skier66
If the answer to question please change replied and mark the appropriate post as correct / helpful. -
Dynamic cell colors based on values - Classic report
Hello
I have a requirement where certain columns in my classic report should change the color according to the percentage.
I referred to the following code:
But my requirement is quite complicated, I already do a lot of calculations on the existing columns:SELECT e.*, CASE WHEN sal < 1000 THEN 'red' WHEN sal BETWEEN 1000 AND 2000 T wHEN 'yellow' WHEN sal > 2000 THEN 'green' END the_color FROM emp e
ex:
Can someone help me to modify this code for the column, so that cells (not lines) of my changes to report Classic color dynamically, say what percentage of the above code is > = 75 it must be green, less than 50 means red.ROUND(((COUNT(CASE WHEN class ='A' THEN 1 END)/ nullif((SUM(CASE WHEN class ='B' THEN 1 END)+ SUM(CASE WHEN class ='C' THEN 1 END)),0))*100),1) as Percentage
Thank you!Example query:
select cust.* , case when credit_limit > 5000 then 'red' else 'green' end as bg_color from ( select CUSTOMER_ID, CUST_FIRST_NAME, round(dbms_random.value(1000,9000)) as CREDIT_LIMIT from #OWNER#.DEMO_CUSTOMERS ) cust
In the definition of the column in CREDIT_LIMIT, set the HTML Expression < div style = "background-color: #BG_COLOR #" > #CREDIT_LIMIT # < / div >
See the result: http://apex.oracle.com/pls/apex/f?p=41715:3
You can also create html together in SQL but I would like to split logic (SQL) and the user interface.
Another option might be to create dynamic Action (after discounting the report area) and to create a combination of astute selector and a piece of JavaScript, but I guess it's easier. -
Classic report: download to CSV download numbers with signs
I have a page with a number of reports about this - and so I have to use the classic report. Each report has an option "download to Excel". And, because the report is a financial report, users want the positive numbers to display normal and the < negative > numbers appear with the signs of <>. This is possible using the standard format: 999G999G999G999G990D00PR
But when they export the report to excel, export of the positive, but negative numbers numbers are empty (they do not appear in the export at all).
It works if I use an interactive report, but, as mentioned above, I have multiple reports on the same page and I can't use the interactive report option.
I reproduced the problem on apex.oracle.com
WORKSPACE: TEST_CLASSIC_REPORT
ID: TEST_USER
Password: blanket1
Is this a bug with APEX? Is there a work around I can use? I tried to do twice the column different formatting, but it didn't work right.
Thank you
-seattle
With the help of APEX 4.1.0.00.32
Oracle 11g
Reproduce the problem using APEX 4.2SleepDeprivedInSeattle wrote:
I have a page with a number of reports about this - and so I have to use the classic report. Each report has an option "download to Excel". And, because the report is a financial report, users want the positive numbers to display normal and numbers ofwith the <> signs. This is possible using the standard format: 999G999G999G999G990D00PR But when they export the report to excel, export of the positive, but negative numbers numbers are empty (they do not appear in the export at all).
It works if I use an interactive report, but, as mentioned above, I have multiple reports on the same page and I can't use the interactive report option.
I reproduced the problem on apex.oracle.com
WORKSPACE: TEST_CLASSIC_REPORT
ID: TEST_USER
Password: blanket1Is this a bug with APEX?
Could be. Something similar has been reported before: + {message identifier: = 4395427} +.
Is there a work around I can use? I tried to do twice the column different formatting, but it didn't work right.
Two versions of the column displayed under condition should function.
Add a copy of the columns required for the query:
select test_table_id , test_table_desc , test_table_amount , test_table_amount test_table_amount_csv from test_table
999G999G999G999G990D00PR, the value of the format mask for the column normal and who leave for the CSV column empty (or use a format that does not include the specification of the PR ).
Note that the link export URL uses a REQUEST value APEX starting with "FLOW_EXCEL_OUTPUT" to determine that the export of the report has been requested:
http://apex.oracle.com/pls/apex/f?p=66643:1:12896346742738:FLOW_EXCEL_OUTPUT_R10086972522979338823_en
This value of APPLICATION can be used in a PL/SQL expression in State of the control column which column is included. The condition for the normal column displayed on the screen is:
coalesce(:request, 'X') not like 'FLOW_EXCEL_OUTPUT%'
and the CSV column included in the export file:
:request like 'FLOW_EXCEL_OUTPUT%'
-
Aliging two tables side by side on a classic report
Hello
I have three regions on my page. The first two regions are of pie charts and appear side by side.
The third area is a classic report and appears in graphic regions.
The problem is that the first chart area has the same width as the region of the classic report. This causes a gap between the two tables. How can I remove the gap between the two graphic region, ignoring all that is the width of the classic report?The page below shows an example:
https://Apex.Oracle.com/pls/Apex/f?p=76322:22
Username: forum
Password: abc123
Thank you
Zkay
ZKay wrote:
Thanks for the reply. It reminded me of the importance of mentioning the version etc.
I use 11g with Apex 4.0. and the generator 101 Blue theme.
So, please advise to what precedes.
APEX 4.0, according to me, you will need to assign property attributes of the region HTML table cells of the region report
colspan="2"
or put the report on a different display area point tables, say body Page Template (1 points below the content of the region) for maps and body Page Template (2 items below the content of the region) for the report. -
Help with an Export on a classic report 4.2.5.00.08
Version: 4.2.5.00.08
Hello
I have a classic report using Break formatting (on the first column). When the report is exported, for example, if there are 3 lines that are in this group only the first cell is filled and the other 2 are NULL.
Like this:
Users than the State of export, like this:
One way to do that was to create a second report without breaking formatting set and fix the terms at a time so that when the "Download" link has been activated the second report, the report without breaking format, would go and download.
My problem is that I forgot how to set the conditions for that to happen.
Can someone help me to implement?
OR
Now is a way to get the formatting AND data in all cells?
Can what information I provide?
Thank you
Joe
Joe R wrote:
I have change the post when you have you answer. A question arose, the download can cause all the filled cells AND formatting break?
Lol you would perform the calculations super aggregate in the report of export SQL using GROUPING SETS or CUMULATIVE instead of APEX report put break in shape.
-
change the color of line based on the value of column 5 Apex in the classic report
Version of the apex 5.0.0.00.31
Standard universal theme
Page theme default template
Classic report
Foldable report template
Hello
I know this question has been asked several times here, but I'm working on 5 Apex and need to know the correct way to do it in this version.
I need to change the color of the text of the entire line (no background color) based on the value in one of the columns of the classic report. I have just two conditions, if the value of column = Yes, color should be red, otherwise it must be green.
I am new to jscript and css, so appreciate if someone can tell me the solution with steps.
I have already checked this link that changes the value of the column, need to do something similar to the whole line.
https://tylermuth.WordPress.com/2007/12/01/conditional-column-formatting-in-apex/
Hi coolmaddy007-Oracle,.
Here's an example set up on the apex.oracle.com according to the specifications you gave: https://apex.oracle.com/pls/apex/f?p=35467:1
Version of the apex 5.0.0.00.31
Standard universal theme
Page theme default template
Classic report
Foldable report template
Here is how it is done:
Create a dynamic action with the following specifications:
Name: Give the appropriate name
Event: After refresh
Selection type: region
Region: select your region classic report
Condition: No strings attached
Action: Run the JavaScript Code
Fire on loading the Page: Yes
Code:
$('td[headers="JOB"]').each(function() { if ( $(this).text() === 'MANAGER' ) { $(this).closest('tr').find('td').css({"color":"red"}); } if ( $(this).text() === 'SALESMAN' ) { $(this).closest('tr').find('td').css({"color":"green"}); } if ( $(this).text() === 'CLERK' ) { $(this).closest('tr').find('td').css({"color":"blue"}); } });
NOTE: Download the selector appropriate for your knowledge $('td[headers="JOB"]') case using firebug/browser development tools.
Items concerned: leave blank.
PS: Changed the example to change the color of text instead of the background color.
I hope this helps!
Kind regards
Kiran
-
How to extract values of classic report column in the text element
Hi all
I've created a classic report (select id, name,' < input type = "button" value = "add" id = "add" name = "add" > "as" add details "details ;) with a single column as column values want link.i in the text element when I click on the link of that particular record of the report)
(1) in the link this link column property I've specified the URL as [javascript:insert_in_table(#ID#,#NAME#)]
(2) text two article P_ID, P_NAME
(3) in the header of the page, I've specified as javascript
< script type = "text/javascript" >
function insert_in_table (id, name) {}
var regId = ' #detail #'.substr (1);
var req = new htmldb_Get (not null, $v ('pFlowId'), 'APPLICATION_PROCESS = add', $v('pFlowStepId'));
Req.Add ('P_ID', ID);
Req.Add ('P_NAME', Name);
forced. GetAsync (function () {}
If {(p.readyState is 4)
$a_report (regId);
}
});
}
< /script >
(4) created a (add) process whose point: on demand, run this process when requested by ajax
pl/sql: insert into name_detail (id, name) values (: P_ID,: P_NAME)
now the problem is I m not getting the values of column in the report in the text element, it only shows white.
Kind regards
Ketan
Hello Ketan,
Assuming that you want to insert the values into the table, this is why you want to set values for the element,
If this is the case, then no need to define values for the element to insert.
Follow the steps below, it is one of the embodiment of your condition.
Step 1: Put the code below in your classic report query
assuming that the id is of type number and the name is of type varchar, that's why I am attaching the name to apostrophe, see line 3
select id , name , '' as "Add to detail" from detail
Edit 'Add details' column-> column attributes-> view-> column of Standard report
Step 2: Create a process in the processing of the Page
Name: INSERT_DATA
Address the point: on demand, run this process when requested by ajax
Process: putting the code below
Declare P_ID number ; P_NAME varchar2(50); Begin P_ID := apex_application.g_x01; P_NAME := apex_application.g_x02; insert into name_detail(id,name) values (P_ID,P_NAME); End;
Step 3: Create a java script function to call your insert ajax process.
Change the Page-> the function and the global variable declaration-> put the code below
function insert_in_table(id,name) { apex.server.process ( "INSERT_DATA", { x01: id,x02: name }, { success: function( pData ) { } }); }
Hope this helps you,
Kind regards
Jitendra
-
Display image in a classic report on a public page
Hello
I developed a public page where I want the list of items from a view. It must be a classic report because of the template I want to use later.
The query is executed with the typical HTML structure:
Select "ARTI_ID."
"ARTI_BESCHREIBUNG,"
"ARTI_PREIS,"
"ARTI_PORTO,"
decode (nvl (dbms_lob.getlength ("ARTI_BILD"), 0), 0, null,)
"< img style =" border: 4px solid #CCC; " -moz-border-radius: 4px; -webkit - border-radius: 4px; » '||
"src =" "| apex_util.get_blob_file_src ('P3_ARTI_BILD', "ARTI_ID") |' "height ="75"width ="75"alt ="Bild"title ="Bild"/ >") "ARTI_BILD" "
of ' #OWNER # '. " TRAN_ALLE_ARTIKEL_V ".
WHERE 'ARTI_IST_GUELTIG '=' J '.
I used this query in an interactive report without problem on a page with authentication. Of course, I edited the page ID in the P3_ARTI_BILD element
Now, how can I manage it works?
The application runs on apex.oracle.com over 5 APEX.
Greetings
Steven
He solved. Still don't know what the error was, but everything works fine. This link helped me: Re: Confusion with get_blob_file_src
-
OK, so I followed some instructions that fac586 left in an answer (via link) for another question (Presentation of the State - side by side data sets), and I need help in a particular area:
If my model 1 attribute in my custom report template looks like this...:
< li >
< a href = "" #DERIVED$ 01 # "title =" #ENAME #">"
#PHOTO #.
< span > #ENAME # </span >
< /a >
< /li >
... And my SQL query for the report looks like this:
SELECT
LAST_NAME,
' < img src = "p? n ='|| NVL(IM.ID,0) | "" height = width = 150px auto > ' IMG '.
FROM EMPTABLE, WWV_FLOW_FILE_OBJECTS$ IM
WHERE EMPID = SUBSTR (IM. NAME OF FILE, 1, 6)
What is my expression of HTML to connect #ENAME # and #LAST_NAME # and #PHOTO # and #IMG # supposed to look like. I tried the googles but in vain.
In fact, my question is: what is the syntax for creating a derived column URL link in the attribute of expression HTML?
AquaNX4 wrote:
OK, so I followed some instructions that fac586 left in an answer (via link) for another question (Presentation of the State - side by side data sets), and I need help in a particular area:
If my model 1 attribute in my custom report template looks like this...:
How is the derived column defined?
... And my SQL query for the report looks like this:
SELECT
LAST_NAME,
'' IMG
FROM EMPTABLE, WWV_FLOW_FILE_OBJECTS$ IM
WHERE EMPID = SUBSTR (IM. NAME OF FILE, 1, 6)
What is my expression of HTML to connect #ENAME # and #LAST_NAME # and #PHOTO # and #IMG # supposed to look like. I tried the googles but in vain.
In fact, my question is: what is the syntax for creating a derived column URL link in the attribute of HTML expression?
Some things to note:
- The main reason using custom templates, derivatives and Expressions HTML columns is to separate concerns, so that SQL and HTML are not mixed in the access layer data. Your code does not properly separate layers of access and the data structure. In the example, the element/source of the image is generated using declarative BLOB support (which is strongly recommended for all downloads of image). If it is not using this method, then put the HTML code required in the model, to recover the source of the image (and all the other required attributes) as discrete columns and reference them individually in the model using the column substitution syntax.
- The height and width attributes are disabled, incorrectly specified using CSS syntax. The height and width HTML attributes are specified in pixels, with no units. The CSS dimensions are specified using the attribute of syle and units must be included in digital dimensions are used.
- The alt attribute is required for the img elements.
- Don't use undocumented objects (WWV_FLOW_FILE_OBJECTS$). A vision documented and supported (APEX_APPLICATION_FILES) is provided.
- The source of the image that is used will not work.
Suggest you reproduce the problem in an example on apex.oracle.com and view identification information of developer comments for the workspace.
Maybe you are looking for
-
Firefox browser filled with stray pixels of movement
Just an hour ago I was browsing a web page and I noticed that a few stray pixels appear, then disappear or moved somehow a confetti effect. When I scrolling gets worse and pixels stack up and sometimes slow down the whole browser. I cleared my cache
-
When for example I wanted to open my bank account in private via a secure internet page it appeared always a padlock at the bottom of the page to the right. Since today upgrading to Firefox 4 het appears not more. Is it normal with Firefox 4 or is th
-
I get the message "Paper jam" and will not spend my ink cart. Solutions.
-
I received an alert that a BIOS update is available for my registered product, HPE-450 t, who solved a problem with wake up from sleep mode. I've had this problem since purchasing the product 2 years, incidentally. I downloaded the upgrade, the fil
-
I just got a call from someone from Tech Albert Torres Id # 109... from OTS... the technical division for windows, haha... He gave me a website to check... www.ourtechstore.com... now, this site seems legit, Im just not at ease with him giving any i