XML report - conditionally showing a column between other columns
I have a XML report with columns
A, B, C, D
Now, I need to add a new column E between B and C when some condition is met.
A, B, E, C, D
for column E, I kept <? If: column = 'X '? > columnname <? endif? >.
When the condition is satisfied, it displays the columns and values also, but when not a column empty appears worthless, I don't want this empty column when the condition is not satisfied.
We must just see them A, B, D instead of A, B, C, C, D
Ask you to help me with my requirement.
It will be like
Header:
OM expiry Date
Data record:
Tags: Business Intelligence
Similar Questions
-
Needs of report to show all columns
Hello, I have two interactive reports on two different pages, and I'm unable to show all columns. It will automatically appear all the columns. I know that I can show them all with Actions / Select the columns / > >, but I can't expect all of my users to do each time that they reopen the browser. They want that search the IRs without pressing Actions each time.
In my 1st report, I just a column of money, but it will not appear automatically. How can I get the GAL_PUMPED to automatically display column without using the Actions menu each time?
SELECT UFT.SITE_NUM, UFT.TANK, UFT.FUEL_TYPE, sum(UFT.GALLONS) GAL_PUMPED FROM futrak.FUEL_TRANSACTIONS UFT WHERE to_char(UFT.TRAN_DATE,'MON-YYYY') < to_char(SYSDATE,'MON-YYYY') GROUP BY UFT.SITE_NUM, UFT.TANK, UFT.FUEL_TYPE
In my 2nd report, only columns of fth automatically, will not display the columns of ftd. How all the columns in the two tables to automatically display without the Actions menu each time? Also, the unit is supposed to be the last column, but this problem makes the 3rd column after using select columns. I'm stuck with APEX 4.0 and may not use plugins, but I want to hack everything that will help solve this problem. I'd appreciate any help or advice, thank you.
SELECT fth.SITE_NUM, fth.TANK, sum(ftd.GALLONS), ftd.FLEET_ID, ftd.EXPENSE_TO_PROJECT, ftd.EXPENSE_TO_TASK, fth.UNIT_NUM FROM FUEL_USAGE_HEADER fth, FUEL_USAGE_DETAIL ftd WHERE fth.FUEL_USAGE_ID = ftd.FUEL_USAGE_ID AND fth.PROCESSED_DATE is null AND to_char(fth.TRANSACTION_DATE,'MON-YYYY') < to_char(SYSDATE,'MON-YYYY') GROUP BY fth.SITE_NUM, fth.TANK ,ftd.FLEET_ID, ftd.EXPENSE_TO_PROJECT, ftd.EXPENSE_TO_TASK, fth.UNIT_NUM order by 1
Login to your application as a developer when running. Modify the report in the way that your users need. Save the report, select "default report parameters.
-
Interactive report, conditional display of the column binding
Hello
We have obligation to disable editing in case this field is 1 (1 = closed).
Is it possible to disable it on interactive report.
-case when status = 1 link in the column should be disabled (not visible) in order to prevent future changes on the payroll.
SELECT payroll_no, status
OF hr_payroll
ORDER BY payroll_no DESC;
I tried the link below, but it does not work in my case.
Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
Request Express 4.2.2.00.11
Thank you in advance,
Best regards, FM
Status of the INCIDENT WHEN 'ACTIVE' = then
'
OTHER END null deactivate_employee.Of
EMPLOYEES
What exactly is the error you get? What HTML is displayed in the HTML source code?
Just by looking at it, I would say that you need to remove the "/" before the f? p
Don't forget not this way could cause problems if you start using the checksum, then you might want to look at the use of APEX_UTIL. PREPARE_URL to create your URL.
-
Model column name - report Conditions of region
All,
Is it possible to PL/SQL conditions associated with regions that use the COLUMN NAMED models. I already have some conditions in my template, but I wanted the flexibillity to hide and show columns based on other criteria in the report area. I have enough conditions to implement the conditions in the definition of the model. When I put a condition in the report he ignores it. I even tried to never put on the condition and he always showed the column.
Thank you
TomHello
The release of the report model named column is based directly on data SQL itself, so such a condition would not make much difference.
What you could do is assign a class to each TH and TD tag within the model and then conditionally display or hide the column by updating the style of class (use the display: None style to hide the column). I did it here: [http://apex.oracle.com/pls/otn/f?p=267:118]
Andy
-
I try to print the XML report generated by TestStand as a PDF for archive. When the XML report in Internet Explorer, everything seems fine - sequence names are highlighted in blue-green, the neck is green, in case of failure is highlighted in red.
However, when I print this page as a PDF (with BullZip PDF printer, or even the XPS printer), went to all the light of table layout. The result of the object to be measured in the header is colored red or green depending on the State of pass/fail, but sequence and setting names in the form applied to the tables in the body of the report have no highlighting.
The stylesheet modifies what is returned when the XML file is printed?
It is the output seen in Internet Explorer
It is the output seen as a PDF printed from the same file read in Internet Explorer.
Thank you
Matt
Hey Matt,
It is in fact due to a default setting in Internet Explorer to not print the colors of background on Web pages. To change it, simply go to the configuration Page screen (on IE9, you click on the gear icon, then print > Page Setup) and select the option to print background images and colors. After doing this, the printed report must contain the colors you see on your screen.
-
XML report shows the parameters instead of the name of the variable
I would like to than the actual variable name to be included in the report XML rather than the "settings." I tried many things to get there without success. Any ideas?
Ok. It must be in the stylesheet that I use for the XML report. I am an accountant on an older version of the horizontal.xsl due to some customizations, and the problem I have described does not occur when I use the latest version of the stylesheet. Must have been a bug that has been fixed.
Thank you
Kevin
-
Need to print colors different, based on the condition in the xml reports
Hi all
I have a xml report editor who I ned to print different colours according to requirement is possible please help me.
requirement is if any field has all the data in the report I need to print this area as 'Red' color, please help me if it is possible to rtf model.
Thank you
Clément
Please try this
No data found ?end> -put all the code in a form field
In your example, the EMPNUM field has no data then it will display "No data found" in red.
And if data are available, it will display the actual value.
Add this logic to all your individual fields.
Just want to know - if none of the columns were not given, in this case - that we
EMPNUM PERSONID2 EMP_FULL_NAME NATIONALITY NATIONAL_ID Date of birth GCC_PENSION No data found No data found No data found No data found No data found No data found No data found (GOLD)
EMPNUM PERSONID2 EMP_FULL_NAME NATIONALITY NATIONAL_ID Date of birth GCC_PENSION No data found -
Shows the columns having / sum not zero
We have a report that HAV total of twenty columns.
Whenever we run you report (dynamic query) random columns have sum = zero
We want to show only eachtime the columns having the amount greater than zero.
concerning
Jean MarcHi John,.
OK - I've tested this here [http://htmldb.oracle.com/pls/otn/f?p=267:43]. The report on the left shows/hides the SAL and COMM columns according to totals. The report on the right shows the complete data. Change the Dept to see this implemented.
There are other methods available, but that's what I did:
The select dept list (item name is P43_DEPTNO) is simply a list of departments and a NULL option that returns 0 (zero).
This report is a SQL statement of:
SELECT EMPNO, ENAME, SAL, COMM FROM EMP WHERE :P43_DEPTNO = 0 OR :P43_DEPTNO = DEPTNO ORDER BY ENAME
I have a region in the position after the header that uses "No. Template" and contains two pieces of Hidden - P43_SAL and P43_COMM.
I have a calculation of element, running "Before Header", which sets P43_DEPTNO to 0 if it is NULL.
I have a PL/SQL unconditional process, "to charge - before Header", which has the following code to the currently running process:
DECLARE vSAL NUMBER; vCOMM NUMBER; BEGIN SELECT NVL(SUM(SAL),0), NVL(SUM(COMM),0) INTO vSAL, vCOMM FROM EMP WHERE :P43_DEPTNO = 0 OR :P43_DEPTNO = DEPTNO; :P43_SAL := vSAL; :P43_COMM := vCOMM; END;
And, finally, on the SAL column in the report, I put the Condition Type for 'value of element in the Expression 1. = zero' and the Expression 1 is: P43_SAL. And even on the COMM, but the Expression 1 column: P43_COMM
When the page is loaded, the process is executed and SAL and COMM totals are calculated and inserted in P43_SAL and P43_COMM. The report runs and conditions check the values of these two hidden items - if a is not null, then the column is displayed.
Andy
-
XML report in the Arab connection in Oracle apps
Hello
I created an XML report in Oracle applications, data well are English connection.
But when we Arab connection login then report shows all the data.
The data is not even after hard coding values.
No idea for the question...
This is the main query in the report.
SELECT
PAC1. PAYROLL_ID,
PAC1. PAYROLL_ACTION_ID,
HR_PAYROLLS. DISPLAY_PERIOD_NAME (PAC1. PERIOD_NAME PAYROLL_ACTION_ID),
PRO. PAYROLL_NAME
TO_CHAR(SYSDATE,'DD-MM-YYYY') REPORT_DATE1
OF pay_payrolls_f pro.
pac1 pay_payroll_actions
PER_TIME_PERIODS_V V
WHERE pac1.payroll_id = pro.payroll_id (+)
AND pac1.effective_date BETWEEN pro.effective_start_date (+) AND pro.effective_end_date (+)
AND DECODE (PAC1. ACTION_TYPE, 'H', NVL (pay_payroll_actions_pkg.decode_cheque_type (pac1.business_group_id), HR_GENERAL. DECODE_LOOKUP ('ACTION_TYPE', PAC1. ACTION_TYPE)), ', DECODE (function, instrb (PAC1. LEGISLATIVE_PARAMETERS,'SLA_MODE = Y'), 0, HR_GENERAL. DECODE_LOOKUP ('TRANSFER_TO_LEDGER', 'GL'), NULL, HR_GENERAL. DECODE_LOOKUP ('TRANSFER_TO_LEDGER', 'GL'), HR_GENERAL. DECODE_LOOKUP ('TRANSFER_TO_LEDGER', 'ALS')), HR_GENERAL. DECODE_LOOKUP ('ACTION_TYPE', PAC1. ACTION_TYPE)) = 'run '.
AND PAC1. Payroll_id = 61-: P_PAYROLL_ID
AND PAC1.time_period_id = V.time_period_id
AND to_char(v.start_date,'MM-YYYY') = ' 01-2013' -: P_MONTHnext time use EBS associated forums - https://forums.oracle.com/forums/category.jspa?categoryID=3
AT4
looks like that you do not have some data for the Arabic languagein your main query that you have PER_TIME_PERIODS_V which inspired by HR_LOOKUPS that depend on the language of session
CREATE OR REPLACE VIEW HR_LOOKUPS ... where FLV.LANGUAGE = userenv('LANG') ...
in order to verify the data in HR_LOOKUPS to the Arabic language
You can check in the query without PER_TIME_PERIODS_V
You can also change your main query as
select t.PAYROLL_ID, t.PAYROLL_ACTION_ID, t.PERIOD_NAME, t.PAYROLL_NAME, t.REPORT_DATE1 from (SELECT PAC1.PAYROLL_ID, PAC1.PAYROLL_ACTION_ID, HR_PAYROLLS.DISPLAY_PERIOD_NAME(PAC1.PAYROLL_ACTION_ID) PERIOD_NAME, PRO.PAYROLL_NAME, TO_CHAR(SYSDATE, 'DD-MM-YYYY') REPORT_DATE1, PAC1.time_period_id FROM pay_payrolls_f pro, pay_payroll_actions pac1 WHERE pac1.payroll_id = pro.payroll_id(+) AND pac1.effective_date BETWEEN pro.effective_start_date(+) AND pro.effective_end_date(+) AND DECODE(PAC1.ACTION_TYPE, 'H', NVL(pay_payroll_actions_pkg.decode_cheque_type(pac1.business_group_id), HR_GENERAL.DECODE_LOOKUP('ACTION_TYPE', PAC1.ACTION_TYPE)), 'T', DECODE(instrb(PAC1.LEGISLATIVE_PARAMETERS, 'SLA_MODE=Y'), 0, HR_GENERAL.DECODE_LOOKUP('TRANSFER_TO_LEDGER', 'GL'), NULL, HR_GENERAL.DECODE_LOOKUP('TRANSFER_TO_LEDGER', 'GL'), HR_GENERAL.DECODE_LOOKUP('TRANSFER_TO_LEDGER', 'SLA')), HR_GENERAL.DECODE_LOOKUP('ACTION_TYPE', PAC1.ACTION_TYPE)) = 'Run' AND PAC1.Payroll_id = 61 --:P_PAYROLL_ID ) t left outer join PER_TIME_PERIODS_V V on (t.time_period_id = V.time_period_id AND to_char(v.start_date, 'MM-YYYY') = '01-2013' --:P_MONTH )
-
XML report generates xml instead of output pdf output
Hi all
I've created a report using BI publisher. When I'm runnng report it's to show the xml output instaead of pdf format... The report is carried out with a warning message. I am able to see the other outputs (XML) reports in pdf format. But this report is having some problems, which I am not able to identify.
Help, please...
Thank you
DjarufPatch is 12395372 and can be downloaded from My Oracle Support. It isn't really a patch, but a special installation of Windows of BIP Office of EBS
How to download Oracle XML Publisher Desktop 5.6.3 (BI Publisher 10g)? [556032.1 ID]
HTH
Srini -
Implement conditional read-only column in the set of two Tables
Hello
I would like to implement a mechanism of "read-only conditional" on a column in a table with two tables in total to be involved in this situation.
I have a demo/proof of concept of the present and things work as expected in the tests I've done; However, I would like any input as to if there is a better way, etc.
This is a far-fetched but demo that illustrates the main ingredients however. Oracle 10.2.0.4 version 64 bit on Windows Server 2008 Release 2 64-bit.
-Table DDL and small sample data
-The rules relating to the conditional objective of read-onlycreate table band( band_id number primary key, band_name varchar2(20), status varchar2(20) ); create table band_member( band_id references band, member_name varchar2(20) ); insert into band values(3, 'The Rutles', 'prefab4'); insert into band values(4, 'The Beatles', 'established'); commit; insert into band_member values(3, 'Ron Nasty'); insert into band_member values(3, 'Dirk McQuickly'); insert into band_member values(3, 'Stig O''Hara'); insert into band_member values(3, 'Barrington Womble'); commit; insert into band_member values(4, 'John Lennon'); insert into band_member values(4, 'Paul McCartney'); insert into band_member values(4, 'George Harrison'); insert into band_member values(4, 'Ringo Starr'); commit;
1 is not allowed to update band.band_name when band.status = 'prefab4'
2 is not allowed to insert/update / deletion of lines of band_member when the parent a band.status row = 'prefab4'
-The triggers used to implement the goal (current solution)
-Quick example of test for each conditioncreate or replace trigger t1 before update of band_name on band for each row when (old.status = 'prefab4' or new.status = 'prefab4') begin raise_application_error(-20010, 'can not update band_name when status=''prefab4'''); end; / create or replace trigger t2 before insert or update or delete on band_member for each row declare l_status band.status%type; l_band_id band_member.band_id%type; cursor l_cursor (p_band_id number) is select status from band where band_id = p_band_id for update; begin if updating or inserting then l_band_id := :new.band_id; else l_band_id := :old.band_id; end if; open l_cursor(l_band_id); fetch l_cursor into l_status; close l_cursor; if l_status = 'prefab4' then raise_application_error(-20011, 'can not update child when parent status=''prefab4'''); end if; end; /
As I said, while my simple tests seem to show the correct results, there I was wondering if there could be a better way to implement such functionality.update band set band_name = 'THE RUTLES' where band_id = 3; update band * ERROR at line 1: ORA-20010: can not update band_name when status='prefab4' ORA-06512: at "DEMO.T1", line 2 ORA-04088: error during execution of trigger 'DEMO.T1' update band_member set member_name = 'RON NASTY' where member_name = 'Ron Nasty'; update band_member * ERROR at line 1: ORA-20011: can not update child when parent status='prefab4' ORA-06512: at "DEMO.T2", line 18 ORA-04088: error during execution of trigger 'DEMO.T2'
I tried to provide the information needed, but if I managed to omit something, please let me know.
See you soon,.
ChalfontHi, Chalfont,
user13146957 wrote:
...
I'm went to the road to slider to add the clause "for update" to force the serialization on the line - i.e. the idea was to avoid the case where another session might want to update the State a moment after my extraction but before the rest of the finished code. Who is?No, not really. The trigger on tape prevents anyone else from ever change their status from 'prefab4' to something else (or vice versa).
Even apart from this, you put some efforts to prevent something which will be allowed a fraction of a second later (or maybe the other way around). What is significant in that split second?I didn't think about other ideas rather than the approach of the trigger, but came up empty, somehow, to this day. I am open to resort to others and make some schema changes is not off the table either.
FGA (Fine grain access), or his brothers and sisters more older VPD (virtual private database) can also do what you want, but instead of trigger an error, they ignore the illegal action. This can be an advantage or a disadvantage, depending on your needs.
Another approach is for the owner of the table, not to grant INSERT, UPDATE or DELETE privileges to anyone: all DML must be made via a procedure (or procedures) belonging to the owner of the table, which grants EXECUTE privileges instead of other privileges.
-
Show hide columns generates error on the page if not found data
Hello
Has anyone ever encountered a situation where a page error when using the feature show hide column and no data is returned.
My region to report is based on SQL and when calling at the start page or when restrictions are no match all all the data that appears is the message "No data found" by default. The method used, I pulled Carl Backstrom (RIP) application.
< script type = "text/javascript" >
function html_HideBasedOnCheckBox (pThis, pThat) {}
if(pThis.Checked == true) {}
html_ShowCellColumn (pThat);
} else {}
html_HideCellColumn (pThat);
}
}
function getCellIndex (pRow, pCell) {}
If (document.all) {}
for (var i = 0; i < pRow.cells.length; i ++) {}
If (pRow.cells [i] == pCell) {l_Count = i}
}
} else {}
l_Count = pCell.cellIndex;
}
Return l_Count;
}
function html_HideCellColumn (pId) {}
var l_Cell = $x (pId);
var l_Table = html_CascadeUpTill (l_Cell, 'TABLE');
var l_Rows = l_Table.rows;
l_CellI = getCellIndex (l_Cell.parentNode, l_Cell);
for (var i = 0; i < l_Rows.length - 1; i ++) {}
html_HideElement (l_Rows.cells [l_CellI]);
}
return;
}
function html_ShowCellColumn (pId) {}
var l_Cell = $x (pId);
var l_Table = html_CascadeUpTill (l_Cell, 'TABLE');
var l_Rows = l_Table.rows;
l_CellI = getCellIndex (l_Cell.parentNode, l_Cell);
for (var i = 0; i < l_Rows.length - 1; i ++) {}
html_ShowElement (l_Rows [i]. Cells [l_CellI]);
}
return;
}
< /script >
The attributes of HTML form elements is: onclick = "html_HideBasedOnCheckBox (this, this.value)" "
The LoV for this box is static for a column.
This set works very well if the data is returned. It must have something to do with the topics defined in the SQL code and therefore are not displayed when no data is returned. The code is then try to hide or something that does not exist.
The part where he falls is during the setting of the variables:
function html_HideCellColumn (pId) {}
var l_Cell = $x (pId);
var l_Table = html_CascadeUpTill (l_Cell, 'TABLE');
var l_Rows = l_Table.rows;
l_CellI = getCellIndex (l_Cell.parentNode, l_Cell);
... and more specifically the last variable setting: l_CellI = getCellIndex (l_Cell.parentNode, l_Cell);
Does anyone know how I can get around this by using the method of SQL report i.e. Select col1 col2 "Column 1", "column 2" From myTable etc. or if it is possible to make up for it at the beginning that is
If NO_DATA
then
dont_hide/display_any_columns that_dont_exist
on the other
var l_Cell = $x (pId);
var l_Table = html_CascadeUpTill (l_Cell, 'TABLE');
var l_Rows = l_Table.rows;
l_CellI = getCellIndex (l_Cell.parentNode, l_Cell);
for (var i = 0; i < l_Rows.length - 1; i ++) {}
html_ShowElement (l_Rows [i]. Cells [l_CellI]);
}
return; ........
???
See you soon,.
MikeHi Mike,.
In fact, you can check the existence of the cell:
var l_Cell = $x(pId); if (l_Cell) { rest of the code to hide the column }
As long as l_Cell makes reference to a valid page element, then the if test passes and the rest of your code can work.
Andy
-
Compare the report not showing the changes
I modified an app engine select commenting on a line. I then did a report compares against a database that do not have the code
The comparison report shows no difference between the two DB
What Miss me?
If you change only the SQL, then you need compare SQL objects. The report you are looking at is only for the engine program of Application objects. This will only show the changes made to the program properties (things like the records of State or temporary tables, attached to the program).
Another report will show the changes for Application Sections of the engine, which would include things like the addition of new sections, adding or removing a step of a section or changing the properties of a step or a section.
Also, to see changes made to the Application Engine PeopleCode, you'd have to glance at the Application Engine PeopleCode compare report (note that peoplecode types are detailed in separate reports, but all the SQL types appear in the same report).
Kind regards
Bob
-
How can I adapt the decision XML report that comes with a warning event?
Through the web determinations warning events can be used.
To make visible warning events in the response following XML must be added to the XML query:
< typ:show - events > true < / typ:show - events >
When a warning event is present in the XML response I also get a report of decision with report-style = 'basic attributes.
When many warning events are present in the output XML file, this has a negative impact on performance.
It's the reason I'm looking for a possibility to delete or configure the standard decision report that comes with a warning event.
Is this possible?You can make smaller decision reports by setting the "silent" or "Invisible" option on attributes (see 'Hide information in a record of decision' in http://docs.oracle.com/html/E38269_01/toc.htm the political Oracle © modelling User Guide)
It's really the only option to change the records of decision.
See you soon
Frank -
How to create an accordion for a report that shows one of
Hi all
How can we create an accordion in a report that shows the details of the line in a form below, and then when we push the button of Update of the form, it must update the columns close the accordion and update this one line in the report.
I have seen two examples
http://HTMLDB.Oracle.com/pls/OTN/f?p=11933:131:1811032969809934:no:RP:
http://HTMLDB.Oracle.com/pls/OTN/f?p=11933:77:1811032969809934:no:RP:
Secondly a loading actually a new page but I do not know how to update the form, and then close the accordion region and then refresh the single line. Here pointers will be of great help.
Thank you and best regards,
VikasVikas,
I slightly modified on of my examples alumni and you will find everything here:
http://Apex.Oracle.com/pls/OTN/f?p=31517:241
Denes Kubicek
------------------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
------------------------------------------------------------------------------
Maybe you are looking for
-
Is it possible to install the same recovery XP 2 times on 2 partitions
Dear people. Is it possible to install the Recovery XP home 2 times on 2 partitions on my Satellite?I want one as a desktop and one for music downloads. When I boot the second new system installed there say: installation is not complete, please reins
-
Hello. I need to print a serial number using the zebra TLP 2844 printer. I am connected by USB, as I don't have serial port and parallel port. I could print my serial number using the tools of Zebra printer (see the screen shot for more details) with
-
SBS 2008 compatibility with OS windows XP/7
If the server at my workplace computer is running windows SBS 2008, and we have 2 clients running Windows XP Professional, I can configure three new customers with Windows 7. I'm not sure that the it guy who has implemented the network upward origina
-
Big problems; Maybe someone can help. When I download, even if everything looks OK on my screen of Rhapsody, once that I disconnect my Sansa Clip +, each song actually was written twice. In addition, all previous songs on my music video were crushed
-
EA2700 Firmware Upgrade for the installer using Internet Explorer 11
I can't login is no longer in my EA2700 settings since I upgraded to IE11. He told me that the browser is not supported. I was able to connect from another computer to see if there is a firmware update, but found nothing. Does anyone have an idea i