Creation of folder structure using RIDC code
Hi,
Can anyone help me out in creating a folder structure in UCM using RIDC code by using IDC services.
When i am trying to create folder in UCM i am getting this error :oracle.stellent.ridc.protocol.ServiceException: Unable to display virtual folder information. Unable to open folder.
my snippet is given below:
public boolean createSubmission(String journalName,
String submissionID) throws Exception {
IdcClientManager manager = new IdcClientManager();
IdcClient idcClient;
try {
idcClient = manager.createClient("idc://localhost:4444");
IdcContext userContext = new IdcContext("weblogic", "welcome1");
String PATH="/Contribution Folders";
DataBinder dataBinder = idcClient.createBinder();
dataBinder.putLocal("IdcService", "COLLECTION_NEW");
dataBinder.putLocal("hasParentCollectionID", "true");
dataBinder.putLocal("dCollectionName", submissionID);
dataBinder.putLocal("dParentCollectionID",this.getFolderIdFromPath(idcClient,userContext,PATH +"/"+journalName));
dataBinder.putLocal("dCollectionOwner", "sysadmin");
ServiceResponse response =idcClient.sendRequest(userContext, dataBinder);
DataBinder serverBinder = response.getResponseAsBinder();
System.out.println("dCollectionID.... "+serverBinder.getLocal("dCollectionID"));
} catch (IdcClientException e) {
e.printStackTrace();
return false;
private String getFolderIdFromPath(IdcClient idcClient,
IdcContext userContext, String path) {
String folderId = null;
// Long folderId =0L;
try {
DataBinder dataBinder = idcClient.createBinder();
dataBinder.putLocal("IdcService", "COLLECTION_INFO");
dataBinder.putLocal("hasCollectionPath", "true");
dataBinder.putLocal("dCollectionPath", path);
ServiceResponse response =
idcClient.sendRequest(userContext, dataBinder);
DataBinder serverBinder = response.getResponseAsBinder();
DataResultSet resultSet = serverBinder.getResultSet("PATH");
DataObject dataObject =
resultSet.getRows().get(resultSet.getRows().size() - 1);
folderId = dataObject.get("dCollectionID");
System.out.println("folderId... "+folderId);
} catch (IdcClientException e) {
e.printStackTrace();
return folderId;
Thanks in advance.
Hi,
Is your problem solved??
please share solution..
I am facing same issue..
While running custom code for creating virtual folder.
public class createFolders
public createFolders ()
super();
storedValue obj=new storedValue();
public String name=null;
private String getFolderIdFromPath(IdcClient idcClient,
IdcContext userContext, String path) {
String folderId = null;
// Long folderId =0L;
try {
DataBinder dataBinder = idcClient.createBinder();
dataBinder.putLocal("IdcService", "COLLECTION_INFO");
dataBinder.putLocal("hasCollectionPath", "true");
dataBinder.putLocal("dCollectionPath", path);
ServiceResponse response =
idcClient.sendRequest(userContext, dataBinder);
DataBinder serverBinder = response.getResponseAsBinder();
DataResultSet resultSet = serverBinder.getResultSet("PATH");
DataObject dataObject =
resultSet.getRows().get(resultSet.getRows().size() - 1);
folderId = dataObject.get("dCollectionID");
System.out.println("folderId... "+folderId);
} catch (IdcClientException e) {
e.printStackTrace();
return folderId;
public void createchild1(String folderName)
try
if(!(obj.getProject()==null))
IdcClientManager clientManager1 = new IdcClientManager();
IdcClient client1 =clientManager1.createClient("idc://localhost:4444");
IdcContext userContext1 = new IdcContext("weblogic", "welcome1");
if (!(userContext1 == null))
DataBinder binder1 = client1.createBinder();
client1.sendRequest(userContext1 , binder1);
String PATH;
PATH = "/Contribution Folders/IDFC" +"/"+folderName;
System.out.println(PATH);
binder1.putLocal("dSecurityGroup", "Public");
binder1.putLocal("dOwner", "weblogic");
binder1.putLocal("IdcService", "COLLECTION_ADD");
binder1.putLocal("HAS_COLLECTION_PATH", "true");
binder1.putLocal("hasParentCollectionID", "true");
//binder.putLocal("dCollectionInherit","0");
String id = this.getFolderIdFromPath(client1,userContext1,PATH);
System.out.println("ID: " + id);
binder1.putLocal("dParentCollectionID", this.getFolderIdFromPath(client1,userContext1,PATH));
binder1.putLocal("DCOLLECTIONNAME", obj.getProject());
System.out.println("FolderName" + obj.getProject());
System.out.println("userContext is:" + userContext1);
System.out.println("dataBinder is:" + binder1);
ServiceResponse resp1 = client1.sendRequest(userContext1, binder1);
System.out.println("response is:" + resp1);
DataBinder serverBinder = resp1.getResponseAsBinder();
catch (Exception ex)
ex.printStackTrace();
I am getting following error..
!csUserEventMessage,weblogic,CIS!$!csCollectionUnableToCreateCollection!csCollectionFolderHasNoName
intradoc.common.ServiceException: !csCollectionUnableToCreateCollection!csCollectionFolderHasNoName
*ScriptStack COLLECTION_ADD
3:addCollectionInCollection,**no captured values**
at intradoc.server.ServiceRequestImplementor.buildServiceException(ServiceRequestImplementor.java:2115)
at intradoc.server.Service.buildServiceException(Service.java:2326)
at intradoc.server.Service.createServiceExceptionEx(Service.java:2320)
at collections.CollectionUserHandler.addCollectionInCollection(CollectionUserHandler.java:638)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)
at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:324)
at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:79)
at intradoc.server.Service.doCodeEx(Service.java:603)
at intradoc.server.Service.doCode(Service.java:575)
at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1643)
at intradoc.server.Service.doAction(Service.java:547)
at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1458)
at intradoc.server.Service.doActions(Service.java:542)
at intradoc.server.ServiceRequestImplementor.executeActions(ServiceRequestImplementor.java:1391)
at intradoc.server.Service.executeActions(Service.java:528)
at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:737)
at intradoc.server.Service.doRequest(Service.java:1956)
at intradoc.server.ServiceManager.processCommand(ServiceManager.java:437)
at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
at intradoc.server.IdcServerThread.run(IdcServerThread.java:160)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Any help is appreciated...
Thanks in advance
Similar Messages
-
How to get the folder structure using Sevlets
Hi....
I have to retrieve the directory structure on the server and display it
to the user. Once the user selects a folder from the tree, the files
have to load on a different pane. Of course the folder structure could
change on the server if any folder or file is added. In short, i have
to get something like the windows file explorer.Also I need to get the path to a particular folder in the server. Is it possible to do
this with using servlets. If we can do this using
servlets, how can i retrieve the folder structure and send it to the
user interface?
Can somebody help me to do this please.....
Thanks!I need to get the path to a particular folder in the
server. Is it possible to do
this with using servlets.You can use:
String thePath = getServletContext().getRealPath("/WEB-INF/someDir/somefile");
If we can do this using
servlets, how can i retrieve the folder structure and
send it to the
user interface?You could try using a File object and its method listFiles() or some of its other methods. -
Is there any way to maintain the folder structure using the audio converter
hi, please, i need help
I want to convert some 24 bit wav files into 24 bit Apple Lossless files.
dBpoweramp converter doesn't allow 24 bit files for Apple Lossless
iTunes doesn't keep the folder structure, is there any option to change that?
thanksWhen iTunes does a format conversion, it stores the new file in an Album folder within an Artist folder. It does not matter where the original file is. It does not provide any other option.
-
How to create a tree structure using list items(tlist)
HI every one,
As we know how to create a tree structure using Hierarchy item type.
We have a requirement to create The same tree like structure using List Item(Tlist)
I would be so appreciated If you send with an example
Thanks
RangaReddyHi all
Any one help me please
Actually our client requirement is creation of tree structure using list item,similar to what we used in oracle Application(FNDSCSGN) form.We did the tree structure using hierarchy tree using Htree and Ftree.It working excelently.For client requirement, we want to use list item.How PJC(Pluggable Java Components) is useful for using list item(Tlist).I can't understand how it is useful.
Do you have any example please help me.
Thanks
RangaReddy -
Folder Structure & Dates query
Hey all,
I'm new to the forum but have been using LIghtroom for a couple of years to organise and tweak my photos as an amateur. I use predominatly a 5dmk2 for professional video and amateur photography. I'm on a Macpro using Lightroom 3. I have 4 internal drives on the MacPro, and one is a dedicated Lightroom drive, where I import all my photos to via lightroom. This is my master catalog that I backup. The photos date back to 2003, and are all displyed by date in correct folders etc. Lovely and organised.
I also use a macbook pro, and occassionally have to merge catalogs. I merga catalogs if I have tweaked the files on the macbook and want to add them to my master catalog complete with edits. On occasions, when I simply want the photos to be a part of the master catalog, and to tweak them from there, I have simply imported the photos by connecting the macbook via firewire so it mounts as a disk.
What I have (on the drive) is largely how I want it, which is all photos on the drive organised by month and year as they were taken, as per the metadata for each image. There are however a few folders that both annoy me from an OCD point of view, and also do not fall into the correct date folders and so cannot be so easily found and organise into colelctions etc.
The problem folders look like this:
[URL=http://s556.photobucket.com/user/DaveBaum/media/Screenshot2013-10-11at124017.png.html][IMG]http://i556.photobucket.com/albums/ss3/DaveBaum/Screenshot2013-10-11at124017.png[/IMG][/URL]
The opened example folders shown in the image don't relate to dates at all - so the 2012 > 08 > 27 is not august 27th 2012. Just a folder with a load of images in it taken over a variety of dates.
Can anyone help me understand:
1 - why this happens
2 - how I can re-organise them into the correct, unform folder structure used for 95% of the images, without having to manually check the date for each, move them into new folders etc etc and delete the current folders when they are empty?
I want all images to be displayed in the date they were taken, and to be added to folder database in the uniform manner. I have tried the "move" import option, but as they are all present on the same drive, this doesn't work.
Life is arguably too short to worry about this sort of thing - but it has been bugging me for months! And it's making it difficult to organise images form multiplt sources - I think that's what is causing me the issue.
Many thanks in advance.
DaveThanks for your reply Rob, it gave me an idea.
I have gone into the finder, to the folders that don't match and are out of sync with the correct dates etc, and copied all media from within them to a new location, and selected the "move" option on import. I've removed the link to them in Lightroom, and I'm re-importing them.
Consequently, on re-importing them, LIghtrrom is rebuilding a folder structure in the finder and all seems to be well with the world again.
Thanks very much
Dave -
Creating a folder in current workspace using java code
Hi Experts,
I need to create a folder and some file in the workspace of NWDS user. Can someone please suggest how can i find out the workspace of user using JAVA code.
IWorkspaceRoot is not working in NWDS.
Regards
PranavHi Pranav,
Tell me if you want to create this folder at run time or in NWDS while developing application.
If you want to create it at the time of development just change your perspective to Java perspective and from there you can see the entire project structure and from there you can create desired files / folders.
Ninad -
Use Applescript to create folder structure from Numbers document
Hello All,
I know this is possible and I am feeling close - I just couldn't find a post that addressed the issue I am having exactly. Essentially I have a client list with 211 business names in it. I am trying to create a script that will scan the first column of my Numbers document and create a folder structure from that list. I found a post on another website that gave me a rough template and this is where I am at:
set destinationFolder to "MacHD:/Users//Documents/Work/Customers/:to:folder:"
tell application "Numbers.app"
set theCells to value of range "A1:A211" of active sheet
end tell
repeat with oneCell in theCells
tell application "Finder" to make new folder at folder destinationFolder with properties {name:item 1 of oneCell}
end repeat
When I run this I get "Expected end of line but found class name." and in the result window it display "
error "Can’t get value of range." number -1728 from «class NMCv» of «class NmCR»"
I am completely new to this and don't really know how to debug. Any help would be appreciated! Thank you so much!
AdamHere is an enhanced version which no longer use a loop to extract the selected values.
--{code}
set destinationFolder to "MacHD:/Users//Documents/Work/Customers/:to:folder:"
tell application "Numbers.app"
set theCells to value of range "A1:A211" of active sheet
end tell
repeat with oneCell in theCells
tell application "Finder" to make new folder at folder destinationFolder with properties {name:item 1 of oneCell}
end repeat
set destinationFolder to "" & (path to desktop) & " dossier"
Select the range of source cells then run the script *)
Grab parameters describing the selected cells *)
set {dName, sName, tName, rowNum1, colNum1, rowNum2, colNum2} to my get_SelParams()
tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
Extract the names from the selected cells *)
tell column colNum1
set theNames to value of cells rowNum1 thru rowNum2
end tell -- column
end tell -- Numbers
I always do my best to use System Events which is faster than the Finder *)
tell application "System Events"
repeat with aName in theNames
try
make new folder at end of folder destinationFolder with properties {name:aName as text}
end try
end repeat
end tell
--=====
set { dName, sName, tName, rowNum1, colNum1, rowNum2, colNum2} to my get_SelParams()
tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
on get_SelParams()
local d_Name, s_Name, t_Name, row_Num1, col_Num1, row_Num2, col_Num2
tell application "Numbers" to tell document 1
set d_Name to its name
set s_Name to ""
repeat with i from 1 to the count of sheets
tell sheet i to set maybe to the count of (tables whose selection range is not missing value)
if maybe is not 0 then
set s_Name to name of sheet i
exit repeat
end if -- maybe is not 0
end repeat
if s_Name is "" then
if my parleAnglais() then
error "No sheet has a selected table embedding at least one selected cell !"
else
error "Aucune feuille ne contient une table ayant au moins une cellule sélectionnée !"
end if
end if
tell sheet s_Name to tell (first table where selection range is not missing value)
tell selection range
set {top_left, bottom_right} to {name of first cell, name of last cell}
end tell
set t_Name to its name
tell cell top_left to set {row_Num1, col_Num1} to {address of its row, address of its column}
if top_left is bottom_right then
set {row_Num2, col_Num2} to {row_Num1, col_Num1}
else
tell cell bottom_right to set {row_Num2, col_Num2} to {address of its row, address of its column}
end if
end tell -- sheet…
return {d_Name, s_Name, t_Name, row_Num1, col_Num1, row_Num2, col_Num2}
end tell -- Numbers
end get_SelParams
--=====
on parle_anglais()
return (do shell script "defaults read 'Apple Global Domain' AppleLocale") does not start with "fr_"
end parle_anglais
--=====
--{code}
Here is an alternate version of the piece of code extracting the values :
--{code}
Grab parameters describing the selected cells *)
set {dName, sName, tName, rowNum1, colNum1, rowNum2, colNum2} to my get_SelParams()
tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
Extract the names from the selected cells *)
set cell1 to name of cell rowNum1 of column colNum1
set cell2 to name of cell rowNum2 of column colNum1
set theNames to value of cells of range (cell1 & ":" & cell2)
end tell -- Numbers
--{code}
Yvan KOENIG (VALLAURIS, France) mercredi 25 janvier 2012
iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
My Box account is : http://www.box.com/s/00qnssoyeq2xvc22ra4k -
Using Metadata to generate view as conventional folder structure
Can Metadata be used to generate a view as the conventional folder drill-down?
I have a list with metadata for different projects, releases, content type etc and I would like to view them in folder structure with different hierarchies, i.e. using projects--> releases--> content-type as well as release --> projects --> content-type.
I have asked the same question at : http://stackoverflow.com/questions/22693036/using-metadata-to-view-as-conventional-folder-structureHi,
If your metadata is based on a hierarchical term set you could use ‘Metadata Navigation’.
You may have to change your information architecture a bit to accommodate this approach. More info on ‘Metadata Navigation’ here:
http://office.microsoft.com/en-gb/sharepoint-server-help/configure-metadata-navigation-for-a-list-or-library-HA101820113.aspx
Hope this helps
Cheers
Matt -
Creation of role using T-code PFCG in R/3
Hi Experts,
I have created a Role using PFCG inorder to give acess only to three T-codes(PZ09. PZ80,PZ88).
so i have created a role intially using PFCG and incorporated PZ09 tcode in it and assigend the Role to users in R/3. it is displaying the TCode(PZ09) in Portal.
Now again i have added PZ80 & PZ88 to the same Role in R/3, but now i am getting an error:
Infotype 0000 does not exist.
but whereas when i assign SAP_ALL they(PZ88 & PZ 80) are working fine.
Is they anything i can do so that i can avoid assigning SAP_ALL Profile to the users and eliminate the Error "Infotype 0000 does not exist.
Thanks Inadvance,
Regards,
SivaHi,
Thanks for your reply,
Creation of role using T-code PFCG in R/3
The above link has solved my issue, Thank you!
Regards,
Siva -
Automatic creation of KM folder structure from xml pattern
Hi all,
is it possible to create a KM folder structure automaticly, following the tree structure of an xml document?
For example:
an xml-document with following content:
<item id=1 level=0>abc</item>
<item id=2 level=1>aaa</item>
<item id=3 level=1>bbb</item>
<item id=4 level=2>ccc</item>
<item id=5 level=0>def</item>
I'd like to create a KM folder structure like this:
- abc
---aaa
---bbb
ccc
- def
Does anyone have any idea to implement this scenario in KM?
Much obliged!
SteffiNot currently - well at least not easily - there is always the programatic approach.
I would suggest you can create an FSDB repository - this means you can then create your structure in the file system using standard desktop tools.
After that you could do a mass copy back into the db based KM repository if you so wished.
For your downstream systems you could always ICE the data across meaning you dont have to create everything again.
Haydn -
Automatic creation of Notification using T-code IK11
Hi Gurus,
i got stuck in a requirement, where they want Automatic creation of notification using T-code IK11.
I am using EXIT IMRC0001.
Please guide me that with what logic i should go.
Thanks
Regards
VICKY
Moderator Message: Vague Question. Expecting others to do your work for you => Thread Locked.
Edited by: kishan P on May 12, 2011 12:35 PMIn the role give Authorization object P_ORIGIN for Infotype 0, 1 and 2. with Authorization level as R (read)
This will resolve your issue then no need to give sap_all authorization
Good Luck
- Ashish -
Is it possible to create a folder structure while using archivelink?
We work with Archivelink and use SAPERION software/server for storing documents. We created a business object Advertisement. In a custom made application, users can open the GOS on Advertisement and now they have the possibility to select an extension out of a big list of document types like AVI, BMP etc. They doubleclick on a type and then they drag and drop a file from their desktop into the screen and then the file will be saved on saperion server.
As the lists of document classes linked to the business object is quit big (about 15), we would like to add a folder structure. Now it looks like
Advertisement
BMP
TXT
AVI
etc.
and we would like to have
Advertisement
Folder Texts
TXT
PDF
Folder Pictures
JPG
TIF
Is this possible and if yes, how can this be achieved?Hi Angelique,
sorry to tell you, but this is the wrong forum to ask application questions...
KR Lars -
Trouble using cfincludes with multi-folder structure
We are rebuilding our site using <cfinclude> to pull in
standard headers and footers for each page. The headers and footers
each have many links in them. How can we deal with the fact that
the pages calling the cfincludes are not all at the same level in
the folder structure? How can we create one include file for the
header and one include file for the footer that can each be used
throughout the site regardless of the level in which the calling
page is located? Thank you.
Cheers!
JamesHow can we create one include file for the header and one
include file for the footer that can each be used throughout the
site regardless of the level in which the calling page is
located?
Create the one header.cfm and the one footer.cfm. Include
them in Application.cfm/OnRequestEnd.cfm or in Application.cfc. -
Help with Adobe.premiere.elements12. Please
It would appear under the organizer tab that the photos are organised in the lowest folder in the folder structure within Windows Explorer. How can I use the Windows Explorer structure to organise the photos within Elements.In a situation such as yours, I tend to consolidate items into folders so I have folders of nice workable numbers of images, somewhere between 20 and 200 images. Now, whatever, once you've imported, do your moving within LR, not the OS! I will select all in a folder and drag into a folder a level or two or three above, and then delete the newly empty subfolders. I hope this helps a bit!
Once you've reached just new Imports of camera output, you'll be flying along. -
I have several pdf files in my computer which are organized in folders. I want to transfer them to IBooks (in my Ipad) and keep the folder structure I use in my computer. Is it possible to do it? Do I need any other app?
By design, the organizer (and any other database management systems) is there to prevent you from duplicating your media files. The catalog management allows you to have the same image in different categories or albums. Duplication in different folders is to be absolutely avoided.
The same image file can have multiple tags like 'family', 'vacations', 'birthdays' and be present in three different albums with the same names. On obvious advantage is less disk space. Another one with your present folder system is that if you edit one of your duplicates, the other ones are unchanged.
I don't see an easy way to make your present folder structure simplified for the organizer ...
Maybe you are looking for
-
IPod sync never completes, if I cancel the sync a large portion of my music disappears
Hi, hopefully someone here can help! I have recently had an issue with my iPod touch and iTunes 12.0.1.26. It has been a bit of a pain to sync ever since that update that screwed up other people's iThings but I hadn't had a problem in a few months. N
-
Cash flow statement report..
How is the consolidated cash flow statements are generated. What are the specific movement types configured for this. Is all MT created and data collected from ECC with MT or it is part of BCS data collection only... Do we have to create specific gro
-
Problem When Import Java Class -compilation error
Hi all I made a java class that has methods to return Screen width and Height . package tarek; import java.awt.Dimension; import java.awt.Toolkit; public class Screen Dimension dim ; public Screen() dim = Toolkit.getDefaultToolkit().getScreenSize();
-
Hi, I installed Blender 2.46. And I tried to customize of theme of the Blender. I would like to use my original theme setting that used in Blender 2.45. But, I can not find the directory "~/.blender". On Zenwalk Linux, Blender 2.46 has ~/.blender dir
-
Tranfer itunes from old iMac to new, won't open old files
I transferred all of my files successfully with a fire wire and when I tried to open my old iTunes I have an error message that says "The file "iTunes Library" cannont be read because it was created by a newer version of iTunes. I don't know what to