Delete rule not working
I subscribe to a mailing list using a particular email address (not my primary account), all mail for which is redirected into a mailbox. I only want to keep messages from the last five days. I have a Rule which is set as follows:
If ALL of the following conditions are met:
Account = <the account>
Date Received is Greater Than 5 days old
Perform the following actions:
Delete Message
This rule does does not work. It is the first rule in my list of Rules. And it simply does nothing. Why?
Maxplanar,
Mail rules only run when the item is first processed. So you are in effect going to delete things only when they are received in an "old" state.
I would set up a smart mailbox or two. One to only show the 5 days of mail you want to pay attention to. Optionally make another smart mailbox to contain messages older than 5 days. You can just refer to the first mailbox and only see the messages you want. The other mailbox will be there for once a month when you select all the messages and delete them.
Most macs can handle 5 to 10 thousand messages without even starting to slow down. Perhaps once you have a managable folder that shows you the messages you care to see, you can live with manually cleaning up much less often?
Similar Messages
-
in iTunes 11.1 (I26) , I cannot find how to delete podcast listings showing undownloaded podcasts. Delete does not work. Option Delete does not work. Dragging to the trash does not work. Under Edit, Delete is greyed out. Mac OS 10.6.8.
Tom at the Genius Bar told me that Option Delete would work. It does not.
I had to upgrade to iTunes 11.1.(I26) because it is required with OS7 on my iPod Touch (5th Gen). I have tried shutting down iTunes, then shutting down the entire system. This is the first in many visits that the Genius Bar gave me a solution that did not work.
This is a big awkward computer locked to my desk. I would rather not unlock it and then carry it through a shopping center to the Genius Bar if i can avoid oit.
When I installed iTunes 11.1, I discovered that Ihad to resubscribe to virtually all of the podcasts that I had previously been subscribed to. That was a surprise.Hello Achates:
I did not read the rather long post. If you wish to reinstall OS X 10.4, use your software install DVD. Backup is essential. To minimize your risk, I would use an archive and install:
http://docs.info.apple.com/article.html?artnum=107120
In that way, you will have a fresh copy of OS X and your current settings will be preserved.
Incidentally, I do not agree that the printer problem is best solved by reinstalling OS X. I have had HP printers for sometime and, on one occasion, had difficulty after an upgrade. HP technical support walked me through uninstalling all traces of the HP driver and then reinstalling.
Barry -
Other database delete is not working on forall statement
Dear all,
My scenario is , i create a program, the program fetch the data from database x and i want to delete on the same x database but i am running this program at y database, so
so i created a view
create or replace view vw_ibs_pda_bills_x as
SELECT *
FROM ibs_pda_bills_x@testarch1my program
Declare
CURSOR c2 IS
SELECT *
FROM vw_ibs_pda_bills_x
WHERE bill_month <= '31-dec-2008'; -- AND bpref_no = :cons;
opr varchar2(10) := 'DELETE';
TYPE tsch IS TABLE OF c2%ROWTYPE;
vtsch tsch;
cnt NUMBER := 0;
stime NUMBER;
etime NUMBER;
DURATION NUMBER;
rcount NUMBER;
errorsd PLS_INTEGER;
ecode NUMBER;
val1 VARCHAR2 (100);
val2 VARCHAR2 (100);
val3 VARCHAR2 (100);
val4 VARCHAR2 (100);
BEGIN
BEGIN
stime := DBMS_UTILITY.get_time ();
OPEN c2;
LOOP
FETCH c2
BULK COLLECT INTO vtsch LIMIT 1000;
IF vtsch.COUNT = 1000
THEN
cnt := cnt + 1;
END IF;
If opr = 'INSERT' Then
FORALL i IN 1 .. vtsch.COUNT SAVE EXCEPTIONS
INSERT INTO dlul.ibs_pda_bills
VALUES vtsch (i);
Else
FORALL i IN 1 .. vtsch.COUNT SAVE EXCEPTIONS
Delete from vw_ibs_pda_bills_x where bill_month = vtsch(i).bill_month;
End if;
EXIT WHEN c2%NOTFOUND;
END LOOP;
etime := DBMS_UTILITY.get_time ();
DURATION := ((etime - stime) / 100) / 60;
rcount :=
(cnt * 1000) + vtsch.COUNT - NVL (SQL%BULK_EXCEPTIONS.COUNT, 0);
If opr = 'INSERT' Then
INSERT INTO process_stage_log
VALUES (SYSDATE, 'IBS_PDA_BILLS', DURATION, rcount);
Else
INSERT INTO process_stage_log
VALUES (SYSDATE, 'IBS_PDA_BILLS-D', DURATION, rcount);
End if;
CLOSE c2;
COMMIT;
EXCEPTION
WHEN OTHERS
THEN
errorsd := SQL%BULK_EXCEPTIONS.COUNT;
IF errorsd > 0
THEN
FOR j IN 1 .. errorsd
LOOP
ecode := SQL%BULK_EXCEPTIONS (j).ERROR_CODE;
val1 :=
vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).sch_code;
val2 :=
vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).bpref_no;
val3 :=
vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).bill_month;
val4 :=
vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).service_code;
If opr = 'INSERT' Then
INSERT INTO process_error_log
VALUES (SYSDATE, ecode, 'IBS_PDA_BILLS', 'sch_code', val1,
'bpref_no', val2, 'bill_month', val3, 'service_code', val4,'INSERT');
Else
INSERT INTO process_error_log
VALUES (SYSDATE, ecode, 'IBS_PDA_BILLS', 'sch_code', val1,
'bpref_no', val2, 'bill_month', val3, 'service_code', val4,'DELETE');
End if;
END LOOP;
END IF;
END;
END pda_insert;the program want to do the delet option for all delete is not working. The program executed successful but the operation delete is not happening
how to solve this issue.
please help me
kanishNo error encountered in my log table
the new workaround you said, that is instead of for all , already i tried for i in 1.. to like
instead of forall delete i tried the following way
Declare
CURSOR c2 IS
SELECT *
FROM ibs_pda_bills_x@testarch1
WHERE bill_month <= '31-dec-2008'; -- AND bpref_no = :cons;
opr varchar2(10) := 'DELETE';
TYPE tsch IS TABLE OF c2%ROWTYPE;
vtsch tsch;
cnt NUMBER := 0;
stime NUMBER;
etime NUMBER;
DURATION NUMBER;
rcount NUMBER;
errorsd PLS_INTEGER;
ecode NUMBER;
val1 VARCHAR2 (100);
val2 VARCHAR2 (100);
val3 VARCHAR2 (100);
val4 VARCHAR2 (100);
BEGIN
BEGIN
stime := DBMS_UTILITY.get_time ();
OPEN c2;
LOOP
FETCH c2
BULK COLLECT INTO vtsch LIMIT 1000;
IF vtsch.COUNT = 1000
THEN
cnt := cnt + 1;
END IF;
If opr = 'INSERT' Then
FORALL i IN 1 .. vtsch.COUNT SAVE EXCEPTIONS
INSERT INTO dlul.ibs_pda_bills
VALUES vtsch (i);
Else
/* fORALL i IN 1 .. vtsch.COUNT SAVE EXCEPTIONS
Delete from vw_ibs_pda_bills_x where to_char(bill_month,'dd-mm-rrrr') = to_char(vtsch (i).bill_month,'dd-mm-rrrr');*/
for i in 1..vtsch.count loop
delete ibs_pda_bills_x@testarch1 where to_char(bill_month,'dd-mm-rrrr') = to_char(vtsch (i).bill_month,'dd-mm-rrrr');
end loop;
End if;
EXIT WHEN c2%NOTFOUND;
END LOOP;
etime := DBMS_UTILITY.get_time ();
DURATION := ((etime - stime) / 100) / 60;
rcount :=
(cnt * 1000) + vtsch.COUNT - NVL (SQL%BULK_EXCEPTIONS.COUNT, 0);
If opr = 'INSERT' Then
INSERT INTO process_stage_log
VALUES (SYSDATE, 'IBS_PDA_BILLS', DURATION, rcount);
Else
INSERT INTO process_stage_log
VALUES (SYSDATE, 'IBS_PDA_BILLS-D', DURATION, rcount);
End if;
CLOSE c2;
COMMIT;
EXCEPTION
WHEN OTHERS
THEN
errorsd := SQL%BULK_EXCEPTIONS.COUNT;
IF errorsd > 0
THEN
FOR j IN 1 .. errorsd
LOOP
ecode := SQL%BULK_EXCEPTIONS (j).ERROR_CODE;
val1 :=
vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).sch_code;
val2 :=
vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).bpref_no;
val3 :=
vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).bill_month;
val4 :=
vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).service_code;
If opr = 'INSERT' Then
INSERT INTO process_error_log
VALUES (SYSDATE, ecode, 'IBS_PDA_BILLS', 'sch_code', val1,
'bpref_no', val2, 'bill_month', val3, 'service_code', val4,'INSERT');
Else
INSERT INTO process_error_log
VALUES (SYSDATE, ecode, 'IBS_PDA_BILLS', 'sch_code', val1,
'bpref_no', val2, 'bill_month', val3, 'service_code', val4,'DELETE');
End if;
END LOOP;
END IF;
END;
END pda_insert;i am receiving the following error
ORA-02055: distributed update operation failed; rollback required
ORA-06531: Reference to uninitialized collection
ORA-06512: at line 77
ORA-06531: Reference to uninitialized collection
kanish -
Infopath form load rule not working in browser forms but works on Client
Hi
I am working on an Infopath form and there are rules on form load. The form load checks for a value in a list, if the username() matches the one in the list, then the form would change its view.
It works when I open it on client, but on the browser it fails.
Have anyone encountered such an issue.Check below:
http://stackoverflow.com/questions/16222681/infopath-rule-is-not-running-when-checking-sharepoint-list-field-value
Ensure that "Include data for the active form only" was checked (I had to separate this field into another data connection because that box could not be checked for another field I was using), and
Ensure that in the rule I was selecting from the "dataFields" folder under the data connection instead of "queryFields"
http://sharepoint.stackexchange.com/questions/28554/infopath-form-load-rules-not-working
if I edit the Infopath form on Infopath 2007, it seems that the rules for the load form will be visible if created.
This look like a bug. Here are the steps below that will lead you to the bug:
Step 1: Open the infopath form in Infopath 2010 and create 6 rules for Form Load and Save it as a file.
Step 2: Open that infopath form that you created in Step 1 in InfoPath 2010 and go to the
Form Load section. You will only see the first 5 rules. The 6th rules that you created for Step 1 will just "vanish". Now, close that infopath form.
Step 3: Open that infopath form that you created in step 1 in InfoPath 2007 and select Tools > Form Option. In the
Open and Save category, click the Rules button and add a new rule in it and save it.
Step 4: Open that infopath form that you modify as describe in Step 3 in InfoPath 2010. That 6th rule will be visible.
Therefore, there might be a bug in InfoPath 2010 that restrict Rules to a max of 5 in Form Load and thus if anyone open that form in SharePoint, only the first 5 rules will be executed.
If this helped you resolve your issue, please mark it Answered -
Multiple delete is not working.
Hi,
Multiple delete is not working. Please find my backend bean code. Please let me know the issue in my code.
Table:
<af:table value="#{bindings.CmProcessParamValueView13.collectionModel}"
var="row"
rows="#{bindings.CmProcessParamValueView13.rangeSize}"
emptyText="#{bindings.CmProcessParamValueView13.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.CmProcessParamValueView13.rangeSize}"
rowBandingInterval="1"
selectedRowKeys="#{bindings.CmProcessParamValueView13.collectionModel.selectedRow}"
selectionListener="#{bindings.CmProcessParamValueView13.collectionModel.makeCurrent}"
rowSelection="multiple"
binding="#{backingBeanScope.backing_app_RunCalcPage.t1}"
id="t1" width="720px" inlineStyle="height:140px;" partialTriggers="cb6 cb3"
filterVisible="true" filterModel="#{bindings.CmProcessParamValueView13.queryDescriptor}" >
<af:column sortProperty="ParamValue7"
sortable="true" width="690"
headerText="Comm Type"
rowHeader="unstyled"
id="c2" align="left" filterable="true">
<af:outputText value="#{row.ParamValue7}"
id="ot4"/>
</af:column>
</af:table>
Backing Bean Delete Code:
RowKeySet rowKeySet = (RowKeySet)this.t1.getSelectedRowKeys();
CollectionModel cm = (CollectionModel)this.t1.getValue();
System.out.println("RowKeySet is: "+ rowKeySet.getSize());
for (Object facesTreeRowKey : rowKeySet) {
cm.setRowKey(facesTreeRowKey);
JUCtrlHierNodeBinding rowData =
(JUCtrlHierNodeBinding)cm.getRowData();
System.out.println("RowData is : "+rowData.getAttribute("ParamValue7"));
rowData.getRow().remove();
Thanks.Issue is resolved...
Solution is,
Remove selectionListener and selectedKey attributes from the table.
Delete code is:
DCBindingContainer dcBindings =
(DCBindingContainer)getBindings();
DCIteratorBinding dcIterator =
dcBindings.findIteratorBinding("Iterator...");
RowSetIterator rs = dcIterator.getRowSetIterator();
RowKeySet rks = this.t1.getSelectedRowKeys();
Iterator rksIter = rks.iterator();
while (rksIter.hasNext()) {
List l = (List) rksIter.next();
Key key = (Key)l.get(0);
Row row = rs.getRow(key);
if(row != null)
row.remove();
} -
space.anddelte
space.and.delete.keys.not.working.on.wireless.keyboard.help!Before replacing the keyboard do 2-3 SMC resets using the instructions in iMac SMC and PRAM reset
-
Is it possible to check automati all bookmarks, and delete the not working bookmarks
Is it possible to check automatic all bookmarks, and delete the not working bookmarks
Try this extension:
*CheckPlaces: https://addons.mozilla.org/firefox/addon/checkplaces/ -
Defaulting Rules Not Working for Repair Orders in OM?
Hi,
Defaulting Rules have been setup for return line & standard line based on few conditions and it is working fine if we create a sales order directly from OM (Manual SO)?
But in our project we are using Depot Repair(Repair Orders), we tried to create a service request and then converted to a sales order here defaulting rules not working for repair orders?
Please help me to solve this issue ASAP.
Thanks,
KishorHi,
You have like this:
1. Price list
2.OE_DEFAULT_PVT.Get_SOB_Currency_Code
You have to make
1. XXOE_DEFAULT_PVT.custom_code
2. Price list
3.OE_DEFAULT_PVT.Get_SOB_Currency_Code
Did you made own custom code to pick currency?
Regards,
Luko -
At the top of my Mozilla home page, it lists the current URL site, such as http://www.safeco.com, I am on plus the others in the drop down box. How do I delete them. Highlighting and hitting delete does not work.
I am using windows Vista 007 and Mozila 3.6.1.3Do those entries have a yellow star at the far right?
If they have then they are bookmarks. You can remove them if you open that link and click the star to open the Edit This Bookmark dialog and click the Remove button in that dialog.
* [[Clearing Location bar history]]
* [[Cannot clear Location bar history]] -
I have a MacBook Air using Maverick. I have files in the trash I want to recover to their original files. I do not have "Back Up" and "Command + Delete" does not work.
Drag them out of the Trash and put them in their original location. Put Back may work on one file at a time.
-
Delete rule not deleting in Mail
Hi,
I have a KILL rule where certain addresses are meant to be deleted. Since Mavericks, This is not working. They just stay in Junk. Any reason why?
Cheers,
MichaelHi Philip,
when can we expect a fix for that since it is kind of an important function for us because without it we can't export a valid database structure.
Thanks in advance,
Michael -
I have a rule that is not working in Mail.app.
It's a mailing list that I am subscribed to which I want deleted at certain times. Upon arrival, I would like it deleted.
I've tried several simple rules that all do not work for this list alone. I've sniffed the subject, which has a list tag shoved in there: [thisList]. I've tried a header field called List-ID and provided a CONTAINS for the actual email address of the list. I've also tried sniffing the list address as a recipient. In these trials, I've only used one qualifier, and only one process, to delete the file.
It is a GMail address, which shows up in a folder that is a GMail rule to pull out my lists. So it shows up twice, once in this folder, and once in All Mail. This is an IMAP account into my Mail.app.
So now I have 2 messages in my Gmail lists folder, the same 2 in my All Mail, and 2 in my Smart Mailbox which is showing the very 2 are in the filtered Gmail mailbox.
Upon choosing Apply Rules, they finally go away.
Is there a way to get Gmail systems to work with IMAP properly without having multiple boxes show up? That integration is confusing and problematic when trying to apply smart mailboxes on the Mac end of things, as GMail messes up the number of mailboxes where certain messages are showing up. I've tried turning off certain mailboxes being shown on the Gmail side, but I can't seem to make a Gmail address work well with IMAP.
Any insight or advice appreciated.Google supports the IMAP protocol, but has a number of proprietary additions/extensions/implementations that it uses to support google-specific functions. While these add a lot of functionality when using Chrome and Google's webmail applications, they sometimes cause odd problems that people have to deal with. Rule management might be one of these.
Another thing to keep in mind is that rules in Mail are automatically applied to incoming messages only, and not to mail that has previously been downloaded. That is, you cannot have a rule automatically delete or label month-old mail without specifically invoking it on the current mailbox or message selection. -
I have a few mail forwarding rules set which don't seem to be working. I see no forwarded emails in my send mailbox, and when I click the small arrow in the message window that indicates it has been forwarded, I get a message that says I must have deleted the message, which is not true. This is what the rule looks like:
Mail rules only work on incoming mail. Once the mail is listed in your Inbox, the only way to use a rule is to manually run it. Given how rules work this may render your rule as non-working.
-
Delete is not working properly
I modified the Delete server behavior to delete associated
records from the child tables and then delete the parent table as
follows:
if ((isset($_POST['peereduid'])) &&
($_POST['peereduid'] != "")) {
$deleteTPRSQL = sprintf("DELETE FROM TEENPEERRELATIONSHIP
WHERE PEEREDU_OWNS_ID=%s AND TEEN_ID=%s AND PEEREDU_TALKS_ID=%s AND
CONTACT_DATE=str_to_date(%s, '%%Y-%%c-%%e')",
GetSQLValueString($_POST['peereduid'], "int"),
GetSQLValueString($_POST['teenid'], "int"),
GetSQLValueString($_POST['peeredutalksid'], "int"),
GetSQLValueString($_POST['contactdate'], "date"));
mysql_select_db($database_cnPeer_Outreach,
$cnPeer_Outreach);
$Result1 = mysql_query($deleteTPRSQL, $cnPeer_Outreach) or
die(mysql_error());
$deleteCRBSQL = sprintf("DELETE FROM CONTACTREFERREDBY WHERE
PEEREDU_OWNS_ID=%s AND TEEN_ID=%s AND PEEREDU_TALKS_ID=%s AND
CONTACT_DATE=str_to_date(%s, '%%Y-%%c-%%e')",
GetSQLValueString($_POST['peereduid'], "int"),
GetSQLValueString($_POST['teenid'], "int"),
GetSQLValueString($_POST['peeredutalksid'], "int"),
GetSQLValueString($_POST['contactdate'], "date"));
mysql_select_db($database_cnPeer_Outreach,
$cnPeer_Outreach);
$Result1 = mysql_query($deleteCRBSQL, $cnPeer_Outreach) or
die(mysql_error());
$deleteCTSQL = sprintf("DELETE FROM CONTACTTOPIC WHERE
PEEREDU_OWNS_ID=%s
AND TEEN_ID=%s AND PEEREDU_TALKS_ID=%s AND
CONTACT_DATE=str_to_date(%s, '%%Y-%%c-%%e')",
GetSQLValueString($_POST['peereduid'], "int"),
GetSQLValueString($_POST['teenid'], "int"),
GetSQLValueString($_POST['peeredutalksid'], "int"),
GetSQLValueString($_POST['contactdate'], "date"));
mysql_select_db($database_cnPeer_Outreach,
$cnPeer_Outreach);
$Result1 = mysql_query($deleteCTSQL, $cnPeer_Outreach) or
die(mysql_error());
$deleteCMSQL = sprintf("DELETE FROM CONTACTMATERIAL WHERE
PEEREDU_OWNS_ID=%s AND TEEN_ID=%s AND PEEREDU_TALKS_ID=%s AND
CONTACT_DATE=str_to_date(%s, '%%Y-%%c-%%e')",
GetSQLValueString($_POST['peereduid'], "int"),
GetSQLValueString($_POST['teenid'], "int"),
GetSQLValueString($_POST['peeredutalksid'], "int"),
GetSQLValueString($_POST['contactdate'], "date"));
mysql_select_db($database_cnPeer_Outreach,
$cnPeer_Outreach);
$Result1 = mysql_query($deleteCMSQL, $cnPeer_Outreach) or
die(mysql_error());
$deleteCSSQL = sprintf("DELETE FROM CONTACTSERVICE WHERE
PEEREDU_OWNS_ID=%s
AND TEEN_ID=%s AND PEEREDU_TALKS_ID=%s AND
CONTACT_DATE=str_to_date(%s, '%%Y-%%c-%%e')",
GetSQLValueString($_POST['peereduid'], "int"),
GetSQLValueString($_POST['teenid'], "int"),
GetSQLValueString($_POST['peeredutalksid'], "int"),
GetSQLValueString($_POST['contactdate'], "date"));
mysql_select_db($database_cnPeer_Outreach,
$cnPeer_Outreach);
$Result1 = mysql_query($deleteCSSQL, $cnPeer_Outreach) or
die(mysql_error());
$deletePRTSQL = sprintf("DELETE FROM PEERRECOMMENDSTALK
WHERE PEEREDU_OWNS_ID=%s AND TEEN_ID=%s AND PEEREDU_TALKS_ID=%s AND
CONTACT_DATE=str_to_date(%s, '%%Y-%%c-%%e')",
GetSQLValueString($_POST['peereduid'], "int"),
GetSQLValueString($_POST['teenid'], "int"),
GetSQLValueString($_POST['peeredutalksid'], "int"),
GetSQLValueString($_POST['contactdate'], "date"));
mysql_select_db($database_cnPeer_Outreach,
$cnPeer_Outreach);
$Result1 = mysql_query($deletePRTSQL, $cnPeer_Outreach) or
die(mysql_error());
$deleteTPASQL = sprintf("DELETE FROM TEENPROMISESACTION
WHERE PEEREDU_OWNS_ID=%s AND TEEN_ID=%s AND PEEREDU_TALKS_ID=%s AND
CONTACT_DATE=str_to_date(%s, '%%Y-%%c-%%e')",
GetSQLValueString($_POST['peereduid'], "int"),
GetSQLValueString($_POST['teenid'], "int"),
GetSQLValueString($_POST['peeredutalksid'], "int"),
GetSQLValueString($_POST['contactdate'], "date"));
mysql_select_db($database_cnPeer_Outreach,
$cnPeer_Outreach);
$Result1 = mysql_query($deleteTPASQL, $cnPeer_Outreach) or
die(mysql_error());
$deleteTPTSQL = sprintf("DELETE FROM TEENPROMISESTALK WHERE
PEEREDU_OWNS_ID=%s AND TEEN_ID=%s AND PEEREDU_TALKS_ID=%s AND
CONTACT_DATE=str_to_date(%s, '%%Y-%%c-%%e')",
GetSQLValueString($_POST['peereduid'], "int"),
GetSQLValueString($_POST['teenid'], "int"),
GetSQLValueString($_POST['peeredutalksid'], "int"),
GetSQLValueString($_POST['contactdate'], "date"));
mysql_select_db($database_cnPeer_Outreach,
$cnPeer_Outreach);
$Result1 = mysql_query($deleteTPTSQL, $cnPeer_Outreach) or
die(mysql_error());
$deleteTPMVSQL = sprintf("DELETE FROM
TEENPROMISESMEDICALVISIT WHERE PEEREDU_OWNS_ID=%s AND TEEN_ID=%s
AND PEEREDU_TALKS_ID=%s AND CONTACT_DATE=str_to_date(%s,
'%%Y-%%c-%%e')",
GetSQLValueString($_POST['peereduid'], "int"),
GetSQLValueString($_POST['teenid'], "int"),
GetSQLValueString($_POST['peeredutalksid'], "int"),
GetSQLValueString($_POST['contactdate'], "date"));
mysql_select_db($database_cnPeer_Outreach,
$cnPeer_Outreach);
$Result1 = mysql_query($deleteTPMVSQL, $cnPeer_Outreach) or
die(mysql_error());
$deleteSQL = sprintf("DELETE FROM CONTACT WHERE
PEEREDU_OWNS_ID=%s
AND TEEN_ID=%s AND PEEREDU_TALKS_ID=%s AND
CONTACT_DATE=str_to_date(%s, '%%Y-%%c-%%e')",
GetSQLValueString($_POST['peereduid'], "int"),
GetSQLValueString($_POST['teenid'], "int"),
GetSQLValueString($_POST['peeredutalksid'], "int"),
GetSQLValueString($_POST['contactdate'], "date"));
mysql_select_db($database_cnPeer_Outreach,
$cnPeer_Outreach);
$Result1 = mysql_query($deleteSQL, $cnPeer_Outreach) or
die(mysql_error());
$deleteGoTo = "peerselect.php";
if (isset($_SERVER['QUERY_STRING'])) {
$deleteGoTo .= (strpos($deleteGoTo, '?')) ? "&" : "?";
$deleteGoTo .= $_SERVER['QUERY_STRING'];
header(sprintf("Location: %s", $deleteGoTo));
The problem is that the deleteGoTo is not working. After the
delete, I am shown the original page again. Can anyone tell me what
I need to do to get it working?Hi paramu
I think you didn't get my question
The new row is not saved into DB, user add a new record simply he change his mind half way and need
to delete new record in form (As I understand this row only created in related iterator)
So he expect after delete form goes back to previous state
Thanks
Mohsen -
Delete rule not being generated in DDL
Hi,
I've only recently started using SQL Developer Data Modeler (coming from the Designer world), and it's been a good learning experience. There's a piece that I can't seem to figure out though, and it's related to the generation of DDL for foreign keys. In all my models (logical, relational, physical, I have the Delete Rule set to "Restrict". This isn't just the default preference I'm talking about, when I actually drill down to the properties of the FK, it says that the delete rule is restrict. However, when I generate the DDL, no delete rule is generated. The only option generated is NOT DEFERRABLE.
There are two issues with this:
1) The rule isn't going into the DB unless I manually alter the DDL, and
2) Every time I re-import the DB to generate ALTER statements, the comparison detects that the rule in the DB (NO ACTION) is different than the rule in the model (RESTRICT), so it deletes and re-generates the FK. However, it re-generates it still not having the delete rule set, so it doesn't fix the problem.
Is this a known bug, or is there some way of telling the program to generate the delete rule in DDL that I'm missing? I should add I'm using version 3.1.1.703.
Thanks in advance for your help.
Mike
Edited by: user10832262 on Apr 12, 2012 9:53 AMI did some more research and I think I was completely misunderstanding Oracle's implementation of delete rules. Now I believe that Oracle implements the "RESTRICT" option in SQL Developer Data Modeler as "No Action", which is the default option, hence why no DDL option is generated. However, it would still be nice if Data Modeler could detect this fact when comparing two models. What I mean it, if comparing an Oracle DB to a model, treat Restrict and No Action as the same, and thus don't attempt to re-generate the DDL for this "difference". For now, I'll just change the action on my models to No Action, and this should resolve the issue.
Maybe you are looking for
-
Dear Gurus, Last month (June) we have deducted the Income tax through MVT1 wagetype for all the employees .As the master data has been changed for the previous month , so when i executed this month payroll with standard INTAX, system is triggering th
-
How to Create Personnel Numbers in SAP?
Hi All, Hope you're well. Sorry to bother you, I am currently working as SAP support in FI/CO and 1 of my tasks is to create personal No's for staff so when an expense invoice is being posted into FI, the AP clark could have the option of filling the
-
How to access a file via Applet and JavaScript
I want to copy one file on the client machine from one place to another place from a Java Bean. To do this I created an applet and a Java Bean as follows: import java.applet.*; public class FileUtils extends Applet { public void copyFile(String s
-
Office 2004 will not uninstall
Hi, I'd like to install office 2008, so I'm firstly using the office 2004 uninstaller program to remove office 2004 - however it tells me it can't remove the installation of Office '04 as i'm not logged into the account that installed it - I've only
-
Adding Music To Slideshow In Elements 6
I was able to successfully add ONE song to my slideshow, but when I try to add another song the program just shuts down completely. Please help!!!