Hi all. |
Re: Loop including deleted items
This is part of some code I've used:
for itemRef in all(fldr) do {
isDel = isDeleted(itemRef)
if( isDel ){
str2 = " DELETED "
} else {
str2 = ""
}
str1 = name(itemRef)
print str1 " "
if (project( str1 )){
print "is a " str2 "project\n"
}else{
if (folder( str1 )){
print "is a " str2 "folder\n"
}
}
if (module( str1 )){
print "is a " str2 "module\n"
}
}
|
Re: Loop including deleted items bmij - Thu Mar 29 11:26:06 EDT 2012
This is part of some code I've used:
for itemRef in all(fldr) do {
isDel = isDeleted(itemRef)
if( isDel ){
str2 = " DELETED "
} else {
str2 = ""
}
str1 = name(itemRef)
print str1 " "
if (project( str1 )){
print "is a " str2 "project\n"
}else{
if (folder( str1 )){
print "is a " str2 "folder\n"
}
}
if (module( str1 )){
print "is a " str2 "module\n"
}
}
Thanks a lot Jim! |
Re: Loop including deleted items bmij - Thu Mar 29 11:26:06 EDT 2012
This is part of some code I've used:
for itemRef in all(fldr) do {
isDel = isDeleted(itemRef)
if( isDel ){
str2 = " DELETED "
} else {
str2 = ""
}
str1 = name(itemRef)
print str1 " "
if (project( str1 )){
print "is a " str2 "project\n"
}else{
if (folder( str1 )){
print "is a " str2 "folder\n"
}
}
if (module( str1 )){
print "is a " str2 "module\n"
}
}
Hello, I would like to list the soft deleted items from a folder. But i ahve a problem. There are some items under a folder which is already soft deleted. So my question is: is it possible to list down the soft deleted Folders ? Any help would be greatful. Thanks & Regards, Kasilingam S |
Re: Loop including deleted items kasiaz - Tue May 13 08:13:22 EDT 2014 Hello, I would like to list the soft deleted items from a folder. But i ahve a problem. There are some items under a folder which is already soft deleted. So my question is: is it possible to list down the soft deleted Folders ? Any help would be greatful. Thanks & Regards, Kasilingam S Hi, Yes it is possible:
Item f = item(fullName(current Folder))
void list(Item wF) {
Item i
print type(wF) " (" isDeleted(wF) ")\n"
if (type(wF) != "Folder" && type(wF) != "Project") {
return
}
Folder f = folder(fullName(wF))
for i in all f do {
print " - " name(i) " (" isDeleted(i) ")\n"
list(i)
}
}
list(f)
Regards, Alain
|