Setting proper format for  the documents

Hi,
I want to set the proper format before saving the documents in Ifs. The Documents are uploaded to Ifs using the Java API.Can any one help me on this?
Thanks,
Prasanth

Hi,
Thanks rich. I am using the following code to set the proper format.
// create the definition
DocumentDefinition ddef = new DocumentDefinition(lsession);
ddef.setName(docname);
ifsSession.setAdministrationMode(true);
FormatDefinition newFormatDef = new FormatDefinition(lsession); //create a new FormatDefinition
Format format = (Format)ifsSession.createSystemObject(newFormatDef); //create a new Format using the FormatDefinition
format.setMimeType(mimetype); // set Mime type for the Format
newDocDef.setFormat(format); //set the format for the DocumentDefinition
lsession.setAdministrationMode(false); //set the session back to normal mode;
// create the document using the definition
Document newdoc = (Document) lsession.createPublicObject(ddef);
Is there anything wrong with this one? when i save the document with this code,its stored in non-indexed media.
I tried the code you posted .its working for pdf documents (they are going to indexed Media ) but not for word documents.
Thanks,
Prasanth

Similar Messages

  • Setting date format for the entire SQL Server installation - SQL Server 2008 R2-2012

    Hi,
    I need to safeguard the behaviour of SQL codes that inserting into SQL tables with some date columns. For this purpose, I need to change the date format for the SQL instance and not using CONVERT and CAST.
    I've seen the SET DATE FORMAT statement, but if I use it, could I solve my problem?
    Thanks

    The language setting is related to the database user.
    BOL: "DEFAULT_LANGUAGE = { NONE | <lcid> | <language name> | <language alias> }              
    Specifies the default language for the new user. If a default language is specified for the user and the default language of the database is later changed, the users default language remains as specified.
    If no default language is specified, the default language for the user will be the default language of the database. If the default language for the user is not specified and the default language of the database is later changed, the default
    language of the user will change to the new default language for the database."
    LINK: http://technet.microsoft.com/en-us/library/ms173463.aspx
    The default language setting can be overridden by SET LANGUAGE for the session:
    http://technet.microsoft.com/en-us/library/ms174398.aspx
    Example:
    SET LANGUAGE us_english; -- mdy
    SELECT CAST ('12/13/2014' as DATE); -- 2014-12-13
    GO
    SET LANGUAGE british; -- dmy
    SELECT CAST ('12/13/2014' as DATE);
    GO
    (1 row(s) affected)
    Changed language setting to British.
    Msg 241, Level 16, State 1, Line 2
    Conversion failed when converting date and/or time from character string.
    Kalman Toth Database & OLAP Architect
    SELECT Video Tutorials 4 Hours
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • How to set raw format for canon powershot a1100 is ? ,,according to the specs online it can.

    how to set raw format  for canon powershot  a1100 is ? ,,according to the specs online it can.

    It requires the Canon Hacker's Developement Kit (CHDK). It runs off of your SD card and does not harm your camera. Download a program called Stick-
    http://zenoshrdlu.com/stick/stick.html
    Follow the directions and you will be able to shoot in RAW along with some other deatures not available on your camera previously.

  • I own an iPod Classic.  In iTunes, some podcast videos cant be played on teh iPod, so I set it to convert the video to the right format for the iPod.  It used to work perfectly, but now for some reason, it doesnt convert properly!  When I play the video,

    I own an iPod Classic.  In iTunes, some podcast videos cant be played on teh iPod, so I set it to convert the video to the right format for the iPod.  It used to work perfectly, but now for some reason, it doesnt convert properly!  When I play the video, it is just a white screen, but the sound can be heard.  Can anyone help??????

    Your source video file is probably muxed.
    Neither QT Pro or iTunes has the ability to successfully encode a muxed video file with audio. You'll end up with video and no audio.
    See: iPod plays video but not audio of some exported files.
    You'll need to use some other third-party software to do the conversion. There's a handful of software available. Just search the forums and you'll find many titles mentioned.
    Try MPEG Streamclip.

  • I am trying to use a interactive form and it says "If this message is not eventually replaced by the proper contents of the document, your PDF  viewer may not be able to display this type of document."  This is a IRS form and has worked before.

    I am trying to use a interactive form and it says "see below"  This is a IRS form and has worked before.
    is there a tech support phone number?
    Please wait...
    If this message is not eventually replaced by the proper contents of the document, your PDF
    viewer may not be able to display this type of document.
    You can upgrade to the latest version of Adobe Reader for Windows®, Mac, or Linux® by
    visiting http://www.adobe.com/go/reader_download.
    For more assistance with Adobe Reader visit http://www.adobe.com/go/acrreader.
    Windows is either a registered trademark or a trademark of Microsoft Corporation in the United States and/or other countries. Mac is a trademark
    of Apple Inc., registered in the United States and other countries. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries

    That means you are looking at the form online with a browser that uses its own (incompatible) PDF viewer, not the Adobe Reader plugin.
    Either
    download the form to your local disk and fill it from there
    use a browser that employs the Adobe Reader plugin
    configure your browser to use the Adobe Reader plugin: http://helpx.adobe.com/acrobat/kb/pdf-browser-plugin-configuration.html

  • Need a Suggestion For implementing the Digital Signature For the Documents

    Hi,
    Currently I am working in a Document Management System. I need a Good Suggestion for how to implement a Digital Signature For the Documents.
    Thanks in Advance
    Sabarish V

    Hmm, if you are not using Oracle Payroll, what are you using for payroll? I am wondering why you could not use your payroll system, whatever it is, to handle this reimbursement program.
    Well, you may want to talk to Oracle support about how to handle this in Oracle iExpense. You can certainly handle advances for Expense Reports. You would then apply the advance to the expense report items. The catch is I don't think you can stop expense item entry after the adavance is satisfied. You would have to set up a work flow process of some kind to have the expense reports reviewed and only approve expenses that are applied to the advance, is what I am thinking. Not your ideal solution, but something to think about. It could be the Oracle folks might know of a sneaky way to handle this. What you are trying to do is unusual. Employee advances are common, but the idea of not being able to exceed the advance amount is what unusual about this. Normally you will accept any expenses over the advance amount and reimburse the employee for those extra amounts not advanced.
    Good luck.
    John Dickey

  • "Display PDF in Browser" setting - $500 reward for the solution

    The corporate policy requires the "Display PDF in Browser" setting to be unchecked for all applications, this is to open the PDF document in new reader instance but our specific application needs the reader to be opened in the same browser even if the preference "Display PDF in Browser" is unchecked.... The setPreference from javascript (html) doesn't seemed to work... How do i make this work? I am looking for programatic way to set this preference in HTML javasript or Java Applet or ActiveX or any other means. I am currently using JS and Object tag, the only functions that we need at this point are page navigation and getting current page using JS.
    Also, I need the links the browser to open in new browser once the PDF is loaded... do I need to reset the preference once it is loaded for the links to open in new browser? How can this be progrmatically achieved without altering the original PDFs?
    I realize that this may be difficult and am looking for workarounds or alternate solutions to meet my req. $500 for anyone who could can provide solution.. Please email me [email protected]
    thanks,
    - Ray

    Convince your IT people to allow folks to set their preference to display in browser.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Sun, 13 Nov 2011 14:58:23 -0800
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: "Display PDF in Browser" setting - $500 reward for the solution
    Re: "Display PDF in Browser" setting - $500 reward for the solution
    created by pdf_disp_issue<http://forums.adobe.com/people/pdf_disp_issue> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4023302#4023302

  • Setting create date for versioned documents

    Hi,
    I'm trying to explicitly set the create date for a versioned document (as in, the versions for the document), using the Content DB java API.
    What I'm trying to do is basically this (pseudo-code):
    - Create an unversioned document (the folders do not have auto-version turned on) with the create date explicitly set. This works fine.
    - Make it versioned
    - Check it out, upload a new version with the create date set, check it back in
    It is at the last step where I seem to have problems -- the act of checking a file back in seems to reset the create date to be the date of checkin rather than the date I set.
    Is there any way of accomplishing what I'm trying to do?
    Thanks,
    Phill

    Hello,
    why so complicated? You can do all in one ;)
    Check this out:
    How to upload file to Conetent database and remain the creating date
    In the end its like this:
    Item verTest = fileM.createDocument(
    new NamedValue[] {
    ClientUtils.newNamedValue(Attributes.CREATE_DATE, olddate)
    gl
    Matthias

  • Time Frame for the document

    Hi,
    I am working on Home -> Top News i used <b>SAP Demo news</b> to display the content on news ivew. I want to display news content for the specific duration for which i already enabled <b>Time Stamp</b> option for <b>News</b> Folder under Content Manangement. I event set the validity day and time for the document but still the content is appearing on the news iview even validity time expires.
    I also made the Document in <b>read only</b> mode.
    Please Help me on this.
    Thanks and Regards
    Parth

    Hi Parth,
    Everyone is a built-in group that contains all the users. you can see it in the Identity Management if you pick Group from the Select Criteria.
    Some basic reading:
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/81/0e0f61b566dc44bbb4055b3ccd25be/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/81/0e0f61b566dc44bbb4055b3ccd25be/frameset.htm</a>
    Let me see if I understand,
    You want everybody to be able to create a news item but then you want the items to disappear after a certain time? This is a bit tricky since you want users who created the item to have only read permission on it. you will probably have to implement a custom repository service for that. This reqiuers coding. let me know if that is what you want.
    If you want a scenario where some users create items and the rest only read them, adjust the permissions on the folder level: assign write permissions to the item creators and read permissions to everybody else.
    Best regards,
    Avishai Zamir

  • I've imported a giant cd collection for my work in wav format for the best quality audio using iTunes version 11.1.1.  I need to transfer this library to our Music workstation using iTunes 11.0.1.  That workstation version of iTunes can't be upgraded for

    I've imported a giant cd collection for my boss in wav format for the best quality audio using iTunes version 11.1.1.  I need to transfer this library to our Music workstation using iTunes 11.0.1.  That workstation version of iTunes can't be upgraded for compatability reasons with other software using iTunes.  When I try to transfer the library I lose all of the CD metadata and end up with only track names.  Is there a way to transfer everything along with the metadata?

    Not easily.  WAV format does not store tag information in the file.  Realize both AIFF (equivalent to WAV) and Apple Lossless (full quality but smaller files) do, so WAV was unfortunately the worst format to chose.
    If you have to go with what you have you will have to explore exporting the library as .xml, moving it and the files to the other computer, then rebuilding a lower version library with the two sets.  I am not sure if you can do it with the library.xml file that already exists or if it too differs according to version.  You may end up having to export the files as a playlist.  You will, of course, lose artwork too, though you can try fetching it from the iTunes Store later.
    Some of what you need to do is outlined in these articles though you have the added limitation that you are not building a library of the same version.  (It really is a piity you choose WAV, otherwise you could have simply added the ripped files and most of the data would have traveled with them.)
    https://discussions.apple.com/message/20401436 - turingtest2 11/2012 post on rebuilding empty/corrupt library after upgrade/crash from previous iTunes library file.
    iTunes: How to re-create your iTunes library and playlists - http://support.apple.com/kb/ht1451

  • I have tried a lot to find an app or some way in email to attach multiple of pdf files in one email. I could not find anything that sends multiple pdf file in one email and still keeping the file in simple pdf format for the recipient.

    I have tried a lot to find an app or some way in email to attach multiple of pdf files in one email. I could not find anything that sends multiple pdf file in one email and still keeping the file in simple pdf format for the recipient.

    I am not aware of a way except for photos that allows you to select multiple files in an email. I even checked settings in the Adobe Reader app, and it does not show that ability.

  • I have Video camera movies that are HD format.. I am doing editing work on them using Final Cut Pro, but using DV PAL format for the projects I am editing. When I then tried to copy my work done in FCP Project that's originally DV PAL , into a new FCP Pro

    I have Video camera movies that are HD format.. I am doing editing work on them using Final Cut Pro, but using DV PAL format for the projects I am editing. When I then tried to copy my work done in FCP Project that's originally DV PAL , into a new FCP Project that is HD, and tried reconnect media with original HD movies (video), the sequence project got distorted for all the text, shapes used and all.. everything changed its orientation and scale.. Is there a way by which I can preserve my work done on DV PAL and switch it preserving its proportions, scale and orientation, but on a HD project sequence?? Appreciate your help and advice..

    Yes.  A couple of ways that might work.
    First Way
    What you need to do is load one of your hd clips in the viewer and edit into a new HD sequence.  Does it display correctionly? 
    OK, select the clip in the hd timeline and copy (command-c).  Now go to the HD sequence with the material that's distorted.  Select all (command-a) and paste attributes (option-v) and choose basic motion and distort.  That should maek things work.  What won't work is anything that you've adjusted as far as basic motion or distort in your PAL sequence.  That I'm pretty sure you'll have to redo.
    Second Way. 
    Choose your original PAL sequence and do a Media Manage changing the sequence preset to the appropriate HD paramenters with the media offline.  You then should be able to reconnect these clips with your original HD media.

  • Purchased a new Apple TV and the remote double clicks each time I press the button. It worked fine during set up and for the first two days.  I have since moved it and this problem started. Restarted,reset,unplugged,change remotes, no change.Help please.

    Purchased a new Apple TV and the remote double clicks each time I press the button. It worked fine during set up and for the first two days.  I have since moved it and this problem started. Restarted,reset,unplugged,changed remotes, no change. Latest software update. This is really annoying.  iPhone remote app works just fine.  Any suggestions?

    That's one of the weird things.. it recognizes it maybe 10% of the time. And usually, only after I do the two-button reset. Problem is.. since it won't charge above 2%, anytime I try to do a restore or anything like that using iTunes, my device shuts off and I lose whatever progress I'd made.
    So, an update... after reading through a bunch of similar complaints (there are literally 1000's of them so there's NO WAY this isn't somehow ios7 related, thanks a lot APPLE ) I decided to try a restore in recovery mode. After 3 hours and several disconnections... I ended up having to just set it up as a new iPad, as the restore did nothing. Weirdly though... as I was doing the restore in recovery mode.. I noticed I'd gotten up to a 10% charge.. higher than it's been since September, so after setting it up as a new device, I turned it off and plugged it in using the wall charger. 2 hours later and I was up to 38%. Still not great, as my iPad, before ios7 could've fully charged twice in the amount of time it took for me to now get 28% more of a charge. And that's with a fully cleaned out device.. so that really ***** and I'm now more confused than ever.
    But I'm gonna leave it overnight charging and see what I come up with tomorrow. Sadly, when I paid $600 for it in February, I never expected to have to play "wait and see" with it...

  • How do I set a reminder for the last day of every month

    Have I missed something? But how do you set a reminder for the last day of every month to recurr indefinatley in iOS6? Sorry if this is really simple but I just can't seem to work it out. Any help gratefully received.

    Hey Mattye88 not sure if you have seen but actully you can do this, but for some reason you have to use Siri.  If you bring up Siri and say "set a reminder ever 4 weeks from next wednesday to check the gas meter" it will set one and it will work just fine, I have reminders to water a Bonsai every three days and it works fine it just shows as custom repeat on the user interface.  Alas it seems you can not use Siri to set one for the end of the month though which is why I am in this threed.  Still hope it helps you to know how to sort this problem atleast.

  • I have iMovie 09. I just erased my external hard drive, but it is still formatted for the mac. However, iMovie will not recognize the hard drive. It shows the only hard drive available is the computers. How do I get the external hard drive to show up?

    I have iMovie 09. I just erased my external hard drive, but it is still formatted for the mac. However, iMovie will not recognize the hard drive. It shows the only hard drive available is the computers. How do I get the external hard drive to show up?

    In Finder's Menu, select Go menu>Go to Folder, and go to "/volumes". (no quotes)
    Volumes is where an alias to your hard drive ("/" at boot) is placed at startup, and where all the "mount points" for auxiliary drives are created for you to access them. This folder is normally hidden from view.
    Drives with an extra 1 on the end have a side-effect of mounting a drive with the same name as the system already think exists. Try trashing the duplicates with a 1 or 2 if there are no real files in them, and reboot.
    If it does contain data...
    http://support.apple.com/kb/TS2474

Maybe you are looking for

  • Store purchases wont play on iPod

    I just purchased an album from the iTunes store. I am able to play the tracks on my PC directly from my hard drive and I am able to play the tracks from my iPod through iTunes on my PC. When I disconnect my iPod and try to play the album directly fro

  • Yesterday with help i updated my ipad with apple assistance. Today the screen is blank

    Hi any advice please my screen is blank today after updating and backing it up yesterday with Apple support. Thanks Jenny

  • EA1 - Save File prompt for Worksheet does not match title

    When prompted for saving changes in a worksheet, the "file" is given as "SQLWorksheet@<connection name>", but the title of the worksheet itself is "<connection name><n>". This means when exiting SQL Developer with multiple modified worksheets for a g

  • External RAID

    I'm going to be buying the new Mac Pro and I'll need some Thunderbolt 2 External storage. My question centers around having an enclosure that is for everyday use and an enclosure for just backup. Is it better to have 2 separate enclosures for my purp

  • Compressor 3 wont compress/load anination codec

    Hello, Something weird is happening on my system. Trying to compress SD footage on an animation codec to m2v but getting the wheel of death spining both via a droplet and manually firing up compressor 3 itself. There is no problem getting m2v files f