The encapsulation of text in a classic report, bleeding in the next row with the report header template fixed.
Hi all
APEX 4.2.5
XE 11.2
Report Header fixed
(25 and 26 theme)
I have a classic report, and I use the fixed header template.
If I set the width of a column unless the width of the text in the column, then the data encapsulates as it should, but instead to increase the height of the cell in the row to greet him, he bleeds into the rank and writes on the following lines.
If I change the report to the standard model, it wraps correctly and increases the size of the cell to accommodate the text. Not sure if it is a bug, or Im definition something wrong.
If anyone can help to give advice on how to solve this Id be grateful.
Ive set the maximum width of the CSS report report. and set the width of the column in the column report.
I have reproduced it on APEX...
workspace: VRS
user: test/test
Application: 291
Page: 1
Thank you very much
Richard
Richard Legge wrote:
Hi all
APEX 4.2.5
XE 11.2
Report Header fixed
(25 and 26 theme)
I have a classic report, and I use the fixed header template.
If I set the width of a column unless the width of the text in the column, then the data encapsulates as it should, but instead to increase the height of the cell in the row to greet him, he bleeds into the rank and writes on the following lines.
If I change the report to the standard model, it wraps correctly and increases the size of the cell to accommodate the text. Not sure if it is a bug, or Im definition something wrong.
This is because of rules CSS theme on cells and rows in the report fixed header table:
{table.uReportFixedHeaders > tbody > tr}
display: block;
height: 28px;
}
{table.uReportFixedHeaders > tbody > tr > td}
padding: 4px 8px;
border-top: 1px solid #DDD;
border-bottom: none;
line-height: 20px;
}
I wouldn't really classify it as a bug, more as a hypothesis that the model would be used with data that will not be returned on multiple lines in a cell.
It is easily fixed by substituting equal to line of table and the row height of the cells in the Inline CSS page, as indicated at page 586:
{table.uReportFixedHeaders > tbody > tr}
height: auto! important;
}
{table.uReportFixedHeaders > tbody > tr > td}
line-height: inherit! important;
}
Tags: Database
Similar Questions
-
How to put the checkbox in the classic report header line?
Hello
I have a classic report that has an element of control as the first column. I would like to put an element of the checkbox in the header, line when what it is supposed to set the element of the checkbox in all State lines. Something like in components shared APEX / links / edit the grid.
Is this possible to do? TIA.
TamasHello
See for example this post
Re: Form to check all the header checkboxKind regards
Jari -
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
-
Wrap the text in a column of the classic report
In a classic report, I want to wrap the text in a column, and I need to control where to wrap. For example:
That's what I need:
Performance test
-Classic report
That's what I have now:
Performance
test - Classic
report
The length of the text is dynamic and where wrap them should also be dynamic.
Can I wrap ColumnHeadings too?
Thank you
YivonA solution would be to fix the width the column by wrapping and then in a span such as:
#COl_VAL #.
If you want to encapsulate the data then put a
in it! ;) -
How can I get the classic report value when I click on the record?
Hi all
I have a simple classic report and I want to get the empno when I click on record. For example, when I click on record 1, and I'll go '7369', if I click on the 3 card, and I'll go '7521'. How can I do this? Please help, thanks!
Hi jane.kuang,
Jane.Kuang wrote:
Thank you very much!!! Your message is useful for me. But this javascript has something wrong. When I click on the first time, the empno appears only once, but when I click on the other record, empno appear twice, and I click on the third time, it appears three times... I'm new to JS, I don't know how to fix it. Thank you!
Use instead the dynamic action to that effect.
Here are the steps:
- Change your region classic report-> section 'Attributes'-> 'ID' static-> give an id say myempregion static
- Create a dynamic action with the following attributes:
Event: click on
Selection type: jQuery Selector
jQuery Selector:
#myempregion table.uReportStandard tbody tr
Action: Run the JavaScript Code
Code:
var empno = $(this.triggeringElement).find('td[headers="EMPNO"]').text(); alert(empno); $('#P21_X').val(empno);
Items concerned: keep it unselected
- Change once created, your dynamic action-> go to section 'Advanced'-> set 'Extended event', 'dynamic'.
This will fix the following in the code of the Para:
- The jQuery Selector used by Para to trigger the click event is bad. This will fix the multiple alerts.
- Para code won't work on loading the page, but if there are many rows in the table and pagination for the report is in place, and then when you paginate your report, it will not work. But it will work with dynamic action 'Scope of the event' the 'Dynamic' value even when you paginate the report.
- Finally, most of the dynamic interactions page must be converted to dynamic actions, this will help the maintainability of the code, instead of stacking the javascript in your page.
Kind regards
Kiran
-
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
-
Functionality of the classic report checkbox column.
My requirement is
I have a classic report based on sql query in this 1st column is checkbox.
When I click on this check box, the value of the 2nd column is copied in the 4th column of the same rank.
Assume that the 2nd column value is 100 after you have clicked on the box of 100 control is copied into reports even line 4 column.
How can I do this?
You want to just copy the value of the of the sal to the text box column. Its simple javascript.
Looking at your page source I see that you call a function called spCheckChange. You use an application process in this function. Is this really necessary? The result is a heavy AJAX call.
You can simply use jQuery, if you create your report the right way i.e. add attributes to the checkbox and textbox which serve to identify which box would copy a value in what text box.
Here is a demo that I put in place.
https://Apex.Oracle.com/pls/Apex/f?p=53154:3:108154269628013:no
username: public_user
password: demo
You can take a look on how javascript code and attributes of the text box/box using your browser tools.
Kind regards
Aalami
Please check the response as helpful or correct if you find it then. Thank you!
-
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?
-
Classic report region is not refreshing using the DA
Apex 4.2.2 on Oracle 11.2 use EPG in Linux
I have a Camembert and I want user to click on a section and refresh a report classic region under the graph on the same page. I've used various methods to try to get this working, but none succeeded. Here's what I have right now - when a pie is clicked, a value is returned to a text P19_STATUS field in the region of report using javascript in a DA:
AnyChart.getChartById ($("#chart2_chart_object").attr ("id"))
.addEventListener ("pointClick", Function {}
$s ("P19_STATUS", e.data.Name);
});
It works fine as I can see the value that corresponds to the label in the chart. I created a second DA with an event of amendment to article P19_STATUS. There is a REAL action - Refresh. Selection type:, Region: classic report (40). I put also enable partial Page Refresh Yes on the classic report and the elements on the Page to be sent to: P19_STATUS. When the user clicks on the cake the value is in P19_STATUS, but the report is not updated. FYI, I also tried $('#report_region_id') .trigger ("apexrefresh"); in the second DA but which doesn't work anymore. I want only the region refresh, not the page. Please help - I'm fairly new to Apex, so please be as detailed as possible. Thank you!
Nicolette wrote:
User12037683
The missing part was that the report is a subregion of the chart area.
Under regions have their own model of the region. Instead the use of models from the parent area area unit.
Models of the region can be specified for the sub regions as all other regions. In this case it seems to be a problem with the sub-region model as it appears in the list of model as 48560037058667637086selection.
-
highlighting of lines in the classic report
I have a classic report with a disabled checkbox that I check a program.
Using the 25 Standard - apex 4.2.1 report theme
Only alternate lines are changed by the JavaScript below. Don't know what I have to do
for all verified ranks has highlighted.
I created an example on the website of oracle apex.
user name: [email protected]
password: whiskers
http://Apex.Oracle.com/pls/Apex/f?p=36690:2:112760870106921:
LOCATE THE REPORT * CODE
Select ename, empno, mgr, hiredate, sal, comm, deptno, job,
apex_item. CheckBox2 (p_idx = > 29, p_value = > empno,)
p_attributes = > DECODE (deptno, 10, "checked")
30, 'checked', NULL)
|| "disabled = disabled") action.
apex_item. RadioGroup (p_idx = > 30, p_value = > empno,)
p_attributes = > rb DECODE(deptno,10,'disabled=disabled',))
WCP
******************************CODE ****************************
I'm trying to highlight the lines when the boxes are ticked and used the code depending on what can be found here:
onLoad = "javascript:changeTableColor();" »
******************************CODE ****************************
< script type = "text/javascript" >
var szColorTo = "#F5D0A9";
var szColorOriginal = "#CCCCCC";
function changeRowColour (pTarget)
{
pTR var = pTarget.parentNode.parentNode;
If (pTR.nodeName.toLowerCase ()! = 'b')
{
return;
}
if(pTarget.Checked == true) {}
pTR.style.backgroundColor = szColorTo;
} else {}
pTR.style.backgroundColor = szColorOriginal;
}
}
function changeTableColor() {}
var columnArray = document.getElementsByName ("f29");
for (i = 0; i < columnArray.length; i ++)
{
changeRowColour ([i] columnArray);
}
}
< /script >
Hello
Here is an example of use of jQyery
$("input[name=f29]").each(function(){ var lThis=$(this); if(lThis.is(":checked")){ lThis.parents("tr:eq(0)").children("td").css({"background-color":"#F5D0A9"}); } else { lThis.parents("tr:eq(0)").children("td").css({"background-color":""}); } });
Create a dynamic action that fires after the region refresh JavaScript execution. Place above in the code.
Kind regards
Jari
-
Updating of the classic report
Hello
I use Apex 4.1 and DB: Oracle 11 g
I have a classic report:
Select apex_item.checkbox (1, a, 'unchecked id =' | a |' value = this.value onclick = "enableattr (this.id)"; ' | "") CASE WHEN e = "Y" THEN 'checked' ELSE 'unchecked' END), a, b, c, d, of xxsh_table, where a =: P1_ID;
in the foot of its region, I wrote a javascript function to refresh
< script type = "text/javascript" >
function refreshReport() {}
pId = "#REGION_ID #"; region report ID
Alert (PID);
$a_report (pId.substring (1),'1 ', ' 15'); Integrated APEX
}
< /script >
On by activating the checkbox, it calls the function "enableattr (this.id)" which is located in the Page HTML Header area which in turn calls function Refresh of the region "refreshReport.
Now the problem is at the request of the State of charge page displays the lines correctly as: P1_ID but after the
Region is refreshed it takes: P1_ID as null and will display "no data found".
Please help me with this.
Suggest another way to freshen up the region or another work around.
Kind regards
ShoaibHello!
This function has definition:
$a_report (pId, pMin, pMax, pFetched, pSort, pRefreshMode, pPageItemsToSubmit)
and have a useful parameter called pPageItemsToSubmit
Use it! =))function refreshReport() {}
pId = "#REGION_ID #"; region report ID
Alert (PID);
$a_report (pId, pMin, pMax, pFetched, pSort, pRefreshMode, pPageItemsToSubmit)
$a_report (pId.substring (1), 1, 15, 15, null, null, $x ('P1_ID')); Integrated APEX
} -
What is the PX_REPORT_SEARCH of the classic report element?
In the past I have worked with APEX a bit - is version 3.0 and earlier and more than 2 years ago. I'm now review APEX and trying to learn all the differences between it and the version 4.0.X. I created a 'normal' report (not a report interactive') and I have this reference to an element of P2_REPORT_SEARCH that I can't find anywhere, and I'm not find anything in the documentation on this subject. I have search the Forum on "% _REPORT_SEARCH" and get loads of hits, but not seeing where someone says the gist of it. The portion of the predicate generated automatically by the report page is listed below. He seems to be searching for the existence of my newly created Research Articles. Can someone indicate any decent white papers or documentation areas that cover this concept of 'REPORT_SEARCH '?
where)
InStr (upper ("MERCHPLANNAME"), upper (nvl (: P2_REPORT_SEARCH, "MERCHPLANNAME"))) > 0 or
InStr (upper ("BRANDDESC"), upper (nvl (: P2_REPORT_SEARCH, "BRANDDESC"))) > 0 or
InStr (upper ("MKTSTYLEGROUP"), upper (nvl (: P2_REPORT_SEARCH, "MKTSTYLEGROUP"))) > 0 or
InStr (upper ("COLUMN_KEY"), upper (nvl (: P2_REPORT_SEARCH, "COLUMN_KEY"))) > 0
)
Thank you very much
David
Published by: user13293413 on February 1, 2011 13:36
Published by: user13293413 on February 1, 2011 13:53David,
When you create a classic report, there is an option to add the search. If you select Yes, APEX creates a html box above the report that contains a text field - which is what the P2_REPORT_SEARCH element must make reference to. That where clause is then added to your query so that you can filter the results.
Van
Trent -
Classic report - add the column "select box"?
I have a classic report and you want to add a column with a check box so that the user can select several lines and perform an action on all of the lines (delete selected, for example). Looks like it should be easy and maybe integrated features, but I don't find it. Is there a standard way to do this?
Steve
APEX 5.0
Hello
to add a box to your classic report using apex_item.checkbox like this API function:
select APEX_ITEM.CHECKBOX(p_idx=>1, p_value=>DEPTNO) as select_dept, DEPTNO as DEPTNO, DNAME as DNAME, LOC as LOC from DEPT
You can access the values checked (for example in a process page)
declare v_deleted_depts number := 0; begin FOR i in 1..APEX_APPLICATION.G_F01.count LOOP v_deleted_depts := v_deleted_depts + 1; delete from dept where deptno = APEX_APPLICATION.G_F01(i); END LOOP; :P1_DEPTCOUNT := v_deleted_depts; end;
P1_DEPTCOUNT (hidden) is just for later interaction with this procedure - for example, you want to present your users with a message of success and error custom as "Deleted & P1_DEPTCOUNT. departments. »
Maybe you would like to add an option to check all checkboxes at once. If so, read this blogpost Blog of Carl Backstrom: September 2007.
Kind regards
Pavel
Edit: don't forget to toggle the leak key for special characters not your column "checkbox.
-
After migrating my APEX 4.1 application to a new environment, one classic report displays a "cannot parse the SQL query: ORA-00942: table or view does not exist" error when the page is displayed. Change the region to report SQL source to somehow (e.g., remove spaces, changing the order of the variables in the WHERE clause) immediately solves the problem, but by returning to the source of the region causes the report error again (the source region valid code without error, however).
Throw the error message:
Select v.id,
v.Col1
of view_vw v
where (: P1_FILTER is null or)
v.col2 = :P1_FILTER)
Do not throw error:
Select v.id,
v.Col1
of view_vw v
where (:P1_FILTER is null or)
v.col2 = :P1_FILTER)
Changing the order of column in the report has the same effect; i.e. He arranges, but return back to the original column order causes the error to display.
It's as if a cached result for the correct select statement used by the report is displayed. However, the application does not use the caching of page/region. Any ideas of what could be the cause?
He solved. Ultimately, all that was necessary was to clear the DB cache using:
alter system flush shared_pool;
-
I'm on version 4.1.1.00.23 of the APEX. I've created a classic report and I am trying to sort. Here's how I'm trying to sort by column name. I have TotPGPV with sorting sequence 1 desc and NewTOTPGPV with sorting sequence 2 desc. I have Count1, Count5 with the sort column. What I'm asking is when the report is run can column sorting to default Count1 and Count5 descending instead of the ascendant. I don't see anywhere to set the default value for the sort column.
Hi - on the report of the page attributes - that you show in your attached screenshot - you can select the columns to sort on the sort sequence as well as the direction of the sort, i.e. for a given column, you can choose to allow sorting on this column, what position this column must be in the sort sequence and whether to sort Ascending or descending by default (i.e. '1' means sort this column first and bottom-up and "1 desc") sort this column first and downhill). Don't forget that once you click on one of the headings of column during execution, it changes your sort settings and these settings are stored in your preferences, that is, they are used again the next time you log in your application and rerun the report.
Kind regards
Marc
Maybe you are looking for
-
Minimized 'Windows' / buttons Taskbar program disappears
When I minimize the windows program or the Explorer window, the 'windows' minimized / button (s) does not appear in the taskbar. I tried restoring the system to access my state previous everything he says after that rebooting is «Incompete system re
-
Windows Live One Care Safety Scanner malfunction...
I received the error message code 0x0C600C03; is anyone know what this means and why my computer stopped during this scanning process?
-
Replacement of the operating system
How to replace XP on my pc with vista from my laptop?
-
I have a windows 7 PC on a network with other computers (running XP earlier versions mainly).The PC has a reader shared with a shared folder, for general use in the folder data.When I create a directory under D:\data it "readonly" attribute is define
-
HP-DV6-2150US has a lot of white stripes on the screen
Hello My computer laptop DV6-2150US, System: Windows 7 64-bit, has a lot of white on the screen when I turn on it, and when I used it, I need help. I've updated the drivers, but the problem persists. Thank you.