Prompting user for input for each row in the report
Is it possible to have a user entered field for each row in a report ?
ie. have a report with empolyee number, employee name, title, salary, and comment. Select of of these columns from the SQL query except for the comment, and then when the report is generated have the user be prompted for what the want the comment to be for every employee in the report?
That is, have the user generating the report enter in a different comment for EACH employee. (ie Joe Smith's comment is "good worker and John Smith's comment is "come to work late on Tuesdays and Thursdays", Sally Jones' comment is "Expert in C++" etc.) as the reports is being built for each row returned from the query.
Similar Messages
-
How to show an image on each row of the report?
I have created a report in apex. i want to display image on each row in a column of the report.
How can i do this?See About BLOB Support in Forms and Reports in the documentation.
There's an OBE tutorial that followed the introduction of declarative BLOB support in 3.1 as well.
In future please
<li>Search the forum before posting a new question. Most questions (including this one) have been asked and answered before.
<li>Include as much relevant information with your question as possible, starting with:
- APEX version
- DB version and edition
- Web server architecture (EPG, OHS or APEX listener)
- Browser(s)/version(s) used
- Theme
- Templates
- Region type(s)
<li>Change your forum handle to something better than "845927". -
How to add a comment for each row on the output of a report?
I would like to add a comment (field) for each row on the output of report? This comment should to be saved as well. Is there a way i can do that?
Regards,
RamHi Dimitri,
through the instead of trigger functionality i am able to update the view. This is view is based on different views which should be linked to a table (as you suggested) in which comments can be stored. Hower this table is empty and how to link this table with the view now? I face the following challenge.
View consists the following columns, for example
select name, sex, age from test_view
name sex age
John M 20
Anton M 30
Willy M 40
shirley F 38
sharon F 37
The report has the following output, for example
name sex age
John M 20
Anton M 30
Willy M 40
Shirley F 38
Sharon F 37
Now i would like to add comment through a button.
The report layout looks like
name sex age
John M 20 <add comment button>
After submitting the <add comment button> you can enter text which deals with John
text='John doesnot like me'
Finally the report display the comment as well
name sex age
John M 20 'John doesnot like me' <update/delete comment button>
Anton M 30 <add comment button>
Willy M 40 <add comment button>
Shirley F 38 <add comment button>
Sharon F 37 <add comment button>
After submitting the <update/delete button> you can change or delete the entered text.
I hope this example clears things up.
Regards,
Ram -
Disabling the Qty field for Input for Sub items in Sales Order and Delivery
Hi..
I have a requirement, where by we need to disable the qty field vbap-kwmeng for input for sub items of the BOM.
I am planning to use the user exit USEREXIT_FIELD_MODIFICATION...in the include MV45AFZZ for sales orders.
But i need to disable the input only after the BOM Explosion and item category determination in the sales order.
Can i Use the same exit ?? what additional conditions i need to take into account.
also we need to disable the delivery quantity field also for the sub items of this sales bom.
I see that this User exit is not available in delivery procesing. How to acheive the required functionality in the delivery processing...
your advice is much appreciated in this matter.
Regards
Srinihi,
Route is determined
1.Country of Departure & Departure Zone taken from Shipping Point
2.Country of Destination & receiving Zone from Ship to party
3.Shipping condition from CMR
4.Transportation Group from MMR
5.Weight Group which is optional.
Check the above.
Route is determined in delivery.
ASHA -
How to apply List box for multiple selection of rows in ALV report ?
Hi Exprots,
1: How to apply List box for multiple selection of rows in ALV report ?
Thanking you.
Subashhi,
check the below program.
REPORT zalv_dropdowns.
*Type pools declarations for ALV
TYPE-POOLS : slis.
*data declarations for ALV container,ALV grid, Fieldcatalogues & layout
DATA: g_grid TYPE REF TO cl_gui_alv_grid,
g_custom_container TYPE REF TO cl_gui_custom_container,
gt_fieldcat TYPE lvc_t_fcat,
gs_layout TYPE lvc_s_layo.*INTERNAL TABLE AND WA DECLARATIONS FOR t517 A table
DATA: gt_outtab TYPE STANDARD TABLE OF t517a INITIAL SIZE 0,
wa_outtab TYPE t517a.
START-OF-SELECTION.*Call to ALV
CALL SCREEN 600.*On this statement double click it takes you to the screen painter SE51.
*Create a Custom container and name it CCONT and OK code as OK_CODE.
*Save check and Activate the screen painter.
*Now a normal screen with number 600 is created which holds the ALV grid.
PBO of the actual screen , Here we can give a title and customized menus
Here we also call the subroutine for ALV output.
MODULE PBO OUTPUT *
MODULE pbo OUTPUT.
PERFORM alv_output.
ENDMODULE. "pbo OUTPUT
MODULE PAI INPUT *
MODULE pai INPUT.
ENDMODULE. "pai INPUT
*& Form BUILD_FIELDCAT
FORM build_fieldcat.
DATA ls_fcat TYPE lvc_s_fcat.
*Build the field catalogue
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'T517A'
CHANGING
ct_fieldcat = gt_fieldcat.
To assign dropdown in the fieldcataogue
LOOP AT gt_fieldcat INTO ls_fcat.
CASE ls_fcat-fieldname.
WHEN 'SLART'.
*is the first list box
ls_fcat-drdn_hndl = '1'.
ls_fcat-outputlen = 15.
MODIFY gt_fieldcat FROM ls_fcat.
is the second list box
WHEN 'ABART'.
ls_fcat-drdn_hndl = '2'.
ls_fcat-outputlen = 15.
MODIFY gt_fieldcat FROM ls_fcat.
ENDCASE.
ENDLOOP.
ENDFORM. "build_fieldcat
*& Form ALV_OUTPUT
FORM alv_output .*Create object for container
CREATE OBJECT g_custom_container
EXPORTING container_name = 'CCONT'.
*create object for grid
CREATE OBJECT g_grid
EXPORTING i_parent = g_custom_container.
Build fieldcat and set column
*Assign a handle for the dropdown listbox.
PERFORM build_fieldcat.
*Build layout
PERFORM build_layout.
Define a drop down table.
PERFORM dropdown_table.
*fetch values from the T517A table
SELECT * FROM t517a INTO TABLE gt_outtab.
*Display ALV output
CALL METHOD g_grid->set_table_for_first_display
EXPORTING
is_layout = gs_layout
CHANGING
it_fieldcatalog = gt_fieldcat
it_outtab = gt_outtab.ENDFORM. "ALV_OUTPUT
*& Form dropdown_table
text
--> p1 text
<-- p2 text
FORM dropdown_table.*Declarations for drop down lists in ALV.
DATA: lt_dropdown TYPE lvc_t_drop,
ls_dropdown TYPE lvc_s_drop.
First SLART listbox (handle '1').
ls_dropdown-handle = '1'.
ls_dropdown-value = '01 Primary school'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '1'.
ls_dropdown-value = '02 Lower Secondary'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '1'.
ls_dropdown-value = '03 Upper Secondary'.
APPEND ls_dropdown TO lt_dropdown.
ls_dropdown-handle = '1'.
ls_dropdown-value = '04 Professional School'.
APPEND ls_dropdown TO lt_dropdown.
ls_dropdown-handle = '1'.
ls_dropdown-value = '05 College'.
APPEND ls_dropdown TO lt_dropdown.
ls_dropdown-handle = '1'.
ls_dropdown-value = '06 University'.
APPEND ls_dropdown TO lt_dropdown.
ls_dropdown-handle = '1'.
ls_dropdown-value = '09 Other Establishment'.
APPEND ls_dropdown TO lt_dropdown.* Second ABART listbox (handle '2'). ls_dropdown-handle = '2'.
ls_dropdown-value = '10 Primary School certificate'.
APPEND ls_dropdown TO lt_dropdown.
ls_dropdown-handle = '2'.
ls_dropdown-value = '20 Lower secondary/Junior high'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '30 High school diploma(B-levels)'.
APPEND ls_dropdown TO lt_dropdown.
ls_dropdown-handle = '2'.
ls_dropdown-value = '31 Vocational'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '32 Matriculation'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '40 Specialist vocational certificate'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '50 College degree Level1'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '51 College degree Level2'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '52 Masters degree'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '60 Univ Degree level1'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '61 Bachelors degree'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '62 Masters degree'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '63 Licenciate'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '64 Doctors Degree Ph.D'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '89 None'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '90 Unknown'.
APPEND ls_dropdown TO lt_dropdown.*method to display the dropdown in ALV
CALL METHOD g_grid->set_drop_down_table
EXPORTING
it_drop_down = lt_dropdown.ENDFORM. " dropdown_table
*& Form build_layout
text
*layout for ALV output
FORM build_layout . gs_layout-cwidth_opt = 'X'.
gs_layout-grid_title = 'ALV DROPDOWN LISTS'.
gs_layout-no_toolbar = 'X'.ENDFORM. " build_layout
endform.
Edited by: S.r.v.r.Kumar on Jun 1, 2009 2:48 PM -
How to get multiple output formats for each execution of the report?
Hi,
Is it possible to get multiple output formats for each execution of the report? If so can you provide some details?
ThanksIn Reports 6i, Reports Distribution was introduced. This allows you to run the report once and output to a number of destinations with a different format. It also allows you to distribute individual sections within a report to different destinations in different formats.
The Destinations for a Report to distribute to are defined either in a distribution file and passed on the command line or inside of the report definition.
To add a destination to the the report definition, bring up the property palette against the report object and then select the "Distribution" property under the "Report" node. This will bring up a dialog that allows you to create a distribution list. You can then test this list by selecting "file->distribute" from the menu.
To run a report that is to be distributed through rwrun60, you need to add "distribute=yes" to the command line. It will pick up the destinations from the report definition. If you add "destination=<filename>" then it will pick up the destinations from the specified "<filename>" and ignore the destinations in the report definition.
Note: if "distribute=yes" is specified on the command line then the destype/desname/desformat parameters will be used to format the report (ie: which printer/display to use during formatting for sizing objects) but will be ignored when the report is sent to the destinations. -
Using a LoV in each row of a report (SELECT)
Hi everyone,
I have a report of a table in APEX and I'd like to show a column with a Select list that I have saved (LoV). I mean, for each row of the table it must appear this dinamic select list. In addition, I want a button next to every Select list, every row.
I know how to show a static select list using HTML in my SELECT query. I do something like:
SELECT atribute1, atribute2, .... , '<html> select code </html>' as "list"
FROM table1
But I need to use an existing LoV. And then, if the user change one value of one select list, and presses the button in the same row, this value should be processed and do an UPDATE of this row in the DataBase.
I suppose it is possible to do this in APEX, but I still didn't fins the way to do this.
Can you help me, please? If my english is too bad, I can try to explain it better.It's not necessary any answer.
I was wrong about inserting LoVs with HTML. It is not that hard, it's more simple and I know how to do this now. -
Putting buttons at the end of each row of a report
Hi
Was wondering if anyone new of a way to put buttons on the end of each row of a report. Basically i want a button and a LOV box next to the end of each row so that the user could set the value of the LOV box click the button and that would update just that row. Obviously i want to give them the option of batch processing it as well but for now i just want them to be able to update one row at a time.
This does not nessacary need to be with a LOV box it could also work with radio buttons to specifiy the value to update.
If anyone knows a way of doing this or any information where i can read about it then please let me know as i would be very interested.
Or can you make report fields eidtable so that i can just run a massage update on the using all the values in the report?
Thank you for your time
Daniel Stead
Message was edited by:
Dan SteadNo such luck a tabluar updat form shows all the rows for that table. I only want the user to be able to update their rows in the table.
This is bascally what i want to do.
I have two reports that only show records that are realted to the current user that is logged in.
The first report shows all records in the table for the current user where the supervisor (the current user) type is set to confirmed.
The second reprot shows all the records in the table for the current user where the supervisor (the current user) type is set to requested.
That is what i have acheived so far.
I want to be able to make the superviosr type in the second report editable with a list of values requested, rejected and confirmed. The user can then select what he would like the type to be for the specific record in the report and then press a button that updates all the reocrds (or a button at the end of each row that updates each row). If the row is confirmed it moves to the first report, if it is still requested it stays in the second report and if it is set to rejected then it will be in neither report.
Therefore my question is if i make the supervisor type eidtable how can i link it to the id of that row so that it updates it?
If this is not clear please state to me which part i have not made clear.
Thank you for your help.
Daniel Stead -
Extra buttons on each row of a report?
Hi,
I would like to add multiple buttons in front of each row in a report.
When a button is pressed a Pl/SQL statement should run with access to the PK ID of that row.
Also, it is important that I can add other buttons as well (edit, delete etc)
What I want to accomplish, for example:
I want to have an add event button on each line of a scheduled production run, this should then branch to a new page on which first a hidden item (set to pk id) and visible item (pk info) is set to those of the row on which the button was pressed.
I hope that makes sense.
Please let me know how I can to do this,
Thank you so much for any help!!!open the page, click the RPT link to the report column attributes of that region. choose the field you wish to alter (click the edit icon) then change under the "column link" section to an href. I have used a call to a javascript function in the URL box e.g. "javascript:show_the_page(#ADD#);" and included a javascript function within my app to handle this (read in PK and open a page in a new window with the PK as a variable)
-
Portal asking for Login details again while executing the reports
Hi Team,
Our Portal is asking for Login details again while executing the reports individually.
The issue is the if i enter the same PORTAL Login credentials, its showing as Authentication failed.
PLEASE ADVICE ASAP.
thanks & regards
SnehaHi Kiran,
I have recently taken up this portal.. so not clear on the structure.
however, I observed there was no user mapping available.. so i added the same with my login credentials..
stil the issue persists.
Please advice.
Sneha -
Add a button(not a link) in each row of a report
hi,
i need to add a button(not a link) in each row of a report. On clicking this button , the value in a specified column in database should change from yes to no.
How can i achieve this funcationality. I am using apex 4.2.
Please help!I used the images in the report region query,
select
EMPNO,
ENAME,
JOB,
MGR,
HIREDATE,
SAL,
COMM,
DEPTNO,
decode(IS_COMM,'Y','<a href="#" onClick= javascript:pdelete('||a.EMPNO||');><img src="#WORKSPACE_IMAGES#remove.gif" alt=""></a>','N','<a href="#" onClick= javascript:padd('||a.EMPNO||');><img src="#WORKSPACE_IMAGES#value_ok.png" alt=""></a>','<a href="#" onClick= javascript:padd('||a.EMPNO||');><img src="#WORKSPACE_IMAGES#value_ok.png" alt=""></a>') check_comm
from
test_emp aChanged the check_comm -> Display Text As as Standard Report Column. Created two items to save the value of 'EMPNO'. Javascript code in the page header as below,
function padd(pSub)
$s('P8_ADD',pSub);
doSubmit('ADD');
function pdelete(pSub)
$s('P8_DELETE',pSub);
doSubmit('DELETE');
}Created the processes with condition like Request=Expression1 based on the REQUEST returned by javascript function.
Thanks
Lakshmi -
3 radio buttons is needed on each row of a report
Hi,
I need 3 radio buttons on each row of a report. Out of these three , one can be selcted per row. And in each column I can select more then one radio button.
Please provide a way to do the same.
Thanksopen the page, click the RPT link to the report column attributes of that region. choose the field you wish to alter (click the edit icon) then change under the "column link" section to an href. I have used a call to a javascript function in the URL box e.g. "javascript:show_the_page(#ADD#);" and included a javascript function within my app to handle this (read in PK and open a page in a new window with the PK as a variable)
-
Prompt user to save change before abnormally closing the application
Hi,
I've some trouble prompting user to save change before abnormally closing the application (logging off, shutdownding machine...). I tried to use Runtime.getRuntime().addShutdownHook() and it doesn't seem to work. Here's part of my code. Help please!!!
program print out "1" and stays in a "dead-lock" mode...
private void shutdown() {
boolean saveConfig = true;
if (saveConfig) {
System.out.println("1 ");
int answer = JOptionPane.showConfirmDialog(null,
"Configuration has been changed. Do you want to save
configuration before exit?",
"Save Config"
JOptionPane.
YES_NO_CANCEL_OPTION);
JOptionPane.showMessageDialog(this, "Can't connect to unit. Error in Heal unit!", "Error", JOptionPane.INFORMATION_MESSAGE);
System.out.println("2 ");
if (answer == 0) {
savefileButton_actionPerformed();
jMenuFileExit_actionPerformed();
else if (answer == 1) {
jMenuFileExit_actionPerformed();
else {
return;
else {
int answer = JOptionPane.showConfirmDialog(itself,
"Are you sure you want to exit? ",
"Exit",
JOptionPane.YES_NO_OPTION);
if (answer == 0) {
jMenuFileExit_actionPerformed();
else {
return;
private class MyShutdownHook extends Thread {
public void run() {
shutdown();
// add shutdown hook
MyShutdownHook shutdownHook = new MyShutdownHook();
Runtime.getRuntime().addShutdownHook(shutdownHook);doesn't much matter. shutdown hooks are not guaranteed to run or be able to finish.
-
How to exclude the XML declaration from each row of the result set?
Hi,
I have a table with an XMLTYPE column and would like to SELECT a set of rows. How can I exclude the XML declaration from each row in the result set? My query currently looks like this, I'm executing it through Spring JDBC:
SELECT XMLSerialize(CONTENT t1.xmltext) FROM myschema.event t1 WHERE XMLEXISTS('$e/Event' PASSING XMLTEXT AS "e") ORDER BY t1.time DESC
After selecting, in my application I convert each row into a String and concatenate all rows into one big string in order to parse it into a DOM model. I get a parser exception (org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed) because there are multiple XML declarations in my big string. Of course, I could manually check the String of each row whether it starts with the XML declaration, but it would be nicer if I could instruct the DB not to add it in the first place. Is there a way?
Thanks!
-- DanielaHi,
A couple of options I can think of :
SELECT XMLSerialize(CONTENT
XMLtransform(t1.xmltext,
xmltype('<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output omit-xml-declaration="yes"/>
<xsl:template match="/"><xsl:copy-of select="*"/></xsl:template>
</xsl:stylesheet>')
FROM myschema.event t1
WHERE XMLEXISTS('$e/Event' PASSING XMLTEXT AS "e")
ORDER BY t1.time DESC
;or simply,
SELECT XMLSerialize(CONTENT
extract(t1.xmltext,'/')
FROM myschema.event t1
WHERE XMLEXISTS('$e/Event' PASSING XMLTEXT AS "e")
ORDER BY t1.time DESC
; -
Adding new row to the reports list page
How can I add a new report row in the reports list of the reports tab.
Ex: a new row to the report "users by Date of Join report" is to be added
How can we add Please help me out in thisI am facing the same problem!
camickr wrote:
Try adding an empty row containing a null value for the String instead of the empty String.camickr, it will not help, the DefaultRowSorter in the "*+compare(int model1, int model2)+*" method return -1 if the first value is null and 1 if the sacond value is null. and incase of DESCENDING it mult by -1.
// Treat nulls as < then non-null
if (v1 == null) {
if (v2 == null) {
result = 0;
} else {
result = -1;
} else if (v2 == null) {
result = 1;
} else {
result = sortComparators[counter].compare(v1, v2);
if (sortOrder == SortOrder.DESCENDING) {
result *= -1;
}And this is the real problem!
The empty line is sorted as the smallest value and incase of DESCENDING it will be the first line (because of the mult by -1).
We could have overide it and incase of the empty row(usualy the last row) do not mult by -1 in DESCENDING mode.
But the problem is that the "+*compare*+" method and it's caller "*+Row+*" inner class are private :-(
It is not wise to do it but we can do like kmp83 wrote:
kmp83 wrote:
copy/duplicate "private" code from DefaultRowSorter into my extended class.Anyone have another suggestion?
Maybe you are looking for
-
Hi, I have jtable with two column. Column A and column B. I type string "stupid" in column A. Then when I change the cell by pressing Enter or right arror or other arrow, it suddenly check the value in column A with the string "clever". Then it is no
-
I activated iTunes Match but the songs in my iTunes library that were not purchased through iTunes did not share to my other devices. instead there is a cloud with an exclaimation point nnext to eahc one and it says errror when you mouse over the clo
-
RFC Connection GFW_ITS_RFC_DEST connection test failed
I can test my IGS connection on SM59 for GFW_ITS_RFC_DEST on the central instance and 1 of my application servers succesfully. But my other 2 applications server failed on the test. What can I check whats the issue and resolved it Regards Naziem Maho
-
Adobe Flash Player on Windows Embedded
Hi, My company produces a software product used for training purposes. In addition to the software we also provide customers with standard desktop PC hardware with Windows installed on it. In order to comply with Windows distribution licensing we pro
-
I have bought a used ipad and it is saying not charging when plugged into computer