Using Standard Windows Select Methods On Interactive Report
I have an interactive report. Right now I have a check box on each row to select the row. However, this means to select 10 rows you have to click 10 times. I would like to make it possible to use standard Windows select methods - click first row, hold shift key, and click 10th row to result in 10 rows selected. I haven't found how to do this in Apex but I assume it is possible. Thoughts? I googled but maybe not looking for the right thing as I find lots but not what I am looking for.
Hi,
you could do something like this:
1) Create IR report like
select
apex_item.checkbox(1,empno,'UNCHECKED') foo,
"EMP"."EMPNO" as "EMPNO",
"EMP"."ENAME" as "ENAME",
"EMP"."SAL" as "SAL"
from
"EMP" "EMP"2)In you page properties put following code in
a)Function and Global Variable Declaration:
In this code I reference f01, because in select I use apex_item.checkbox(1,......
function isKeyPressed(event)
var target = event.target ? event.target : event.srcElement;
if (target.name=='f01'){
if (event.shiftKey==1){
i_start = -1;
i_end = -1;
i_swap = -1;
end_val = target.value;
cb = document.getElementsByName('f01');
for (i=0; i <= cb.length - 1;i++){
if (cb.value == end_val)
i_end = i;
if (cb[i].value == start_val)
i_start = i;
if (i_start > i_end){
i_swap = i_start;
i_start = i_end;
i_end = i_swap;
for (i=i_start; i < i_end;i++){
if (cb[i_start].checked == true)
cb[i].checked = true;
if (cb[i_start].checked == false)
cb[i].checked = false;
else{
start_val = target.value;
b)Page HTML Body Attributeonmousedown="isKeyPressed(event)"
You can check example on http://apex.oracle.com/pls/apex/f?p=60428:9
Regards,
Aljaz
Similar Messages
-
Standard jQuery tabs and an interactive report as a "tab" sub-region
Hi all,
I have a standard, simple implementation of jQuery tabs following the exact instructions by Patrick via this thread:
Re: New themes in APEX 4 not working with JQuery tabs
As one of the "tabs" (sub-regions), I want an interactive report. I use "no template".
Problem is that when the IR is in a tab, the pop-up column menus and such are no longer aligned, e.g. I click one of the column headers of the IR and the pop-up menu shows up much lower on the screen than it should -- sometimes off the screen if I have another region above. Can anyone assist? Maybe it's a DIV tag conflict between the jQuery template and the built-in IR?
Here is my example app:
http://apex.oracle.com/pls/apex/f?p=19782:1
Also another issue I've never seen quite resolved -- on "tab2" in the above app, you see what happens when you actually use a template in the sub-region. It breaks off the encompassing parent tab.
Sorry, if I was more savvy in the display options, I could probably solve all this -- so I'm hoping somebody else is or has already solved it and can share. Thanks so much!
DavidIf anyone is interested, I finally found the answer to this issue. It's all here:
http://www.apex-blog.com/oracle-apex/using-jquery-to-fix-broken-apex-interactive-report-drop-down-menus-150.html
Very special thanks to Stephen Blair (who owns the blog above) for the simple solution! Thanks Stephen!
David -
Is there a way to use standard Windows widgets?
Is there a way to use standard Windows widgets inside LabView (6.1)? Check boxes, form controls, et c.?
If you want to use ActiveX controls, you place an ActiveX container on the front panel, right click, choose Insert ActiveX Object and then browse for the object you want. There's several shipping examples like FamilyTree (MS TreeView object), and Ribbon, Simple Curve, and Torus that use ActiveX objects from NI.
-
Search help in selection screens for interactive report
A search help can only be assigned to DB table.
So my doubt is can it also be used for seletion screens created for an interactive report?
If yes what is the procedure.. Please give me one example at least...
waiting for your valuable suggestions.....
Thanks,
regards,
ChinmayHi Chinmay,
I suppose your requirement is to give search help to selection screen elements.
Here is the code.
REPORT ZSHAIL_F4HELP .
parameters: name(10) type c .
TYPES: BEGIN OF VALUES,
CARRID TYPE SPFLI-CARRID,
CONNID TYPE SPFLI-CONNID,
END OF VALUES.
dATA: PROGNAME LIKE SY-REPID,
DYNNUM LIKE SY-DYNNR,
DYNPRO_VALUES TYPE TABLE OF DYNPREAD,
FIELD_VALUE LIKE LINE OF DYNPRO_VALUES,
VALUES_TAB TYPE TABLE OF VALUES.
at selection-screen on value-request for name.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'DEMOF4HELP'
fieldname = 'CARRIER1'
SEARCHHELP = ' '
SHLPPARAM = ' '
DYNPPROG = PROGNAME
DYNPNR = DYNNUM
DYNPROFIELD = 'CARRIER'
STEPL = 0
VALUE = ' '
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
SUPPRESS_RECORDLIST = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
SELECTION_SCREEN = ' '
IMPORTING
USER_RESET =
TABLES
RETURN_TAB =
EXCEPTIONS
FIELD_NOT_FOUND = 1
NO_HELP_FOR_FIELD = 2
INCONSISTENT_HELP = 3
NO_VALUES_FOUND = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
AT SELECTION-SCREEN OUTPUT.
PROGNAME = SY-REPID.
DYNNUM = SY-DYNNR.
CLEAR: FIELD_VALUE, DYNPRO_VALUES.
FIELD_VALUE-FIELDNAME = 'CARRIER'.
APPEND FIELD_VALUE TO DYNPRO_VALUES.
I hope your query is solved.
If so,please award points.
Regards,
Sylendra. -
Select List beside Interactive report
Hi All,
I am not able to place a SELECT LIST item beside an Interactive Report.
What is happening:
<selecting columns to search> Go Action SELECT LIST*
I n t e r a c t i v e R e p o r t
Even though I am able to place a button beside the Interactive Report using the Button Position attribute for the button.
<selecting columns to search> Go Action Button
I n t e r a c t i v e R e p o r t
Sadly there is no such attribute for a SELECT LIST.
What I want:
|<selecting columns to search> Go Action SELECT LIST
I n t e r a c t i v e R e p o r t
I tried using the Grid Layout Attributes but to no avail.
Thanks,
SombitHi,
I do not know is that possible without styles or JavaScript.
You can try this.
Place to page JavaScript Execute when Page Loads
$("#apexir_TOOLBAR").append($("#Px_YOUR_SELECT_LIST"));Change Px_YOUR_SELECT_LIST to your select list name
Regards,
Jari
My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
Twitter: http://www.twitter.com/jariolai
Edited by: jarola on Mar 27, 2013 8:32 AM -
Select list within interactive report.
Hello y'all,
I have a need to develop an interactive report and am lost in how to proceed. I am asking for your help. The report requirements are as such:
- There are 3 types of records that will be in the report
- The is a checkbox to associate the records to a particular event.
- If the record is of a certain value, 3 of the columns in that record have to show as select lists.
- The records with the other 2 values should not have the select lists, just show a null in those columns.
- The checkbox must be checked for the select lists to appear.
- The select lists are based on a list of values. The values are populated with an existing common function used in many of the application pages.
I am having no success in trying to get the select lists in the report. Has anyone developed an interactive report that uses select lists within the report? Is this even possible?
I am using application Express 3.2.0.00.27. Any help that you can give is greatly appreciated. Thank you so much!
*** Got it. It has to be a tabular report with updateable columns. ***
Edited by: seashell on Sep 13, 2010 5:22 AM
Edited by: seashell on Sep 13, 2010 7:07 AMHi,
I am not sure if the "equal to" condition applies to a DOM object... after all, a DOM object can be anything (any HTML element) not only a field.
Try using a javascript expression instead, like this:
$v('P6_IR_SELECT_LIST')=='Delete'UPDATE: Sorry, I just tested and "equal to" condition works for DOM objects... should have tested before posting!
Luis
Edited by: Luis Cabral on Feb 29, 2012 4:45 PM -
Error when using filter on date column in interactive report
Hi,
I'm getting the following error when using the filter on a date column. None of the criteria in the filter list work. All give me the same error but when I use the filter on a column feature (in the search bar) and use ">" and "<" those work.
Can someone please help me????
" Settledate is in the last 2 years
ORA-30175: invalid type given for an argument ORA-02063: preceding line from MAINDATA "I have a similar problem . I have an interactive report based on resultset stored in a collection; since all the columns of a collection are of string datatype, I convert the columns to appropriate datatypes before its returned to the user; everything works as desired except when I try to filter on a data column , I get a ORA-01858: a non-numeric character was found where a numeric was expected .
I turned on debug mode and am copying the output here , column c009 which is aliased to 'C' is the one that I am trying to apply the filter on
select
ROWID as apxws_row_pk,
"C001",
"C002",
"C003",
"C004",
"C005",
"C006",
"C007",
"C008",
"CHECKOUTTIMESTAMP",
"C010",
"C011",
"TO_NUMBER(C012)",
"TO_NUMBER(C013)",
"TO_NUMBER(C014)",
"C015",
"C016",
"C017",
"TO_NUMBER(C018)",
"C",
count(*) over () as apxws_row_cnt
from (
select * from (
Select c001,c002,c003,c004,c005,c006,c007,c008,to_date(c009,'dd-MON-yy HH24.MI') checkouttimestamp,
cast(to_date(c009,'dd-MON-yy HH24.MI') as timestamp) c,
--TO_TIMESTAMP(c009,'dd-MON-yy HH24.MI') c1 ,
trunc(to_date(c009,'dd-MON-yy HH24.MI')) checkoutdate,
c010,c011,to_number(c012),to_number(c013), to_number(c014),c015,c016,c017,to_number(c018) from apex_collections where collection_name = 'IR_BOOKSALES'
) r
where ("C" between systimestamp - ((1/24) :APXWS_EXPR_1) and systimestamp)*
) r where rownum <= to_number(:APXWS_MAX_ROW_CNT)
order by ROWID
0.04: IR binding: ":APXWS_EXPR_1"="APXWS_EXPR_1" value="1"
0.04: IR binding: ":APXWS_MAX_ROW_CNT"="APXWS_MAX_ROW_CNT" value="2000"
ORA-01858: a non-numeric character was found where a numeric was expected
I have tried to convert c009 to date, timestamp and timestamp with time zone datatypes ; they all return the same error ,but all 3 datatypes work fine with systimestamp when I run them in sqlplus. Any help would be appreciated. -
How to migrate users, which have been using the Windows Authentication method
Hi everybody,
I have to migrate a productive SQL Server 2008 Database from one to another different server. The problem is that a lot of users have been using this DB throught the Windows Authentication method. Because the migration should be faster as possible, I would
like to use a SQL script in order to streamline the process. Does anyone know if it is possible to do it?
Thank you in advance,
RegardsApart from transfer logins scripts Ashwin and Stan mentioned, I usually run following script in order to re-establish orphan users to establish if any SQL logins.
set nocount on
declare @username sysname,
@errcode int
select @errcode = 0
select @username = min(name)
from sysusers (nolock)
where uid <> gid and
name not in ('guest', 'sys', 'INFORMATION_SCHEMA') and
suser_sname(sid) is null and
issqlrole = 0
while @username is not null
begin
if exists (select 1
from master.dbo.syslogins (nolock)
where name = @username)
begin
exec sp_change_users_login @Action = 'Update_One',
@UserNamePattern = @username,
@LoginName = @username
select @errcode = @@error
if @errcode = 0
print 'The user ''' + @username + ''' was re-established in database!'
else
print 'Failed to re-establish user ''' + @username + ''' in database!'
end
else
begin
print 'The user ''' + @username + ''' does not have login ID. So, drop it from database!'
exec sp_dropuser @username
end
select @username = min(name)
from sysusers (nolock)
where uid <> gid and
name not in ('guest', 'sys', 'INFORMATION_SCHEMA') and
suser_sname(sid) is null and
issqlrole = 0 and
name > @username
end
go -
Is possible to save the user that uses the download action in an interactive report.
Hi,
In my application I want to save who is downloading the interactive reports information in any format, is it possible?
RegardsHi Eva,
As far as I know there is not an out of the box option that shows you the user that is downloading the interactive report. I guess you would have to write your own logic for that.
You can create your own logging table and a dynamic action with
1) a pl/sql procedure to insert the logging into the table, and
2) submits the page with the appropriate download format, eg. f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION_ID.:CSV::::
As trigger of the dynamic action you need to use either of the download buttons, so I'd suggest the jQuery selector "#apexir_dl*"
Kind regards,
Vincent -
Change standard rows (15) in an interactive report
Hello,
I want to change the default value for rows in an interactive report (15).
It should be displayed in principle always 50 rows. I have unfortunately found no setting which I can change that.
A search on the net and forum brought no help.
Can someone help me maybe?Ah. Try this -- it was a surprise to me.
Edit the report but this time click the "Saved Reports" tab at the top. Select your report. Click the report checked box -- I don't know if this is necessary. Then in the "Actions" > "Rows Per Page", what number is highlighted? Highlight 50. If the selector doesn't go up the 50, increase the Maximum Rows Per Page back on the "Report Attributes" tab. The saved report should now be set to 50 lines per. Login in again and restart your report.
Finally - maybe,
Howard -
How to select records from Interactive Reports based on checkboxes
Referring to the link below
http://apex.oracle.com/pls/otn/f?p=31517:95
I want to select rows from the Interactve Report based on a checkbox. This demo page has 2 sections, one for classic report and other for interactive one. The classic report is able to select the whole records but the interactive report selects only the emp nos. I am looking for a functionality where I can select the whole record from the interactive report.
Any pointers will be helpful.
ThanksThat is easy. You should just modify the query:
DECLARE
v_count INTEGER := 0;
BEGIN
:p95_text_ir := NULL;
FOR i IN 1 .. apex_application.g_f20.COUNT
LOOP
v_count := v_count + 1;
FOR c IN (SELECT ename, job, mgr, sal, deptno
FROM emp
WHERE empno = apex_application.g_f20 (i))
LOOP
:p95_text_ir :=
:p95_text_ir
|| 'ID: '
|| c.empno
|| ' / '
|| 'Name: '
|| c.ename
|| ' / '
|| 'Job: '
|| c.job
|| ' / '
|| 'Manager: '
|| c.mgr
|| ' / '
|| 'Salary: '
|| c.sal
|| ' / '
|| 'Department: '
|| c.deptno
|| CHR (10);
END LOOP;
END LOOP;
:p95_text_ir := :p95_text_ir || ' / Records selected: ' || v_count;
END;Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.apress.com/9781430235125
http://apex.oracle.com/pls/apex/f?p=31517:1
http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
------------------------------------------------------------------- -
Using Standard Text Variables for FYPERIOD in Report Title ?
Hi,
We have a requirement where the user input the variable 0fiscper to the query (001.2010). How to get the text value of that variable in the query description in the bex query ?
For example user input, 008.2010. We need to get "Aug 2010 Sales values " where Sales values will be the report text. I want to get Aug (month) and year (2010) before the report title. I have searched in google and sdn and could not find any link, but found a doc for the column header text using the same variable. I have tried the same procedure and its just display the zvariable name and Sales value's instead of the label. Please advise.
Thanks
DRYou can create a Text variable with replacement path of Fiscper as reference char. Select Key in details tab of replacing variable.
If you are just getting technical name, then it is understood that it is not getting replaced. -
Select-option in interactive report
Hello , this is urgent requirement.
I have one report in which in the basic report i need to display the table name like mara, mard, marc etc etc 100 table is there.
when i click on the particular table , in the secondary list the key field of the select option should display with select option.
please let me know if you have soultion.
Thanks and regards,
zuberahi,
try this code
TABLES : dd02t,databrowse.
DATA : it_dd02t TYPE TABLE OF dd02t WITH HEADER LINE.
PARAMETERS : table LIKE dd02l-tabname default 'M%'.
SELECT *
INTO TABLE
it_dd02t
FROM dd02t
WHERE tabname LIKE table AND ddlanguage = 'E'.
LOOP AT it_dd02t.
WRITE / it_dd02t-tabname HOTSPOT.
HIDE it_dd02t-tabname.
ENDLOOP.
AT LINE-SELECTION.
CASE sy-lsind.
WHEN '01'.
databrowse-tablename = it_dd02t-tabname.
SET PARAMETER ID 'DTB' FIELD databrowse-tablename.
CALL TRANSACTION 'SE16'.
ENDCASE.
reward if helpful.
prasanth -
How add Select list in Interactive report search bar
Hi , I am using Oracle Apex 4.2 and theme 25.
I want to add select list in IR search bar. I am able to add buttons but i am unable to add items..
Please guide me to achieve that ..
Thank You,
Nihar NarlaHi,
There is no specify property called "Button Position " for page items. This is applicable for BUTTON only inside the Search bar.
There is a property in IR region -"Item Display Position" for page items to display but only 2 options [Above/below]
Thanks,
--Loga -
How to Capture Checkbox selection in Classical interactive report .
Hi ,
I displaying the checkbox using write statement.The Requirement is when the checkbox is just clicked, immediately message needs to be populated by the side. No event is triggered at this time .please help me out.
[ ] R | Remove
[] ->checkbox when selected immediately the message remove must come besides that.
Thanks in advance.or maybe better create our own checkbox which will trigger AT LINE-SELECTION event.
CONSTANTS:
lc_cb_uns(1) TYPE c VALUE ' ',
lc_cb_sel(1) TYPE c VALUE 'X',
lc_cb_inv(1) TYPE c VALUE 'I',
lc_fn_cb(5) TYPE c VALUE 'LF_CB'
DATA:
lf_cb(1) TYPE c,
lv_fieldname(5) TYPE c
lf_cb = lc_cb_uns.
DO 5 TIMES.
FORMAT COLOR COL_NEGATIVE.
WRITE: lf_cb HOTSPOT ON.
FORMAT COLOR OFF.
WRITE: AT 10 'Selection #', sy-index.
HIDE: lf_cb.
NEW-LINE.
ENDDO.
lf_cb = lc_cb_inv. " invalidate selection
AT LINE-SELECTION.
GET CURSOR FIELD lv_fieldname.
IF lv_fieldname EQ lc_fn_cb AND lf_cb EQ lc_cb_sel.
lf_cb = lc_cb_uns. " change hide area (assignment after
. " MODIFY LINE would not change hide area)
MODIFY LINE sy-lilli FIELD VALUE lf_cb FROM lc_cb_uns
FIELD FORMAT lf_cb COLOR COL_NEGATIVE.
ELSEIF lv_fieldname EQ lc_fn_cb AND lf_cb EQ lc_cb_uns.
lf_cb = lc_cb_sel. " change hide area (assignment after
. " MODIFY LINE would not change hide area)
MODIFY LINE sy-lilli FIELD VALUE lf_cb FROM lc_cb_sel
FIELD FORMAT lf_cb COLOR COL_POSITIVE.
ENDIF.
lf_cb = lc_cb_inv. " invalidate selection
Regards, Hubert
Maybe you are looking for
-
Mass change of vendor master data
I need to change the "payment term" for over 1500 vendors of a particular account grp and company code. How do i do it??
-
Importing multipage Word document w/hyperlinks into InDesign
I am new to InDesign and I am trying to import a 11 page Word document with hyperlinks into InDesign. For the life of me, I can not figure this out. I try to "put" the file into InDesign but it just imports as a tiny box. Two questions: 1. Does anyon
-
I am new to Apple TV and not a sophisticated user of all this new technology. But we decided to plunge in an get the Apple TV box, join NetFlix and all the rest. So far it is a cruel joke on two old people. I selected a movie last night and we had
-
Grep style shortest match (non-greedy) modifier ignored
I'm looking for confirmation on a possible bug that I've had problems with from InDesign version 5.5 up through the current CC 10.0.0.70. What I'm trying to do is apply a character style via a grep rule in a paragraph style that matches everything up
-
I have thousands of pictures in my iPhoto library. Many of them were not "copied" into iPhoto when imported. I had my preferences set that way to save space on my system's hard drive. I just kept those pictures on a separate hard drive in my Mac Pro.