DI Server : Delete Document Rows
Hi all.
The DI API now gives the opportunity to delete lines in Documents.
But do we have this option using the DI Server?
My users would like to update their sales orders including deleting lines.
I have not been able to find any solution to this.
I am not asking for a work around because I already have something in mind. I want to know if SAP has made an approved way of doing this.
Best Regards and happy holidays,
Allan
It is very nice with these DI services but we still have some problems getting it to work.We have tried it straight from the documentation - something as plain as the example from there:
<?xml version="1.0" encoding="UTF-16"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
<env:Header>
<SessionID>1F6C7E11-CC5B-A5F3-0206-D1F4A8B9D84A</SessionID>
</env:Header>
<env:Body>
<dis:GetByParams xmlns:dis="http://www.sap.com/SBO/DIS">
<Service>QuotationsService</Service>
<DocumentParams>
<DocEntry>1</DocEntry>
</DocumentParams>
</dis:GetByParams>
</env:Body>
</env:Envelope>
Gives me the following response:
Data 'DocumentParams xmlns=""' not found
What am I doing wrong?
Regards,
Allan
Similar Messages
-
Recover deleted document from Oracle content server
Hi All,
I've deleted some of documents from oracle content server mistakenly. I am using oracle ucm11g.
I found that we have a feature called "Trash bin". Trash-bin used for recover the deleted document/folder but unluckily settings for "Trash Bin" is disabled in my UCM folder configuration.
Is there any other way to recover?
Please kindly help me on this. It's an urgent production issue, please.
Thanks for your great support in advance.Is there any other way to recover?
Try to take a look at Repository Manager admin application: http://docs.oracle.com/cd/E21764_01/doc.1111/e10978/c03_repository.htm#DAFCGDIE
If you still can see your items there, you could recover the status.
If not, I'm afraid your documents are gone from UCM. In that case, you might recover them from a back-up. There is also a chance that documents are still present in the Vault directory, so rather than 'recover', you might 're-submit' them. -
Dear i want to add or delete the rows from table... i am providing u the code but i m unable to delete the row.... can u find the bug
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dTD">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Setting test Case</title>
<SCRIPT TYPE="text/javascript">
var count = "1";
function addRow(in_tbl_name)
var tbody = document.getElementById(in_tbl_name).getElementsByTagName("TBODY")[0];
// create row
var row = document.createElement("TR");
// create table cell 1
var td1 = document.createElement("TD")
var strHtml1 = "<FONT SIZE=\"+1\">count</FONT>";
td1.innerHTML = strHtml1.replace(/count/g,count);
// create table cell 2
var td2 = document.createElement("TD");
var strHtml2 = "<INPUT TYPE=\"text\" NAME=\"in_name\" SIZE=\"6\" MAXLENGTH=\"6\" STYLE=\"height:24;border: 1 solid;margin:0;\">";
td2.innerHTML = strHtml2.replace(/count/g,count);
// create table cell 3
var td3 = document.createElement("TD");
var strHtml3 = "<INPUT TYPE=\"text\" NAME=\"in_name\" SIZE=\"6\" MAXLENGTH=\"6\" STYLE=\"height:24;border: 1 solid;margin:0;\">";
td3.innerHTML = strHtml3.replace(/count/g,count);
// create table cell 4
var td4 = document.createElement("TD");
var strHtml4 = "<INPUT TYPE=\"text\" NAME=\"in_name\" SIZE=\"6\" MAXLENGTH=\"6\" STYLE=\"height:24;border: 1 solid;margin:0;\">";
td4.innerHTML = strHtml4.replace(/count/g,count);
// create table cell 5
var td5 = document.createElement("TD");
var strHtml5 = "<INPUT TYPE=\"text\" NAME=\"in_name\" SIZE=\"6\" MAXLENGTH=\"6\" STYLE=\"height:24;border: 1 solid;margin:0;\">";
td5.innerHTML = strHtml5.replace(/count/g,count);
// create table cell 6
var td6 = document.createElement("TD");
var strHtml6 = "<INPUT TYPE=\"text\" NAME=\"in_name\" SIZE=\"6\" MAXLENGTH=\"6\" STYLE=\"height:24;border: 1 solid;margin:0;\">";
td6.innerHTML = strHtml6.replace(/count/g,count);
// create table cell 7
var td7 = document.createElement("TD");
var strHtml7 = "<INPUT TYPE=\"Button\" CLASS=\"Button\" onClick=\"delRow()\" VALUE=\"Delete\">";
td7.innerHTML = strHtml7.replace(/count/g,count);
// append data to row
row.appendChild(td1);
row.appendChild(td2);
row.appendChild(td3);
row.appendChild(td4);
row.appendChild(td5);
row.appendChild(td6);
row.appendChild(td7);
// append row to table
tbody.appendChild(row);
// add to count variable
count = parseInt(count) + 1;
function delRow()
var current = window.event.srcElement;
//here we will delete the line
while ((current = current.parentElement) && current.tagName !="TR")
current.parentElement.removeChild(current);
</script>
</head>
<body>
<center>
<h3>Setting Test Case</h1>
<TABLE ID="tbltest" border="1"STYLE="border width:1 orange dashed;background color:#F0E68C;table-row width:2;">
<TR><TH>Rownum</TH><TH>On Time</TH><TH>Off Time</TH><TH>StartUp Voltage</TH>
<TH>Deep Voltage</TH> <TH>No. of Pulses</TH><TD align="center">
<INPUT TYPE="Button" onClick="addRow('tbltest')" VALUE="Add Row"></TD></TR>
</TABLE>
</center>
</body>
</html>I ended up rebuilding the server. Deployed a new OVA, installed PI 2.2 and patched the Critical Fixes ( PI2.2.1 POODLE fix and PI 2.2.1 Maintenance Release). The I applied the device pack 2.2. Finally I restored the backup. The application has been running stable. Goodluck.
Phil. -
HOW TO DELETE THE ROW FROM DATABASE
hI,
Iam pasting my code below.My problem isi retrieve rows from database and display them in jsp page in rows.For each row there is delete hyperlink.Now when i click that link i should only delete the row corresponding to that delete link temporarily but it should not delete the row from database now.It should only delete the row from database when i click the save button.How can i do this can any one give some code.
thanks
naveen
[email protected]
<%@ page language="java" import="Utils.*,java.sql.*,SQLCon.ConnectionPool,java.util.Vector,java.util.StringTokenizer" %>
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Item Details</title>
<script>
function submitPage()
document.details.action = "itemdetails.jsp" ;
document.details.submit();
</script>
</head>
<body>
<form name="details" action="itemdetails.jsp" method="post">
<%
ConnectionPool pool;
Connection con = null;
Statement st;
ResultSet rs =null;
%>
<table border="0" cellpadding="0" cellspacing="0" width="328">
<tr>
<td width="323" colspan="4"><b>Reference No :</b> <input type="text" name="txt_refno" size="14">
<input type="submit" value="search" name="search" ></td>
</tr>
<tr>
<td width="81" bgcolor="#000099"><font color="#FFFFFF"><b>Item Code</b></font></td>
<td width="81" bgcolor="#000099"><font color="#FFFFFF"><b>Item No</b></font></td>
<td width="81" bgcolor="#000099"><font color="#FFFFFF"><b>Amount </b></font></td>
<td width="80" bgcolor="#000099"> </td>
</tr>
<%
pool= new ConnectionPool();
Utils utils = new Utils();
double total =0.00;
String search =utils.returnString(request.getParameter("search"));
if(search.equals("search"))
try
String ref_no =utils.returnString(request.getParameter("txt_refno"));
String strSQL="select * from ref_table where refno='" + ref_no + "' ";
con = pool.getConnection();
st=con.createStatement();
rs = st.executeQuery(strSQL);
while(rs.next())
String itemcode=rs.getString(2);
int item_no=rs.getInt(3);
double amount= rs.getDouble(4);
total= total + amount;
%>
<tr>
<td width="81"><input type=hidden name=hitem value=<%=itemcode%>><%=itemcode%></td>
<td width="81"><input type=hidden name=hitemno value=<%=item_no%>><%=item_no%></td>
<td width="81"><input type=hidden name=hamount value=<%=amount%>><%=amount%></td>
<td width="80"><a href="delete</td>
</tr>
<%
}catch(Exception e){}
finally {
if (con != null) pool.returnConnection(con);
%>
<tr>
<td width="323" colspan="4">
<p align="right"><b>Total:</b><input type="text" name="txt_total" size="10" value="<%=total%>"></td>
</tr>
<tr>
<td width="323" colspan="4">
<input type="button" value="save" name="save"></td>
</tr>
</table>
</form>
</body>
</html>You mean when you click on the hyperlink you want that row to disappear from the page, but not delete the row from the database until a commit/submit button is pressed?
Personally, I think I'd prefer that you have a delete checkbox next to every row and NOT remove them from the display if I was a user. You give your users a chance to change their mind about their choice, and when they're done they can see exactly which rows will be deleted before they commit.
You know your problem, of course, so you might have a good reason for designing it this way. But I'd prefer not removing them from the display. JMO - MOD -
How to delete a row of table in Word using powershell.
I want to search for a word which is present in Table. If that word is present than I want to delete that row from table.
Can anybody help me with that. The script I am using is:
$objWord = New-Object -ComObject word.application
$objWord.Visible = $True
$objDoc = $objWord.Documents.Open("C:\temp\Recipe.docx")
$FindText = "DP1"
$objSelection.Find.Execute($FindText)
$objWord.Table.Cells.EntireRow.Delete()
$objDoc.SaveAs("C:\Temp\P.docx")
$Doc.Close()Maybe try this:
$objWord = New-Object -ComObject word.application
$objWord.Visible = $True
$objWord.Documents.Open("C:\temp\Recipe.docx")
$FindText = "DP1"
$objWord.Selection.Find.Execute($FindText) | Out-Null
$objWord.Selection.SelectRow()
$objWord.Selection.Cells.Delete()
$objWord.Documents.SaveAs("C:\Temp\P.docx")
$objWord.Close()
$objWord.Quit()
[System.Runtime.InteropServices.Marshal]::ReleaseComObject([System.__ComObject]$objWord) | Out-Null
This definitely assumes the text you're trying to find only exists in a table, per your specified requirements. If it exists anywhere else, or in multiple tables, the code above is inadequate.
I hope this post has helped! -
How to delete multiple rows from ADF table
How to delete multiple rows from ADF table
Hi,
best practices when deleting multiple rows is to do this on the business service, not the view layer for performance reasons. When you selected the rows to delete and press submit, then in a managed bean you access thetable instance (put a reference to a managed bean from the table "binding" property") and call getSeletedRowKeys. In JDeveloper 11g, ADF Faces returns the RowKeySet as a Set of List, where each list conatins the server side row key (e.g. oracle.jbo.Key) if you use ADF BC. Then you create a List (ArrayList) with this keys in it and call a method exposed on the business service (through a method activity in ADF) and pass the list as an argument. On the server side you then access the View Object that holds the data and find the row to delte by the keys in the list
Example 134 here: http://blogs.oracle.com/smuenchadf/examples/#134 provides you with the code
Frank -
Deleting a row from a Parent VO gives NullPointerException
I am using JDev 11.1.1.2.0
Deleting a row from a Parent VO gives NullPointerException raised from oracle.jbo.server.EntityImpl.vetoRemoveWithDetails(EntityImpl.java:8214)
Here is my implementation:
There are two Entity Objects(Named "Parent" and "Child").
Both EO are NOT based on a database table. (These are populated from a method in the AM, the method calls a database API that returns an nested array and this array is used to populate the Parent and Child entities)
All attributes in these entity objects are Non-persistent.
The View Object "ParentEv" is based on "Parent" EO
The View Object "ChildEv" is based on "Child" EO
The View Objects "ParentEv" and "ChildEv" are linked by a view link.
The Entities "Parent" and"Child" are linked by Entity Association ( as "Composition Association" with "Implement Cascade Delete" checked.)
I am programatically deleting and populating the View Objects ParentEv and ChildEv from a method in the AM.
The first time I execute the method in BC Tester, it works fine.
The second time I execute the method it works fine.
But on third execution, it gives the below error which seems to be NullPointerException raised from oracle.jbo.server.EntityImpl.vetoRemoveWithDetails(EntityImpl.java:8214)
I am able to reproduce this in a test case scenario. It always works the first 2 times and fails when the method to delete and populate the VOs is executed a 3rd time.
If we base the "Parent" and "Child" entities on some dummy database views, it works fine, the problem only occurs when the Entities are NOT based on any table.
Can someone advise on what could be causing this issue?
Thanks,
Mitesh.Here's the method that I use in my test case to populate the VOs.
* This method populates the VOs ParentEv and ChildEv.
* These VOs are based on EOs Paren and Child, respectively.
* Before populating the VOs I am deleting any existing rows.
* The first two times this method is executed, it works fine.
* The third time this method executes it gives a nullpointerexception raised from
* oracle.jbo.server.EntityImpl.vetoRemoveWithDetails(EntityImpl.java:8214)
public void populateMethod(){
int rowCount = getParentEv().getRowCount();
for (int i = 0; i < rowCount; i++) {
Row row = getParentEv().last();
if(row!=null)
row.remove();
rowCount = getChildEv().getRowCount();
for (int i = 0; i < rowCount; i++) {
Row row = getChildEv().last();
if(row!=null)
row.remove();
int k = 0;
for (int i = 1; i < 5; i++) {
ParentEvRowImpl parentEvRow = (ParentEvRowImpl)getParentEv().createRow();
parentEvRow.setParentPk("Parent " + i);
parentEvRow.setParentDesc("Parent Desc " + i);
getParentEv().insertRow(parentEvRow);
for (int j = 1; j < 5; j++) {
k++;
ChildEvRowImpl childEvRow = (ChildEvRowImpl)getChildEv().createRow();
childEvRow.setChildPk("Child " + k);
childEvRow.setChildDesc("Child Desc " + k);
getChildEv().insertRow(childEvRow);
}==============================================================================
Here is the Parent.xml for the Parent EO:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE Entity SYSTEM "jbo_03_01.dtd">
<!---->
<Entity
xmlns="http://xmlns.oracle.com/bc4j"
Name="Parent"
Version="11.1.1.55.36"
AliasName="Parent"
BindingStyle="OracleName"
UseGlueCode="false"
RowClass="oracle.jbo.server.EntityImpl"
DefClass="oracle.jbo.server.EntityDefImpl"
CollClass="oracle.jbo.server.EntityCache">
<DesignTime>
<AttrArray Name="_publishEvents"/>
</DesignTime>
<Attribute
Name="ParentPk"
IsQueriable="false"
IsPersistent="false"
ColumnName="PARENTPK"
SQLType="VARCHAR"
Type="java.lang.String"
ColumnType="$none$"
PrimaryKey="true"/>
<Attribute
Name="ParentDesc"
IsQueriable="false"
IsPersistent="false"
ColumnName="$none$"
SQLType="VARCHAR"
Type="java.lang.String"
ColumnType="$none$"/>
<AccessorAttribute
Name="Child"
Association="model.eo.ea.ChildParentAssoc"
AssociationEnd="model.eo.ea.ChildParentAssoc.Child"
AssociationOtherEnd="model.eo.ea.ChildParentAssoc.Parent"
Type="oracle.jbo.RowIterator"
IsUpdateable="false"/>
</Entity>==============================================================================
Here is the Child.xml for the Child EO:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE Entity SYSTEM "jbo_03_01.dtd">
<!---->
<Entity
xmlns="http://xmlns.oracle.com/bc4j"
Name="Child"
Version="11.1.1.55.36"
AliasName="Child"
BindingStyle="OracleName"
UseGlueCode="false">
<DesignTime>
<AttrArray Name="_publishEvents"/>
</DesignTime>
<Attribute
Name="ChildPk"
IsUpdateable="while_insert"
IsQueriable="false"
IsPersistent="false"
IsNotNull="true"
ColumnName="CHILDPK"
SQLType="VARCHAR"
Type="java.lang.String"
ColumnType="$none$"
PrimaryKey="true"/>
<Attribute
Name="ChildDesc"
IsQueriable="false"
IsPersistent="false"
ColumnName="$none$"
SQLType="VARCHAR"
Type="java.lang.String"
ColumnType="$none$"/>
<Attribute
Name="ParentPk"
IsQueriable="false"
IsPersistent="false"
IsNotNull="true"
ColumnName="$none$"
SQLType="VARCHAR"
Type="java.lang.String"
ColumnType="$none$"/>
</Entity>==============================================================================
Here is the ChildParentAssoc.xml for the Association between Parent and Child EOs:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE Association SYSTEM "jbo_03_01.dtd">
<!---->
<Association
xmlns="http://xmlns.oracle.com/bc4j"
Name="ChildParentAssoc"
Version="11.1.1.55.36">
<DesignTime>
<Attr Name="_isCodegen" Value="true"/>
</DesignTime>
<AssociationEnd
Name="Parent"
Cardinality="1"
Source="true"
Owner="model.eo.Parent"
DeleteContainee="true"
LockLevel="NONE"
ExposedAccessor="false">
<DesignTime>
<Attr Name="_aggregation" Value="0"/>
<Attr Name="_finderName" Value="Parent"/>
<Attr Name="_isUpdateable" Value="true"/>
<Attr Name="_minCardinality" Value="1"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item Value="model.eo.Parent.ParentPk"/>
</AttrArray>
</AssociationEnd>
<AssociationEnd
Name="Child"
Cardinality="-1"
Owner="model.eo.Child"
HasOwner="true">
<DesignTime>
<Attr Name="_aggregation" Value="0"/>
<Attr Name="_finderName" Value="Child"/>
<Attr Name="_isUpdateable" Value="true"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item Value="model.eo.Child.ParentPk"/>
</AttrArray>
</AssociationEnd>
</Association>==============================================================================
Here is the ParentEv.xml for the ParentEv VO:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
<!---->
<ViewObject
xmlns="http://xmlns.oracle.com/bc4j"
Name="ParentEv"
Version="11.1.1.55.36"
BindingStyle="OracleName"
CustomQuery="true"
RowClass="model.vo.ev.ParentEvRowImpl"
ComponentClass="model.vo.ev.ParentEvImpl"
PageIterMode="Full"
UseGlueCode="false">
<DesignTime>
<Attr Name="_codeGenFlag2" Value="Access|Coll"/>
<Attr Name="_isExpertMode" Value="true"/>
<Attr Name="_isCodegen" Value="true"/>
</DesignTime>
<EntityUsage
Name="Parent"
Entity="model.eo.Parent"/>
<ViewAttribute
Name="ParentDesc"
IsSelected="false"
IsQueriable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="255"
EntityAttrName="ParentDesc"
EntityUsage="Parent"
AliasName="PARENTDESC"/>
<ViewAttribute
Name="ParentPk"
IsQueriable="false"
IsPersistent="false"
PrecisionRule="true"
EntityAttrName="ParentPk"
EntityUsage="Parent"/>
<ViewLinkAccessor
Name="ChildEv"
ViewLink="model.vo.vl.ChildEvParentEvVl"
Type="oracle.jbo.RowIterator"
IsUpdateable="false"/>
</ViewObject>==============================================================================
Here is the ChildEv.xml for the ChildEv VO:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
<!---->
<ViewObject
xmlns="http://xmlns.oracle.com/bc4j"
Name="ChildEv"
Version="11.1.1.55.36"
BindingStyle="OracleName"
CustomQuery="true"
RowClass="model.vo.ev.ChildEvRowImpl"
ComponentClass="model.vo.ev.ChildEvImpl"
PageIterMode="Full"
UseGlueCode="false">
<DesignTime>
<Attr Name="_codeGenFlag2" Value="Access|Coll"/>
<Attr Name="_isExpertMode" Value="true"/>
<Attr Name="_isCodegen" Value="true"/>
</DesignTime>
<EntityUsage
Name="Child"
Entity="model.eo.Child"/>
<ViewAttribute
Name="ChildDesc"
IsSelected="false"
IsQueriable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="255"
EntityAttrName="ChildDesc"
EntityUsage="Child"
AliasName="CHILDDESC"/>
<ViewAttribute
Name="ChildPk"
IsUpdateable="while_insert"
IsQueriable="false"
IsPersistent="false"
IsNotNull="true"
PrecisionRule="true"
EntityAttrName="ChildPk"
EntityUsage="Child"/>
<ViewAttribute
Name="ParentPk"
IsQueriable="false"
IsPersistent="false"
IsNotNull="true"
PrecisionRule="true"
EntityAttrName="ParentPk"
EntityUsage="Child"/>
</ViewObject>==============================================================================
Here is the ChildEvParentEvVl.xml for the view link between ParentEv and ChildEv VOs:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE ViewLink SYSTEM "jbo_03_01.dtd">
<!---->
<ViewLink
xmlns="http://xmlns.oracle.com/bc4j"
Name="ChildEvParentEvVl"
Version="11.1.1.55.36">
<DesignTime>
<Attr Name="_isCodegen" Value="true"/>
</DesignTime>
<ViewLinkDefEnd
Name="ParentEv"
Cardinality="1"
Owner="model.vo.ev.ParentEv"
Source="true">
<DesignTime>
<Attr Name="_finderName" Value="ParentEv"/>
<Attr Name="_isUpdateable" Value="true"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item Value="model.vo.ev.ParentEv.ParentPk"/>
</AttrArray>
</ViewLinkDefEnd>
<ViewLinkDefEnd
Name="ChildEv"
Cardinality="-1"
Owner="model.vo.ev.ChildEv">
<DesignTime>
<Attr Name="_finderName" Value="ChildEv"/>
<Attr Name="_isUpdateable" Value="true"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item Value="model.vo.ev.ChildEv.ParentPk"/>
</AttrArray>
</ViewLinkDefEnd>
</ViewLink> -
Deleting a row from a table containing CLOB as one of the columns
When i delete a row from a table which contains a CLOB (internal clob) i.e. CLOB or BLOB column, Will the CLOB data will also be deleted ? I understand that what exactly stored in the CLOB column is the clob locator which points to the actual data.
So, when I delete this row, the clob locator will be deleted, but will the actual data what this locator is pointing to is also deleted ??? if not what is the process to delete the data the locator is pointing to when the row containing the locator is deleted ? If this is not happening then the actual data might become an orphan data which nobody has access to, will automatic garbage cleaning occurs on a frequent intravels to delete unaddressed data residing on the database server ?
Thanks in advance for the help, can email me at [email protected] alternatively.
Regards,
Srinivasa C.Michael,
Thanks very much for your inputs, here are the results i got when i tried the way you explained in your answer, the TRUNCATE command made the actual size back to normal, but the delete is not the same, so, how can i delete the data that a particular clob locator may point to ?
truncate would delete all the rows of the table, which might not serve my purpose, i would like to delete a row and also it's associated clob data from the database! is there anyway to do this ?
is there any limitation on the ool_sample size? i am basically a c++ programmer, i am looking for some function like FREE which would free the allocated memory to the clob once the locator is deleted.
your help is greatly appreciated - Thanks!
:-) Srini.
==========================
My Results:
==========================
SQL> create table sample (
2 id integer primary key,
3 the_data CLOB default empty_clob() )
4 lob (the_data) store as ool_sample;
Table created.
SQL> select segment_name, round(sum(bytes)/1024, 2) || 'K' as sotrage_consumed
2 from user_segments
3 where segment_name in ('SAMPLE', 'OOL_SAMPLE')
4 group by segment_name;
SEGMENT_NAME
SOTRAGE_CONSUMED
OOL_SAMPLE
20K
SAMPLE
10K
SQL> select count(*) from sample;
COUNT(*)
0
SQL> begin
2 for i in 1..1000
3 loop
4 insert into sample values (i, RPAD('some data', 4000) );
5 end loop;
6 end;
7 /
PL/SQL procedure successfully completed.
SQL> select segment_name, round(sum(bytes)/1024, 2) || 'K' as sotrage_consumed
2 from user_segments
3 where segment_name in ('SAMPLE', 'OOL_SAMPLE')
4 group by segment_name;
SEGMENT_NAME
SOTRAGE_CONSUMED
OOL_SAMPLE
6420K
SAMPLE
70K
SQL> delete sample;
1000 rows deleted.
SQL> select segment_name, round(sum(bytes)/1024, 2) || 'K' as sotrage_consumed
2 from user_segments
3 where segment_name in ('SAMPLE', 'OOL_SAMPLE')
4 group by segment_name;
SEGMENT_NAME
SOTRAGE_CONSUMED
OOL_SAMPLE
6420K
SAMPLE
70K
SQL> commit;
Commit complete.
SQL> select segment_name, round(sum(bytes)/1024, 2) || 'K' as sotrage_consumed
2 from user_segments
3 where segment_name in ('SAMPLE', 'OOL_SAMPLE')
4 group by segment_name;
SEGMENT_NAME
SOTRAGE_CONSUMED
OOL_SAMPLE
6420K
SAMPLE
70K
SQL> begin
2 for i in 1..1000
3 loop
4 insert into sample values (i, rpad('some data', 4000));
5 end loop;
6 end;
7 /
PL/SQL procedure successfully completed.
SQL> select segment_name, round(sum(bytes)/1024, 2) || 'K' as sotrage_consumed
2 from user_segments
3 where segment_name in ('SAMPLE', 'OOL_SAMPLE')
4 group by segment_name;
SEGMENT_NAME
SOTRAGE_CONSUMED
OOL_SAMPLE
9616K
SAMPLE
70K
SQL> truncate table sample;
Table truncated.
SQL> select segment_name, round(sum(bytes)/1024, 2) || 'K' as sotrage_consumed
2 from user_segments
3 where segment_name in ('SAMPLE', 'OOL_SAMPLE')
4 group by segment_name;
SEGMENT_NAME
SOTRAGE_CONSUMED
OOL_SAMPLE
20K
SAMPLE
10K -
Delete document button in ribbon gives javascript error: g is not a function
Hello,
We have a default SharePoint 2010 installation. So an out of the box site template, out of the box document libraries/lists etc, out of the box theme (default one) etc.
When we check the checkbox next to a document in the shared documents library, the tab in the ribbon automatically switches to the document tab. In this tab there is a button "delete document". When I click that I get a confirmation request, I click OK,
and then I get a little yellow box in the upper right corner that tells me SharePoint is deleting the document, and then nothing happens.
The document stays where it is, no refresh of the page as SharePoint should do...
I have a javascript error, and in FireFox it tells me "g is not a function" on line 2 of the file inplview.js?rev=AohvE9XEf%2FI78tuaw1TGAA
Line 2 contains like 100 javascript functions on the same line, so it's impossible to find out which function or command throws the error.
This is not a file created by me, so I guess it comes with SharePoint and that I should not touch it.
So what do I do now?
I have another server that we use for SharePoint testing, and there the button works as it should, so it's not SharePoint either...
Problem is that we use this server to give basic SharePoint trainings to our employees, so it's not a very good start when we have to say the delete button is broken but will work in the actual production environment...Hi Stefan,
In our case the problem was caused because initially we had set the authentication to basic authentication, and then changed the setting to claims based authentication. Somehow this causes SharePoint to give errors.
I don't know if the same error occurs when you choose claims based authentication from the beginning (so without changing it after creating the web application).
In our case we had the same behavior, in the ribbon the button didn't work, but in the context menu it did work.
I don't have any other info, as I said in my previous post, I couldn't find any info on this issue on the net. We figured this one out ourselves. I don't know how to keep the claims based authentication, for us it was just a test to try out that type of
authentication. Since we were running into problems and we didn't really need it we reverted it back to basic authentication. -
I have read two articles how to use sql adapter with delete.
http://btsguru.blogspot.se/2011/10/wcf-sql-adapter-table-operations.html
http://social.technet.microsoft.com/wiki/contents/articles/29146.biztalk-server-2013-crud-operation-with-wcf-sql-adapter-and-correlation.aspx?wa=wsignin1.0
Is it a way to delete all rows in a table?
I have tried to send <ns0:Rows>*</ns0:Rows> with no luck.
ChallanI'm not expert in Biztalk but one of the options to call stored procedure that contains the delete script:
http://geekswithblogs.net/StuartBrierley/archive/2011/10/19/biztalk-server-2010---using-the-wcf-sql-adapter-to-make.aspx
Sql Delete all rows from table Script:
DELETE FROM table_name;
or
TRUNCATE TABLE mytable;
Trucnate vs Delete:
http://www.mssqltips.com/sqlservertip/1080/deleting-data-in-sql-server-with-truncate-vs-delete-commands/
Fouad Roumieh -
Delete a row from a data object using an AQ-driven EMS
Hello, technetwork.
I need to show the contents of a table that changes frequently (inserts, updates and deletes) at ORDBMS 10g in my BAM dashboard.
What i have done is:
- Create two different queue tables, queues.
- Create two triggers: one for "AFTER insert or UPDATE" and the other for "BEFORE DELETE".
- Create two EMS, one configured to Upsert operations and the other to Delete.
- The Upsert EMS works, but the Delete EMS does not.
- Both EMS Metrics say that they work fine and commit the messages i send to the ADC.
- Testing showed records are populated and updated in the ADC but never deleted.
There is a detailed user case for "Creating an EMS Against Oracle Streams AQ JMS Provider" in the Fusion Midleware Developer's Guide for SOA Suite, but it deals only with Upserts. I am using the last versions of SOA suite and Weblogic. The official support has no information either.
I hope writing a web service client isn't the only way to delete a row from a data object. Am i missing something? Any help will be much appreciated.
My EMS config:
Initial Context Factory: weblogic.jndi.WLInitialContextFactory.
JNDI Service Provider URL: t3://<spam>:80.
Topic/Queue Connection Factory Name: jms/BAMAQTopicCF.
Topic/Queue Name: jms/ProdGlobalBAMD_flx.
JNDI Username: .
JNDI Password: .
JMS Message Type: TextMessage.
Durable Subscriber Name (Optional): BAM_ProdGlobalBAMD.
Message Selector (Optional): .
Data Object Name: /bam/ProdGlobalBAM_flx.
Operation: Delete.
Batching: No.
Transaction: No.
Start when BAM Server starts: No.
JMS Username (Optional): .
JMS Password (Optional): .
XML Formatting
Pre-Processing
Message Specification
Message Element Name: row
Column Value
Element Tag
Attribute
Source to Data Object Field Mapping
Key Tag name Data Object Field
. BARCODE. BarCode.
Added my EMS configRam_J2EE_JSF wrote:
How to accomplish this using JavaScript?Using Javascript? Well, you know, Javascript runs at the client side and intercepts on the HTML DOM tree only. The JSF code is completely irrelevant. Open your JSF page in your favourite webbrowser and view the generated HTML source. Finally just base your Javascript function on it. -
Retrieving Deleted Documents in Solution Manager
Hello
Some documents where deleted via the DELETE ROW button under the Configuration Tab in tcode SOLAR02. However, we want to know if there is a way to retrieve these delete documents.
Also i want to know which table stores these documents. Please respond soon.
Regards
BalarkaBalarka
First goto transaction
Solar01 and from the SAP menu Business Blueprint->Find document.
Enter the name in the query for the lost document or directly press enter( also,can remove project name from selection criteria).
You wil get the list of all documents present.The doc which are removed from project can also be seen here.
Can switch on trace for getting the table.
Remember if you have press Minus button doc wil be there in knowledge warehouse and listed here.
But if you have Press Delete symbol it means it is permanently deleted.
Hope it helps
Regards
Prakhar -
I have a database that has an the ID as the identity and it goes up by 1 each time a new row is added. When I delete a row, all of the ID's that come after it stay the same. For example if I delete the row with the ID of 2, the IDs will now go like 1, 3,
4 and so on, just having the 2 missing.
How do I make it so that when I delete a row, all of the IDs that follow it are brought down by one? For example when deleting the row with the ID of 2, rows 3 and 4's IDs become 2 and 3, making the data go 1, 2, 3 instead of 1, 3, 4.CREATE TABLE T1
id VARCHAR(10) NOT NULL PRIMARY KEY,
pos INT NOT NULL UNIQUE
INSERT INTO T1 VALUES('A', 1)
INSERT INTO T1 VALUES('B', 2)
INSERT INTO T1 VALUES('C', 3)
INSERT INTO T1 VALUES('D', 4)
INSERT INTO T1 VALUES('E', 5)
INSERT INTO T1 VALUES('F', 6)
DECLARE
@id AS VARCHAR(10),
@newpos AS INT
SET @id = 'd'
SET @newpos = 1
SELECT T1.*
FROM T1, (SELECT pos AS idpos FROM T1 WHERE id = @id) AS P
ORDER BY
CASE
WHEN id = @id THEN @newpos
WHEN pos BETWEEN idpos AND @newpos THEN pos - 1
WHEN pos BETWEEN @newpos AND idpos THEN pos + 1
ELSE pos
END
UPDATE T1 SET pos =CASE
WHEN id = @id THEN @newpos
WHEN pos BETWEEN @oldpos AND @newpos THEN pos - 1
WHEN pos BETWEEN @newpos AND @oldpos THEN pos + 1
ELSE pos
END
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
Search documents in SOLAR02: filter deleted documents
Dear all;
When we use the search functionality in SOLAR02, it brings all the documents, even the ones that were "deleted" using the button "Delete row" (I know we should alway use the "Delete document", but some users are starting with solman and make mistakes).
Is there any way to filter those documents when searching? We have the workaround that every once in a while we use a report to delete unused documents (ie the ones deleted with "delete row"), but sometimes those documents had a link in their attributes, so they are still referenced, so they dont appear in this report as unused.
Hope I was clear enough,
Best regards,
FedericoHi,
did you get an answer to your questionn?
I'm currently facing the same problem.
Do you know if it is possible to correctly delete docuemnts when users deleted the rows before?
//EDIT: It is possible to delete the document from the search result screen, but it is very painful since it must be manually checked.
Thanks and regards
Oliver -
How to delete the row in table control with respect to one field in module pool programming?
Hi,
Can I know the way to delete the row in table control with respect to one field in module pool programming
Regards
Darshan MSHI,
I want to delete the row after the display of table control. I have created push button as delete row. If I click on this push button, the selected row should get deleted.
I have written this code,
module USER_COMMAND_9000 input.
DATA OK_CODE TYPE SY-UCOMM.
OK_CODE = SY-UCOMM.
CASE OK_CODE.
WHEN 'DELETE'.
LOOP AT lt_source INTO ls_source WHERE mark = 'X'.
APPEND LS_SOURCE TO LT_RESTORE.
DELETE TABLE LT_SOURCE FROM LS_SOURCE.
SOURCE-LINES = SOURCE-LINES - 1.
ENDLOOP.
But I'm unable to delete the selected rows, It is getting deleted the last rows eventhough I select the other row.
So I thought of doing with respect to the field.
Maybe you are looking for
-
After loading Mavericks and updating the mailprogram, I started working on mail, foud a completely different lay-out, but in no time I found the button to get back to the familiar old lay-out. Only thereafter I updated the numbers, pages and other a
-
Custom images all jumbled in Address book
I have about 4000 contacts in my address book. Some of them had custom images (photo) attached. I sync my Mac, .Mac, and iPhone routinely. One day, my Address Book decided to jumble up all the photos. Not nice. Is there a way to delete all my custom
-
When I plugged my iphone into the computer for the first time i lost all my music and ringtones. Is there a way to get them back without buying them again, or will I have to buy them again.
-
What version of Acrobat is {AC76BA86-1033-F400-7760-000000000003} ?
Hello I am trying to update my version of Acrobat 8 to 8.1 but the installer fails because it doesn't like my version {AC76BA86-1033-F400-7760-000000000003} ? Any idea of which updater I should use ? Regards alex
-
IPhoto '08 suddenly no longer displaying majority of my library photos.
I am using iPhoto '08 7.1.4. Today it has lost connection to most of the photo files in the iPhoto library. From being able to see thousands of photos yesterday, today I see fewer than 400. The photos no longer appear in my Events or Albums either. S