Updating a file using CIS API
Hi,
Is there any CIS API that lets you overwrite an existing file in the UCM. the idea is, not to checkin a new revision but to overwrite the exiting one.
I looked at update API (ISCSDocumentUpdateAPI ) but it can only update the attributes of document not the file that is associated with it.
I also couldn't update it through the UCM web interface, so I'm thinking that maybe UCM does not allow such a thing and you always have to create a new revision no matter what. Is this a right conclusion? I hope not.
Any feedback is appreciated.
Hi Sapan
Thanks for your feedback.
well, in some other similar systems (e.g. sharepoint) it is possible to overwrite contents if needed.
I can imagine many cases that one would want to update the content of certain version without changing the version.(if there is a concept of history of activities on the document then this can be logged or traced there).
Or sometime one might want to disable versioning for a certain document or folder completely in the system.
Anyway, I don't want to question UCM's approach but more to know the boundaries.
You mentioned it might be possible through Java. Do you mean CIS package or something else?
can you please elaborate more on this.
Regards,
Similar Messages
-
Dots are appearing on characters after created PDF through *.dwg file using AutoVue API
Hi,
I created PDF's through *.dwg file using AutoVue API 20.2.2. I observed in more zoom of PDF, every character or line has dots. At the same time on second page of PDF drawing lines are thicker that first page of PDF.
Please kindly help on this, how to remove dots and drawing lines are published same as on first page.
Thanks,
SivaAs with any format that does not support zoomable line thickness, the output is dpi dependent
Imagine the DPI impact on a PDF is similar to the DPI on an image, except you can zoom into the lines, they look smooth (it is vector) but the position for the specific points is not as accurate as it should
So it all boils down to how are you generating the PDF? -
Get old item name for renamed files using TFS API
My current tfs will be retired in next few months.I am using tfs api to create a parallel tfs on a new server from the existing one. I have folders and solutions that have been renamed. I am iterating items and based on their changetype(add, edit, delete,
sourcerename etc), I am checking them in destination tfs.
I am not able to get Old filename for a file, in order to use PendRename when the item that is being iterated is Delete|SourceRename or Rename.
I tried the mentioned solution :
https://social.msdn.microsoft.com/Forums/vstudio/en-US/f9c7e7b4-b05f-4d3e-b8ea-cfbd316ef737/how-to-get-previous-path-of-renamedmoved-of-file-using-tfs-api?forum=tfsgeneral
But, my changeset has a lot of changes and hence identifying a particular file seems difficult.
Do we have something that interraltes two items (the deleted and renamed) ones other than the changeset, because there needs to be a uniquely identifier that associated the two items so that they may appear together in TFS history?Hi Fabcoder,
As Daniel mentioned, you can migrate source control files and work items to the new TFS server by using TFS integration tools.
If the new server has the complete history, then you can view the history of the specific file to check the pervious path. Or you can do a compare between the project in new TFS where the file located with the matched project in current TFS to check
the differences.
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Export a mail as PST file using EWS API
Hi,
I need to export the Exchange mails to PST file without installing the outlook. To acheive this i am choosing the EWS API. but i dont know how to do that. So, now i have a two questions, the first one, is it possible to create the pst file using EWS API?.
If yes, how to create a pst file using EWS, if any one posted the sample code here, it is very helpful for me.
Thanks,
RamMohanEWS is not going to help you do what your trying to do, EWS is an Exchange API so you need to have an Exchange 2007 server or greater with the MailStore mounted to even use it to access the Mailbox . EWS also doesn't support exporting email to a PST because
the PST file is an Office file format so in the case where you do manage to mount the database on Exchange then use Adam's suggestion or just connect via Outlook and export the Mailbox.
>> I am parsing the mails from the exchange EDB files
With what ? reading the contents of an EDB file directly is not supported although there are a few third party apps that can do it and if your using one of those apps then all of them I've seen support the export to PST (unless your using a Trial licence).
The correct method of recovering data from an EDB file would be to use a Recovery Database
https://technet.microsoft.com/en-us/library/dd876954(v=exchg.150).aspx even if you don't have access to the environment you should be able to setup a temp environment using Virtual machines and recover it that way.
Cheers
Glen -
Opening a template indd file using java API
How do I open a template indd file using java API and use it for laying out graphics and text ?
Thanks in advanceSample code:
VariableType vtDocument = myApp.open(VariableTypeUtils.createFile("c:\\myfile.indd"));
myDocument = DocumentHelper.narrow(vtDocument.asObject());
Thanks
-arun -
What is the problem when opening jpg files using Desktop API
Hi, i would like to open jpg, or gif files using Desktop API, and the application crashes.The Desktop API is supported by my OS, because txt files, or file directories can be opened, mails can be sent, browsing is also supported.
Only jpg and gif, and i think other picture formats cannot be opened.
Obviously ACDSee and other picture viewing programs are installed in my computer.
The corresponding application code can be found at the bottom of the page of http://www.awprofessional.com/articles/article.asp?p=661371&seqNum=2&rl=1
my code:
if(Desktop.isDesktopSupported()){
Desktop desktop=Desktop.getDesktop();
try
desktop.open (fileToOpen);
catch (IOException ioe)
JOptionPane.showMessageDialog (frame,
"I/O problem");
catch (IllegalArgumentException iae)
JOptionPane.showMessageDialog (frame,
"File doesn�t exist");
fileToOpen is obviously a File.
Thx for the help in advance.
Message was edited by:
javahelps
Message was edited by:
javahelps
Message was edited by:
javahelps
Message was edited by:
javahelpsMy file association for jpg files is correct, if i click on a
jpg, ACDSee starts immediately.Although I am a long time Windoze non-user, I vaguely remember that there's a difference between correct file-type association being set and some application starting at a mouse click on a file icon. I also vaguely remember Windoze file-type association mechanism uses a few action-types. Java Desktop should expect a specific action-type for the association. -
Problem while writing data on xls file using jxl API
Hi,
I am getting problem while writing data on excel file using jxl api.
When i write data on file and all handles associated to the file are closed, file size increases but when i open the file nothing is written in it and when file is closed manually from excel window, file size decreased to its original that was before writing data.
here is code:
FileOutputStream os = new FileOutputStream(this.dirPath + this.fileName, true);
WritableWorkbook this.workbook = Workbook.createWorkbook(os);
after writing data following handler are closed:
this.os.flush();
this.workbook.write();
this.workbook.close();
this.os.close();
this.os = null;
can any body help me.
Thanks in advanceErr, I did help you. I did understand your problem; and I solved it for you. What was missing was that you apparently made no effort to understand what you were being told. Or even consider it. You just argued about it, as though you were the one with the solution, instead of the one whose code didn't work.
And the other thing that was missing was the part where you said 'thank you' to me for solving your problem. Somewhat more appropriate than biting the hand that fed you, frankly. I do this for nothing, on my own gas, and it's extremely irritating when people keep asking about problems I have already solved for them. I am entitled to discourage that. It's part of making them more efficient actually.
But it happens often enough that it also makes me think I'm just wasting my time. Probably I am. -
How do I create/update an Excel file using the API?
Hi,
I've successfully created a "Web Intelligence" document using the API (POST /raylight/v1/documents). However, I need to do the same for an Excel file type and have been unable to do so. Attached are the different steps needed to accomplish this with the UI. I need to be able to do the same thing through the API.
I searched through the docs but haven't found anything regarding this particular aspect.
Does anyone have a clue?
ThanksThanks for the link. I'm using .Net and thought the process would be fairly similar. It is indeed, however, I'm stuck with the following error when committing on the infoStore object:
File Repository Server error :
ErrorCode: -2147210678
Here's the code I'm using:
var folderID = infoStore.Query("Select TOP 1 SI_ID From CI_INFOOBJECTS Where SI_KIND='Folder' And SI_NAME='myfolder'")[1].ID;
var infoObjects = infoStore.NewInfoObjectCollection();
var infoObject = infoObjects.Add(CrystalDecisions.Enterprise.InfoStore.CeKind.EXCEL);
infoObject.Title = "Book4.xlsx";
infoObject.Files.Add("C:\\Users\\myuser\\Documents\\Book4.xlsx");
infoObject.ParentID = folderID;
infoStore.Commit(infoObjects);
I know the problem is related to "infoObject.Files.Add" because when I omit this statement, it works but the file has no content.
Any idea why??? It's driving me crazy -
Updating a file using FileManager updateDocument
How can I update a file that has already been uploaded to CS. I have categories and attributes on this file and wish to retain all of this. I just want to change the file itself. If I try to use the updateDocument method as I have below I receive the following error:
Exception caught in INT AxisFault.java: makeFault: Line: 101: java.io.IOException: No serializer found for class oracle.adfinternal.view.faces.webapp.UploadedFileImpl$BufferIS in registry org.apache.axis.encoding.TypeMappingDelegate@580
NamedValue[] documentDef =
new NamedValue[] {
new NamedValue(Options.CONTENTSTREAM, inputStream),
new NamedValue(Attributes.DESCRIPTION, description)};
Item newDoc = fm.updateDocument(doc.getId(), documentDef, null);
Any help would be greatly appreciated.Hi Sapan
Thanks for your feedback.
well, in some other similar systems (e.g. sharepoint) it is possible to overwrite contents if needed.
I can imagine many cases that one would want to update the content of certain version without changing the version.(if there is a concept of history of activities on the document then this can be logged or traced there).
Or sometime one might want to disable versioning for a certain document or folder completely in the system.
Anyway, I don't want to question UCM's approach but more to know the boundaries.
You mentioned it might be possible through Java. Do you mean CIS package or something else?
can you please elaborate more on this.
Regards, -
Using CIS APIs to retreive content stream
Hi,
I am using a java class to call invoke CIS APIs to retrieve content and its details. Actually I want to retrieve the entire content that is stored in the contribution region file. Can anybody give me any leads into how to do it. I saw the common.document.getContentStream method. But not sure how to use it. So any code snippets or ideas can be of great help
Thanks
JoBetter to deploy in client mode. There is no advantage (and a few disadvantages) to deploy using the 'server' configuration. Don't do stand alone if you have a full app server (and you do).
You deploy the EAR and client JAR on the same server. Just be sure to enable 'pass by reference' when you deploy. Which version of BEA, btw? -
How do I open to a specific page or destination in a pdf file using Buddy API Xtra?
Hello,
I'm working with a CD ROM catalog that utilizes the Buddy API Xtra to open PDF files when a link is clicked. The client would like to be able to open to a specific page within a pdf file.
I can open a pdf file using the Buddy API baOpenfile() function but I'm having trouble opening to a specific page when I add #page=4:
baOpenfile("@\pdfs\Powder Cores\Magnetics_Powder_Core_Catalog_2011.pdf#page=4","normal")
I've also tried working with the code below which seems to me like it should work... I didn't realize that the "open..." part of it was a function in Director.
on mouseUp me
pageNum = 4
theApp = baShortFileName(baFindApp("pdf"))
theDoc = baShortFileName("@\pdfs\Powder Cores\Magnetics_Powder_Core_Catalog_2011.pdf")
theArgs = "/s /A page=" & string(pageNum) & "&pagemode=bookmarks"
-- (translates to "/A page=4" in this example)
open theApp && theArgs && theDoc
end
Thoughts?
Thank you in advance!Thank you Dee! This works perfect!
It would be cool to know how to use bashell() for this.
The help files give the following examples:
Result = baShell( Operation, Filename, Args, WorkDir, State )
ok = baShell( "open", "c:\windows\notepad.exe", "myfile.txt" , "", "normal" )
ok = baShell( "edit", "myfile.htm" , "", "", "normal" )
So I tried:
on mouseUp me
-- Close the program group
tWindowList = baWindowList( "" , "pdf" , false )
if tWindowList <> [] and count(tWindowList) > 0 then baCloseWindow(tWindowList[1])
pageNum = 4
theApp = baFindApp("pdf")
theDoc = _movie.path & "pdfs\Powder Cores\Magentics Powder Core Catalog.pdf"
theArgs = "/A ""E&"page="&string(pageNum)&"=OpenActions""E
baShell( "open", theApp, theDoc , theArgs, "normal" )
end
It opens the pdf file without going to a specific page. Any thoughts as to why it wouldn't accept theArgs?
Thanks again! -
How to update XML file using XSLT
Hi there,
I have a "small" issue with exporting data to an XML file using XSLT.
A two steps process is needed to import data from a non-hierarchical XML file into ABAP, change the data, and then update the XML file with new values. The problem is not trivial, since the format of the XML file is a complex one: there are many interdependent elements on the same level, pointing to each other by using id and ref attributes. Based on these values the data can be read and written into an internal table. I use XSLT and XPath for that. So the inbound process is done and seems to work correctly. I have to mention that the file contains much more data than I need. I am working only with a small part of it.
Now the changed data must be exported back into the XML file, meaning that the content of certain elements must be updated. How can this be done with XSLT? I can pass only the internal table to the transformation, so how do I access the XML file in order to update it? I have tried to use the <B>xsl:document()</B> function to access the content of the file store locally on my PC, but it fails each time by throwing and URI exception. I have tried the absolute path without any addition and the path with the file:/// addition. Same result. Please advise.
Many thanks,
Ferenc
P.S. Please provide me with links only if they are relevant for this very matter. I will not give points for irrelevant postings...Now the changed data must be exported back into the XML file, meaning that the content of certain elements must be updated. How can this be done with XSLT?
XSLT approach: check these online tutorial
http://www.xml.com/pub/a/2000/08/02/xslt/index.html
http://www.xml.com/pub/a/2000/06/07/transforming/index.html
ABAP approach:
for example you have the xml (original) in a string called say xml_out .
data: l_xml type ref to cl_xml_document ,
node type ref to if_ixml_node .
create object l_xml.
call method l_xml->parse_string
exporting
stream = xml_out.
node = l_xml->find_node(
name = 'IDENTITY'
ROOT = ROOT
l_xml->set_attribute(
name = 'Name'
value = 'Charles'
node = node
(the above example reads the element IDENTITY and sets attribute name/value to the same)
like wise you can add new elements starting from IDENTITY using various methods available in class CL_XML_DOCUMENT
so how do I access the XML file in order to update it?
you have already read this XML into a ABAP variable right?
Sorry couldnt understand your whole process, why do you need to read local XML file?
Raja -
To recognize corrupt framemaker file using framemaker API
If I rename a framemaker book as .fm file and then I try to include this file as a component of another book, no pdf is generated on saving the book as pdf.
How can I make sure that a book file is not added as a component using framemaker API ( currently using fdk 6.0).
Thanks,
Asha RayakarAsha,
I think I understand now. Somebody else renamed the file... you are just trying to catch the error in your code, right?
I tried to duplicate this scenario, but in my experiments, FrameMaker was smart enough to know what kind of file it was, regardless of the extension. So, here are just some ideas...
- If the file isn't actually "corrupt," you can use F_ApiGetObjectType() to find out whether it is a FO_Book, FO_Doc, or something else. If a document is corrupted, I don't know what that function might return.
- If the file is corrupt, I would think that you should be able to query some kind of property to find that out. For example, maybe you could count the number of paragraph formats in the file. My guess is that a corrupt document will have significantly fewer than you would expect to see, if any at all.
Russ -
How to update pdf file using adobe exportpdf
can you update a pdf if you only have the export pdf product? thx
Hi canusbau
You Cannot Edit a PDF File Using Export PDF. You can Convert PDF into other formats using this Service,
Though You can Convert it to Word or any Other format, Make Changes in the Document and then Use MS Office Save as Adobe PDF option to Create PDF again. -
Generating PDF file using FOP API in Web Dynpro
Hi experts,
I would like to generate PDF files from a WebDynpro application without using Adobe Interactive forms.
I think that I can export context data to XML stream and then apply XSLT transformation to produce XSLFO format and then pass it to xlfo processor i.e FOP to generate the PDF file.
Has someone already try this way of generating PDF files?
Is it a good way of processing ?
Thanks in advance.
Thomas.hi Thomas,
You can make use of the iText API to create pdf documents through webdynpro.
For this you'll have to download the Itext api jar file.
Right click your webdynpro project include this jar file using the 'add external jar files'.Now you'll be able to make use of this api in your webdynpro project.
http://javaboutique.internet.com/tutorials/iText/ .
The above link will help you in using iText API.
hope this one helps you.
Regards,
Rahul.
Maybe you are looking for
-
I have an ipod touch 3rd gen and i just had to remove itunes and reinstall it. I'm now trying to update my ipod to version 5 and this comes up as it says i have to revert to factory setttings to install the update. Thanks in advance!
-
I have windows 8 and I updated my itunes to version 11 tonight and now windows will not recognize my iphone when I connect it with the usb cable..... so I can not charge my phone or sync it....any suggestions to fix this???
-
Maximum no of members in Essbase Dimension can support
Dear All, I am using Essbase 11.1.2.2 (64-bit) Number of dimensions used in my BSO Essbase cube is 9 (4-dense and 5 sparse). I am having a Customer dimension (sparse) upto 7 levels. The number of members in customer dimension is 98000. After loading
-
Check purchase requisition accounting before to send it to SRM using BAPI
Dear Sirs, in our system when a PREQ has been transferred to SRM with BBP_EXTREQ_TRANSFER the system cheks he pur.requisition and in case of accounting errors the only source of messages is the application log in SRM We would build a custom preventiv
-
Multi-monitor window wont stay put :(
so i have 4 monitors, 3 of which are together and 1 off in another area for other stuff. this is done w 2 standard apple video (Nvivia GT120) cards and a few monitors. the middle one has a higher res than the others but not so much to need the dual d