APEX 5: Problem displaying breadcrum (Create) button on interactive report
Hello There
I am trying to build a small app in APEX 5. I am taking the default 'Sample Database Application' (SDA) as an example for design.
In SDA the interactive report of Customer a breadcrumb 'Create which is displayed on the top right corner. I am trying to replicate the same in my interactive report, but in vain.
I have attached the printscreen for your reference. Could you please guide and advise me on how to get the same functionality of breadcrumb create button,etc same as in displayed in SDA into my custom app in APEX 5?
Thanks a lot for helping me out
Regards
Don
hi ,
i had used like this .. it is working...
*& Form USER_COMMAND
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
R_SELFIELD TYPE SLIS_SELFIELD.
clear : v_flag.
CASE R_UCOMM.
WHEN 'DATA'.
LOOP AT IT_TEMP.
if it_temp-checkbox = 'X'.
v_flag = 'X'.
v_pernr1 = IT_TEMP-PERNR.
*--Get compensation data and populate final internal table
refresh it_fin.
CALL FUNCTION 'Z_HR_COMP_STATEMENT'
EXPORTING
PERNR = v_pernr1
BEGDA = s_date-low
ENDDA = s_date-high
TABLES
FINAL = it_fin.
if not it_fin[] is initial.
delete adjacent duplicates from it_fin comparing pernr.
read table it_fin index 1.
move-corresponding it_fin to it_final.
append it_final.
clear it_final.
endif.
endif.
enddo.
ENDLOOP.
if not v_flag is initial.
*------ display final data
PERFORM final_display.
else.
message s000 with 'Select atleast one pernr'.
endif.
endcase.
ENDFORM. "USER_COMMAND
regards,
venkat.
Similar Messages
-
To create a normal interactive report
Hai All!
i want to create a normal interactive report, in the basic list CARRID should be displayed with checkbox. the detail list should be displayed after selecting the checkboxes & clicking the pushbotton in application toolbar.
plz help me to findout the solution.Hi smitha,
Report z_sfpfli.
*Data Declarations ...................................................
Field String fs_spfli *
DATA:
BEGIN OF fs_spfli,
carrid LIKE spfli-carrid, " Airline Code
connid LIKE spfli-connid, " Flight Connection Number
airpfrom LIKE spfli-airpfrom, " Departure airport
airpto LIKE spfli-airpto, " Destination airport
deptime LIKE spfli-deptime, " Departure time
arrtime LIKE spfli-arrtime, " Arrival time
END OF fs_spfli.
*Data Declarations ...................................................
Field String fs_sflight *
DATA:
BEGIN OF fs_sflight,
carrid LIKE spfli-carrid, " Airline Code
connid LIKE spfli-connid, " Flight Connection Number
date LIKE sflight-fldate, " Flight date
seatsmax LIKE sflight-seatsmax, " Maximum capacity in economy
" class
seatsocc LIKE sflight-seatsocc, " Occupied seats in economy
" class
END OF fs_sflight.
Internal Table To Hold spfli Table Details *
DATA:
t_spfli LIKE
STANDARD TABLE
OF fs_spfli.
Internal Table To Hold sflight Table Details *
DATA:
t_sflight LIKE
STANDARD TABLE
OF fs_sflight.
DATA:
w_checkbox TYPE c,
w_lines TYPE i,
w_currentline TYPE i,
w_last_line TYPE i.
TOP-OF-PAGE.
PERFORM top_flight_data.
TOP-OF-PAGE DURING LINE-SELECTION.
PERFORM top_sflight_data.
AT SELECTION-SCREEN EVENT *
START-OF-SELECTION.
PERFORM get_flight_data.
*& Form TOP_FLIGHT_DATA
This subroutine DISPLAY to_flight_data *
There are no interface parameters to be passed to this subroutine.
FORM top_flight_data .
SKIP 2.
FORMAT COLOR 5 ON.
WRITE:
/5(15) 'Airline Code'(010),
(15) 'Flight Connection Number'(011),
(10) 'Departure airport'(012),
(10) 'Destination airport'(013),
(10) 'Departure time'(014),
(15) 'Arrival time'(015).
FORMAT COLOR OFF.
SKIP 2.
ENDFORM. " TOP_FLIGHT_DATA
END-OF-SELECTION EVENT *
END-OF-SELECTION.
SET PF-STATUS 'MENU'.
PERFORM display_flight_data.
AT LINE-SELECTION.
IF sy-lsind EQ 1.
PERFORM get_sflight_data.
PERFORM display_sflight_data.
ENDIF. " IF SY-LSIND..
AT USER-COMMAND.
SET PF-STATUS space.
CASE sy-ucomm.
WHEN 'SELECTALL'.
w_checkbox = 'X'.
PERFORM modify_checkbox.
WHEN 'DSELECTALL'.
w_checkbox = ' '.
PERFORM modify_checkbox.
WHEN 'DISPLAY'.
PERFORM get_sflight_data1 .
ENDCASE. " CASE SY-UCOMM
*& Form GET_FLIGHT_DATA
This subroutine retrieves necessary data from SPFLI *
There are no interface parameters to be passed to this subroutine.
FORM get_flight_data .
SELECT carrid " Airline Code
connid " Flight Connection Number
airpfrom " Departure airport
airpto " Destination airport
deptime " Departure time
arrtime " Arrival time
FROM spfli
INTO TABLE t_spfli.
ENDFORM. " GET_FLIGHT_DATA
*& Form DISPLAY_FLIGHT_DATA
This subroutine DISPLAY necessary data from SPFLI *
There are no interface parameters to be passed to this subroutine.
FORM display_flight_data .
LOOP AT t_spfli INTO fs_spfli.
WRITE:
/02 w_checkbox AS CHECKBOX,
fs_spfli-carrid UNDER text-010,
fs_spfli-connid UNDER text-011,
fs_spfli-airpfrom UNDER text-012,
fs_spfli-airpto UNDER text-013,
fs_spfli-deptime UNDER text-014,
fs_spfli-arrtime UNDER text-015.
HIDE:
fs_spfli-carrid,
fs_spfli-connid.
ENDLOOP. " LOOP AT T_SPFLI INTO...
w_last_line = sy-linno.
ENDFORM. " DISPLAY_FLIGHT_DATA
*& Form GET_SFLIGHT_DATA
This subroutine retrieves necessary data from SFLIGHT *
There are no interface parameters to be passed to this subroutine.
FORM get_sflight_data .
SELECT carrid " Airline Code
connid " Flight Connection Number
fldate " Flight date
seatsmax " Maximum capacity in economy
" class
seatsocc " Occupied seats in economy
" class
FROM sflight
INTO TABLE t_sflight
WHERE carrid EQ fs_spfli-carrid
AND connid EQ fs_spfli-connid.
ENDFORM. " GET_SFLIGHT_DATA
*& Form top_sflight_data
This subroutine to Display to_sflight_data *
There are no interface parameters to be passed to this subroutine.
form top_sflight_data .
SKIP 2.
FORMAT COLOR 3 ON.
WRITE:
/1(15) 'Airline Code'(010) LEFT-JUSTIFIED,
15(15) 'Flight Connection Number'(011) LEFT-JUSTIFIED,
25(15) 'Flight date'(016) LEFT-JUSTIFIED,
38(17) 'Maximum capacity'(017) LEFT-JUSTIFIED,
48(15) 'Occupied seats'(018) LEFT-JUSTIFIED.
SKIP 2.
FORMAT COLOR OFF.
endform. " top_sflight_data
*& Form DISPLAY_SFLIGHT_DATA
This subroutine DISPLAY necessary data from SFLIGHT *
There are no interface parameters to be passed to this subroutine.
FORM display_sflight_data .
LOOP AT t_sflight INTO fs_sflight.
WRITE:
/ fs_sflight-carrid UNDER TEXT-010,
fs_sflight-connid UNDER TEXT-011,
fs_sflight-date UNDER TEXT-016,
fs_sflight-seatsmax UNDER TEXT-017,
fs_sflight-seatsocc UNDER TEXT-018.
ENDLOOP. " LOOP AT T_SFLIGHT INTO...
ENDFORM. " DISPLAY_SFLIGHT_DATA
*& Form GET_SFLIGHT_DATA1
This subroutine retrieves necessary data from SFLIGHT
There are no interface parameters to be passed to this subroutine.
FORM get_sflight_data1 .
DATA
lw_checkbox TYPE c.
DESCRIBE TABLE t_spfli LINES w_lines.
DO w_last_line TIMES.
w_currentline = 2 + sy-index.
CLEAR:
w_checkbox,
t_spfli.
READ LINE w_currentline FIELD VALUE
w_checkbox INTO lw_checkbox.
IF sy-subrc EQ 0.
IF lw_checkbox EQ 'X'.
PERFORM get_sflight_data .
PERFORM display_sflight_data .
ENDIF. " IF LW_CHECKBOX..
ENDIF. " IF SY-SUBRC..
ENDDO. " DO W_LAST_LINE
ENDFORM. " GET_SFLIGHT_DATA1
*& Form MODIFY_CHECKBOX
This subroutine MODIFIES accordingly
There are no interface parameters to be passed to this subroutine.
FORM modify_checkbox .
CLEAR w_currentline.
WHILE w_currentline LE w_last_line.
READ LINE w_currentline.
MODIFY LINE w_currentline FIELD VALUE w_checkbox FROM w_checkbox.
ADD 1 TO w_currentline.
ENDWHILE. " WHILE w_line LE w_last_line.
ENDFORM. " MODIFY_CHECKBOX
Regards,
Sravanthi -
Control the *GO* button in interactive report
How to control the GO button in interactive report using dynamic action?
i have to press the GO button automatically using dynamic action when page item get focused.
Is it possible?
thanks and regard,
skud.Hi skud,
Your dynamic action can capture the "Get Focus" event of your page item and then you could try creating a true action to submit the page with a specific request. Create a branch to a URL with the condition of request being equal to the one you specified before, and as target select URL and make use of the filtering of an IR by URL when linking. This is just an idea, hope you can get the result you need.
Regards,
Sergio -
Hi Friends,
I want to add Button in Interactive report for each row. Is it possible to add a button.Please help me.You should add a dummy column in your report query. Make dummy column as a link and change the column attribute 'Column Link' to and image. For instance the Edit column in the following query is a button on my report.
select
'Edit',
"CUST_NO",
"CUST_FIRST_NAME",
"CUST_LAST_NAME",
"CUST_ADDRESS",
"CUST_CONTACT_PHONE_NO"
from "CUSTOMER" -
Hide/Show Create button on a report/form page
Hi, I included one form and the related report on one page.
When I create a new record, it will show in the report below.
I make the ID column as the link, which assign the ID to the ID item in the form. DML will do the rest work for display.
However I got a issue. when I click the edit button for one row, the create button doesn't disappear. Although it has a condition of "VALUE OF ITEM IS NULL". I un-hidden the ID item and it do have value when I edit some row.
Is this because of some refreshing reason or...?
Your help will be great appreciated.
Edited by: Gadfly on 2009-3-16 下午8:02BTW, this hide/show pattern of 'KEY VALUE is null' works well when I use two pages(one form and one report.)
-
Radio buttons on interactive report
Hello all,
I've added radio buttons to an interactive report. What would be the best way to submit the form when user selects the buttons?
Thanks.Hi inka,
inka wrote:
Hello all,
I've added radio buttons to an interactive report. What would be the best way to submit the form when user selects the buttons?
Thanks.
one of the way to submit the form is use apex.submit
Check the example given below
1) Assuming you have used apex_item.radiogroup to create radio buttons.
sample sql query for interactive report
select EMPNO,
ENAME,
JOB,
MGR,
HIREDATE,
SAL,
COMM,
DEPTNO,
apex_item.radiogroup(1, EMPNO) r
from EMP
2) Go to Report Attributes -> Edit Radio button column
Under Column Definition
Display Type : Standard Report Column
Under Column link -> do the changes given below
Link Text : #R# // here R is my radio button column name, so select yours radio button column name.
Target : URL
URL : javascript:apex.submit({request:'TEST',set:{'P6_HIDDEN':#EMPNO#}});
// here P6_HIDDEN is item where i am setting EMPNO to that column, if you want to set any value to any item that you want to use in process then create Hidden item with protected value no.
or if you want to show confirm message before submitting the page then use apex.confirm in place of apex.submit .
Hope this helps you,
Regards,
Jitendra -
I have created an interactive report. At the end of each line of the report I want to create a button. When pressed a process would be run updating a table with the product code that is displayed on that line of the report.
How do I go about creating buttons for each line on the report?Hello,
We don't like "cannot be done in Apex"... ?:|
So here is the (a) solution:
select "DEMO_CUSTOMERS"."CUSTOMER_ID" as "CUSTOMER_ID",
"DEMO_CUSTOMERS"."CUST_FIRST_NAME" as "CUST_FIRST_NAME",
"DEMO_CUSTOMERS"."CUST_LAST_NAME" as "CUST_LAST_NAME",
'<a id="P16_DOIT" href="javascript:doSubmit(''Go'')"><img alt="Go" src="/i/go.gif"/></a>' as "Go"
from "DEMO_CUSTOMERS" "DEMO_CUSTOMERS"And set 'Display Text as' of the last column to 'Standard Report Column'.
Of course the javascript can also call any other function - with any other parameter - you like...
Greetings,
Roel
[http://roelhartman.blogspot.com/]
You can reward this reply by marking it as either Helpful or Correct ;-) -
Display BLOB (image) column in (interactive) report
Hi,
I have a field called "picture" in my table "details" which is of type BLOB. i also have a field for "MIMETYPE" and "filename"
i additionally have a "name" and "description" columns which i need to display along with the picture as columns in a report (preferably interactive).
i have also modified the BLOB display format as per
http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r31/apex31nf/apex31blob.htm
what i am missing is the correct query. if possible, i would like to control the size of the picture rendered within the report like say 40*50.
I have also referred to the thread
APEX 3.1 Display BLOB Image
But i don't know how to place the
dbms_lob.getlength("BLOB_CONTENT") as "BLOB_CONTENT"
in my query.
The above also makes the report column as of type "number". is this expected?
Any help would be much appreciated.
Regards,
RamakrishnanYou haven't actually said what the problem is?
>
I have a field called "picture" in my table "details" which is of type BLOB. i also have a field for "MIMETYPE" and "filename"
i additionally have a "name" and "description" columns which i need to display along with the picture as columns in a report (preferably interactive).
i have also modified the BLOB display format as per
http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r31/apex31nf/apex31blob.htm
what i am missing is the correct query.
I have also referred to the thread
APEX 3.1 Display BLOB Image
But i don't know how to place the
dbms_lob.getlength("BLOB_CONTENT") as "BLOB_CONTENT"
>
Something like:
select
name
, description
, dbms_lob.getlength(picture) picture
from
details
if possible, i would like to control the size of the picture rendered within the report like say 40*50.For images close to this size it's easy to do this for declarative BLOB images in interactive reports using CSS. Add a style sheet with:
.apexir_WORKSHEET_DATA td[headers="PICTURE"] img {
display: block;
width: 40px;
border: 1px solid #999;
padding: 4px;
background: #f6f6f6;
}where the <tt>PICTURE</tt> value in the attribute selector is the table header ID of the image column. Setting only one dimension (in this case the width) scales the image with the correct aspect ratio. (The border, padding and background properties are just eye candy...)
However, scaling large images in the browser this way is a huge waste of bandwidth and produces poorer quality images than creating proper scaled down versions using image tools. For improved performance and image quality, and where you require image-specific scaling you can use the database ORDImage object to produce thumbnail and preview versions automatically, as described in this blog post. -
Problems with using special characters in Interactive Report Search
Hi!
I am currently developing an Application on Application Express 3.1.2.00.02 including a page with an Interactive Report, facing the problem that I cannot use special german characters in the Searchbar.
So if i try to find a name like 'Schröder' the created Filter looks like this 'Schröder' and i won't get any valid search results. By the way the rest of the application supports these special characters like using them in Buttons or any other Page elements.
Does anyone have a clue how to fix this problem, because it's driving me nuts ;)
Thanks in advance
Philipp
Edited by: philipp_m on 10.06.2009 11:15Does noybody have a clue how to solve this problem. I tried to find out where the Problem occures. The Ajax Request looks like this
f01 contains
f01 Schröder
f01 15
p_flow_id 100
p_flow_step_id 50
p_instance 3176950818119673
p_request APXWGT
p_widget_action QUICK_FILTER
p_widget_action_mod ADD
p_widget_mod ACTION
p_widget_name worksheet
p_widget_num_return 15
x01 14175446766823030
x02 14176526259823035
So I guess it has to be inside the Javascript file (apex_ns_3_1.js). I hope someone can help me.
Bye
Philipp -
Buttons in Interactive Reports
Hi,
I have created a IR with columns x,y,z where y and z should retrieve the sysdate time. I have created y and z columns with HTML expression
<input type="submit" value="Start"/> and <input type="submit" value="Stop"/>.
I try to do the following when the user clicks start(i.e y) column in the report the system date should get updated/inserted in the table same way to the stop (i.e z)column.
The following trigger can retrieve the system date value
CREATE OR REPLACE TRIGGER "START_TIME"
before insert
on SESSION_STEP
for each row
begin
:new.start_time := sysdate;
end;
Whether i need to work some where on column link on column attributes?
I haven't done this before so just got stucked.
Any help is appreciated.
apex - 3.2
database - oracle 10g express edition
browser: FirefoxFound another post on the forum (using google...) and it seems to be a bug. Is this already fixed in APEX 3.2?
Re: Apex Import/Export - Losing search button template of interactive report
Regards,
Jacob -
Display Filter box automatically for Interactive Reports
Hi,
I have a page which uses an Interactive Report and I would like to automacially display the filter box on the screen when the page is loaded. Does anyone know how to do that?
Regards
PaulHi,
The IR Search bar is displayed and the user then can click the down arrow next to the green cog which displays opitions such as Filter, Sort, Save Report etc. If they click Filter the Filter box is displayed where the user can then select the column, operator and expression they would like to filter on.
I want to display this Filter box automatically when the page is loaded. The javascript being called to display that box is 'gReport.controls.filter();'. I must be able to add that on my page somewhere when it is loading. If I do it ONLOAD or in the header or footer i get 'gReport is undefined'. If I create a button and call that javascript it works.
Regards
Paul -
Button on Interactive Report to fire a process using JavaScript
I have a requirement to trigger a process from a button on an interactive report. One of the report columns has the triggering data allowed to make the process fire. The requirement is that the button says different things based on the value from another column in report.
My button is an html button that when the process is allowed to run, is enabled and fires a javascript function. When the process is not allowed to run for the row where the button is placed, the button changes text, color and is disabled.
The switching of the HTML button is working properly. The problem is that I am not able to grab the column value from the report to submit with the onclick() event.
As best I can tell, there is not unique id tag on the report columns and the best that I am able to do is to apply one class to the button and another class to the column that contains the value that needs to be submitted on my onclick() event.
I have considered using a link column that does a submit to a URL passing in the desired value but I would lose control of the appearance of my button.
Does anyone have a suggestion?
ThanksIn debugging while clicking on back button for first time, I found that after 'Leave to screen 0' statement debugger goes to double click event of screen 100 and start processing from a statment written immediately after 'Call screen 200' statement.
Yes, that's right. The processing will be continued from next stamtement after CALL SCREEN 200. But after the PAI will finish it shoud go to NEXT SCREEN which is 0.
If that doens't work you can try leaving the screen 100 explicitly as well.
CALL SCREEN 200.
LEAVE TO SCREEN 0. "the processing will terminate screen 100 as well
Try it out.
Regards
Marcin -
Help on print button for interactive report
Hi,
I have created an interactive report and have also added a print button on the button of the report (unfortunately forgot how I did it). Say my column on the reports was Col_No, Col_First_name, Col_Last_name and a print button when I pressed a would get to choose open or save a pdf file, if I opened or saved it, I would had the same info on my pdf report as above.
Since I have changed the column order meaning I have Col_No, Col_Last_name, Col_Start_Date, Col_First_name and that is working fine but when I click on the print button I will get the pervious columns.
I noticed I have created a branches to print the report, basically after processing, when button was pressed an action with f?p=&APP_ID.:0:&SESSION.:PRINT_REPORT=6259824360775969936:&DEBUG.::: is present.
I need help to fix this and I do very much appreciate any help or suggestions
-regards
ahmadiiFound the answer, thanks.
-
Adding print button to interactive report
For now I have the downloaded to PDF option checked so the user can print an interactive report via the widget.
I would like to have a print button on the report also.
Has anyone got any of the java script stuff working off of a button?Hi willjamu ,
All you should have to do is call the 'PDF' request to download the same report the drop down will create.
f?p=355:14:3381437251536222:PDF::::
I hope I was able to answer your question let me know.
Mike -
Apex 4.1.1 Difference in Saving Private Interactive reports
Hi,
our customers found a difference in saving reports (interactive report) and i am not sure if it is a bug or a feature.
Environment
Redhat Linux 5.8 (64bit)
Oracle 11.2.0.3.0 64bit
Apex 4.1.1.00.23
Description:
- If i change a saved report (move columns or change filter etc.) i go to the action menu choose 'save report' and my saved report are changed permant and in the session. Thats ok and are to be expected.
- If i change a saved report and click on the link_ of the saved report (on top of the Interacive report, the dialog box seems to be the same), only the session version of the report gets changed!
I have checked this several times with the view APEX_APPLICATION_PAGE_IR_RPT.
Is this a bug?
regards,
WolfgangHi Wolfgang,
The behavior you are seeing is not a bug, but rather designed behavior. The saved report link in the report settings is rename report link. If you hover over the link, Rename Report bubble displays. You can change the report attributes such as name, public and description. To save the report settings (filter, highlight, sort, control break, etc.), you need to click Actions > Save Report to save.
Regards,
Christina
Maybe you are looking for
-
How can I print a list of the songs I have in my iTunes library?
I have iTunes 6.0.2 installed in my iMac. There are now about 300 songs in my iTunes library. I've tried to print a list of these songs, but only one page will print. How can I get my printer to print as many pages as it takes to print all of the son
-
IPhone 5 not recognized by iTunes - Cannot uninstall iTunes
When I connect my iPhone 5 to my PC, the iPhone is no longer recognized. I tried to unintall iTunes (so that I could re-install it) but now I get an error when trying to unintall it from Control Panel that reads "Error opening installation log file.
-
InDesign CC installation download repeatedly fails
I have attempted on several occasions to doiwnload, via Creative Cloud Desktop, InDesign CC app. On all occasions the download fails at 41%. The "Learn More" error message (-60) suggest a corrupt file and the installation log tells me "Failed to open
-
CS3: highlited bars popped up under File, Edit, etc.
Using PHP CS3 on PowerMac OSX 4.1.1. Problem: Have these highlighted bars (light purple) on certain random files under menus that are in use or not. Been using PHP for 20+ years, never had this problem. Have contacted Adobe, which answer was, I have
-
Help - Can't open Word for Windows docs because of "Spelling Checker" error
Since updating to the new Pages of iWork 08, I've started having consistent problems opening Word documents sent to me from Windows using colleagues. When I open the .doc in Pages, an error message appears saying "Alert: Couldn't contact Spell Checke