Requerying a report after an insert button is presses on a form
We have created an On-line Registration system using Portal. A student runs a report displaying courses from which they can register from to add to their profile.
We would like to have the report requeryed after the client has clicked on the insert button on the form (that was called from the report).
Otherwise the student stays at the insert screen and need to use the browser back button. Does any one have a suggestion or example which they wouldn't mind sharing to help us overcome this problem.
Thanks Paul
Paul,
You may want to search the Oracle9iAS Portal Applications forum for an answer to your question, but to give you a pointer.
In your form, you have a textbox called "Upon Successfull Submission" .. you would call your report here. Most likely using a redirect procedure or just calling it directly.
You will definitely be able to get more information from the other discussuion forum though.
Sue
Similar Messages
-
User exit in Delivery after the SAVE button is pressed.
When the Delivery gets picked and Post Goods issued , the Delivery quantity for example instead of 48,000 LBS may be little less say 47,345 LB. We need to update this number in the order quantity which will originally have 48,000 LBS.
I need to update this quantity in the sales order VA02 after the delivery is saved. Whats the user exit AFTER the save button is pressed?
Thank you in advanceHi,
Check this User Exits related to Delivery,
Delivery related exits
V50PSTAT - Delivery: Item Status Calculation
V50Q0001 - Delivery Monitor: User Exits for Filling Display Fields
V50R0001 - Collective processing for delivery creation
V50R0002 - Collective processing for delivery creation
V50R0004 - Calculation of Stock for POs for Shipping Due Date List
V50S0001 - User Exits for Delivery Processing
V53C0001 - Rough workload calculation in time per item
V53C0002 - W&S: RWE enhancement - shipping material type/time slot
V53W0001 - User exits for creating picking waves
VMDE0001 - Shipping Interface: Error Handling - Inbound IDoc
VMDE0002 - Shipping Interface: Message PICKSD (Picking, Outbound)
VMDE0003 - Shipping Interface: Message SDPICK (Picking, Inbound)
VMDE0004 - Shipping Interface: Message SDPACK (Packing, Inbound)
V02V0001 - Sales area determination for stock transport order
V02V0002 - User exit for storage location determination
V02V0003 - User exit for gate + matl staging area determination (headr)
V02V0004 - User Exit for Staging Area Determination (Item)MV50AFZ1 - User Exits for Delivery Processing
MV50AFZ2 - User Exit for Batch Quantity Allocation
MV50AFZ3 - LIPS-KOQUI (Picking is subject to confirmation) determination
MV50AFZK - The user exits in this include can be used to fill the condition tables for material listing and
material exclusion (KOMKG and KOMPG) and product selection (KOMKD and KOMPD) with own data.
MV50AFZL - In delivery creation process for sales orders there is the possibility to restrict the delivery creation to some order items.
If these order items are member of a delivery group, but not all items of
this delivery group are includes in the restriction range of the order item nubers, you can specify in this routine what to do.
MV50AFZP - This user exit can be used to modify change mode of pricing screens in delivery processing.
MV50AFZZ - Users Exit for Batch Determination; LIPS-LGORT determination
Thanks & regards,
Dileep .C -
How to find out which button is pressed in a form?
I want to know which button (Insert, Update, Delete) the user has pressed in a form in Portal 9.0.2.3.
My form is launched so that the ID column is fixed (and hidden). Unfortunately when user presses Insert, the value of the ID is lost. I have tried to work-around this by calling the form again after successful submission. And also I'm trying to improve actions so that the form window is closed if Update or Delete is pressed.
I have got some solutions from Metalink. My problem is that they not working all the time. E.g. solution below worked this morning, but not anymore (after I have changed the form)! Have I made errors or are solutions shown in Metalink only for Portal v3.xx?
My code in 'On successful submission of a from..' field:
DECLARE
l_action varchar2(20);
v_id number;
BEGIN
-- get the action performed
l_action := p_session.get_value_as_varchar2(
p_block_name => 'DEFAULT',
p_index => 1,
p_attribute_name => '_STATUS');
-- If the action is insert then call this form again
-- If the action is update or delete then close this window
if (l_action = 'Inserted one record.') then
v_id := p_session.get_value_as_number(
p_block_name => 'DEFAULT',
p_index => 1,
p_attribute_name => 'A_ID');
go(PORTAL.wwv_user_utilities.get_url('PROVIDER.LINK_TO_FORM', 'id', v_id));
else
go('http://server/closewindow.htm');
end if;
END;
When debugging the code, variable l_action is always null.
Best regards
RainerHi Satish,
Check this blog -
/people/alwin.vandeput2/blog/2006/04/13/how-to-search-for-badis-trace-it
Check Clemens reply in this thread, its great-
BADI
<b>Reward Points if this helps,</b>
Satish -
Closing the report on pushing a button to go to another form/application
Friends,
I want to close the report previewer after selecing a value through a push button to go to another application with DDE.APP_FOCUS method invoked
Thanks in advance
anojI have one java file which has a button called
"Submit" and when clicked i need it to open up a
validation form.Yes, and? Do you have specific problems? This shouldn't be difficult, if you have a reasonable grasp on gui setup and event handling. If you don't have such a grasp, you should try to get it.
What happens when you run the code you posted? -
Displaying Screen After the Add Button is pressed and the document is saved
Hi All,
I am trying to the Display the Landed Cost screen after the Goods Receipt PO has been added and Saved.
My code below: <b>If pVal.ItemUID = "1" And pVal.FormTypeEx = "143" And pVal.FormMode = SAPbouiCOM.BoFormMode.fm_ADD_MODE And pVal.BeforeAction = False Then
If pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK Then
Dim oMenuItem As SAPbouiCOM.MenuItem
oMenuItem = SBO_Application.Menus.Item("2310") 'modules 2310 is the Landed cost screen'
oMenuItem.Activate()
End If
End If</b>
It displays the landed cost screen when i Click the add button, But I need to display it after the the document has saved, ANy inputs on the same!
Your help is appreciated!!!Hi Vinayak,
Change the code
If pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK Then
to
If pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED Then
And it will work.
Best Regards,
Nick He -
How to initiate a work flow when the button is pressed in a form
Hi All,
I am new to workflow, I am working with oracle apps r12 and form 10g and workflow builder 2.3.
I have develop a form in that i have a button called Initiate approval, When the user clicks the button the workflow need to called.
Can any one please tell me the steps to do this.
Thanks & regards
SrikkanthHi,
I have called the workflow pkg directly in my when button pressed trigger and its works fine
Regards
Srikkanth.M -
Clearing the forms after default Save Button pressed
HI,
in forms 6i how to clear the form after the save button is pressed, ie the form uses default menu and smart bar. the user wants to clear the form once he selects save from the menu or after pressing the save icon...
any idea...?
regards
Kristry on-commit trigger on form level through clear_form procedure but cursor remain stay on the same record
I think your requirement is that when user commits a record a new blank record appear so also add "create_record" procedure ;
.but u have to apply some logic on that trigger also it ever fires when user edit/insert/delete a record and commit;
Hope it clears now! -
Mac Pro switches itself off immediately after power button is pressed on
Hi there,
I would like to share with you an ongoing problem of my Mac Pro (about on and off 11 month I think). Since its HD changed at the beginning of this year I've been having the problem of "switching itself off immediately after the power button is pressed on." I took it to Milton Keynes Apple Shop and apparently they couldn't replicate the problem I received it after they reset it's PRAM. Meanwhile I read the related posts and discussions about the problem and my assumption was as suggested in the scenarios of similar cause – Power Supply unit. I had a technical chat with ex-Solutions staff from Brighton, he also said it might have been caused by it.
I really don't know what to do because, sometimes attempting 10 or over times of pressing the button I hear the chime and literally 10 or 20 seconds later it switches itself off. And it happened this Sunday morning again, 8 times I've encountered the failure. And the most confusing thing is sometimes I leave it about an hour or two and then it just works and runs fine as it has never have happened.
By the way I left my computer on for a very long time I suspect maybe more than a month it was on sleep most of time when i am not using it. But yesterday I made the mistake of logging off and shutting it down. Now I can't turn my computer on. Highly frustrating and amazingly bizarre technical challenge.
Mind you I am fairly capable of carrying DIY operations on it. Previously I baked my graphics card as suggested in the forum – it works fine at the moment I am waiting until it completely brakes. But this power problem really really puzzles me.
Any opinions, how to solve this cause is highly appreciated.
Many thanks!
Specs:
Mac Pro 8 core
Xeon 5400 2nd Generation Early 2008
10 GB RAM
1 TB HDThe SMC especially on the very first 2-3 months of Early 2008.
Use to suffer from a "restart on wake from sleep" issue.
Some one told me that is not what "inrush current issue" is but that is what I (and couple others) called it.
Best to always have a workstation on 1500VA UPS.
Not share the outlet or cirucit even with anything major.
Yes it could I guess, poor phrase, but put more stress on PSU over time as a result also.
Methods to reset SMC have varied and changed over time. Thanks to web not all the revisions and older versions are kept online though to compare to.
Stories of people going on vacation etc for two weeks to come back to a "dead" Mac Pro started showing up in 2007.
If it had an actual SMC button, use that to reset.
If not, leaving it totally disconnected, and all external cables and such over-night, not for the mere 5-10 minutes.
Unplug but then press and hold power button for 8-10 seconds. And only once. And not to be done repeatedly. That was SMC Reset #3.
I know the 2007 8-core 3GHz had a different PSU than the smaller models.
2008 high end was 8-core 3.2GHz 5400 (stock was 2.8GHz 4 or 8-core)
FBDIMMs draw between 10W up to 15W each, so possible to have 8 DIMMs drawing 120W when maxed out. And heat. I always recommend Mac Pro use fan control to boost the fans a small 400 rpm to expel heat better and keep FBDIMM temps down. Heat, and temperature fluxuations stress and weaken components.
Other than AHT and the tools that a Apple Certified center should have, not much other than to swap out parts, monitor - iStatPro or Hardware Monitor -
And because of all this, I would setup a test system so you have a freshly formatted and installed OS and take it from there, with a better chance.
ATI 2600XT still? or upgraded? -
Passing value to a report after insert on form
I am trying to open up a form after I insert values into a form, i have put the following code on the insert button after doInsert; but for some reason the value of l_req_id does'nt get populated, do i have to put the code somewhere else?
declare
l_req_id integer;
l_url varchar2(2000);
begin
l_req_id := p_session.get_value_as_NUMBER(
p_block_name => 'DEFAULT',
p_attribute_name => 'A_SA_REQ_ID');
l_url := 'pos.CUST_SHIP_RPT.show?'| |
'p_arg_names=req_id&p_arg_values=' | |l_req_id;
portal30.wwa_app_module.set_target(l_url,'CALL');
end;
value of l_url after the insert of the form:
http://hostname/pls/portal30pos.CUST_SHIP_RPT.show?p_arg_names=req_id&p_arg_values=Hi prassu,
thanks for you reply know we can do this if we have a prompt,but my issue here is we do not have prompt.
We have Report 1 with a column area_id.
& another report2 with column area_id,we would like to pass the value from one report to another once we click on the values under area_id column of report1.
Hope have explained it properly. -
How to send a predefined email after clicking on an Insert button in a Form?
Hi,
I created my form ( three fields) where I enter a three values.
I want an email be sent every time new values are entered and the insert button clicked.
Do you know a way on how to do it please?
Thanks
Khaled.Hi,
I do not know of a way within Portal to automatically send an email, but the database has a utility (utl_smtp) that will allow you to do so very easily. You can use Portal to insert your data and then put a trigger on your table that fires after the data is inserted that calls a procedure that will send the mail.
Here is an example of a procedure that I have used to send mail (you can get all of the info on utl_smtp in the Oracle docs). I have a Portal form that allows the user to input three values and once they click 'insert' and the data goes into the table, I have a trigger that fires 'after insert' and runs this procedure:
PROCEDURE send_register_mail (sender in varchar2,
email varchar2,
date_of_class date)
IS
mailhost VARCHAR2(30) := 'my.mailserver.com';
mail_conn utl_smtp.connection;
BEGIN
mail_conn := utl_smtp.open_connection(mailhost, 25);
utl_smtp.helo(mail_conn, mailhost);
utl_smtp.mail(mail_conn, email);
utl_smtp.rcpt(mail_conn, '[email protected]');
utl_smtp.open_data(mail_conn);
utl_smtp.write_data(mail_conn, 'Subject: Platform Training registration request'||utl_tcp.crlf||'Content-Type:text/html;'||utl_tcp.crlf||utl_tcp.crlf);
utl_smtp.write_data(mail_conn, sender||' would like to attend the POC training scheduled for '|| date_of_class);
utl_smtp.close_data(mail_conn);
utl_smtp.quit(mail_conn);
EXCEPTION
WHEN OTHERS THEN
-- Handle the error
htp.p('There was an error processing your registration. Please contact the site administrator');
END;
Hope this helps.
-melissa -
Edit a selected row in an alv report after pressing a push button ?
hi all ,
I want to edit a selected row in an alv report but that too after i press a push button . After pressing the push button , a pop up shud *** showing all the entries of the selected row which shud be editable and after editing it shud be saved into the database table.
How can i do this please help asap ???May this prog. of mine can solve your requirement.
REPORT z_demo_alv_jg.
TYPE-POOLS *
TYPE-POOLS: slis.
INTERNAL TABLES/WORK AREAS/VARIABLES *
DATA: i_fieldcat TYPE slis_t_fieldcat_alv,
i_index TYPE STANDARD TABLE OF i WITH HEADER LINE,
w_field TYPE slis_fieldcat_alv,
p_table LIKE dd02l-tabname,
dy_table TYPE REF TO data,
dy_tab TYPE REF TO data,
dy_line TYPE REF TO data.
FIELD-SYMBOLS *
FIELD-SYMBOLS: <dyn_table> TYPE STANDARD TABLE,
<dyn_wa> TYPE ANY,
<dyn_field> TYPE ANY,
<dyn_tab_temp> TYPE STANDARD TABLE.
SELECTION SCREEN *
PARAMETERS: tabname(30) TYPE c,
lines(5) TYPE n.
START-OF-SELECTION *
START-OF-SELECTION.
Storing table name
p_table = tabname.
Create internal table dynamically with the stucture of table name
entered in the selection screen
CREATE DATA dy_table TYPE STANDARD TABLE OF (p_table).
ASSIGN dy_table->* TO <dyn_table>.
IF sy-subrc <> 0.
MESSAGE i000(z_zzz_ca_messages) WITH ' No table found'.
LEAVE TO LIST-PROCESSING.
ENDIF.
Create workarea for the table
CREATE DATA dy_line LIKE LINE OF <dyn_table>.
ASSIGN dy_line->* TO <dyn_wa>.
Create another temp. table
CREATE DATA dy_tab TYPE STANDARD TABLE OF (p_table).
ASSIGN dy_tab->* TO <dyn_tab_temp>.
SORT i_fieldcat BY col_pos.
Select data from table
SELECT * FROM (p_table)
INTO TABLE <dyn_table>
UP TO lines ROWS.
REFRESH <dyn_tab_temp>.
Display report
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_structure_name = p_table
i_callback_user_command = 'USER_COMMAND'
i_callback_pf_status_set = 'SET_PF_STATUS'
TABLES
t_outtab = <dyn_table>
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
*& Form SET_PF_STATUS
Setting custom PF-Status
-->RT_EXTAB Excluding table
FORM set_pf_status USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'Z_STANDARD'.
ENDFORM. "SET_PF_STATUS
*& Form user_command
Handling custom function codes
-->R_UCOMM Function code value
-->RS_SELFIELD Info. of cursor position in ALV
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
Local data declaration
DATA: li_tab TYPE REF TO data,
l_line TYPE REF TO data.
Local field-symbols
FIELD-SYMBOLS:<l_tab> TYPE table,
<l_wa> TYPE ANY.
Create table
CREATE DATA li_tab TYPE STANDARD TABLE OF (p_table).
ASSIGN li_tab->* TO <l_tab>.
Create workarea
CREATE DATA l_line LIKE LINE OF <l_tab>.
ASSIGN l_line->* TO <l_wa>.
CASE r_ucomm.
When a record is selected
WHEN '&IC1'.
Read the selected record
READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX
rs_selfield-tabindex.
IF sy-subrc = 0.
Store the record in an internal table
APPEND <dyn_wa> TO <l_tab>.
Fetch the field catalog info
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = 'Z_DEMO_PDF_JG'
i_structure_name = p_table
CHANGING
ct_fieldcat = i_fieldcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
IF sy-subrc = 0.
Make all the fields input enabled except key fields
w_field-input = 'X'.
MODIFY i_fieldcat FROM w_field TRANSPORTING input
WHERE key IS INITIAL.
ENDIF.
Display the record for editing purpose
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_structure_name = p_table
it_fieldcat = i_fieldcat
i_screen_start_column = 10
i_screen_start_line = 15
i_screen_end_column = 200
i_screen_end_line = 20
TABLES
t_outtab = <l_tab>
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc = 0.
Read the modified data
READ TABLE <l_tab> INDEX 1 INTO <l_wa>.
If the record is changed then track its index no.
and populate it in an internal table for future
action
IF sy-subrc = 0 AND <dyn_wa> <> <l_wa>.
<dyn_wa> = <l_wa>.
i_index = rs_selfield-tabindex.
APPEND i_index.
ENDIF.
ENDIF.
ENDIF.
When save button is pressed
WHEN 'SAVE'.
Sort the index table
SORT i_index.
Delete all duplicate records
DELETE ADJACENT DUPLICATES FROM i_index.
LOOP AT i_index.
Find out the changes in the internal table
and populate these changes in another internal table
READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX i_index.
IF sy-subrc = 0.
APPEND <dyn_wa> TO <dyn_tab_temp>.
ENDIF.
ENDLOOP.
Lock the table
CALL FUNCTION 'ENQUEUE_E_TABLE'
EXPORTING
mode_rstable = 'E'
tabname = p_table
EXCEPTIONS
foreign_lock = 1
system_failure = 2
OTHERS = 3.
IF sy-subrc = 0.
Modify the database table with these changes
MODIFY (p_table) FROM TABLE <dyn_tab_temp>.
REFRESH <dyn_tab_temp>.
Unlock the table
CALL FUNCTION 'DEQUEUE_E_TABLE'
EXPORTING
mode_rstable = 'E'
tabname = p_table.
ENDIF.
ENDCASE.
rs_selfield-refresh = 'X'.
ENDFORM. "user_command
Regards,
Joy. -
How to stay back on same section of a report after pressing cancel button
Hi,
How we can stay back on a same section of a report page when I press Cancel button or Apply Changes button from linked Data Entry Form. For instance if I have a 200 rows in a report and I scroll down to 80th row and press Edit button when called a data entry form. Now when I press Cancel it again re-load the report from the start of the page.
Any idea!
Thanks
SabahatHi Sajid,
Thanks for reply.
I have used RETURN statement like below.
SUBMIT RFWT0010 WITH vendor = 'X'
WITH i_lifnr IN i_lifnr
WITH i_bukrs IN i_kunnr
WITH test = 'X'
AND RETURN.
The output of RFWT0010 is displayed. but on pressing "back" button on toolbar, the flow is coming back from RFWT0010 to calling report. I want that On pressing ENTER button of keyboard. The flow should come back to calling report.
Regards,
Ratnesh -
I cannot send email in hotmail account and insert buttons dissapear after 4 seconds
I am able to receive emails in hot mail account but cannot send.
This has been the case for the last two days.
Have the same problem in IE.
Noticed insert buttons disappear when I click on new
Same in IEEnded up calling my service provider to figure it out. They couldn't but again gave me all the perameters to enter into an account. I had to cancel the account on my phone and set up a new one. I had to enter the information more than once before the phone would actually save it. Lucky me, it did not lose all the emails I had stored on the phone. No help from Apple!
-
Open BI Publisher Report After Submit
I have a page with 2 date fields, which are parameters for a report.
I also have a button called RUN_REPORT.
What I need to do is that the user puts the parameters in, then clicks RUN_REPORT. The page should submit (putting parameters into session state) and then a BI Publisher report should appear in a pop up page.
At the moment using the code below, the user inputs parameters and clicks RUN-REPORT (SUBMIT). Unfortunatley the BI report tries to open before the submit is finished. So there are no items in session state for the report to use as parameters.
Page HTML Header
<script type="text/javascript">
function renew()
doSubmit('SUBMIT')
popupURL('This contains my string to open the report')
</script>On my button
javascript:renew();Help appreciated
GusI've solved this in two ways:
First solution:
- The last parameter the user has to pick is in a selectlist which submits the page
- The button redirects to url:
javascript:popUpNamed('URL','');Seccond solution (and user-friendlier solution ;) ):
1 - Hidden item (say P_RAP), default it's empty
2 - The buttons Action is 'Submit page'
3 - A conditional Branche to the own page, which only runs when the report button is pressed.
3a -- This branche sets the hidden Item (P_RAP) with the report name (in my case, becouse I can start multiple reports on the page and I use it in my URL to the report, it can also be just a 1 or something, just that it is filled)
4 - A Page Process which runs On Load - After Header, and is conditional: Value of Item P_RAP is NOT NULL.
4a -- The code of this process is:
BEGIN
htp.p('<script type="text/javascript">');
htp.p('w = open("URL_to_the_report","_blank","Scrollbars=0,location=0,resizable=1,menubar=0,toolbar=0,left=50,top=100,width=500,height=500");');
htp.p('</script>');
:P_RAP:=''; /*clear the P_RAP item after starting the report*/
END;Hope this helps -
Need help on creating a report after defining some criteria
Hi everybody,
I have been through some of the ebooks and got the idea of apex.
To give an example what I would like to do is that I want to open two date picker fields and creating the report between the dates which were defined in the date pickers
Those date picker field could be on the same page of report or they could be on another page. Once create button is pressed then the report between the defined dates should appear
Any thoughts?
Thanks from nowOkay, two date pickers are date to and date from, logically date to must be equal or after date from, right?
i defined a validation as pl/sql expressin saying that date to >= date from to the expression field
there is no problem when I put a former date on date from and a latter date to date to.
the problem occurs when I put same dates on the date pickers. An interesting point here is that when I put the same dates and click the submit button it gives an error BUT when I push again it works!
it gives me the rows from the table of the date picker date. is there a problem about the caching and how can I solve it.
Or, as you recommend you can show me an example on your workspace, that would be helpful as well
Maybe you are looking for
-
Hi All, In one of our custom module, I am facing one issue with the fnd_concurrent.wait_for_request. I am calling one custom function through the 'Workflow Background Process'. This function is submitting a concurrent program using fnd_request.submit
-
Nenhum registro concordante encontrado (ODBC -2028) - Em NFS
Boa Tarde a todos, Estou tentando inserir nota fiscal de saída via DI API, e hoje ocorreu este erro em 4 pedidos: "Nenhum registro concordante encontrado (ODBC -2028)" Outros pedidos foram gerados e continuou a funcionar normalmente a inserção via DI
-
Why do i get a BOBJ prompt in xcelsius with my live office feed
dear all, the situation ... i have an excel document, with a live office feed. the data feed is assigned a specific user from the sap ecc backend system. i have this excel live office saved locally on my c drive. i can open it up, and hit the refresh
-
How to print names all files from a given folder into a file??
Hi, Given is folder which contains folder's n files. the same is wd every folder. How to print names of all files in parent dir. ex: C drive 1) windows 2)prog files 3) Documents 4) a.txt 1.a) cursors......... 2.a) netbeans..... 3.a) rcm_b05 output: c
-
Forecast Profile Assignment At Customer Level
Hi All, I would like to assign a forecast at a customer level that has multiple products that roll up to this one customer. Is this possible? When I enter one customer in the selection profile and load all of the item and then try to assign a forecas