With the help of buttons to filter the interactive report
I have an interactive relationship with a default filter set up. Now, I would like to have buttons to modify the SELECT statement used for the report. While I need not make a new page of interactive report for each button. I want to provide the user with a buttons show all reports, view reports on demand and completed report. Everyone will just filter the lines accordingly. What is the best way to achieve this?Thank you!
Hello
You can created a where clause clause in your IR as:
Select...
Of...
where report_type like 'at the request of the reports' and: p1_button_value = 1
or report_type like 'Finished reports' and: p1_button_value = 2
or: p1_button_value = 3
Now, you create your button and an element called: p1_button_value. Function of the key, you click on the value of your Exchange item. If you need display different columns, then go to the column and change the condition:
: p1_button_value = 1
It will be useful,
Tobias
----------------
http://Apex-at-work.blogspot.com/
Tags: Database
Similar Questions
-
Colon in link with the interactive report
Hello
I have two interactive reports which are connected by link column on one of the columns, the problem is that some of the values contains a colon
for example, the value is ABC: 123 , but the linked report a value = 'ABC' is generated in the filter
So I can see there are many sons and based on those I can escape the string using APEX_UTIL. URL_ENCODE so now I get Value = 'ABC % 3 A 123' in the filter that is still nothing.
So I think on the interactive report, I need to somehow convert the return value on the page so the interactive report can deal with it, but I don't see how to do this and I can not find all threads that deal with these.
I don't want to use an element on the page to filter the report the report is sometimes access directly and it would act/look different to other pages where we have it but don't have the problem that these values have no settlers. I can't remove the colon as they come from an external source.
We use the apex 4.1
Any ideas?WOWL wrote:
This isn't the real value, but I think that its close enough for users, if I were to create a dynamic of any idea action that she could do as my knowledge of dynamic action is limited.
Create dynamic Action to replace "_" with ":" when the IR is updated:
When
Event: After refresh
Selection type: Region
Region: IR / / whatever your areaReal Actions
Action: Run the JavaScript Code
Fire on Page load: Yes// Change 'Colon Val' in selector to heading of colon-containing column $("#apexir_CONTROL_PANEL_COMPLETE .fielddata a:contains('Colon Val like')") .each(function () { $(this).text($(this).text().replace('_', ':')); } );
-
link to the interactive report with filter
I tried to put in place a link to an interactive report in passing along a filter setting using the method described in the user guide. I've tried everything I can think of to make it work, but the report always ends by displaying as unfiltered. I don't get any errors, I don't see any filtering. I tried to directly modify the URL and adding the filter data (that is, add IREQ_ParentSeqID:2 to the URL) and I also tried to pass the filter data by creating a branch from another page and have the branch collar data. In both cases, I was unable to make it work. When I create the filter directly in the report, it works fine. Here is a sample
URL: / f? p123:1302:3440331697632217:no:IREQ_ParentSeqD:2
The URL takes me to the correct page but no filtering occurs. Here is the definition of the column in the interactive report:
Column name: ParentSeqID
Column type: NUMBER
I'm under APEX version 3.2.0.00.27Dale,
What happens if you remove the EQUALIZATION of the setting? Theoretically, it shouldn't matter, but I always send my equals as just IR_COLUMN and it works fine.You can try f? p = 123:1302:1023072115021841:NO:IR_ParentSeqID:25
and see if that makes a difference? Just a shot in the water.
If this does not work, try to delete the alias for the moment and sending the column full name and see if that makes a difference. I wonder if its because your alias is in a specific case (per the "")
-
Filter delete automatically the interactive report
Hello world
We are seeing the question in the filter APEX. I applied the action filter-> filter. the filter is applied as expected. then we are navigate current page to another new page. When we return to the old filter page, we are not able to get the filter.
For example: we have the "amount" column I applied a quantity of filter > filter 0 on page 1, then page 2 accessing we. When we return to page 1 we are not able to find the amount > 0 filter
Let me know how to solve this problem.
Kind regards
Sushant
Hi LnTInfotech,
LnTInfotech wrote:
Hi Sunil,
Thanks for your information, but in my case, we do not save the default (primary) report. We have to got to page 1 to page 2 with any filter and return back to page 1 need to show the same filter.
Kind regards
Sushant
Are you compensation/reactivate the interactive link (button, breadcrumb) report? Reference: a link to the interactive reports
As clearing (CIR) /resetting (IRB) interactive report leads to clear the filters applied to the interactive report in the session active.
Note: Filters / other attributes of the action menu applied to the interactive report are specific session, user may choose to save it as a saved report interactive and developer can choose to save as the main report.
For more information about interactive reports see the Oracle APEX documentation and tutorials available on Oracle Learning Library like this:
I hope this helps!
Kind regards
Kiran
-
Filter column position of the interactive report
Hi all!
First of all, sorry my English.
I have a problem with filters standart on the interactive report column heading. Version 4.0.2 APEX. It is interactive report based on the view. Nothing unusual - behavior and the default templates. I have also the region of filter on the page, and after user-press "apply" button my package variables to session state of filter. View used these values. It is worked and filtered interactive report. But when I try also to use the filters on the heading of the column that is nothing past. I have try the column type: report Standart column and display text. I have try the Filter Type column: by default based on the Type of column and the list defined by the use of... Contain. Nothing, as no filter exists at all. Filtering with worked as usual action buttons. I think that this problem in a SEPARATE implicit in this filter. I know that there are quantitative limitation of DISTINCT values with column header filter, but I have nothing in the filter. And even I have type the value and press ENTER, nothing happened. Columns with Date type is fine, but String and number does not.
There is no work around? Thank you.
Solved within "parameterized" view, remove and replace with SELECT with params.
-
How to add the action button for each column in the interactive report
Hi all
I'm new in APEX, so pls forgive my question, if it's simple, but I am struggling with this problem for days now. I have interactive report and you want to add button in each row. What I want to do with this button is the following:
1. to execute some stored procedure in need of that particular line item values
2. returns a (id)
3. go in another page in the application by passing the value out of the procedure (id).
and I'm not find the way to do it. I tried now means:
1. If I add the link of the column, so I can refer to the value of the current row, I don't know how to call the stored procedure and perform actions of rest I need
2. If I add the button to the region, I do not know how to reference the values in column of a particular line of the interactive report...
and I'm stuck...
I just forms and global report and probably still think the "wrong" way .
Any help would be appreciated!
Thank you!!!
user3253917 wrote:
Please update your forum profile with a real handle instead of 'user3253917 '.
I request of the company: there is a customer who always orders the same standard product orders (always order the same products, fair amount is different). I want to make it simple for the user: instead of retyping the command (master and few records details every time yet) I want to copy selected command (copy of the master record and record details) so that the user will only change date order (in master record) and amount fields in record details).
So, in order to give him:
1. the user must be able to choose the order in which I would copy (at page 4), select it,
2. I need to make PL/SQL procedure to insert the new master record (order) and a few record details (order_items) (copy of the order/order_items chosen in step 1)
3. navigate the user to page 29, where the master account at stage 2 insterted appears, so that the user can change the date and quantities.
Any solution will be highly appreciated! Thank you very much!!!
In simple terms:
- Add a link to column "Command copies" in the report on page 4, which sets the COPY request and passes the order ID on page 29.
- On page 29, create a process before header, sequenced to be the first process executed and conditional on REQUEST be EXEMPLARY, which creates a new order as a copy of the order with the ID from page 4 and returns the ID of the new order in the PK command ID of 29 page element.
-
With regard to the interactive report
I've created the interactive report, then I remove the function of adding/deleting/changing inside, because I put my function all in plsql package. I could handle the add and delete function changed, however, is totally giving me a headache. I create an anonymous PL/SQL (process) block when the click on the button Delete, then delete the button will trigger the javascript confirmation. and then in my anonymous PL/SQL block, I key in
myPLSQLpakacage.myDeleteProcedure(:p1_tableid);
When I run the system, the process got through, and the "success" message. However, registration is still there stay. I check my point, process and compare to that of the sample «Document Library 0.92» I just found out they got from the additional hidden (P75_RETURN), after the process, it will go to the Page (and P75_RETURN) which I don't understand.
Please help on this point, why my plsql did not, I try just to run the query in the anonymous pl/sql block as
declare
Identification number;
Start
ID: = v('p1_tableid');
delete from the table where tableId = id;
commit;
end;
but it's still not. So what's the problem with that?Hello
BEGIN/END; It must be for all PL/SQL code.
However, your problem is actually on this piece:
0.01:... Process "reset page": CLEAR_CACHE_FOR_PAGES (AFTER_SUBMIT) 52
0.01: removal of application cache "103" page: 52You have a "reset page" process that runs immediately before your process - this clears the value of P52_TABLEID. This process is usually provided automatically when you create a form by using a wizard. Delete it or the Never value condition.
Andy
-
Apex 4.0 how use the interactive report filter feature?
Hi all
Sorry for the nub question, but if there is a way to create and save 'report' with the filter condition using a function?
What I want to do is to create an interactive table called TASK report.
Table has two columns I want to use for filtering:
FDate - DATE - date
TDate - DATE - to date
Then, I need to create multiple saved reports:
last week the tasks = where FDate between sysdate - 7 AND sysdate...
last month tasks = where FDate between ADD_MONTH(sysdate,-1) AND sysdate...
but,
Interactive report filter does not accept sysdate or calls to functions ADD_MONTH.
Is there an easy way to configure this feature?
TIA
Thomas
Sorry for the double post...
Published by: thomaso on August 6, 2010 12:04Hi Thomas,
Take a look at the type of filter 'Row' in the interactive reports filter dialog box. This allows more dynamic filters, such as those involving SYSDATE or ADD_MONTHS calls. See also the next thread for some more details on this:
Re: Interactive report - line conditional highlighting date function
It will be useful.
Anthony.
-
Any way to change the page that appears when you click the help in the interactive report Menu (the train)... ?
Hello
Yes, for example by using jQuery.
Sample here
http://Apex.Oracle.com/pls/OTN/f?p=40323:63I have in the HTML page header
Example use jQuery from Google.
You can install jQuery on your own server.
Here's a guide for this
http://www.oracleapplicationexpress.com/tutorials/66-integrating-jQuery-into-apexBR, Jari
-
Link to the interactive report with filters
I want to put a link to a page that contains an interactive report. But the link must set up a filter for the interactive report.
For example, if I am looking at a customer, I want a link that sends me the reports, but filtered to show only this customer already.
Is it possible to do?
Thank you
Published by: user1415525 on September 21, 2009 07:34Hello
Set a parameter Anthony
to # #. Example: Set IR_ORDER_ID to #ORDER_ID #.
or for you
Set IR_CUSTOMER_ID to #CUSTOMER_ID #.(Of course you must change the column names)
Greetings,
Roelhttp://roelhartman.blogspot.com/
-
Default icons only for the interactive report
Hi all
I develop a style app catalog and display of images in an interactive report; I can get the interactive report to show the icon when users visit the report the first time, the report is quite simple. It has a series of buttons for Sections of the catalogue and when the user presses the button he fills a hidden element that is in the where the criteria catalogue, all it works fine with one exception:
1. when the user clicks on the button catalogue and interactive data in gear changes; report changes 'View report', I want to maintain state in "Fashion icon" is possible that someone knows how can I have the interactive report only display "icon.
Thank you very much for your help in advance, I tried a couple of things and nothing... any help would be greatly appreciated.958442 wrote:
Hi allWelcome to the forum: read the FAQ and the forum threads sticky (if you have not already done so) and update your profile with a real handle instead of '958442 '.
When you have a problem, you will get an answer faster, more efficient including information as much information as possible from the outset. This should include:
- Full version of APEX
- Complete operating system DB, version, edition, host
- Architecture of Web server (EPG, SST or APEX listener/host operating system)
- Browser (s) and version (s) used
- Theme
- Model (s)
- Region/section type (s) (particularly as to distinguish if a 'report' is a standard report, an interactive report, or indeed a 'update report' (i.e. a tabular presentation))
With APEX, we also had the chance to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproduce things is the best way to solve most of the questions, particularly those relating to the layout and Visual formatting. If you expect a detailed response it is appropriate that you take on an important part of the effort by getting as much as possible with an example of the problem on apex.oracle.com before asking for help on specific issues, then we can see firsthand.
I develop a style app catalog and display of images in an interactive report; I can get the interactive report to show the icon when users visit the report the first time, the report is quite simple. It has a series of buttons for Sections of the catalogue and when the user presses the button he fills a hidden element that is in the where the criteria catalogue, all it works fine with one exception:
1. when the user clicks on the button catalogue and interactive data in gear changes; report changes 'View report', I want to maintain state in "Fashion icon" is possible that someone knows how can I have the interactive report only display "icon.
Thank you very much for your help in advance, I tried a couple of things and nothing... any help would be greatly appreciated.
It also helps explain what you tried (even better, Show us what you have tried on apex.oracle.com).
You can view the IR to the default icon via a dynamic Action: + {: identifier of the thread = 2187972} + (obviously using "ICON" rather than "RETAIL"...)
However, do you really intend to make use of other interactive report features? It seems that the report display is controlled by custom buttons, rather than shares of IR (filters, control breaks etc.). If this is the case then a standard report based on a custom template may be a better option than to try to work around all that offer interactive reports.
-
SEARCH IN THE INTERACTIVE REPORT
I have two pages. I need, thanks to a button, driving some information for another page. But I need to press information for the search field of the interactive report.
I think the name is apexir_SEARCH
How I refer to the search field?
Help me please... - A page element to store the string search say P100_SEARCH_ITEM.
- Affect this element through the use of IE URL that article redirect to URL to this page
- Add onload JS code that sets the IR field with the value of the page element.
$s ('apexir_SEARCH', $v ('P100_SEARCH_ITEM'))
- In addition, add an event handler to set the page element when the search field is changed too
$('#apexir_REPORT #apexir_SEARCH').change(function(){ $s('P100_SEARCH_ITEM',$v('apexir_SEARCH')) });
-
Excel not downloaded in the same order as on the interactive report
I have download to Excel on the interactive report, it is not sorted in the same way? Can I fix this?Hi Doug,.
Could be a quick solution to this solution, you can have a download link on the header of the report area and that it points to a page that contains the same report with the csv model.
Download CSV Report where 3 is the page number for csv output report. *replace click by onclick
or if you want more control over the report, you can create a button on the interactive report region and at the click of the button run a process to download a csv output file.
Put dummy code for creating csv file
DECLARE CURSOR cEmp IS SELECT Eno,Ename,SAL,DEPT FROM emp_table ORDER BY 1 DESC, 2 DESC,4; BEGIN owa_util.mime_header('application/octet', FALSE ); htp.p('Content-Disposition: attachment; filename="Employee.csv"'); owa_util.http_header_close; --Printer Header Row htp.p('Employee ' || ',' || 'Name' || ',' || 'Salary' || ','|| 'Department' || chr(13)); for cThis in cEmp LOOP htp.p( '"'|| cThis.eno ||'"'|| ','|| '"'|| cThis.ename || '"'|| ',' || cThis.sal|| ','|| '"'|| cThis.dept || '"' || chr(13)); END LOOP; htmldb_application.g_unrecoverable_error := true; EXCEPTION WHEN OTHERS THEN htp.p('Download Error ' || SQLERRM || ' with error code ' || SQLCODE); END;
Also, you can disable the download report link in the interactive report menu by going to reports-> Search bar attribute->, under include in the Actions Menu: uncheck the download option.
I hope this helps.
Thank you
Manish -
Calculations in APEX 4.2 on the interactive report and the update form
Hello
I know that people have asked similar questions, but I was not able to do this work. I'm doing some fairly simple math (addition, multiplication) in an application. I have 2 fields (VALUE_A, VALUE_B). I can get the addition and multiplication work in the interactive report, but I also need that it works correctly in the form of update. I also need update form to work dynamically so that if the values are changed, the correction calculated response is shown immediately on the update form and then reflected in the interactive report. I tried the dynamic action, with and without javascript without result. Any help would be appreciated.
Request Express 4.2.6.00.03
model application:
https://Apex.Oracle.com/pls/Apex/f?p=82162:
username: guest
password: Peanut123
Thank you
Rachel
ADD dynamic action
After refresh of region
Set value
ELEMENT the VALUE to change
check the fire on the load
To source, use expression JavaScript
If ($v ("P2_TEST_1")! = null & $v ("P2_TEST_2")! = null)
{
parseInt ($v ("P2_TEST_1")) + parseInt ($v ("P2_TEST_2"));
}
ElseIf ($v ("P2_TEST_1")! = null & $v ("P2_TEST_2") == null)
{
parseInt ($v ("P2_TEST_1"));
}
ElseIf ($v ("P2_TEST_1") == null & $v ("P2_TEST_2")! = null)
{
parseInt ($v ("P2_TEST_2"));
}
on the other
{ 0; }
That add another dynamic action on change POINT P2_TEST_1 and set even with the same expression JavaScrit action. but NOT fire on the load
Do the same for the ARTICLE P2_TEST_2And the same for A times B but change + to *.
Here, I did samples for you with this code.
-
How can I rearrange the columns in the not displayed section of the interactive report.
Hello
My interactive report contains 185 columns and requieres users to build its reports with some columns, but he gets lost between this amount of columns, it would be easier if the columns in the do not display the interactive report section would be automatically sorted, is it possible?
Thank you very much
Hi Eva,
A solution would be to order the column names in alphabetical order. You can create a dynamic JavaScript action to manage the sort.
The shuttle of the attribute IR "Select columns" have the ID "apexir_SHUTTLE_LEFT" or hidden columns and 'apexir_SHUTTLE_RIGHT' to the displayed columns.
The function that you create might look like:
var options = $('select#apexir_SHUTTLE_LEFT option'); var arr = options.map(function(_, o) { return { t: $(o).text(), v: o.value }; }).get(); arr.sort(function(o1, o2) { return o1.t > o2.t ? 1 : o1.t < o2.t ? -1 : 0; }); options.each(function(i, o) { o.value = arr[i].v; $(o).text(arr[i].t); }); var options = $('select#apexir_SHUTTLE_RIGHT option'); var arr = options.map(function(_, o) { return { t: $(o).text(), v: o.value }; }).get(); arr.sort(function(o1, o2) { return o1.t > o2.t ? 1 : o1.t < o2.t ? -1 : 0; }); options.each(function(i, o) { o.value = arr[i].v; $(o).text(arr[i].t); });
You need to find the right timing for dynamic action to run, I suppose the click on the button "Select columns" would do the trick.
Kind regards
Vincent
-
Ideas for work around ORA-06502: character string buffer too small on the interactive report
Hello
It comes to Apex 4.2. We try to create an interactive report. The report is for something similar at a follow-up time. We try to concat a comments column as the sum of the hours. For example,.
Select TASK_NAME, sum (HOURS), to_char (XMLAGG (XMLELEMENT(E,E.COMMENTS ||) ' : ')). Extract ('//Text ()'). GETSTRINGVAL()) USER_COMMENTS of...
This query works fine if we seek only to a window of 1 week. The question that we live, when we expand the scope of the query to include data from 3 months, we hit ORA-06502 interactive report. If we remove this column from the interactive report, then the report works very well.
Anyone has any ideas on how we might be able to work around this problem? I'm guessing we're reached the limit of 32 k on the report. Ideally, we would show just the last X number of comments and then have a link to show all comments
Any help would be appreciated
Thank you
Mike
ListAGG raises an ORA-01489 for varchar2 > 4000 bytes
OP has an ORA - 06502--> IR is running within a limit of 4 k / 32 k.
quick fix: wrap USER_COMMENTS ListAGG in a substr (..., 1, 4000)
Longer solution, use a subquery to modify comments based on ROW_NUMBER() (IE after the nth line, change the null)
with -- simulating data t as (select task_id, sysdate - lv as date_entered ,round(dbms_random.value(1,24)) hours , '-*' || lv || '.' || task_id || '*-' as user_comments from ( select level as task_id from dual connect by level <=10 ), (select level lv from dual connect by level < 1000) ), -- modify data modified_data as ( select task_id, hours, date_entered ,case when row_number() over (partition by task_id order by date_entered desc) < 5 then user_comments else null end USER_COMMENTS from t) select task_id, sum(hours) total_hours, listagg( user_comments ) within group (order by date_entered desc) || case when count(*) >= 5 then '! MORE COMMENTS !' else null end as user_comments from modified_data group by task_id;
Maybe you are looking for
-
I want to write a code that consists of many text messages and two buttons command named 'Teaching to the next' and 'previous '. Text messages are already written and will hide when the program starts. When I press button statement following the seco
-
Hi all. (My laptop is configured with 3) USB 3.0 ports and 1) USB 2.0 port. 2 ports are located @ front left side, and the other 2 are @ right rear of connecting the power supply... How to distinguish between USB 2.0 and 3.0?
-
Windows service install is not accessible and cannot be installed correctly.
WINDOWS SERVICE INSTALL IS NOT ACCESSIBLE AND CANNOT BE INSTALLED CORRECTLY. Suddenly, I can't download my Quicken bank account information or anywhere else. I first was getting the message THAT WINDOWS INSTALLER can NOT ACCESS THE SERVICE DO MAY NO
-
Z5 - accelerometer / auto rotation - does not work
Hi all I hope you can help me with below the question. I'm a very happy new owner Xperia Z5 'almost'. After reading the forum for the last 4 weeks, I finally bought Xperia Z5 only 2 days ago. After moving to iPhone5, I was very pleased until what I f
-
Without warning, my phone closes all applications and a message "Configuring updates step 2 of 3 do not turn off your computer" the computer then stops and restarts automatically. A second message appears "Configuring updates step 3 of 3'. How can I