Interactive Report with specific rows editable
I have an interactive reports, with the edit (pencil) link to a maintenance form. I only want the link to show for specific records in the reports. Can you put a condition in the link column to the pencil for certain records?
If so, how can you access the value of the field? ie. I need to check the value of 'USER_NAME' in the select below against :APP_USER
select A.pk_id as "PK_ID",
A.fk_sis_user as "FK_SIS_USER",
A.list_name as "LIST_NAME",
A.list_description as "LIST_DESCRIPTION",
B.user_name as "USER_NAME",
A.creation_date as "CREATION_DATE"
Not exactly what you are asking for, but it may give you an idea hot to create conditional
icon and link.
From always excellent examples from Denes Kubicek:
http://apex.oracle.com/pls/otn/f?p=31517:23:3086073313243153::NO
HTH
Thomas
Similar Messages
-
Interactive report with checkbox and editable field
Hi,
For a project I'm working on I need to create a interactive report in Apex 3.2 with the ability to select lines and to modify one of the columns in the report.
To do this, I started off by adding these two fields to the selection query of my IR:
apex_item.checkbox(1, product_number) cb
and
apex_item.text (2,QTY_TO_ORDER) QTY_TO_ORDER
cb is the checkbox files, and QTY_TO_ORDER is the editable field.
That worked like a charm and I got my two fields in the report.
To process the values, I added this page process, wich for now should only store the "product number" and "QTY_TO_ORDER" fields in a table.
BEGIN
FOR i in 1..APEX_APPLICATION.G_F01.count LOOP
insert into mytmptable values (APEX_APPLICATION.G_F01(i),APEX_APPLICATION.G_F02(i));
END LOOP;
commit;
end;
However, this doesn’t work the way I want it to work. When I check the checkboxes of two rows, it will store two rows with the right product numbers, but it will take the top two QTY_TO_ORDER field of the table regardless of which ones are checked. I was able to solve this problem, by adding a rownum to the query and using the rownum as the value for the checkbox. Since I still need the product_number and qty_to order fields I made them both text fields.
I changed my page process to:
BEGIN
FOR i in 1..APEX_APPLICATION.G_F01.count LOOP
insert into mytmptable values (APEX_APPLICATION.G_F02(APEX_APPLICATION.G_F01(i)),
APEX_APPLICATION.G_F03(APEX_APPLICATION.G_F01(i)));
END LOOP;
commit;
end;
This seemed to solve the problem, and I now got the right values in the table, unless I used sorting in the report... As soon as I sorted the report in a way different than by rownum, I got the wrong values in the table. The reason for this is of course that my insert just selects the nTh row from the table, and my rownums aren't dynamic.
I've found a lot of examples on the internet using '#ROWNUM#' in the selection, which should dynamically generate a rownum in the report. This seems to work in normal report, but in a interactive reports, the literal values '#ROWNUM#' shows up.
Is there any way to solve this issue?Hi,
Try with 3 fields:
apex_item.checkbox(1, product_number) cb,
apex_item.text (2,QTY_TO_ORDER) QTY_TO_ORDER,
apex_item.hidden(3, product_number) prod_no
The hidden field should be display as a hidden column.
Then your process can be:
BEGIN
FOR i in 1..APEX_APPLICATION.G_F01.count LOOP
FOR j in 1..APEX_APPLICATION.G_F03.count LOOP
IF APEX_APPLICATION.G_F01(i) = APEX_APPLICATION.G_F03(j)) THEN
insert into mytmptable values (APEX_APPLICATION.G_F01(i),APEX_APPLICATION.G_F02(j));
exit;
END IF;
END LOOP;
END LOOP; -
Interactive report with single row select
Hi,
Is it possible to create an interactive report that has a single row select column i.e. you can only select one row and when you select another row it deselects any row selected before, simular to a list of values but with the functionionality of an IR report.
Thanks in advanceHi,
Try adding this to the query of your report:
select ...
apex_item.radiogroup(1, some_unique_column) sel
from ...You didn't say how you want to use this, but when the page is submitted the array apex_application.g_f01 may contain either none or exactly one element, which will be the some_unique_column value of the selected row.
Luis -
Interactive Report with Null Columns
I've got a user who wants to export an interactive report, and he needs certain columns to appear on the export for him to fill the data in later (this is an intermediate step, while we work on getting all the data he needs in to the database). I've created the report query, and there are a handful of null/empty columns (to preserve the correct order for the export). When I try to add this query to APEX in an interactive report, I get a "ORA-00001: unique constraint (APEX_040000.WWV_FLOW_WORKSHEET_COLUMNS_UK2) violated" error.
Googling around shows me that this happens because of similarly-named columns, and the solution is to provide aliases to all columns. My report has aliases on all columns, but I still cannot create an interactive report. I've tried changing the null columns to empty strings, as well as enclosing the aliases in double-quotes, but nothing works. I can however use my original query to create a standard report, but due to the export requirement, this isn't ideal.
I was able to create the interactive report with one null column, and then edited the report source to add in the others. This had to be done one at a time, since trying to add multiple null columns at the same time gives the same error again. Unfortunately, when I try and run the page, I get an "ORA-20001: get_dbms_sql_cursor error ORA-00918: column ambiguously defined" error.
My original query:
select customer.customer_name as customer,
project.name as project_name,
trunc(project.estimated_end_dt) as due_date,
project_status.project_status_desc as status,
null as revenue,
project.baseline_effort as baseline_hours,
null as projected_cost,
null as est_gain_loss,
project.actual_hours as actual_hours,
project.estimated_hours as projected_hours,
null as projected_cost,
null as projected_gain_loss,
null as roi
from project,
customer
where customer.customer_id = project.customer_id
and project.inactive_ind = 0
and project.customer_id is not null
and project.estimated_end_dt >= :DTP_P50_STARTDT
and project.estimated_end_dt <= :DTP_P50_ENDDT
order by customer.customer_name,
project.estimated_end_dt; Can someone tell me a way to create an interactive report with multiple null columns?Hi shimmoril,
The problem is likely that you have two columns aliased as "projected_cost" (7th column and 11th column).
Hope this helps,
John
If you find this information useful, please mark the post "helpful" or "correct" so that others may benefit as well.* -
Interactive Report with union all in the query
I have an interactive report with the following query in the report region:
select property,saddr1,upostdate,sotherdate1,journal_control-1000000000,account,sdesc,uref,
suserdefined1,trans_notes,samount,detail_notes
from journal_entries
union all
select property,saddr1,upostdate,sotherdate1,journal_control-700000000,account,sdesc,uref,
suserdefined1,trans_notes,stotalamount,detail_notes
from charge_entries;
This gets translated as listed below during runtime. I am trying to pass a value to both SELECT statements instead of the just the bottom select statement. Is this possible using interactive reports.
select
PROPERTY,
SADDR1,
UPOSTDATE,
SOTHERDATE1,
ACCOUNT,
SDESC,
UREF,
SUSERDEFINED1,
TRANS_NOTES,
SAMOUNT,
DETAIL_NOTES,
"JOURNAL_CONTROL-1000000000" "JOURNAL_CONTROL-1000000000"
from (
select property,saddr1,upostdate,sotherdate1,journal_control-1000000000,account,sdesc,uref,
suserdefined1,trans_notes,samount,detail_notes
from journal_entries
union all
select property,saddr1,upostdate,sotherdate1,journal_control-700000000,account,sdesc,uref,
suserdefined1,trans_notes,stotalamount,detail_notes
from charge_entries
) r
where ("PROPERTY" = :APXWS_EXPR_1)
0.14: IR binding: ":APXWS_EXPR_1"="APXWS_EXPR_1" value="prop1"
Thanks for any help,
JimThe bottom query is actually the third query, it encompasses the two that are unioned. It is generated by APEX to allow for the search facility - to achieve what you want ignore the larger query, and get your query working in something like SQL developer. Once it's working then put it into APEX, and the search wrapper will be generated.
select property,saddr1,upostdate,sotherdate1,journal_control-1000000000,account,sdesc,uref,
suserdefined1,trans_notes,samount,detail_notes
from journal_entries
where property = :YOUR_CRITERIA
union all
select property,saddr1,upostdate,sotherdate1,journal_control-700000000,account,sdesc,uref,
suserdefined1,trans_notes,stotalamount,detail_notes
from charge_entries
where property = :YOUR_CRITERIA;
Then you need to think about how you are using the report, if it is linked to from another report, then create a hidden variable and pass it from the parent.
If the report is standalone , then you could create an item , that can be edited and when submitted, re-executes the report based on the criteria entered.
Steve
Hot and bothered in sunny Dubai -
Hi,
i just wanted to know how to create interactive reports with check box and whether we can use av with interactive reports.hi,
this the code for interactiv ALV
*& Report ZINT_ALV
REPORT zint_alv.
TYPE-POOLS:slis.
TABLES:mara,
makt,
mseg.
DATA:BEGIN OF itab OCCURS 0,
matnr LIKE mara-matnr,
maktx LIKE makt-maktx,
END OF itab.
DATA:BEGIN OF itab1 OCCURS 0,
mblnr LIKE mseg-mblnr,
menge LIKE mseg-menge,
meins LIKE mseg-meins,
werks LIKE mseg-werks,
END OF itab1.
DATA:BEGIN OF itab2 OCCURS 0,
mblnr LIKE mseg-mblnr,
budat LIKE mkpf-budat,
END OF itab2.
DATA:fcat TYPE slis_t_fieldcat_alv,
fcat1 TYPE slis_t_fieldcat_alv,
fcat2 TYPE slis_t_fieldcat_alv,
eve TYPE slis_t_event,
eve1 TYPE slis_t_event.
DATA:t_mat LIKE mara-matnr,
t_doc LIKE mseg-mblnr,
s_mat LIKE mara-matnr,
g_repid LIKE sy-repid,
subtot TYPE slis_t_sortinfo_alv,
g_subtot LIKE LINE OF subtot.
SELECTION-SCREEN:BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
SELECT-OPTIONS:mat FOR mara-matnr OBLIGATORY.
SELECTION-SCREEN:END OF BLOCK blk1.
INITIALIZATION.
PERFORM build_fcat USING fcat.
PERFORM build_eve.
START-OF-SELECTION.
PERFORM get_data.
PERFORM dis_data.
*& Form build_fcat
text
-->T_FCAT text
FORM build_fcat USING t_fcat TYPE slis_t_fieldcat_alv.
DATA:wa_fcat TYPE slis_fieldcat_alv.
wa_fcat-tabname = 'ITAB'.
wa_fcat-fieldname = 'MATNR'.
wa_fcat-ref_fieldname = 'MATNR'.
wa_fcat-ref_tabname = 'MARA'.
wa_fcat-seltext_m = 'Material'.
wa_fcat-input = ' '.
wa_fcat-edit = 'X'.
wa_fcat-input = 'X'.
wa_fcat-key = 'X'.
APPEND wa_fcat TO t_fcat.
CLEAR wa_fcat.
wa_fcat-tabname = 'ITAB'.
wa_fcat-fieldname = 'MAKTX'.
wa_fcat-seltext_m = 'Description'.
APPEND wa_fcat TO t_fcat.
CLEAR wa_fcat.
ENDFORM. "build_fcat
*& Form build_eve
text
FORM build_eve.
DATA:t_eve TYPE slis_alv_event.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = eve
EXCEPTIONS
LIST_TYPE_WRONG = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. "build_eve
*& Form get_data
text
FORM get_data.
SELECT maramatnr maktmaktx INTO CORRESPONDING FIELDS OF TABLE itab
FROM mara INNER JOIN makt
ON maramatnr = maktmatnr
WHERE mara~matnr IN mat.
ENDFORM. "get_data
*& Form dis_data
text
FORM dis_data.
g_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = g_repid "'ZINT_ALV'
i_callback_user_command = 'USER_COMMAND'
i_grid_title = 'Interactive ALV'
it_fieldcat = fcat
it_events = eve
TABLES
t_outtab = itab
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. "dis_data
*& Form user_command
text
-->U_COM text
FORM user_command USING u_com LIKE sy-ucomm sel_field TYPE slis_selfield.
CLEAR fcat1.
CASE u_com.
WHEN '&IC1'.
READ TABLE itab INDEX sel_field-tabindex.
IF sel_field-fieldname = 'MATNR'.
IF sy-subrc = 0.
t_mat = itab-matnr.
PERFORM build_cat1 USING fcat1.
PERFORM build_eve1.
PERFORM get_data1.
PERFORM dis_data1.
ENDIF.
ENDIF.
SET PARAMETER ID 'MAT' FIELD t_mat.
CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
ENDCASE.
ENDFORM. "user_command
*& Form build_fcat1
text
-->T_FCAT1 text
FORM build_cat1 USING t_fcat1 TYPE slis_t_fieldcat_alv.
DATA:wa_fcat1 TYPE slis_fieldcat_alv.
wa_fcat1-tabname = 'ITAB1'.
wa_fcat1-fieldname = 'MBLNR'.
wa_fcat1-seltext_m = 'Material Doc.'.
APPEND wa_fcat1 TO t_fcat1.
CLEAR wa_fcat1.
wa_fcat1-tabname = 'ITAB1'.
wa_fcat1-fieldname = 'MENGE'.
wa_fcat1-seltext_m = 'Quantity'.
wa_fcat1-do_sum = 'X'.
APPEND wa_fcat1 TO t_fcat1.
CLEAR wa_fcat1.
wa_fcat1-tabname = 'ITAB1'.
wa_fcat1-fieldname = 'MEINS'.
wa_fcat1-seltext_m = 'UOM'.
APPEND wa_fcat1 TO t_fcat1.
CLEAR wa_fcat1.
wa_fcat1-tabname = 'ITAB1'.
wa_fcat1-fieldname = 'WERKS'.
wa_fcat1-seltext_m = 'Plant'.
APPEND wa_fcat1 TO t_fcat1.
CLEAR wa_fcat1.
g_subtot-spos = 1.
g_subtot-fieldname = 'MBLNR'.
g_subtot-tabname = 'ITAB1'.
g_subtot-up = 'X'.
g_subtot-group = 'X'.
g_subtot-subtot = 'X'.
g_subtot-expa = 'X'.
APPEND g_subtot TO subtot.
g_subtot-spos = 2.
g_subtot-fieldname = 'MENGE'.
g_subtot-tabname = 'ITAB1'.
g_subtot-up = 'X'.
g_subtot-group = 'X'.
g_subtot-subtot = 'X'.
g_subtot-expa = 'X'.
APPEND g_subtot TO subtot.
ENDFORM. "build_fcat1
*& Form build_eve1
text
FORM build_eve1.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = eve1
EXCEPTIONS
list_type_wrong = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. "build_eve1
*& Form get_data1
text
FORM get_data1.
SELECT mblnr menge meins werks FROM mseg
INTO CORRESPONDING FIELDS OF TABLE itab1
WHERE matnr = t_mat.
ENDFORM. "get_data1
*& Form dis_data1
text
FORM dis_data1.
g_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = g_repid "'ZINT_ALV'
i_callback_user_command = 'USER_COMMAND1'
it_fieldcat = fcat1
it_events = eve1
i_save = 'A'
it_sort = subtot
TABLES
t_outtab = itab1
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. "dis_data1
*& Form user_command1
text
-->U_COM1 text
-->SEL_FIELD text
FORM user_command1 USING u_com1 LIKE sy-ucomm sel_field TYPE slis_selfield.
CASE u_com1.
WHEN '&IC1'.
READ TABLE itab1 INDEX sel_field-tabindex.
IF sy-subrc = 0.
t_doc = itab1-mblnr.
PERFORM build_cat2 USING fcat2.
PERFORM get_data2.
PERFORM dis_data2.
ENDIF.
ENDCASE.
ENDFORM. "user_command
*& Form build_cat2
text
-->P_FCAT1 text
FORM build_cat2 USING t_fcat2 TYPE slis_t_fieldcat_alv.
DATA:wa_fcat2 TYPE slis_fieldcat_alv.
wa_fcat2-tabname = 'ITAB2'.
wa_fcat2-fieldname = 'MBLNR'.
wa_fcat2-seltext_m = 'Material Doc.'.
APPEND wa_fcat2 TO t_fcat2.
CLEAR wa_fcat2.
wa_fcat2-tabname = 'ITAB2'.
wa_fcat2-fieldname = 'BUDAT'.
wa_fcat2-seltext_m = 'Material Date'.
APPEND wa_fcat2 TO t_fcat2.
CLEAR wa_fcat2.
ENDFORM. " build_cat2
*& Form get_data2
text
--> p1 text
<-- p2 text
FORM get_data2 .
SELECT mblnr budat FROM mkpf
INTO CORRESPONDING FIELDS OF TABLE itab2
WHERE mblnr = t_doc.
ENDFORM. " get_data2
*& Form dis_data2
text
--> p1 text
<-- p2 text
FORM dis_data2 .
g_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = g_repid "'ZINT_ALV'
it_fieldcat = fcat2
i_save = 'A'
TABLES
t_outtab = itab2
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " dis_data2
reward if useful... -
Interactive Report with PL/SQL Function Source
Is it possible to create interactive report with PL/SQL function source returing a query? If not, has anyone done any work to simulate the interactive reporting feature for a normal report using API?
I haven't tried that before but you could:
1. create a collection from your result set returned by a dynamic query,
2. create a view on that collection,
3. use the view in your interactive report.
The usability of this proposal depends from a question how "dynamic" your query is - does it always have the same number of columns or not.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
Can i have a sample BSP INTERACTIVE Reports with step by step.
Hi Friends,
Can i have a sample BSP INTERACTIVE Reports with step by step.
MoosaHello,
Please find the sample Code below.
FIRST PAGE
Layout Code.
<htmlb:label for="emp" text="Employee id" width="10"/>
<htmlb:inputField id="emp" value="<%= w_input1%>"/>
<p>
<htmlb:label for="Employee Details"/>
<htmlb:button id = 'get'
text = 'Display'
on Click = 'OnInput Processing' /> <p>
<h1>Employee Details</h1>
<htmlb:tableView id="Employee"
table="<%= ZTABLE%>" <- Give the table name
selectionMode = "lineEdit"
design="ALTERNATING">
ONINITILIZATION EVENT.
data:
fs_yhtable like line of TABLE.
select * from yhtable into table ZTABLE.
ONINPUT PROCESSING CODE:
* event handler for checking and processing user input and
* for defining navigation
class cl_htmlb_manager definition load.
case event_id.
when cl_htmlb_manager=>event_id.
data: event type ref to if_htmlb_data,
fs_yhtable like line of t_yh1205,
selrow type ref to cl_htmlb_tableview.
event = cl_htmlb_manager=>get_event_ex( request ).
selrow ?= cl_htmlb_manager=>get_data( request = request
name = 'tableView'
id = 'Employee' ).
data: tv_data type ref to cl_htmlb_event_tableview,
t_tab type int4_table.
* tv_data1 type ref to cl_htmlb_event_tableview.
tv_data = selrow->data.
t_tab = selrow->selectedrowindextable.
if event is not initial
and event->event_name = 'tableView'.
w_int = tv_data->rowselection.
navigation->set_parameter( 'Employee' ).
navigation->set_parameter( name = 'w_int'
value = w_int ).
navigation->set_parameter( name = 'table'
value = table ).
navigation->goto_page( 'second.htm' ).
endif.
endcase.
SECOND PAGE CODE:
LAYOUT CODE:-
<htmlb:content design="design2003">
<htmlb:page title = "Employee Details">
<htmlb:form>
<h1>Employee Details</h1>
<htmlb:tableView id="Employee"
table="<%= t_yh1205%>"
selectionMode = "lineEdit"
design="ALTERNATING">
</htmlb:tableView>
</htmlb:form>
</htmlb:page>
</htmlb:content>
Hope this is helpful.Let me know if you need any more help.
Thanks
kalyan -
Interactive report with pagination
Hi,
i have create an interactive report with pagination .i have follow instraction form
[http://dbswh.webhop.net/apex/f?p=BLOG:READCAT:0::::CATEGORY:10800346812869]
i have put JQuary in Page HTML HEADER .
Now it show me that code in header in my page .No value in my pagination select list.
How can i solve this problem.
ThanksHi friends,
i have sort out that problem,
i have jus put JQuary code in JavaScript Section.
Thanks -
Interactive report with row selector?
I've just upgraded to APEX 3.1. I've been playing with all those amazing new features of interactive report but I miss one very important for me - a row selector. I used to have the traditional reports based on updatable queries with row selector that enabled multi-row-delete operations. Is it still possible to include a row selector to IRR so as to accomplish MRD?
Thanks,
ZdenekHi,
this circumstance --> "missing row selector" raises another big problem.
My Question now:
I can't do row-specific processes now as in v3.0 where i could start a single process for every marked row.
Is there any feature (that i don't know yet) to integrate process-buttons for every row in a report? Mean this button should start a process for the row, where the button was pressed.
I didn't find any information about this feature.
Thank you! -
Interactive Report with Date Filter
Hi out there,
I created an interactive report which contains a date column. The default filter-options just work fine. But my users need to filter with the data which is contained in the report e.g. if a row contains 21.06.2000 they want to see this value in the filter-list of this date column and not the predefined defaults (last five years, last day and so on).
I already tried to specify the date as a string and did a select ... to_char ( date_column, 'dd.mm.yyyy' ) which broke the sorting but gave me the filter-options my users wanted. Specifing the date as yyyy.mm.dd is not an option for my users.
Is it possible to get a filter which shows the "real" data and keeps the right sort order ?
Regards and thanks
MarkusMarkus,
I've come up against this too. A varchar column gives you the selection list but no filtering using <,>,between etc., but a date column doesn't show the discrete data values. Users tend to ask for both, and putting both date and varchar columns in the report or using an LOV isn't very elegant.
Is there anything significant about the dates the users want to search directly on? Judging from your 21.06.2000 example I'd guess not, but if so you can build your own column in the SELECT statement and use that for filtering/creating default reports.
regards,
Malcolm.
Edited by: MalcA on Feb 16, 2012 11:39 AM -
Interactive Report with Checkbox column
Hello everyone,
our users love the Interactive Report filtering, so they want all forms in apps. to behave like Interactive Reports.
I need a form where each row consists of 2 columns and a checkbox, that handles some flag. I can create checkboxes using APEX_ITEM, however, the filtering on such column look ridicolous. I would like to have a tabular form (with one editable checkbox column), but with all those Interactive Report filtering features.
Is there any example (or inspiration) how to achieve such functionality?
Thanks a lot!
AdamHello Adam,
Why don't you just switch off the Filtering option for that column?
(Go to the Interactive Report, click on your column, then in Column Definition you can (un)check the features for that column).
Greetings,
Roel
http://roelhartman.blogspot.com/
You can reward this reply by marking it as either Helpful or Correct ;-) -
Interactive Report with custom search criteria must behave as search bar
Hi,
I have a region where I have 3 textfields and a Submit button. Then, another report region where I have a query with the where condition that makes reference to the 3 texfields. This is:
Select * from ANYTABLE
where column1 = :P1_TEXTFIELD1
and column2 = :P1_TEXTFIELD2
and column3 = :P1_TEXTFIELD3
When I click the submit button, the report is reloaded (in fact, all the page) with all the conditions (in textfields) correctly.
Now, what I need is that when I click the submit button, the filter appears in the screen; I mean, show the funnel with the filter conditions as if I made it since the search bar.
Could someone help me with this?1002610 wrote:
Hi, Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your forum profile with a real handle instead of "1002610".
When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
<li>Full APEX version
<li>Full DB/version/edition/host OS
<li>Web server architecture (EPG, OHS or APEX listener/host OS)
<li>Browser(s) and version(s) used
<li>Theme
<li>Template(s)
<li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
I have a region where I have 3 textfields and a Submit button. Then, another report region where I have a query with the where condition that makes reference to the 3 texfields. This is:
Select * from ANYTABLE
where column1 = :P1_TEXTFIELD1
and column2 = :P1_TEXTFIELD2
and column3 = :P1_TEXTFIELD3
When I click the submit button, the report is reloaded (in fact, all the page) with all the conditions (in textfields) correctly.
Now, what I need is that when I click the submit button, the filter appears in the screen; I mean, show the funnel with the filter conditions as if I made it since the search bar. Remove the WHERE clause from the report query and use declarative filters in a branch on page submission to set the filter predicates. -
Using Interactive Report with SQL query accessing tables via db link
Is there a known issue with using the interactive report in version 3.1.2.00.02 with SQL that is accessing tables via a database link? I get the error 'not all variables bound', I do not get this error when using the standard report for the same SQL?
Thanks,
Edited by: [email protected] on May 26, 2009 2:59 PMVarad,
Good question, failed to check that. In fact there are errors. Dump file c:\oraclexe\app\oracle\admin\xe\bdump\xe_s002_3640.trc
Mon Jun 15 08:48:11 2009
ORACLE V10.2.0.1.0 - Production vsnsta=0
vsnsql=14 vsnxtr=3
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
Windows XP Version V5.1 Service Pack 3
CPU : 2 - type 586, 1 Physical Cores
Process Affinity : 0x00000000
Memory (Avail/Total): Ph:1051M/2038M, Ph+PgF:2273M/3934M, VA:1302M/2047M
Instance name: xe
Redo thread mounted by this instance: 1
Oracle process number: 16
Windows thread id: 3640, image: ORACLE.EXE (S002)
*** ACTION NAME:(PAGE 2) 2009-06-15 08:48:11.743
*** MODULE NAME:(APEX:APPLICATION 112) 2009-06-15 08:48:11.743
*** SERVICE NAME:(SYS$USERS) 2009-06-15 08:48:11.743
*** CLIENT ID:(ADMIN:232384011651572) 2009-06-15 08:48:11.743
*** SESSION ID:(24.931) 2009-06-15 08:48:11.743
*** 2009-06-15 08:48:11.743
ksedmp: internal or fatal error
ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [_LdiDateFromArray+55] [PC:0x608B04F3] [ADDR:0x0] [UNABLE_TO_WRITE] []
Current SQL statement for this session:
select Stage,Procedure,Stp,FW,Reslt,MSG,date_run
from bi_msg_VW@dwitnm
order by 1
----- PL/SQL Call Stack -----
object line object
handle number name
2FE1EA14 1207 package body SYS.DBMS_SYS_SQL
2FE1F064 328 package body SYS.DBMS_SQL
2ABDC520 5097 package body APEX_030200.WWV_RENDER_REPORT3
2BD5E55C 1538 package body APEX_030200.WWV_FLOW_DISP_PAGE_PLUGS
2BD5E55C 366 package body APEX_030200.WWV_FLOW_DISP_PAGE_PLUGS
335BDA88 11190 package body APEX_030200.WWV_FLOW
2BDBD1C8 255 procedure APEX_030200.F
2AB58D10 30 anonymous block
----- Call Stack Trace -----
I didn't include the call stack, it is too large. Now I'm even more puzzled that the IR would work while a sql report would fail.
Bob -
Link to interactive report with filters
I want to put a link to a page with an interactive report. But the link should setup a filter for the interactive report.
For example, if I'm looking at a client, I want a link that sends me to the activity reports, but filtered to show only that client already.
Is there a way to do that?
Thanks
Edited by: user1415525 on Sep 21, 2009 7:34 AMHello,
Set a parameter IR_<COLUMN_NAME_IN_IR> to #<COLUMN_NAME_IN_LINK>#
Example : Set IR_ORDER_ID to #ORDER_ID#
or for you
Set IR_CUSTOMER_ID to #CUSTOMER_ID#
(Of course you have to change the column names)
Greetings,
Roel
http://roelhartman.blogspot.com/
Maybe you are looking for
-
How do I find out what the restrictions pass code is
My son is trying to purchase some additions to a game but when accessing the App Store he is asked for the restriction pass code. However we don't recall setting one up for him and he hasn't been asked for this before. Why? How do we find out what it
-
Reinstalling OSX Mountain Lion, and it says 500 hours to dowload?!? hellp
I have a MacBook Air and was suggested to delete everything on my HD before potentiallly selling my MacBook. So I followed all the instructions, disk utility, erase hard drive, go back and reinstall Mountain Lion. Anyways everything is going smoothly
-
I have Firefox set up to update automatically. The update window will occasionally pop open and remain in "connecting" mode for as long as the computer is on. Although this seemed odd, the process happens in the background so I'd assumed the updates
-
Redwood Cronacle: multiple attachments using rwmail
How can I get my script to send multiple files as attachments to a single email using rwmail, or is it even possible? If possible, what is the syntax?
-
DnD Linux Nautilus 2.12.2
I have some dnd code and was able to drag a file from Nautilus and get a String DataFlavor. There is no more data flavor reported with the new version of Nautilus. DropTargetDropEvent.getCurrentDataFlavors() returns nothing. If I drag something in fr