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 Narla
Hi,
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
Similar Messages
-
Placing date field inline to an Interactive Report search bar
For a button I can choose "Right of Interactive Report Search Bar" option to place it inline with the IR Search bar.
However I need to place a text fileld or select list or Date Field intead.
Any ideas? If a template needs to be changed could you please indicate which template? I affrid the date field does not allow an option to change its templates.....
I hope somebody would be able to help.
Thanks in advance
Ligon GopinathanHi,
It will take some trial and error to get the positioning correct, but you can do the following:
1 - Create an HTML region that is positioned at the bottom of your page (that is, make sure that it is underneath all other regions). Set the region's Title to   and the Template to "No Template"
2 - On your datepicker, in the Label/HTML Table Cell Attributes setting, add in:
nowrap="nowrap" id="P1_DATE_LABEL"(replacing P1_DATE with the actual name of the item).
3 - In the region's Region Source, add in:
<style type="text/css">
#P1_DATE_LABEL {position:absolute; top:40px; left:450px;}
#P1_DATE_fieldset {position:absolute; top:40px; left:500px;}
</style>P1_DATE_LABEL is the ID you set above and P1_DATE_fieldset is the ID of the fieldset created for the datepicker by Apex. Change the top and left settings for both as required for your page.
This outputs the datepicker in your region and then moves it to the top/left position you specify.
Andy -
Is there a way to label icons in Interactive report search bar
Is there a way to label icons, 'View Report' and 'View Chart' icons (the ones next to the go button) in the Interactive report search bar..
We are developing a report for users to pull metrics. We have put in report view and chart view. But the use of the icons cannot be recognized quickly by the users, unless educated. Is there a way to label them with some text. Or is there any other way to improve this.>
Please update your forum profile with a real handle instead of "878815".
Is there a way to label icons, 'View Report' and 'View Chart' icons (the ones next to the go button) in the Interactive report search bar..
We are developing a report for users to pull metrics. We have put in report view and chart view. But the use of the icons cannot be recognized quickly by the users, unless educated. Is there a way to label them with some text. Or is there any other way to improve this.They are actually already labelled—look at the page source—presumably for accessibility reasons. CSS styling is applied to move the label text to a position where it is invisible when viewed on screen. All that's required to show the labels is to override/customize the CSS so that the label text is visible and the buttons are sized to accommodate it. -
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 -
Interactive Report Search bar is not working
Hello all,
I'm working on a Report. I has two regions, one is for select list criteria and Other is sql query.
To remove the No data forund. I added REQUEST = 'GO' for sql region.
When i run the report, selecting all my criterias and click search i get the interactive report.But the tool is not working. If i remove the REQUEST = 'GO' it's working.
Can anybody please help me.
Thanks,
KeertiKeerti,
You're using the "Display Condition" of the Interactive Report Region (IRR) to show the report or not.
If you have multiple selects just use a PL/SQL expression as in:
:P1_MULTI_1 IS NOT NULL
AND :P1_MULTI_2 IS NOT NULLNow, if that works for you lets take things a little further... You don't need the second submit button all the time (I'd get rid of it entirely but you seem to really want to hide the region until a selection is made). I did the following:
1. Updated the display condition of the report to use a PL/SQL expression.
2. Set the display condition of the submit button to the opposite of the IRR.
3. Added the item name of the select to the interactive report attributes > Advanced Attributes > Page Items to Submit.
Now the go button can be used for everything.
Regards,
Dan
http://danielmcghan.us
http://sourceforge.net/projects/tapigen
http://sourceforge.net/projects/plrecur
Edited by: Dan McGhan on May 14, 2009 12:28 PM
Updated as only clicking "go" works with Page Items to Submit. -
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 -
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
------------------------------------------------------------------- -
Wildcards in Interactive Report Search Bar
Here's a question I haven't seen anywhere else. It's a long shot, but I'm going to ask anyway. We are using APEX 4.1.0.00.32. The IR Search bar uses a search where no wildcards are needed. In fact, if you do include a wildcard in the middle of the search string, for example ABC%GHI, it is not understood as a wildcard. So far we are telling the users to search once using ABC and search again using GHI when using the IR search bar. They are not completely happy with this.
Is there a setting to change this? Is there such a setting coming up in a new APEX version?
Thanks,
JackieHello Jackie,
End Users can search using wild card characters as follows..
IR -> Actions -> Filters -> Select operator as LIKE
And in Expression, you can use wild cards like ABC%GHI. (Similar to Oracle SQL LIKE)
Regards,
Hari -
Interactive report search region new buttons problem (theme 25)
Hello!
When I add new buttons in position "Interactive report search bar" I have a problem like this: [http://files.mail.ru/1AFHY6?t=1|http://files.mail.ru/1AFHY6?t=1]
On different dimensions and also on iPad2 the situation is bad.
How can I fix it?
Apex 4.2 - theme 25 (also 24 and 26)any ideas?
Edited by: ElectroD on Nov 27, 2012 7:56 AM -
How to skip from one list to another list in interactive report?
Hi Friends,
How to skip from one list to another list in interactive report that means now i am in 7 th list how to skip 4th list ?
Or now i am in 7 th list how to skip 9th list ?
can anybody send sample code please.
Thanks in advance.hi,
at line-selection.
case sy-lsind.
when 9.
sylsind = 4.
endcase.
try like this when u r in 9th list next it goes to 4 th list -
How to create more than 21 lists in interactive reports
hello everyone,
I am new to ABAP as well as this site. Kindly help, I want to know how to create more than 21 lists in interactive reports.
Also, how can i create them without using WHEN 1, wHEN 2 and so on...
Kindly help.
thank youHello,
Using Intracive Reports its not possible to cretate more than 21 lists.
But its possible to create more than 21 using ALV concept.
for sample ALV u can serch in SDN.
Regards,
Anil. -
How we can get an interactive report in alv grid display?
Hi experts
Plz tell me how we can get an interactive report in alv grid disply pls send me one sample code to understand this
thanks in advancehi,
check this one
*& Report ZALV_FIELD_GRID1
REPORT ZALV_FIELD_GRID1
NO STANDARD PAGE HEADING.
TABLES MARA.
type-pools :slis.
TYPES : BEGIN OF TMARA ,
MATNR LIKE MARA-MATNR,
MEINS LIKE MARA-MEINS,
ERSDA LIKE MARA-ERSDA,
color(4) type c,
SEL type c,
LIGHT TYPE C,
END OF TMARA.
TYPES: BEGIN OF TMAKT,
MATNR LIKE MAKT-MATNR,
MAKTX LIKE MAKT-MAKTX,
MAKTG LIKE MAKT-MAKTG,
SEL TYPE C,
COLOR(4),
END OF TMAKT.
DATA: ITAB TYPE TMARA OCCURS 0 WITH HEADER LINE,
ITAB1 TYPE TMAKT OCCURS 0 WITH HEADER LINE,
wa_fieldcat type slis_fieldcat_alv,
fieldcat type slis_fieldcat_alv occurs 0,
i_layout type slis_layout_alv,
WA_LISTHEADER TYPE SLIS_LISTHEADER,
i_LISTHEADER TYPE SLIS_LISTHEADER OCCURS 0,
V_EVENTS TYPE SLIS_T_EVENT ,
WA_EVENT TYPE SLIS_ALV_EVENT,
I_TITLE_MARA TYPE LVC_TITLE VALUE 'FIRST LIST DISPLAYED',
I_TITLE_MAKT TYPE LVC_TITLE VALUE 'SECONDRY LIST DISPLAYED',
SORT TYPE slis_t_sortinfo_alv WITH HEADER LINE,
PRINT_CONT type slis_print_alv.
SELECTION SCREE
selection-screen begin of block screen1 with frame title TEXT-001.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN COMMENT /32(35) COMM1.
SELECTION-SCREEN ULINE /27(35).
SELECTION-SCREEN SKIP.
SELECT-OPTIONS MATNR FOR MARA-MATNR.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN ULINE.
SELECTION-SCREEN COMMENT /30(50) COMM2.
SELECTION-SCREEN ULINE /27(40).
SELECTION-SCREEN SKIP.
SELECT-OPTIONS ERSDA FOR MARA-ERSDA.
SELECTION-SCREEN SKIP.
selection-screen end of block screen1.
INITIALIZATION
INITIALIZATION.
MATNR-low = '23'.
MATNR-high = '1000'.
MATNR-option = 'BT'.
MATNR-sign = 'I'.
APPEND MATNR.
ERSDA-low = '20030124'.
ERSDA-high = '20050302' .
APPEND ERSDA.
PERFORM FILLFIELD.
PERFORM FILLLAYOUT.
PERFORM build_print_params.
PERFORM FILL_SORT.
PERFORM EVENT_CALL.
PERFORM POPULATE_EVENT.
SELECTION-SCREEN OUTPUT
AT SELECTION-SCREEN OUTPUT.
comm1 ='SELECT MATERIAL NUMBER RANGE'.
comm2 ='SELECT MATERIAL CREATION DATE'.
START-OF-SELECTION
START-OF-SELECTION.
PERFORM READDATA.
PERFORM POPDATA.
*& Form READDATA
text
FORM READDATA .
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = MATNR-LOW
IMPORTING
OUTPUT = MATNR-LOW.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = MATNR-HIGH
IMPORTING
OUTPUT = MATNR-HIGH.
SELECT MATNR
ERSDA
MEINS
FROM MARA
INTO CORRESPONDING FIELDS OF
TABLE ITAB
WHERE MATNR IN MATNR AND ERSDA IN ERSDA.
LOOP AT ITAB.
data id_color type i VALUE 1.
data id_colors(2) type c.
IF ITAB-MATNR < '000000000000000100'.
ITAB-LIGHT = '1'.
ELSEIF ITAB-MATNR < '000000000000000150' AND ITAB-MATNR >
'000000000000000100' .
ITAB-LIGHT = '2'.
ELSE.
ITAB-LIGHT = '3'.
ENDIF.
id_color = id_color + 1.
if id_color > 7.
id_color = 1.
endif.
id_colors = id_color.
concatenate 'C' id_colors '10' into itab-color.
modify itab.
CLEAR ITAB.
endloop.
ENDFORM. " READDATA
Form FILLFIELD
FORM FILLFIELD .
WA_FIELDCAT-FIELDNAME = 'MATNR'.
WA_FIELDCAT-KEY = 'X'.
WA_FIELDCAT-COL_POS = '1'.
WA_FIELDCAT-outputlen = 20.
WA_FIELDCAT-HOTSPOT = 'X'.
wa_fieldcat-seltext_m = 'MATERIAL NUMBER'.
*WA_FIELDCAT-EMPHASIZE = 'C210'.
APPEND WA_FIELDCAT TO FIELDCAT.
clear wa_fieldcat.
WA_FIELDCAT-FIELDNAME = 'MEINS'.
WA_FIELDCAT-COL_POS = '2'.
*WA_FIELDCAT-EMPHASIZE = 'C510'.
WA_FIELDCAT-outputlen = 10.
wa_fieldcat-seltext_m = 'UNIT'.
APPEND WA_FIELDCAT TO FIELDCAT.
clear wa_fieldcat.
WA_FIELDCAT-FIELDNAME = 'ERSDA'.
WA_FIELDCAT-COL_POS = '3'.
WA_FIELDCAT-outputlen = 15.
*WA_FIELDCAT-EDIT_MASK = 'DD.MM.YYYY'.
*WA_FIELDCAT-EMPHASIZE = 'C710'.
wa_fieldcat-seltext_m = 'CREAT DATE'.
APPEND WA_FIELDCAT TO FIELDCAT.
clear wa_fieldcat.
ENDFORM. "FILLFIELD
Setup print parameters
form build_print_params.
PRINT_CONT-reserve_lines = '3'. "Lines reserved for footer
PRINT_CONT-no_coverpage = 'X'.
endform. " BUILD_PRINT_PARAMS
Form POPDATA
FORM POPDATA .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = sy-repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = 'USER-COMMAND'
I_CALLBACK_TOP_OF_PAGE = 'TOPPAGE'
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE = I_TITLE_MARA
I_GRID_SETTINGS =
IS_LAYOUT = I_LAYOUT
IT_FIELDCAT = fieldcat
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT = SORT[]
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS = V_EVENTS
IT_EVENT_EXIT =
IS_PRINT = PRINT_CONT
TABLES
T_OUTTAB = ITAB
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
ENDFORM. " POPDATA
Form TOPPAGE
FORM TOPPAGE.
REFRESH I_LISTHEADER.
DATA: ld_lines type i,
ld_linesc(10) type c,
I_DATE(10) TYPE C,
I_INFO LIKE WA_LISTHEADER-INFO.
WA_LISTHEADER-TYP = 'H'.
WA_LISTHEADER-INFO = 'MATERIAL DETAIL'.
APPEND WA_LISTHEADER TO I_LISTHEADER.
CLEAR WA_LISTHEADER.
WA_LISTHEADER-TYP = 'S'.
WA_LISTHEADER-KEY = 'DATE :'.
CONCATENATE SY-DATUM+6(2) '.'
SY-DATUM+4(2) '.'
SY-DATUM(4) INTO I_DATE.
WA_LISTHEADER-INFO = I_datE.
APPEND WA_LISTHEADER TO I_LISTHEADER.
CLEAR WA_LISTHEADER.
describe table ITAB lines ld_lines.
ld_linesc = ld_lines.
concatenate 'TOTAL NUMBER OF RECORD SELECTED: ' ld_linesc
into I_INFO separated by space.
WA_LISTHEADER-TYP = 'A'.
WA_LISTHEADER-INFO = I_INFO.
append WA_LISTHEADER to I_LISTHEADER.
clear: WA_LISTHEADER , I_INFO.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = I_LISTHEADER
I_LOGO = 'ENJOYSAP_LOGO'.
ENDFORM. "TOPPAGE
Form FILLLAYOUT
FORM FILLLAYOUT .
i_layout-zebra = 'X'.
i_layout-info_fieldname = 'COLOR'.
i_layout-box_fieldname = 'SEL'.
I_LAYOUT-lights_fieldname = 'LIGHT'.
I_LAYOUT-EDIT ='X'.
I_LAYOUT-colwidth_optimize = 'X'.
I_LAYOUT-window_titlebar = 'EXAMPLE FOR ALV GRID'.
I_LAYOUT-no_totalline = 'X'.
ENDFORM. "FILLLAYOUT
Form FILL_SORT
FORM FILL_SORT .
SORT-DOWN = 'X'.
SORT-SPOS = 1.
SORT-FIELDNAME = 'MATNR'.
SORT-tabname = 'MARA'.
APPEND SORT.
ENDFORM. " FILL_SORT
Form EVENT_CALL
FORM EVENT_CALL .
DATA: I_EVENT LIKE V_EVENTS.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = V_EVENTS.
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. " EVENT_CALL
Form POPULATE_EVENT
FORM POPULATE_EVENT .
READ TABLE V_EVENTS INTO WA_EVENT WITH KEY NAME = 'USER_COMMAND'.
IF SY-SUBRC EQ 0.
WA_EVENT-FORM = 'USER_COMMAND'.
MODIFY V_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME =
WA_EVENT-NAME.
READ TABLE V_EVENTS WITH KEY NAME = SLIS_EV_END_OF_PAGE
INTO WA_EVENT.
IF SY-SUBRC = 0.
move 'END_OF_PAGE' to WA_EVENT-FORM.
MODIFY V_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME =
WA_EVENT-NAME.
endif.
ENDIF.
ENDFORM. "POPULATE_EVENT
FORM END_OF_PAGE.
write: sy-uline(50).
skip.
write:/40 'Page:', sy-pagno .
ENDFORM.
*& Form USER_COMMAND
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
CASE R_UCOMM.
WHEN '&IC1'.
CASE RS_SELFIELD-FIELDNAME.
when 'MATNR'.
read table itab with key matnr = RS_SELFIELD-VALUE.
if sy-subrc = 0.
PERFORM DATA_RETRIEVAL_MAKT USING RS_SELFIELD-VALUE.
PERFORM BUILD_FIELDCATLOG_MAKT.
PERFORM FILLLAYOUT_MAKT.
PERFORM DISPLAY_ALV_MAKT.
CLEAR RS_SELFIELD.
ENDIF.
ENDCASE.
ENDCASE.
ENDFORM. "user_command
Form DATA_RETRIEVAL_MAKT
FORM DATA_RETRIEVAL_MAKT USING TMATNR .
SELECT MATNR
MAKTX
MAKTG
UP TO 100 ROWS
FROM MAKT
INTO TABLE ITAB1
WHERE SPRAS = 'EN' AND MATNR = TMATNR.
LOOP AT ITAB1.
data id_color type i VALUE 1.
data id_colors(2) type c.
id_color = id_color + 1.
if id_color > 7.
id_color = 1.
endif.
id_colors = id_color.
concatenate 'C' id_colors '10' into itab1-color.
modify itab1.
CLEAR ITAB1.
ENDLOOP.
ENDFORM. "DATA_RETRIEVAL_MAKT
Form FILLLAYOUT_MAKT
FORM FILLLAYOUT_MAKT .
CLEAR I_LAYOUT.
i_layout-zebra = 'X'.
i_layout-info_fieldname = 'COLOR'.
i_layout-box_fieldname = 'SEL'.
I_LAYOUT-EDIT ='X'.
I_LAYOUT-colwidth_optimize = 'X'.
I_LAYOUT-window_titlebar = 'EXAMPLE FOR ALV GRID'.
ENDFORM. " LAYOUT_MAKT
Form BUILD_FIELDCATLOG_MAKT
FORM BUILD_FIELDCATLOG_MAKT .
REFRESH FIELDCAT.
WA_FIELDCAT-FIELDNAME = 'MATNR'.
WA_FIELDCAT-KEY = 'X'.
WA_FIELDCAT-COL_POS = '1'.
*WA_FIELDCAT-EDIT_MASK = 'DD.MM.YYYY'.
WA_FIELDCAT-EMPHASIZE = 'C510'.
wa_fieldcat-seltext_m = 'MATERIAL NUMBER'.
APPEND WA_FIELDCAT TO FIELDCAT.
clear wa_fieldcat.
WA_FIELDCAT-FIELDNAME = 'MAKTX'.
WA_FIELDCAT-COL_POS = '2'.
WA_FIELDCAT-EMPHASIZE = 'C710'.
wa_fieldcat-seltext_m = 'MATERIAL DESCRIPTION'.
APPEND WA_FIELDCAT TO FIELDCAT.
clear wa_fieldcat.
WA_FIELDCAT-FIELDNAME = 'MAKTG'.
WA_FIELDCAT-COL_POS = '3'.
WA_FIELDCAT-EMPHASIZE = 'C210'.
wa_fieldcat-seltext_m = 'MATERIAL DESCRIPTION'.
APPEND WA_FIELDCAT TO FIELDCAT.
clear wa_fieldcat.
ENDFORM. " BUILD_FIELDCATLOG_MAKT
Form DISPLAY_ALV_MAKT
FORM TOP-OF-PAGE.
REFRESH I_LISTHEADER.
DATA: ld_lines type i,
ld_linesc(10) type c,
I_DATE(10) TYPE C,
I_INFO LIKE WA_LISTHEADER-INFO.
WA_LISTHEADER-TYP = 'H'.
WA_LISTHEADER-INFO = 'MATERIAL DESCRIPTION FOR SELECTED NUMBER'.
APPEND WA_LISTHEADER TO I_LISTHEADER.
CLEAR WA_LISTHEADER.
WA_LISTHEADER-TYP = 'S'.
WA_LISTHEADER-KEY = 'DATE :'.
CONCATENATE SY-DATUM+6(2) '.'
SY-DATUM+4(2) '.'
SY-DATUM(4) INTO I_DATE.
WA_LISTHEADER-INFO = I_datE.
APPEND WA_LISTHEADER TO I_LISTHEADER.
CLEAR WA_LISTHEADER.
describe table ITAB1 lines ld_lines.
ld_linesc = ld_lines.
concatenate 'TOTAL NUMBER OF RECORD SELECTED: ' ld_linesc
into I_INFO separated by space.
WA_LISTHEADER-TYP = 'A'.
WA_LISTHEADER-INFO = I_INFO.
append WA_LISTHEADER to I_LISTHEADER.
clear: WA_LISTHEADER , I_INFO.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = I_LISTHEADER
I_LOGO = 'ENJOYSAP_LOGO'.
I_END_OF_LIST_GRID =
I_ALV_FORM =
ENDFORM. "TOP-OF-PAGE
*& Form DISPLAY_ALV_MAKT
text
FORM DISPLAY_ALV_MAKT .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
I_CALLBACK_TOP_OF_PAGE = 'TOP-OF-PAGE'
I_GRID_TITLE = I_TITLE_MAKT
IS_LAYOUT = I_LAYOUT
IT_FIELDCAT = fieldcat
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. " DISPLAY_ALV_MAKT
Rewards points -
What is difference between interactive list and interactive reports?
what is difference between interactive list and interactive reports?
hi check this..
interactive report/list means any input(double click or single click or user command ) on the screen will results a new screen with the corresponding fields....this is upto 20 levels only check this..
report .
start-of-selection.
write:/ 'this is the source list'.
at line-selection .
if sy-lsind = 1 .
write:/ ' this is the 1st list'.
elseif.
if sy-lsind = 2 .
write:/ ' this is the 2 list'.
if sy-lsind = 3 .
write:/ ' this is the 3 list'.
if sy-lsind = 4 .
write:/ ' this is the 4 list'.
if sy-lsind = 5 .
write:/ ' this is the 5 list'.
if sy-lsind = 6 .
write:/ ' this is the 6 list'.
if sy-lsind = 7 .
write:/ ' this is the 7 list'.
if sy-lsind = 8.
write:/ ' this is the 8 list'.
if sy-lsind = 9 .
write:/ ' this is the 9 list'.
if sy-lsind = 10 .
write:/ ' this is the 10 list'.
endif.
regards,
venkat -
Interactive report search features in Classic Report
Hi,
We have generate a report based on a dynamic query (columns,tables and where condition everything will be dynamic at runtime). As we can use only sql queries to create Interactive report, we are populating collections with our dynamic query and using that collection to create Interactive report. But there are lot of limitation with this approach (only 50 columns we can display, number and date columns are stored in character columns of collection as we don't have control on populating collection's number columns using api apex_collection.create_collection_from_query and clob columns are truncated to first 4000 character).
If we can paint the features like search,filters,select columns of Interactive report in classic report, our problem will be solved.
Is there anyway we can get these Interactive report feature in classic report.? or any other work around is available to overcome the apex collection limitation? Any idea on this will be very helpful.
Thanks in advance.
Nithyarajan MHi User,
ya, Jitu is right.
Create a region "Search'
and Create a text field page item like P1_REPORT_SEARCH and also create two buttons like
P1_GO and P1_RESET and after that
Create two process for it
<li> one is of Reset pagination process with condition type: request is contained within the expression1, and in expression1 give this: GO,P1_REPORT_SEARCH,RESET(process point- on submit after computation)
<li> second process is of type clear cache for items(ITEM,ITEM,ITEM)
Source : P1_REPORT_SEARCH
condition type: Request = Expression 1
Expression 1 = RESET
May be this will help you out.
Regards,
Mini
If this answered your question, mark appropriately. -
"Invalid number" error using Interactive Report search on collection
hi -- I have several interactive reports based on collections. In the IR reqion query definition,
I cast the collection values as needed (number, date, etc). Everything's been working great.
In both development and production, I can use the search feature of interactive reports
and it finds rows containing the text I type in (as well as everything else working fine...)
I just imported a new version of an application into our production database. Now, when I use the
interactive report search, I always get "invalid number". This even happens on interactive reports
that still work in the previous version of the production application... and these IRS
have not been modified at all.
If I create a filter and search for "elevation" in a string column, the filter works. If I create a filter
searching for "elevation" in a number column, I get "invalid number". (In the development
environment, I can do the latter -- it just doesn't find any rows.)
Clearly it's choking on the types of the columns in the IR... but why now and not before, and why
in the production database but not the development DB? Both are running 4.0.1.00.03.
This is a pretty major loss of functionality... and it comes at a really bad time... Help?!
Thanks,
Carolhi Andy, Tony -- Completely understand about your email address. I've actually wondered at the fact that any
of you gurus are willing to give them out.
It's not tons of stuff, so here it is.
1) The application process that creates the collection. This process that runs whenever an IR
page is being rendered. The various DB names are application items. This application can affect data
on multiple databases. You'll see see this in the process that builds the query.
IF (apex_collection.collection_exists (
p_collection_name=>'IR_COLLECTION')) then
apex_collection.delete_collection(p_collection_name=>'IR_COLLECTION');
END IF;
apex_collection.create_collection_from_query_b(p_collection_name=>'IR_COLLECTION', p_query=>meta_data_pkg.build_ir_collection_query(:TABLE_NAME, :MASTER_DB_NAME, :CZAR_DB_NAME, :DB_NAME));2) The database function that constructs the query. Called in the above create_collection statement.
FUNCTION build_ir_collection_query (table_name varchar2, master_db_name varchar2, czar_db_name varchar2, ref_db_name varchar2)
return varchar2
IS
query VARCHAR2(3000);
BEGIN
IF /* check for other table names here */ THEN
-- build queries for other tables
-- *** HDB_EXT_DATA_CODE
ELSIF (upper(table_name) in ('HDB_EXT_DATA_CODE', 'HDB_EXT_DATA_CODE_SYN')) THEN
query := 'SELECT /*+DRIVING_SITE(dcs)*/ dc.ext_data_code_sys_id, dcs.ext_data_code_sys_name, dcs.agen_id, a.agen_name, dc.primary_data_code,';
query := query||' dc.secondary_data_code, dc.hdb_datatype_id, d.datatype_name, d.unit_id, u.unit_name, d.physical_quantity_name, to_char(dc.date_time_loaded,''DD-MON-YYYY HH24:MI:SS'')';
query := query||' FROM hdb_ext_data_code_syn@'||master_db_name || ' dc, hdb_ext_data_code_sys_syn@'||master_db_name ||
' dcs, hdb_agen_syn@'||master_db_name||' a, hdb_datatype_syn@'||master_db_name||' d, hdb_unit@'||czar_db_name||' u';
query := query||' WHERE dc.ext_data_code_sys_id = dcs.ext_data_code_sys_id AND dcs.agen_id = a.agen_id(+) AND dc.hdb_datatype_id = d.datatype_id AND d.unit_id = u.unit_id';
/* continue w/ other tables */
END;3) The query that it builds for the table in question:
SELECT /*+DRIVING_SITE(dcs)*/ dc.ext_data_code_sys_id, dcs.ext_data_code_sys_name, dcs.agen_id, a.agen_name,
dc.primary_data_code, dc.secondary_data_code, dc.hdb_datatype_id, d.datatype_name, d.unit_id, u.unit_name,
d.physical_quantity_name, to_char(dc.date_time_loaded,'DD-MON-YYYY HH24:MI:SS')
FROM hdb_ext_data_code_syn@UCHDB2 dc, hdb_ext_data_code_sys_syn@UCHDB2 dcs, hdb_agen_syn@UCHDB2 a,
hdb_datatype_syn@UCHDB2 d, hdb_unit@UCHDB2 u
WHERE dc.ext_data_code_sys_id = dcs.ext_data_code_sys_id AND dcs.agen_id = a.agen_id(+)
AND dc.hdb_datatype_id = d.datatype_id AND d.unit_id = u.unit_id 4) The explain plan results on the development database
PLAN_TABLE_OUTPUT
Plan hash value: 583729845
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time
| Inst |
| 0 | SELECT STATEMENT REMOTE | | 97 | 16490 | 19 (16)| 00:00
:01 | |
|* 1 | HASH JOIN | | 97 | 16490 | 19 (16)| 00:00
:01 | |
| 2 | TABLE ACCESS FULL | HDB_UNIT | 177 | 3540 | 3 (0)| 00:00
:01 | UCHDB2 |
|* 3 | HASH JOIN RIGHT OUTER | | 95 | 14250 | 15 (14)| 00:00
:01 | |
| 4 | TABLE ACCESS FULL | HDB_AGEN | 54 | 1944 | 3 (0)| 00:00
:01 | UCHDB2 |
|* 5 | HASH JOIN | | 95 | 10830 | 12 (17)| 00:00
:01 | |
| 6 | MERGE JOIN | | 112 | 5936 | 6 (17)| 00:00
:01 | |
| 7 | TABLE ACCESS BY INDEX ROWID| HDB_EXT_DATA_CODE_SYS | 15 | 405 | 2 (0)| 00:00
:01 | UCHDB2 |
| 8 | INDEX FULL SCAN | HDB_EXT_DATA_CODE_SYS | 15 | | 1 (0)| 00:00
:01 | UCHDB2 |
|* 9 | SORT JOIN | | 112 | 2912 | 4 (25)| 00:00
:01 | |
| 10 | TABLE ACCESS FULL | HDB_EXT_DATA_CODE | 112 | 2912 | 3 (0)| 00:00
:01 | UCHDB2 |
| 11 | TABLE ACCESS FULL | HDB_DATATYPE | 711 | 43371 | 5 (0)| 00:00
:01 | UCHDB2 |
Predicate Information (identified by operation id):
1 - access("A2"."UNIT_ID"="A1"."UNIT_ID")
3 - access("A4"."AGEN_ID"="A3"."AGEN_ID"(+))
5 - access("A5"."HDB_DATATYPE_ID"="A2"."DATATYPE_ID")
9 - access("A5"."EXT_DATA_CODE_SYS_ID"="A4"."EXT_DATA_CODE_SYS_ID")
filter("A5"."EXT_DATA_CODE_SYS_ID"="A4"."EXT_DATA_CODE_SYS_ID")
Note
- fully remote statement 5) The explain plan results on the production database
PLAN_TABLE_OUTPUT
Plan hash value: 583729845
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 97 | 16490 | 19 (16)| 00:00:01 |
|* 1 | HASH JOIN | | 97 | 16490 | 19 (16)| 00:00:01 |
| 2 | TABLE ACCESS FULL | HDB_UNIT | 177 | 3540 | 3 (0)| 00:00:01 |
|* 3 | HASH JOIN RIGHT OUTER | | 95 | 14250 | 15 (14)| 00:00:01 |
| 4 | TABLE ACCESS FULL | HDB_AGEN | 54 | 1944 | 3 (0)| 00:00:01 |
|* 5 | HASH JOIN | | 95 | 10830 | 12 (17)| 00:00:01 |
| 6 | MERGE JOIN | | 112 | 5936 | 6 (17)| 00:00:01 |
| 7 | TABLE ACCESS BY INDEX ROWID| HDB_EXT_DATA_CODE_SYS | 15 | 405 | 2 (0)| 00:00:01 |
| 8 | INDEX FULL SCAN | HDB_EXT_DATA_CODE_SYS | 15 | | 1 (0)| 00:00:01 |
|* 9 | SORT JOIN | | 112 | 2912 | 4 (25)| 00:00:01 |
| 10 | TABLE ACCESS FULL | HDB_EXT_DATA_CODE | 112 | 2912 | 3 (0)| 00:00:01 |
| 11 | TABLE ACCESS FULL | HDB_DATATYPE | 711 | 43371 | 5 (0)| 00:00:01 |
Predicate Information (identified by operation id):
1 - access("D"."UNIT_ID"="U"."UNIT_ID")
3 - access("DCS"."AGEN_ID"="A"."AGEN_ID"(+))
5 - access("DC"."HDB_DATATYPE_ID"="D"."DATATYPE_ID")
9 - access("DC"."EXT_DATA_CODE_SYS_ID"="DCS"."EXT_DATA_CODE_SYS_ID")
filter("DC"."EXT_DATA_CODE_SYS_ID"="DCS"."EXT_DATA_CODE_SYS_ID") 6) This is the source query for the interactive report in question. The application process that creates the
collection runs before this region is rendered.
Select /*+ NO_QUERY_TRANSFORMATION */
to_number(C001) Ext_Data_Code_Sys_Id,
C002 Ext_Data_Code_Sys_Name,
to_number(C003) Agen_Id,
C004 Agen_Name,
C005 Primary_Data_Code,
C006 Secondary_Data_Code,
to_number(C007) Hdb_Datatype_Id,
C008 Datatype_Name,
to_number(C009) Unit_Id,
C010 Unit_Name,
C011 Physical_Quantity_Name,
C012 Date_Time_Loaded
from apex_collections
where collection_name = 'IR_COLLECTION'
order by 1,5,7Well, maybe it is alot... !
Happy New Year!
Carol
Maybe you are looking for
-
My iPod locked up and will not turn on. I attempted to restore it and received a message that the iPod is corrupted. What can I do? I have been using it since March 4th, 2008. I must admit that I am seriously disappointed. I have really saved money t
-
3 months back I upgraded from iPhone 4s to 5s and realised 4s is a much better phone. It gave me longer battery life of around 8.30 hrs of usage on 2g and 7 hrs on 3G but 5s was giving me only 7 hours of usage on 2g and 5 hours on 3g but since I've u
-
SetCtrlAttribute doesn't update ATTR_LABEL_TEXT
I am calling SetCtrlAttribute(handle, ATTR_LABEL_TEXT, graphcontrolID, "arbitrary text"), but the text label on the graph control isn't getting updated. I tried calling ProcessDrawEvents(), but that doesn't help. How do I get the label to change? S
-
TSLicence: have you had problems with this file
If you have, and I had major issues requiring me to erase and reinstall the OS, not once but several times, listen up: if you cannot open iTUnes, if all it does is bounce a few times in the dock and then die, you may (or may not) get a warning about
-
Hi! I currently have an XML file which looks like this: <jel> <admin creation="Fri Nov 09 17:14:55 GMT 2007" xsdversion="1.0.0" version="1.0.0"/> − <jelclass superclass="Object" visibility="public" package="" superclassfulltype="java.lang.Object