Delete records in a report with a popup
Hi.
In my report, the first column contains edit buttons for each record. Now, the second column should provide a delete button for each record. Is it possible to create a popup window that comes up if the user presses the button and ask to submit and to cancel? And after a submit, the record is deleted from the database and the page refreshed? How do I create this popup and the process?
Thanks in Advance for your help.
Stephan
Hi Denes.
Yes. Your example makes exactly that what I'm going to try. I had a closer look at the settings of your page and tried to transfer it to my problem.
Unfortunately, it don't work and I don't know why.
the URL with the javascript popup is:
javascript:confirmDelete(htmldb_delete_message,'f?p=&APP_ID.:3010:&SESSION.:DELETE:&DEBUG.::P3010_DELETE_ID:#ACT_ID#');
The debug modues displays the following messages:
A C C E P T: Request="f?p=100:3010:4471084058876053:DELETE:YES::P3010_DELETE_ID:22"
S H O W: application="100" page="3010" workspace="" request="" session="4471084058876053"
...Session State: Save "P3010_DELETE_ID" - saving same value: ""
If I use the page as target of the button with the request value and the setting of delete_id it works but without a popup confirmation dialog.
I have nearly done it like in your example. What could be the problem?
Thanks for help
Stephan
Similar Messages
-
How to inlcude all records in a report, with a formula result of 0 or 0?
I'm reporting on classes scheduled for a certain location, and calculating the number of available seats per class. A formula will give me the net seats available (Max seats-count of students). BUT if there are no students enrolled, class does not appear on the report. Formula is {SCHEDULES.qy_sch_max} - Count ({WAITING_LISTS.no_emp}, {SCHEDULES.cd_crs)
What am I missing? Currently using Crystal 8.5 and reporting against a SQL database.
Appreciate your help.
christi
thanks, Sanjay - been there done that.
basically, I need to show the net result for the open seats available,which will be the same as the max seats offered.
I tried the following:
If Isnull{WAITING_LISTS.no_emp}
then {@Open}={SCHEDULES.qy_sch_max}
else
{SCHEDULES.qy_sch_max} - Count ({WAITING_LISTS.no_emp}, {SCHEDULES.cd_crs})
and got a message "Missing the then". (@Open is the formula title)
thanks, Sanjay - been there done that.
basically, I need to show the net result for the open seats available,which will be the same as the max seats offered.
I tried the following:
If Isnull{WAITING_LISTS.no_emp}
then {@Open}={SCHEDULES.qy_sch_max}
else
{SCHEDULES.qy_sch_max} - Count ({WAITING_LISTS.no_emp}, {SCHEDULES.cd_crs})
and got a message "Missing the then". (@Open is the formula title)
Access Web Database - Select record and make report with all associated records
Hey everyone,
Right now I'm in the middle of trying to convert an Access client database to be web compatible and I'm running into some problems. For this question, I think I may need to explain a little bit about the database:
The database I'm making is designed to store information about music rights for different songs. The users can input information about writers, producers, organizations, properties, businesses - which is stored all in different related tables. Then, when a
user inputs a song, they choose which writers, produces, organizations, etc. are affiliated with that song.
What I'm trying to do is make a report where you can choose a writer from the list of all the writers and then produce a report with all of the songs by that writer.
I was able to do this in the Access client by making a report that, when opened would trigger (using the On Open event) a form to open where you would choose a writer from a combo box and then click a button. When the button was clicked, it would use the value
in the combo box in a query, which would find all of the songs by that writer and then open up the report which would have the writer and all of their songs on it.
Because web reports don't have many event options and web queries are very limited, I have not found a way to make this report.
Any help at all would be greatly appreciated!
Hi,
I found that you've cross post the quesion on our Answer forum, are you satisfiled the reply from there?
http://answers.microsoft.com/en-us/office/forum/office_2010-access/web-database-select-record-and-make-report-with/04ce4e25-a964-4146-9a34-f9cb26bb0496
Regards,
George Zhao
TechNet Community Support
Problem with deleting record from the report.
This is my first post here, just to let you know I just started playing with Apex.
Here we go:
I have a page with report where the link to the record I have changed with ULR to the javascript:
javascript:doDelete(#RECORD_ID#)
I have created javascript in the HTML Header of the page
<script>
function doDelete(id) {
if (confirm("Are you sure you want to delete selected record?"))
$x('P3_DEL_ID').value=id;
doSubmit('DELETE');
</script>
and finally created a process for the page On Submit - After Computations and Validations.
declare
var_id number := :p3_del_id;
begin
commit;
Delete from mytable where record_id = var_id;
commit;
end;
I don't get error messages but record is not deleted.
Thanks for help in advance.
Robert
Robert,
That's the problem. With that type selected, change the value in the textbox to just: DELETE
Regards,
Dan
http://danielmcghan.us
http://sourceforge.net/projects/tapigen
http://sourceforge.net/projects/plrecur
You can reward this reply by marking it as either Helpful or Correct ;-)
Showing Duplicate records in a report with the count of their occurrence
Hi Members,
I am novice to BI. i need your suggestion to achiever one of the functionality. A report is required to be built with columns Incident ID, Task ID, Task Name. The Original report is below:-
In the above report I have to display only duplicated records once. Distincat records are not required to be shown. That is, if the same no. of Task Name is associated with the same Incident ID then it should be displayed once with the count of their occurrences in a separate column say , Count. For example, the Task 'TASK_MANUAL_KCI' got 4 times associated with the same Incident ID INC000000001434. Then the report should display this task one time in a report with count 4. Similarly, for INC000000000943 where task 'IPCG Diagnostic Template' got associated 2 times. The Count is 2 for this task.
Other records should not be displayed in a report.
Would highly appreciate quick response. Please suggest.
Thanks,
Neha Pateria
I tried this Gill, but result is bit different :-
Seems some little modifications are needed. Report should be displayed like the below one where it says how many times the same Task is associated with the same incident. Eg. Task 'TASK_CIRCUIT_RESOLVER' is associated with the incident 'INC000000001434' 4 times. 'IPCG Diagnostic Template' is associated with 'INC000000000943' 2 times. Similarly for other records.
But I really thankful to you for giving me the logic proceed further. I tried '=RunningCount([Task Name]; Row; ([Task Name]; [Incident ID]))'. It gave me desired results. :-
But the only thing that needs to be done is to bring the single Task associated with the Incident..
Thanks,
Neha Pateria
Dynamic link in a report with confirmation popup and plsql call
Hi all
I have a table T1 with Name, City, Status.
I create a report in an html region with a query to obtain Name and City and for each record with status = '5' a link with "Remove" label.
To generate the link I need to use a Case so the link will be present only for some records (status = '5').
Then I want to use a dynamic action with "Confirm" to show a confirmation pop up and an "Execute PL/SQL Code" to remove the record with a simple delete command.
My question: how should I write the link in the case statement to call the dynamic action in my form?
Thanks,
Massimo
Hi Tauceef,
im trying to use your solution in this way
The report is
,case when min(status) = 'New'
then '<a href="---URL---"><img src="#WORKSPACE_IMAGES#Trash.ico" alt="Delete"></a>'
else '<img src="#WORKSPACE_IMAGES#Banned.ico" alt="-">'
end col_name,where ---URL--- is javascript:Delete('||myTable.ROW_ID||');
The javascript is
function Delete(parID) {
document.getElementById('P30_SELECTED_ROW_ID').value = parID;
if (confirm('are you sure?')) {
doSubmit('DELETE');
};The PL/SQL anonymous block is
DECLARE
parId number;
BEGIN
parId:=:P30_SELECTED_ROW_ID;
PKG_myPack.test(parId);
-- delete from myTable where row_id = :P30_SELECTED_ROW_ID;
-- :P30_SELECTED_ROW_ID := null;
END;As you can see i first try to execute my simple delete but not work, then i create a test procedure to inspect the item value and i realize that it has no value. I show the item on the page and afer selection it still remain null.
My qyestions are:
- which is the correct Process Point to set for the PL/SQL anonymous block?
- which is the correct syntax to refer to the item ? (:P30_SELECTED_ROW_ID, &:P30_SELECTED_ROW_ID. or v('...'))
Im sorry for the length of the request and i hope you can help me.
Best regards.
Alex
Using Update and Delete Links in QBE Reports with a Template
QBE Reports in Portal allow Update and Delete links against Report output rows.
When run, if I press the Update link it displays a simple form and utilises the Template I specified for the Report (as expected).
If I press the Delete link it displays a page with a default Oracle template (including Navigator, Home and Help buttons I wish to suppress)
How can I get the Delete to use the specified Template?
Any simple fix appreciated.
QBE Reports in Portal allow Update and Delete links against Report output rows.
When run, if I press the Update link it displays a simple form and utilises the Template I specified for the Report (as expected).
If I press the Delete link it displays a page with a default Oracle template (including Navigator, Home and Help buttons I wish to suppress)
How can I get the Delete to use the specified Template?
Any simple fix appreciated.
Tabular report with return popups
Hi,
i have a tabular report in which, for each cell the user must enter a code. i want a popup to appear when the user clicks in the cell with a list of codes to chose from, and then i want the selected code to populate the cell. i dont care if the popup closes automatically, but that would be nice.
i saw this site:
http://spendolini.blogspot.com/2009/04/returning-value-from-popup-page.html
but i don't know how to reference individual cells in a tabular report.
this code works to create a popup using another page : onclick="popUp2('f?p=' + $v('pFlowId') + ':5:' + $v('pInstance'),250,600);" but i dont know how to return the values to a cell.
thanks
kester
Hi,
781759 wrote:
but i don't know how to reference individual cells in a tabular report.Individual items in a tabular form have IDs like fcc_rrrr where cc is the field number and rrrr is the row number. For example:
<input type="text" name="f06" size="16" maxlength="2000" value="2" id="f06_0002" autocomplete="off">
For this example, just 'f06_0002' as 'that' in the $v_PopupReturn function.
Luis
Deleting records based on date with timestamp
Hi there,
In continuation from my earlier Query. Multiple reccord have inadvertantly been inserted in the LOAN_TXN table. I want to delete all the records, except one, based on date with timestamp.
CREATE TABLE LOAN_TXN
TXN_DATE DATE,
BALANCE NUMBER(10,2),
CODE VARCHAR2(1),
INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '02/15/2010 11:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'), 250000, 'D');
INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '03/31/2010 11:59:59 AM', 'MM/DD/YYYY HH:MI:SS AM'), 250000, 'B');
INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '05/14/2010 11:25:00 AM', 'MM/DD/YYYY HH:MI:SS AM'), 500000, 'D');
INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '06/30/2010 12:15:00 PM', 'MM/DD/YYYY HH:MI:SS AM'), 4000, 'R');
INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '08/02/2010 10:45:26 AM', 'MM/DD/YYYY HH:MI:SS AM'), 4000, 'R');
INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '09/08/2010 02:10:17 PM', 'MM/DD/YYYY HH:MI:SS AM'), 4000, 'R');
INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '10/27/2010 04:25:20 PM', 'MM/DD/YYYY HH:MI:SS AM'), 4000, 'R');
INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '11/09/2010 10:15:55 AM', 'MM/DD/YYYY HH:MI:SS AM'), 4000, 'R');
INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '12/29/2010 03:10:20 PM', 'MM/DD/YYYY HH:MI:SS AM'), 4000, 'R');
INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '01/12/2011 01:11:15 PM', 'MM/DD/YYYY HH:MI:SS AM'), 4000, 'R');
INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '02/11/2011 12:11:48 PM', 'MM/DD/YYYY HH:MI:SS AM'), 4000, 'R');
INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '03/31/2011 11:59:59 PM', 'MM/DD/YYYY HH:MI:SS AM'), 4000, 'R');
INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '03/31/2011 11:59:59 PM', 'MM/DD/YYYY HH:MI:SS AM'), 4000, 'R');
INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '03/31/2011 11:59:59 PM', 'MM/DD/YYYY HH:MI:SS AM'), 4000, 'R');
INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '03/31/2011 11:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'), 4000, 'R');
INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '03/31/2011 11:59:59 AM', 'MM/DD/YYYY HH:MI:SS AM'), 460000, 'B');I want to delete mutiple records, except one, with code 'R' and TXN_DATE = '03/31/2011 11:59:59 PM' How do I do that ?
user3308033 wrote:
I think your query would delete all the duplicate records. Keeping one, I just want to delete mutiple records with timestamp : 11:59:59.
DELETE FROM loan_txn
WHERE rowid != (
SELECT MIN(rowid)
FROM loan_txn
WHERE txn_date = TO_DATE('03/31/2011 11:59:59 PM','MM/DD/YYYY HH:MI:SS AM')
AND code = 'R'
AND txn_date = TO_DATE('03/31/2011 11:59:59 PM','MM/DD/YYYY HH:MI:SS AM')
AND code = 'R'
/SY.
View detail records from interactive report with button press
Hi I want to create a intractive report that will have a + sign for the user to expand the detail region below the record.
Thanks.
PKP
thanks kartik,
I did exectly what is there in there. But I am having problem in display. I have put my application in
http://apex.oracle.com/pls/apex/f?p=44031:1
login as GUEST/password
select Company Accounts Management from Application Menu --> setup tab -> Companies from setup menu
the detail record is not displaying. correctly.
Deleting records from a table with 12 million records
We need to delete some records on this table.
SQL> desc CDR_CLMS_ADMN.MDL_CLM_PMT_ENT_bak;
Name Null? Type
CLM_PMT_CHCK_NUM NOT NULL NUMBER(9)
CLM_PMT_CHCK_ACCT NOT NULL VARCHAR2(5)
CLM_PMT_PAYEE_POSTAL_EXT_CD VARCHAR2(4)
CLM_PMT_CHCK_AMT NUMBER(9,2)
CLM_PMT_CHCK_DT DATE
CLM_PMT_PAYEE_NAME VARCHAR2(30)
CLM_PMT_PAYEE_ADDR_LINE_1 VARCHAR2(30)
CLM_PMT_PAYEE_ADDR_LINE_2 VARCHAR2(30)
CLM_PMT_PAYEE_CITY VARCHAR2(19)
CLM_PMT_PAYEE_STATE_CD CHAR(2)
CLM_PMT_PAYEE_POSTAL_CD VARCHAR2(5)
CLM_PMT_SUM_CHCK_IND CHAR(1)
CLM_PMT_PAYEE_TYPE_CD CHAR(1)
CLM_PMT_CHCK_STTS_CD CHAR(2)
SYSTEM_INSERT_DT DATE
SYSTEM_UPDATE_DT
I only need to delete the records based on this condition
select * from CDR_CLMS_ADMN.MDL_CLM_PMT_ENT_bak
where CLM_PMT_CHCK_ACCT='00107' AND CLM_PMT_CHCK_NUM>=002196611 AND CLM_PMT_CHCK_NUM<=002197018;
Thsi table has 12 million records.
Please advise
Regards,
Narayan
user7202581 wrote:
We need to delete some records on this table.
SQL> desc CDR_CLMS_ADMN.MDL_CLM_PMT_ENT_bak;
Name Null? Type
CLM_PMT_CHCK_NUM NOT NULL NUMBER(9)
CLM_PMT_CHCK_ACCT NOT NULL VARCHAR2(5)
CLM_PMT_PAYEE_POSTAL_EXT_CD VARCHAR2(4)
CLM_PMT_CHCK_AMT NUMBER(9,2)
CLM_PMT_CHCK_DT DATE
CLM_PMT_PAYEE_NAME VARCHAR2(30)
CLM_PMT_PAYEE_ADDR_LINE_1 VARCHAR2(30)
CLM_PMT_PAYEE_ADDR_LINE_2 VARCHAR2(30)
CLM_PMT_PAYEE_CITY VARCHAR2(19)
CLM_PMT_PAYEE_STATE_CD CHAR(2)
CLM_PMT_PAYEE_POSTAL_CD VARCHAR2(5)
CLM_PMT_SUM_CHCK_IND CHAR(1)
CLM_PMT_PAYEE_TYPE_CD CHAR(1)
CLM_PMT_CHCK_STTS_CD CHAR(2)
SYSTEM_INSERT_DT DATE
SYSTEM_UPDATE_DT
I only need to delete the records based on this condition
select * from CDR_CLMS_ADMN.MDL_CLM_PMT_ENT_bak
where CLM_PMT_CHCK_ACCT='00107' AND CLM_PMT_CHCK_NUM>=002196611 AND CLM_PMT_CHCK_NUM<=002197018;
Thsi table has 12 million records.
Please advise
Regards,
NarayanDELETE from CDR_CLMS_ADMN.MDL_CLM_PMT_ENT_bak
where CLM_PMT_CHCK_ACCT='00107' AND CLM_PMT_CHCK_NUM>=002196611 AND CLM_PMT_CHCK_NUM<=002197018;
Delete records manually from report
Hi,
I am having an issue implementing delete process manually in a report.
Report Query: select apex_item.checkbox(1,customer_id) as del, cust_first_name, cust_last_name from
oehr_customers
In the above query except checkbox, all other columns are standard report coulmns.
I have created process to execute on a button click.
BEGIN
FOR i in 1..APEX_APPLICATION.G_F01.count
LOOP
DELETE FROM oehr_customers
WHERE customer_id = APEX_APPLICATION.G_F01(i);
END LOOP;
END;
When I select the checkbox and hit the delete button that I created is giving me this error.
ORA-01407: cannot update ("SCHEMA1"."OEHR_ORDERS"."CUSTOMER_ID") to NULL
Error
Please let me know where I am doing wrong. Thanks in advance..
Hi,
There is a dedicated Reports forum, you may have more luck in there
Reports
Regards
Peter
How to refresh after delete the records in ALV report ?
Hi Friends,
How to refresh after delete the records in ALV report.
I am deleting records in ALV report .
After successful delete the screen should refresh.
u201C Deleted records should not appear in the screen u201C.
Please guide me.
Regards,
Subash
Hi subhash,
FORM user_command USING r_ucomm LIKE sy-ucomm rs_selfield TYPE slis_selfield.
WHEN 'BACK'.
Refresh the internal table from the ALV grid
PERFORM update_alv_tab.
ENDFORM. "user_command
FORM update_alv_tab .
DATA : e_grid TYPE REF TO cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = e_grid.
CALL METHOD e_grid->check_changed_data.
"update_alv_tab
CALL METHOD e_grid->refresh_table_display.
ENDFORM. " UPDATE_ALV_TAB
Then see in Debug mode is it updating or not..
Please confirm .
And please paste the code if you can.
Regards.
Problem use SQL query in coding report with SBO
Hi everyone!
I have problem in execute query to delete and create a report with SQL 2000 in SAP.
Try
oForm.DataSources.DataTables.Item(0).ExecuteQuery("DELETE FROM rptReport")
Catch ex As Exception
End Try
oForm.DataSources.DataTables.Add("TestReport")
oForm.DataSources.DataTables.Item(0).ExecuteQuery("SELECT Number, RefDate, Memo into rptReport FROM dbo.OJDT")
oTable = oForm.DataSources.DataTables.Item("TestReport")
This code is error. I don't know how to execute 2 this sql command. Hope everyone help me hix hix! .
/Invalid query tree [300-33]. The SQL error is 8180/
But search in SQL book hasn't got that err. Some person spoke ExecuteQuery property wasn't support Table Delete and Create, it only support simple Select... I tried to use Recordset but don't success. Can I use "Delete" and "Select ... Into..." query another style??? Help me, please...!!!
How to deal with delete record in generic delta of generic datasource
Hi,
Anyone can give me suggestion about the delete record in generic delta of generic data. I need extract data with a generic datasource and hope deleted record in datasource also can be "delete" in next delta extraction. I do a test with generic delta. It seem that the delete record can not be updated in ODS. but updated record can be updated in next delta extraction.
How dose BW generic delta deal with the deleted record with generic delta mechanisim? Or how can I use generic delta mechanisim to realize that BW "delete" the deleted record of source system in ODS with delta extraction?
Thanks in advance!
Billy
Delete is not supported in delta mechanism of generic delta extractor. You will need to add a workaround for that.
- Capture the deleted records somewhere (maybe enhance the txn deleting the record so the key is written to a Z table). Take these records to BW and manipulate the recordmode to affect deletion of corresponding record from ODS.
- If your generic delta is based on FM, and if the 'delete' is captured in change document tables, add the logic to check change document tables whether any records are deleted, and if yes, send those to BW with appropriate recordmode to achieve deletion.
Maybe you are looking for
-
Excise invoice printing is required in preprinted stationary format.
Dear All, I developed a new program & script for excise invoice printing. The requirement is as under: Page layout will be such where 10 line items( as maintained in billing document) can be printed in each page i.e. if billing document have 25 line
-
How to get safari to open to the last page I was on and screens to enlarge automatically?
Hello, I just upgraded to the latest iMac version from my 2010 model, and whenever I close and open up safari it opens to top siotes instead of the last page I was on, and every time I open it I have to enlarge it myself by clicking the arrows in the
-
BAPI_PO_CREATE1-No account assignment exists for service line 0000000000
Hi guys I'm trying to use the above BAPI to create purchase orders from legacy system. I have populated ALL of the required tables (including the Xs) but I was returned the above error: No account assignment exists for service line 0000000000. I have
-
How to install and configure a 256 SSD on my HP ENVY 17-3290NR (3D) Laptop?
I would appreciate some guidance How to add a 256 SSD (Samsung 840 Pro 256 SSD?) to my HP ENVY 17-3290NR (3D) Laptop. The Laptop came standard with an 80GB mSATA + 1TB Hard Drive. I would like to use the 256 SSD as the booth drive and install opera
-
Order not available in ECC6.0 where as the same order is in SAP CRM?
Hi SAP Experts, I have come up with one issue as follows: I have changed the sales order in SAP CRM and when i try to open the same document in ECC 6.0 in TCode:VA02,it is directing to logon screen with user ID and Password.When i input my logon de