Query SQL report filtered RDI
Hi guys,.
There are simple IRR "select * from emp" on my page.
End-user put filters on the report on the Actions menu. I can somehow (on click of a button, etc.) get the new SQL which is registered by the user now?
Thank you
Sunil Bhatia
See this:
http://www.deneskubicek.blogspot.de/2013/05/getting-interactive-report-query.html
Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Apress.com/9781430235125
https://Apex.Oracle.com/pls/Apex/f?p=31517:1
http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
-------------------------------------------------------------------
Tags: Database
Similar Questions
-
Query SQL Report with condition (multiple settings) at the point of the apex?
Hi all
I have a small problem and cannot find a solution.
I need to create reports based on a query, SQL or I.R. Nothing hard here.
I need to add the WHERE clause dynamically with javascript to an element of the Apex.
Even once is not very difficult. I set the agenda of the Summit, put my query like this "SELECT * FROM MYTAB WHERE COL1 =: P1_SEARCH" then I call the page by setting the P1_SEARCH value. For example, COL1 is rowid. It works very well.
But here's my problem. Consider that P1_SEARCH contains several ROWID, and I don't know the number of these values,
(no I don't create a large number of items and create a query with so much GOLD!), I would sotheming like "SELECT * FROM MYTAB WHERE ROWID IN (: P1_SEARCH) with something like: ROWID1, ROWID2 in P1_SEARCH."
I also tried: 'ROWID1, ROWID2' and 'ROWID1', 'ROWID2 '.
but I can't get anything else than the mistake of filter. It works with a value, but as soon as there are two values or more, it seems that the Apex is unable to read the string.
How can I do it please?
Thanks for your help.
Maxmnoscars wrote:
But here's my problem. Consider that P1_SEARCH contains several ROWID, and I don't know the number of these values,
(no I don't create a large number of items and create a query with so much GOLD!), I would sotheming like "SELECT * FROM MYTAB WHERE ROWID IN (: P1_SEARCH) with something like: ROWID1, ROWID2 in P1_SEARCH."I also tried: 'ROWID1, ROWID2' and 'ROWID1', 'ROWID2 '.
but I can't get anything else than the mistake of filter. It works with a value, but as soon as there are two values or more, it seems that the Apex is unable to read the string.For a standard report, see + {message identifier: = 9609120} +.
For an IR - and improve safety by avoiding the risk of SQL Injection, use a collection containing the values in a column instead of a CSV list:
{code}
SELECT * FROM MYTAB WHERE ROWID IN (SELECT c001 FROM apex_collections WHERE collection_name = "P1_SEARCH")
{code}
(Please close duplicate threads spawned by your original question.) -
How can I create an updateable query sql report
The impression that after the upgrade of our APEX version I have more option to create an updated report. Some of my former updateable reports seem to work very well, but some will not update when I click on my "submit" button. AT first, they just refreshed the page and ignored my changes of data in the text field. After tinkering with the non-functional region, now I get an ORA-20001 current version of the data in the database has changed etc.
Help!Hello
OK - first of all, you can always create an update report. When you create a new report, select the report wizard and follow the instructions. When the report has been created you can then move on to be updated. I don't know why it was done this way, but that works.
Second, on reports that return this error, you have all the columns put a column of Standard report? I found that you must include all columns in the data submitted, even if this means that you must create a second instance of a column in your SQL statement, and then do one of the hidden columns. For example, if you created a tabular presentation the wizard on the EMP table, you get EMPNO and EMPNO_DISPLAY, with hidden EMPNO. You will need to do the same for any column are not changed by the user. Something similar can also occur if you performed any of the items INPUT readonly or disabled because they have not passed by the browser.
Andy
-
Dynamic SQL report on Oracle apex4.0
Hello world
I have two reports on a single page. One is the Interactive and another report. Sql based on the selection of the line (using the check box) in the interactive report, sql report should display the selected columns.
Note: the report must be loaded every time that a line is selected and without subjecting it to a button
Can someone please suggest?
I'm using oracle Apex4.0
Concerning
REDAI think that you are storing the values in the boxes. For example, your interactive report query looks like:
SELECT '"AS CHECKBOX, T.*.
OF UNE_TABLE Tand in 'Attributes of report', the CHECKBOX is displayed under "Standard report column.
* 1 a control list hidden input champ.*
It will store a selected values of list of checkboxes. If it is long enough, for example. 1000.
Let's say that the entry name is: P000_X_CHECK_LIST* 2. Create a dynamic Action *.
This dynamic action is supposed to fill the P000_X_CHECK_LIST with a list of values, separated by ': ' character.
These values will be an entry for the SQL report.Name: updated checklist
Event: change
Selection type: jQuery Selector
jQuery Selector: input: checkboxAction: Set
Set type: Expression JavaScript
function check_list() {}
var n = "";
$(":checked").each (function () {}
n = n + (n === « » ? ("': ': ') + $(this) .val ();
})
return n;
}
check_list();Selection type: item (s) - P000_X_CHECK_LIST
* 3. Set the query "SQL report" with this magic formula *.
AND SEARCHED_ITEM IN)
SELECT the item
FROM (SELECT REGEXP_SUBSTR (str, ' [^:] +', 1, LEVEL) point)
FROM (SELECT: P000_X_CHECK_LIST str)
THE DOUBLE)
CONNECT BY LEVEL<= length="" (regexp_replace="" (str,="" '[^:]+'))="" +="">=>
)for example:
SELECT O.*
OF SOME_OTHER_TABLE O
WHERE SEARCHED_ITEM IN)
SELECT the item
FROM (SELECT REGEXP_SUBSTR (str, ' [^:] +', 1, LEVEL) point)
FROM (SELECT *: P000_X_CHECK_LIST * str)
THE DOUBLE)
CONNECT BY LEVEL<= length="" (regexp_replace="" (str,="" '[^:]+'))="" +="">=>
)* 4. Adjust the dynamic Action: *.
Advanced: Event scope: 'live '.
* 5. Add real action more dynamic Action: *.
Action: update
Selection type: region
Region: The region of the "SQL report.Volia!
Best regards
Krzysztof -
Validation of a column in a query SQL-tabular form (updated report)
Hello
I have a tabular form on a table of type SQL Query (editable report). Users can modify/add lines to the table through the form. I would like to have some sort of validation on each column of the report form. Is there a way I can do it by their SUMMIT. Please note that I did not manually create this form... just use the tools in the APEX. Thank you.
SihemIn the same way.
Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
------------------------------------------------------------------- -
Type: SQL Query (updated report)
Hello
Is it possible by default a value of field in a query SQL (editable report) report region under one form of DML when the user clicks on the button "Add Row"? I want to default of some fields in the value list. It's not as simple as a box of HTML element based on a table, there is a 'Default' tab where the value of the field is going. Any help is appreciated, thanks.Hello
If you want to use fixed text, and then modify the default Type to: PL/SQL Expression or a function
Then, assign the default setting: 'TEST '.
Including the quotes around the string
Andy
-
Validation of a region defined as a QUERY SQL type (updated report)
Hello
I am trying to perform validation on a region defined as type of QUERY SQL (editable report). The report has two columns.
One of the columns is a Select list and I want to make sure that the user can select the same value twice
in the report. For example, if the selection list has 5 values A, B, C, D, E, I don't want a user to be able to select
B twice in the report. Will it use javascript to perform validation? If Yes, could someone provide some guidance on
where to embed the javascript? Are there other alternatives than javascript? I create an element that came from a sql query
counts the number of lines where the value of the column is the same. I then used the item in my validation logic. The problem with this logic
is that a user can enter the same value and it is not until the 3rd attempt to select the same value that the validation works using the number of lines which is why I think that I need to somehow capture the value of the selection list when a user selects and then compare it to what is already in the database column Select.
I hope that my question and explanations are clear.
Thanks in advance for your help,
MichaelHello
This can be managed using javascript or a validation of the page. Here is an example of use of javascript: [http://htmldb.oracle.com/pls/otn/f?p=267:7]
To do this, I have:
1 - a model of button which does not send the page but just runs javascript. The model will depend on your theme, but should include:
<a href="#BUTTON_ATTRIBUTES#">#LABEL#</a>
If #BUTTON_ATTRIBUTES # appears on the template, delete it as we need it only once. You must create a new button model based on a copy of your existing across models, shared components. Normally, he would show href = "" #LINK # "-we do not want that this would become doSubmit('buttonname')." If your model does not use tags for buttons, you might need to create one from scratch.
2 - I have updated the button on my page to use this template and then assign the setting button attributes:
javascript:check();
3. in the header of the HTML page, I added:
<script type="text/javascript"> function check() { var e = 0; var f = document.getElementsByName("f02"); var k1; var k2; var v1; var v2; if (f) { for (k1 = 0; k1 < (f.length - 1); k1++) { v1 = f[k1].value; for (k2 = (k1 + 1); k2 < f.length; k2++) { v2 = f[k2].value; if (v1 == v2) { e = 1; } } } } if (e > 0) { alert("Duplicates found!"); } else { doSubmit("SUBMIT"); } } </script>
In this example, SUBMIT is the name of the button and "f02" is the name attribute of the select list items that we want to check - change these needs by your page.
Now, when the Submit button is clicked, instead of directly submit the page, the javascript function is called. This function loops through each selection list and gets its value. Then, he compared it to the remaining items. If there is a match, the e flag is set to 1. After all the items have been verified, if e is not 0, then a message appears. Otherwise, the page is sent.
Andy
-
Of fact steps:
1. group name change and taken out the _50
2 enabled sql reports configuration manager and everything is set up correctly
3. of course I can get the description of the url, which is also OK
4. There is no SSL
5. There is no Proxy configuration
6. I have installed SQL 2008 r2 and I want to install Operations Manager reporting from the same drive
7. There is no value 3 in the journal of reports
Hello
The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the Technet Forums.
http://social.technet.Microsoft.com/forums/en-us/operationsmanagerreporting/threads -
How to convert sql report interactive report
Hi all
I have a Sql report and I want to convert in interactive report. I found the option at the top to the right side "Interactive report migrate" but only 3 option to pass parameters.
In my SQL report (Edit button) is here and I'm passing 6 values through this button change, how can I migrate my SQL report interactive report? Please suggest me...
Thank you
Xandot wrote:
In the report links SQL query looks like:
- case Type
- When 3 then
- (select the T_STYLE Style where STYLEID =?)
- When 1 then
- 'Edit'.
- else '
||','|| ||','|| ||','|| ||',30>Edit' - end
- When 2 then '
| «, » || ||','|| ||','|| ||',30>Edit' - When 1 then '
| «, » || ||','|| ||','|| ||',30>Edit' - end as change
How to implement above interactive links, until now that I created the link on interactive using links like report:
But here its me allow only a single URL, how to put different URLS of in accordance with the condition, please suggest me.
There is no declarative support for generating links conditionally to line level in interactive reports (or indeed in the standard reports). Set the IR link column property to exclude the link columnand generate the link in the request in the original report. Set the Type of display attribute for the column Edit to report Standard column.
-
SQL report should look to the updating of the continuous element
Hello
I have a question about how it is possible to do a SQL report that looks like the element continuous is changed in the browser.
I now have this SQL query:
Select x.first_name, x.Last_name, it. Nom_element, ui.user_item_ID, ui.item_ID, ui.employee_number
of APEX_EBS_ACTIVE_LIST x,.
USER_ITEMS ui,
ELEMENT that she
where x.employee_number = ui.employee_number
and it.item_id = ui.item_id
and ui.employee_number =: p7_employee_number
ORDER BY x.last_name
I have Apex page 7 a popup lov (P7_employee_number. When selection here the employee_number I want that the SQL query displays at the same time the report below on the page with the information on the employee.
Does anyone know how this is possible? I use APEX 4.2
Thank you!
Concerning
ELCOELCO
On point page p7_employee_number have a dynamic action with the event 'change '.
Have an action "Refresh" with as affected the region of you're sql statement.
Make sure that the p7_employee_number element is declared as "Elements of Page to submit" to the region.
Which will refresh the report whenever the item is changed.
It is with the section of the page and the report are not on the same page apex.
Nicolette
-
Report model 101 - bubbles of commentary (used during the creation of SQL report)
Hello
There is a type of report - comment bubbles [Theme - 24, 25, 26]
Has anyone tried creating SQL report using this model.
OR if anyone knows how to use it and what should be the syntax of SQL query for the use of this model.
Thank you
DeepakHi Deepak.
I guess you run APEX 4.2
There is a packaged application included with 4.2 that is called 'Customer Tracker'
Page 50, you will find a rewgion where these how bubles are used (unlock the app to view the source).Concerning
Bottom -
Using elements of the application of interactive report filters
Hello
Can we use elements of application in interactive report filters? If so, how?
Thank you
MachaanTake a look at the creation of a link to the section of interactive reports in the Application Guide of the user for example generator
This example binds, resets and clears the saved report parameters 12345. It also creates an ENAME = 'KING' filter on saved report 12345.
f? p = 100: 1: & SESSION. : I have R_REPORT_12345::RIR, CIR::RIR, CIR:IR_ENAME:KING
If you have an element of the application P1_ENAME the following apply to the example above
f? p = 100: 1: & SESSION. : I have R_REPORT_12345::RIR, CIR::RIR, CIR:IR_ENAME: & P1_ENAME.
If you want a permament for all filter saved reports on the value of point of application, it is best to use the: APP_ITEM_NAME bind variables in your SQL syntax, it really depends on how you define the value of your item and how you interact with it. AFAIK does not request point directly bind variables syntax in the filters, IR etc...
-
HI friends,
I created a sample application.as I want to create a search box for the sql report in the 12299 page 2 application, I created, but the problem I do face is wen I click on the THUMB button I can't get the answer you want... I want to research to make CUST_ID.here I am providing the details of my WS.
WS-MANNULAPTOP
[email protected]
password-manika1982
any help would be appreciated.
thanx.
MannuHi Mannu,
I have modified the report query and changed the Source used for P2_SEARCH to only when the current value in session state is set to zero.
Thank you
Manish -
I created a SQL report, the report asked me if I would like to add a search feature, I said yes,
the function queryies finding ID numbers 1-50.
When I run the application and ask id number 4. the query answer id # 4, 14, 34 and 44.
If I ask the id # 4 should not I get just 4.
why it gives me those other numbers?
Is there a code that indicates just the number that I ask?
Thanks in advanceHon
The SQL report seems to only allow you to search on columns non-cles of the table, and assumes that you will seek any porition of the string you provide in the point of the page search.
You can try to modify your SQL and replace line instr with something like this:
WHERE (: px_report_search IS NULL)
OR SUPERIOR (your_column_name) = UPPER (: px_report_search)
)The upper part is perhaps not necessary if you are not looking for a character string.
The f
-
SQL Reporting Services license
Working on explodes a separate instance of SQL 2014 Reporting Server from a normal SQL 2014 database server. If I run SQL reporting services on an area where the SQL engine is not installed does this burn a separate license of SQL?
Hi Khellian,
We have a dedicated forum for SQL queries. You can post the question here:
http://social.msdn.Microsoft.com/forums/SQLServer/en-us/home
Thank you
Waseemulla S
Maybe you are looking for
-
newly installed firefox 5 on iMac 15 '' Power PC G4 OS x 10.4.11
When you try to start the application, gives message "application cannot be launched-10661.
-
I formatted my hard drive and reinstalled Vista Ultimate Edition on it. How do I re - register my Vista again? It gives me two days to register, but if I go online to sign up, it tells me that the Vista is already registered. I'm confused.
-
Entry of the appellant does not
When a caller is sent to a greeting of unity and the appellant of entry is selected as 'allow callers to enter the directory number when wishes' is selected, nothing happens. When you hit a figure during the welcome, nothing happens. Any ideas? Thank
-
Update blackBerry Curve 8520 smartphone problem
I've updated my Curve 8520 with the last software update, and now the Trackpad only works on the home screen but not on the larger screen. It will scroll up and down, but not to individual applications. Any ideas? Thanks, the update is c. 5.0.0.8
-
Download error - why don't we have several files with the same name?
Since the upgrade to 2015.1 a couple of days, I can't update my site using the feature "only changed files. If I do I get this error, followed by the Muse stops completely.If I change the upload to 'all files and folders' everything is wonderful, ev