Scripting and metadata field question

I'm trying to set up a subscription response, that is triggered on a check box which adds all of a FCP project's element's Master Assests to it's member productions. I.E. FCP project "A" which contains elements 1,2&3 and resides in Production "Z", will have the master assets 1,2&3 added to production Z when metadata field "Add Assests" is checked.
My questions are these:
1) How do I create a metadata field with just a check box (this a very basic questions, but so far I've only been able to get a "TRUE/FALSE" boolean, which works, but isn't as nice as a check box.
2) My approach to accomplishing this is a bit more convoluted than I think is necessary, it is thus:
-Use subscription to write XML.
-get AssetID for Project from XML
-Use fcsvr_client listparentlinks /Asset/ID(from above) | grep out the element ids
-use fcsvr_client listchildlinks /element/ID(from above) --linktype 12 | grep out the Asset ID for each of the elements listed in step 3
-use fcsvr_client listchildlinks /Asset/ID(of origional FCP project) --linktype 1 | grep put the project ID for each of the member projects
-use fcsvr_client make_link --linktype 1 /project/(ID from above) /asset/(each of the master assets for each element in FCP project)
Is this the best approach? Can I add multile assests in one command on the last one? Has anyone already scripted this? Am I missing some automated way to do this in FCSvr already.
Any help would be appreciated.
Thanks.

As to the question of if anyone has scripted this already, I have created a script which pulls all of the element metadata and places it in the associated assets of a Final Cut Pro project. You can check out the video that shows this in detail on the MacHarmony website. To be able to add the assets to a production would be a fairly easy step. The way you are going about it sounds like it should work just fine. We actually go direct to the postgres to improve performance and simplify the creation of tasks such as this, but the WriteXMLs should give you what you need as well.
-- Jason
Jason Perr
MacHarmony

Similar Messages

  • Every keystroke and mouse movement, I get an audio notice that I need to shut off. In Safari, the cursor cycles thru every link and metadata field and I get a verbal/audio notice of what it is.  How do I shut this option off???

    Every keystroke and mouse movement, I get an audio notice that I need to shut off. In Safari, the cursor cycles thru every link and metadata field and I get a verbal/audio notice of what it is.  How do I shut this option off???

    Press the key combination command-F5 to deactivate VoiceOver. If that doesn't work, proceed as follows.
    For OS X 10.7: From the menu bar, select
     ▹ System Preferences ▹ Universal Access ▹ Seeing ▹ VoiceOver: Off
    For OS X 10.8 or later: Select
     ▹ System Preferences ▹ Accessibility ▹ VoiceOver ▹ Enable VoiceOver: Off

  • Geany Trouble: Compiling Perl Scripts (and general Perl questions)

    I'm brand new to Perl because I hear it's one of the best and so far I've found that it is.  I used to program a little C++ here and there and a while ago taught myself python but I'd have to say Perl is better than both of them.  At any rate, that's neither here nor there.  I use Geany and love it, so I didn't see a reason to switch to something new for Perl.  Unfortunately I'm having some trouble with compiling.  Geany flat out refuses to.  I looked around and didn't find anything on here or in the wiki or on the Ubuntu forums other than one person who said to replace the compile command with the execute command. 
    So, do I even need to compile my Perl scripts or is there something else I'm missing?
    On a somewhat related note, the same user on the Ubuntu forums said that at the top of the code there should be:
    #!/usr/bin/perl -w
    I'm curious if I need the "-w" or what it even does since as of right now I have
    #!/usr/bin/perl
    and executing the program poses no problems.
    Any help is greatly appreciated,
    --Wes

    Well, for one, perl is not a compiled language. You can if you want to, but it gains you few benefits. Google for "perl compiler" if you really must.
    As for the second, do you know how the shebang line works in unix, and do you know what the -w option does for perl? The answer should reveal itself to you.
    Make sure you "use strict;", it will catch many errors.

  • Copyright symbol and metadata template question

       In Bridge CS6 I have placed the copyright symbol, year and my name in the "Copyright Notice" section of a metadata template.  Chosen "Copyrighted" in the "Copyright Status" section.  And listed the terms in the "Right, Usage, Terms" section.  When I apply the template everything appears except that in the "Copyright Notice" section only my name shows.  No copyright symbol or year.
    What am I doing wrong?  Am I putting the information in the correct places?   (I have done it this way before using Lightroom, and it worked fine.)

    Sorry!  User error.  The copyright info I programmed in my camera was over riding the Bridge template.  Duh.  The template is working perfectly.

  • Scripting and reflection API questions

    hi all,
    what are the qualified class names of classes evaluated through the script engine?
    i.e. if i eval("class C {}"), how can i then myReflectionContext.findClass("C")
    if this is impossible, is there some other way of creating instances of fx classes
    defined through the scripting API, on the java side?
    when i try to define a public class, or a package through eval, i get a compile error.
    is this normal, and why does it happen?
    is it possible to build fx functions from java, where the invoke method of the function is
    defined in java? is there a standard/recommended way of doing so? my hack-around
    right now is to just eval an fx function which calls a java method.
    is it possible to instantiate fx vars and bind them to other vars from java?
    is it possible to programmatically construct entire fx class definitions from java?
    thanks for any tips

    The constructor will of course need an instance of Outer as a parameter.
    class Outer {
       class Inner {
       public static void main(String[] args) throws Throwable {
          Class innerClass = Class.forName( "Outer$Inner" );
          // ok, so now i got the class,
          // how can i create an instance.
          java.lang.reflect.Constructor innerConstructor=innerClass.getDeclaredConstructor(new Class[] {Outer.class});
          Object innerObject=innerConstructor.newInstance(new Object[] {new Outer()});
    }- Marcus

  • Script to Export and Import Keywords and Metadata

    I have a requirement to mass upload and download keywords and various metadata fields (i.e. File Name, Date Created, City, Country, Document, Title, etc.) into an external database from the Adobe Bridge. Ideally it would be compatible to .txt, .csv, etc type of database format. Currently I have to accomplish this task one at a time. I have an immediate need to upload 1000 plus pictures and various text fields into my website to share with others and be able to sell my pictures online.
    My immediate is for exporting the metadata and keywords.
    Does anyone know of a script that is aavailable?
    Arnold

    John,
    Thanks for your quick response. Below is the script I just modified this morning. When looking in the keyword field, it returns the word "undefined" for all records.
    I tried that yesterday and it didn't work. When looking at the Advance file info on Adobe Bridge I see the below format which had 2 levels. All the others I used only had one. Since I am not a programmer, I need help on that part of the script.
    ==========================
    EXIF Properties (exif,http://ns.adobe.com/exif/1.0/)
    - exif:Flash
    - exif:Fired: True
    ====================================
    Any luck on determining how to obtain file size.
    Again thank you so much for supporting me on my project,
    Arnold
    =====================
    #target bridge
    if (BridgeTalk.appName == "bridge")
    // Let's create our menu
    var menu = MenuElement.create( "command", "Export CSV File", "at the end of Tools");
    menu.onSelect = function(m) {
    try
    // Let's ask what the name of the output file
    var f = File.saveDialog("Export file list to:", "Comma delimited file:*.CSV");
    // Write the column headings
    f.open("w");
    f.writeln("Seq Number,New File Name,New File Name Path,Original File Name,Org Dt & Tm,ISO,Exposure Time,F Stop,EV,Exposure Program,Meter Mode,Focal Length,Flash,Lens,Author, Author's Position,City,Country,Description,Title,Orientation,Width,Height,Rating,Label");
    // Let's get a list of all the visible thumbnails
    var items = app.document.visibleThumbnails;
    for (var i = 0; i < items.length; ++i) { var item = items[i]; f.writeln(i + 1, ",\"", item.name, "\",\"", item.path.replace(/\"/g, "\"\""), "\",\"", ListMetadata(item), "\",\"", "\"" ); } f.close(); } catch(e) { } } menu.onDisplay = function(m) { m.enabled = app.document.contentPaneMode == "filesystem" && app.document.visibleThumbnails.length > 0;
    function ListMetadata(tn)
    md = tn.metadata;
    md.namespace = "http://ns.adobe.com/photoshop/1.0/";
    varAuthor = md.Author + "\",\"" + md.AuthorsPosition + "\",\"" + md.City + "\",\"" + md.Country + "\",\"";
    md.namespace = "http://ns.adobe.com/exif/1.0/aux/";
    varLens = md.Lens + "\",\"" ;
    md.namespace = "http://purl.org/dc/elements/1.1/";
    vartitle = md.title + "\",\"" + md.description + "\",\"" ;
    md.namespace = "http://ns.adobe.com/xap/1.0/mm/"
    VarPreservedFileName = md.PreservedFileName + "\",\"" ;
    md.namespace = "http://ns.adobe.com/exif/1.0/"
    VarDateTimeOriginal = md.DateTimeOriginal + "\",\"" + md.ISOSpeedRatings + "\",\"" + md.ExposureTime + "\",\"" + md.FNumber + "\",\"" + md.ExposureBiasValue + "\",\"" + md.ExposureProgram + "\",\"" + md.MeteringMode + "\",\"" + md.FocalLengthIn35mmFilm + "\",\"" + md.Flash + "\",\"" ;
    md.namespace = "http://ns.adobe.com/tiff/1.0/"
    varOrientation = md.Orientation + "\",\"" + md.ImageWidth + "\",\"" + md.ImageLength + "\",\"" ;
    md.namespace = "http://ns.adobe.com/xap/1.0/"
    varRating = md.Rating + "\",\"" + md.Label ;
    md.namespace = "http://ns.adobe.com/photoshop/1.0/";
    varKeywords = ListKeywords(md) + "\",\"" ;
    function ListKeywords(md)
    var varKeywords = "" ;
    for (var i = 0; i < md.Keywords.length; ++i) { varKeywords = varKeywords + md.Keywords[i] + ", "; } //strip off final comma and space varKeywords = varKeywords.substring( 0, varKeywords.length-2);
    return VarPreservedFileName + VarDateTimeOriginal + varLens + varAuthor + vartitle + varOrientation + varRating + varKeywords;
    ==============================

  • How to add a new metadata field to iPhoto where new field is calculated as age in years and month based on a specific date and the date photo was taken ? I want to calculate and display the age of my two kids on every photo.

    Hi
    How can I add 2 new metadata-fields to every photo in iPhoto ?
    The new fields should state the age of my kids in years and months based on the date that they were born and the date that photo is taken.
    Exampel:
    My son is born 01.01.2010
    My daughter is born 01.01.2012
    Photo taken by data
    Aage of son
    Aage of daughter
    01.07.2011
    1 year 6 month
    not born yet
    01.01.2014
    4 year 0 month
    2 year 0 month
    I would like to be able to search by kids age and get the info displayed when doing slideshows.
    How to do this in iPhoto ?
    Any alternatives to accomplish the same ?
    Kind regards

    It can't be done with iPhoto.  There are some DAM (digital asset management) applications that can write to other IPTC fields that iPhoto can't read. One such app is Media Pro 1.
    However you would have to calculate the age for each date and add it to one of the fields. There are online age calculators that can do that for you: Age Calculators
    If you go thru that much trouble then use iPhoto, make the calculations and add the age to the Description field.  Then you can use Smart Albums to search for 1year 6 month text.
    OT

  • Standard Report Headings,  JAVA script usage,and  Report field fixed width

    My company has purchased Crystal Reports 2008 and I'm in the process of determining if the product will do everything we need and not become a maintenance nitemare. 
    We would like to setup some standard report headings to be used in all reports.  I've setup on already as a SUBREPORT and it works fine. We pass optional parameters that may be blank.
    We have several questions:
    1) Subreport...Once a SUBREPORT is setup as a standard heading and included in multiple reports, we are concerned about what is required if the standard heading subreport changes.  Will each report that uses this need to be opened or handled in any way to pickup the subreport changes?  Any suggestions how to handle this?
    2) Subreport....In order to get the "PAGE N of M" to work in the subreport we've setup the subreport to accept parameters that are passed from the main report and this works fine.  But this requires every report using the standard heading to setup the parameters in order to work.  Is there any other way that would minimize the setup needed for a standard heading?
    3) JAVA...  Can we call a Javascript function? If so, any hints/tips on how/where to do this?
    4) Standard Report... Creating the report is difficult with guessing the width to define to the field.  Is there a way that the report can know and display the exact size of the field being used?  A fixed field defininiton of some sort would make it MUCH easier in the layout of the report.
    5) Standard Report...We are currently testing with a stored procedure for the SQL query result data but because of the application we will need to build the query dynamically for every report.  Is there a way to bind the data and specify the field lengths? 
    6) Standard Report...When using a defined file structure I needed to add another field.  At the time it seemed like I had to start from scratch as the fields that were on the report were now gone.  Is there a update method that can be done import the changes and not loose existing fields on a report? 
    That all for now.  Sorry there are so many questions.  We are trying to clear up as many issues as we can before starting the 100+ reports needed.
    Thanks in advance.

    Hi Vitaly Izmaylov,
    I've taken your advice and split out questions 2-6 into seperate questions.  Anyone else please respond only to question 1 here. 
    I see the Re-Import subreport option....and I guess I can only assume that this means that any change to a report heading file (subreport) must be manually re-imported into every report it is used in.  There are no behind the scenes files or table that maintain a usage of these reports and can automate the population of the changes.
    I was hoping that maybe the subreports would be accessed when called for an pickup any new changes.  So if I create 100 reports with standard heading subreport, I would need to manually open and re-import that file in each report to update a report heading change.
    Does not sound real fun.
    Is all this true?
    Thanks,
    Tim

  • "Scene", "Description", "Comment", and "Log Note" metadata fields don't appear in Prelude

    Can I use the "Scene", "Description", "Comment", and "Log Note" metadata fields in Prelude that are basic parts of Premiere's logging screen? I can't find them in Prelude.
    I would like to continue in the Premiere (CS6) workflow I have been using of adding a Scene, Description, Comment, and Log Note. These are front and center in Premiere for logging. Yet, nowhere to be found in Prelude. As far as I can tell, all of the rest of the metadata categories will transfer. It seems that these should be in the "basic" group in Prelude, but don't appear.

    I have a similar problem, but it gets weird.
    I have been very very happy with the whole 'cloud' computing thing and keeping my stuff at Google. Contacts and Calendar worked flawlessly since I bought the Pre.
    However, last week, I had to do a full erase of my Pre (UK-O2) because no apps would install.
    I logged into my Palm Profile on the phone; logged into my Google account just after, and checked my Calendar and Contacts.
    Calendar - all fine, just a few cosmetic tweaks of the colours. Good.
    Contacts - not fine. Only 19 of 58 were imported from Google, and none of them had their photos. So I hit the Sync Now button a few times - with and without WiFi - with and without 3G - but that did not help.
    So I waited for it to do it itself. No change.
    So I did some searching on the web. I checked that all the contacts were in 'My Contacts' at Google... yes. I removed the Google Contacts account from the Pre. Then added it back again.
    Weird bit coming up.... exactly the same 19 contacts were added as before!
    I am at a loss really. I have even tried creating a 'googlemail' account because a web page suggested it and logging in with that.
    No change. Still 19 contacts not 58.
    Also, I cannot add a contact directly in the Pre and have it whizz off to Google HQ like before. This now does not work.
    H E L P !
    ********* I will try the suggestion above and report back soon  ******
    Paully

  • Beginner's question about scripting and deployment automation

    I am new to the SAP and BusinessObjects world.  I do production support for BusinessObjects XI R3.1.  One of my functions is to deploy Universe.unv and WEBI Report files from development into QA and production.  This is currently a manual process involving downloading files and lots of key strokes and mouse clicks using the BusinessObjects Client Tools.  My question ->:  is there a way to automate this process?  Can I do this with the SAP scripting wizard?  I am familiar with many different scripting and programming languages, I just need to be pointed in the right direction.
    Thanks for your help!

    I would take a step back and learn more about the fundamentals of Flash before going farther. In the Welcome Screen of Flash Profressional there is a "Learn" section. Here are some links from it:
    Introducing Flash: http://www.adobe.com/go/fl_learn1
    Symbols: http://www.adobe.com/go/fl_learn2
    Timelines and Animation: http://www.adobe.com/go/fl_learn3
    Instance Names: http://www.adobe.com/go/fl_learn4
    Simple Interactivity: http://www.adobe.com/go/fl_learn5
    ActionScript: http://www.adobe.com/go/fl_learn6

  • Question on how to Hide the User Name, Password, and Domain fields in the MDT Wizard

    MDT 2012 U1
    Deploying Windows 7 via Offline Media (ISO) to MS Virtual PC's
    I am looking on how to Hide the User Name, Password, and Domain fields which are prepopulated in the MDT wizard via the CS.ini (Not so concerned about the Domain field as I am User Name and Password)
    We do need the Computer Name and OU fields to be seen, so skipping the wizard is not a option
    The client just does not want these fields to be seen by the end users, they dont want them to even know the account name used for adding the machine to the domain, of course the password is not displayed but it must not be displayed either.
    But since we use the fields they must still  be fuctional just not seen.
    Thanks.....
    If this post is helpful please click "Mark for answer", thanks! Kind regards

    You shouldn't have to edit DeployWiz_Definition_ENU.xml. You should only need to add "SkipAdminPassword=YES" to the CS.ini file and your authentication information.
    Example:
    [Settings]
    Priority=Default
    Properties=MyCustomProperty
    [Default]
    OSInstall=Y
    SkipCapture=NO
    SkipAdminPassword=YES
    UserID=<MyUserID>
    UserPassword=<MyPassword>
    UserDomain=<MyDomain.com>
    SkipProductKey=NO
    SkipComputerBackup=YES
    SkipBitLocker=NO
    -Nick O.
    Nick,
    SkipAdminPassword=YES is for:
    You can skip the Administrator Password wizard page by using this property in the
    customsettings.ini.
    I am hidding the Username/Password/and domain field in the computer name Wizard pane which is read from the cs.iniDomainAdmin=xxxxx
    DomainAdminPassword=xxxxx
    DomainAdminDomain=xxxxxx
    JoinDomain=xxxxxx
    If this post is helpful please click "Mark for answer", thanks! Kind regards

  • Question about  Jco conenctions/Logical name of the model and metadata

    Is it common to use the same logical name of the model and metadata across different enviroments?
    For example,  MODEL_DATA_DEST, META_DATA_DEST is used for DEV, QAS and PRD? Because i seem to have some trouble using code built in DEV to another environment if the logical name of the model and metadata is different.
    Thanks in advance

    Hi,
    No for every environment the logical name of the model and metadata are different...
    for eg: some logical names, 
    WD_RFC_METADATA_DEST
    WD_MODELDATA_DEST
    USERINFO_WD_RFC_METADATA_DEST
    USERINFO_WD_MODELDATA_DEST
    About JCo Details,
    SAP JCo Functions,Architecture,Applications,Installation,Client & Server Programming :
    http://help.sap.com/saphelp_nw70/helpdata/en/6f/1bd5c6a85b11d6b28500508b5d5211/frameset.htm
    Creating Jco destination:
    http://help.sap.com/saphelp_nw70/helpdata/en/3a/3b1b40fcdd8f5ce10000000a155106/frameset.htm
    Maintaining Jco destination:
    http://help.sap.com/saphelp_nw70/helpdata/en/94/3c1b40fcdd8f5ce10000000a155106/frameset.htm
    The SAP JCo Repository :
    http://help.sap.com/saphelp_nw70/helpdata/en/01/43e13d82fcfb34e10000000a114084/frameset.htm
    Dynamic Jco creation Blogs:
    /people/anilkumar.vippagunta2/blog/2007/02/06/dynamic-jco-creation
    /people/gregor.wolf3/blog/2004/09/23/from-function-module-to-jco-application--part-1-of-3

  • IPhoto and metadata

    I started using iPhoto 09 yesterday, and have some questions for you. When I import my pictures I use Adobe Lightroom to convert to DNG, add captions, keywords and ratings. I (want to) use iPhoto for viewing, organizing and ordering books and stuff. Unfortunately there are a few shortcomings to this approach.
    * iLife doesn't import any metadata for my raw images. Under the JPEGs I see captions and keywords, but under the DNGs it just says "raw". It also has problems importing from some of my JPEGs
    * The captions from LR are written to the IPTC urgency field. This is not standardized (I think), but applications like Picasa and Digikam understand it on import. iPhoto does not.
    * Faces and places are not written into the metadata of the images, is it? Does iPhoto write back any of the other metadata (captions, keywords)?
    Anyone have any comments/solutions to any of the things I have mentioned?
    I have considered fixing this myself, by writing a script that pulls the metadata I want from my JPGs/DNGs and puts it ... somewhere in the iPhoto database. Do you think this is possible?

    Thanks for the fast reply.
    To continue on your car-comparison. If I learn a lot about driving using that one car, I don't want to forget what I learned if I get a new car in the future At the moment I really like iPhoto, but if I at some point want to use another application, I want all the metainformation I've added to follow me to the new application, and that means it has to be either embedded in the images or really easy to get out from the database. I feel much more in control of my metadata when using Lightroom.
    Especially hierarchical keywords are important to me. The are easy to use and manage, and reorganizing them works like a dream. After writing captions, keywords and rating to the images, I can write back the changes to the images and it wouldn't matter if I lost the database, since the complete info is in the images. Haven't heard about Lightroom not using metadata in standard ways, but that sounds scary. Do you know more about this? In my experience, most applications understand the metadata written by Lightroom.
    Like I said I want to use iPhoto after the organizing because it's great as a viewer and I may want to order stuff, but also because iPhoto talks well to other applications I want to use, like iDVD. I also like Events, Places and Faces so much that I want to play with those even if the information is lost if I move to another application.
    I'm guess I'm gonna have to think a bit about what approach to choose. Right now I keep the DNGs in my library, but maybe I should export to JPG and just keep the DNGs for backup on some offline media. This would take up less space and make my collection understandable by most applications. I could also let iPhoto copy the photos and live with two copies of my library. If/when moving to another application, the LR-copy would then be the portable one.

  • Select Button beside custom metadata field on Check In Form

    Hi
    In Oracle Content Server 10gR3, is there a way to add a "Select" button to User Alias Applet for a new Meta data field on New Check In Form? I tried creating a component but I don't see a select button being shown up. The button does shows up if it's a standard metadata fields but not for the custom one. Here is the component code. Any idea what I am doing wrong and how to fix it.
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>
    CustomMetaData htmlIncludeOrString
    </title>
    </head>
    <body>
    <@dynamichtml std_meta_fields@>
    <textarea name="xClbraAliasList" rows=3 cols=40 wrap=virtual></textarea>
    <input type="button" value="Select..."
    onClick="popupSelectAlias(document.Checkin);">
    <script language="JavaScript">          
         var aliasForm;
         function popupSelectAlias(frm)
              var selUser = document.selectAliasApplet;
              aliasForm = frm;
              selUser.createFrame();
         function setAliasString(val)
              if (val.length == 0)
                   return;
              var str = aliasForm.xClbraAliasList.value;
              str.trim;
              if (str.length > 0)
                   str += ",";
              str += val;
              aliasForm.xClbraAliasList.value=str;
         </script>
         <applet name="selectUserApplet"
        code=com.intranetsol.utilities.SelectUserApplet.class
          codebase="/idc/common/"
         archive=suapplet.zip
        id=selectUser
        width=0
        height=0
         MAYSCRIPT>
              <param name=CGI-URL value="/idc/idcplg">
              <param name=JsDisplaySeparator value=",">
              <param name=IsPaged value="1">
              <param name=IsUserList value="1">
              <param name=JsFunction value="setUserString">
    </applet>
    <applet name="selectAliasApplet"
        code=com.intranetsol.utilities.SelectUserApplet.class
          codebase="/idc/common/"
         archive=suapplet.zip
        id=selectAlias
        width=0
        height=0
         MAYSCRIPT>
              <param name=CGI-URL value="/idc/idcplg">
              <param name=JsDisplaySeparator value=",">
              <param name=IsPaged value="1">
              <param name=IsAliasList value="1">
              <param name=JsFunction value="setAliasString">
    </applet>
    <@end@>
    </body></html>
    Then I tried using the same code as above but instead used the built-in dDocType to show a "Select" button. This works but the button obviously shows besides dDocType but when I try for custom metadata as shown above it doesn't. Here is the sample code for dDocType:<html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>
    CustomMetaData3 htmlIncludeOrString
    </title>
    </head>
    <body>
    <@dynamichtml std_doc_page_definitions@>
    <$include super.std_doc_page_definitions$>
    <$include custom_modify_comments_definitions$>
    <@end@>
    <@dynamichtml custom_modify_comments_definitions@>
    <$if isCheckin$>
    <$xComments:isHidden = 1$>
    <$xComments = "some preset and hidden comments"$>
    <$elseif isUpdate$>
    <$xComments:isInfoOnly = 1$>
    <$endif$>
    <@end@>
    <@dynamichtml compute_std_field_includes@>
    <$include super.compute_std_field_includes$>
    <$if fieldName like "dDocType"$>
    <$if isCheckin or isUpdate$>
    <$fieldEntryInclude = "custom_doc_type_popup_field_entry"$>
    <$endif$>
    <$endif$>
    <@end@>
    <@dynamichtml custom_doc_type_popup_field_entry@>
    <input type="text" name="dDocType" value="<$fieldValue$>">
    <input type="button" value="Select..."
    onClick="popupSelectAlias(document.Checkin);">
    <script language="JavaScript">          
         var aliasForm;
         function popupSelectAlias(frm)
              var selUser = document.selectAliasApplet;
              aliasForm = frm;
              selUser.createFrame();     
         function setAliasString(val)
              if (val.length == 0)
                   return;
              var str = aliasForm.xClbraAliasList.value;
              str.trim;
              if (str.length > 0)
                   str += ",";
              str += val;
              aliasForm.xClbraAliasList.value=str;
         </script>
    <applet name="selectAliasApplet"
    code=com.intranetsol.utilities.SelectUserApplet.class
         codebase="/idc/common/"
         archive=suapplet.zip
    id=selectAlias
    width=0
    height=0
         MAYSCRIPT>
              <param name=CGI-URL value="/idc/idcplg">
              <param name=JsDisplaySeparator value=",">
              <param name=IsPaged value="1">
              <param name=IsAliasList value="1">
              <param name=JsFunction value="setAliasString">
    </applet>
    <@end@>
    </body>
    </html>
    Can someone please let me know what is in my above code that I am missing that is preventing the button not being shown in-front of the custom metadata field.
    Any help would be greatly appreciated.
    Thanks
    Edited by: guest0012 on Aug 29, 2009 4:24 PM

    Interesting!
    You'll need a component. You already mentioned you had a custom metadata field. You will also need to add a counter to the counters table for your component. During a check in you will need to fetch the next value from the counters table, increment the counter and store the new number back in the table. The year portion of the id is easy, get the current year and grab the last two characters. Then, put this all togther to get the data for your metadata field.
    The big question now is where in the check in process will you do all this? You will need something called filters probably. Maybe addFiles, maybe validateStandard, there are several that this could work with.
    Check out the how-to-components:
    http://www.oracle.com/technology/products/content-management/ucm/samples/index.html
    -Jason
    http://www.corecontentonly.com

  • Import List Items with Managed Metadata Field from CSV File

    Hello,
    I try to import list items from a CSV File. Most of the fields are populating correctly except the Managed Metadata Field. I found multiple examples on how to set Managed Metadata Fields with Powersehll, but unfortunately I couldnt get it running.
    The CSV File holds values for the Metadata Column, this value should be checked against the Metadata in the Termstore. If this Term is existent, then it should set the fields value, if it is not existant then it should add the term from the CSV File to the
    Term Set in the Term Store. Can anybody give me a tip on how to do this? This is what I have, where Line 4 holds the Metadata:
    $Siteurl = "http://siteUrl"
    $Rootweb = New-Object Microsoft.Sharepoint.Spsite($Siteurl);
    $Webapp = $Rootweb.Webapplication
    $listName = "Catalogue"
    $listWeb = Get-SPWeb $Siteurl
    $list = $listWeb.Lists[$listName]
    $pfad1 = "c:\temp\Servers.csv"
    $content = import-csv -Delimiter ";" -Path $pfad1 
    foreach ($line in $content) {
    $newItem = $list.Items.Add()
    $newItem["Field 1"] = $line.1
    $newItem["Field 2"] = $line.2
    $newItem["Field 3"] = $line.3
    $newItem["Field 4"] = $line.4
    $newItem.Update()
    write-host $line.Title imported
    Thanks!!

    Hi Jimmie,
    From your description, when importing list from csv to SharePoint site, you would like to compare if Managed Metadata column exists in term store, and return yes value, if not, add it to term store.
    That might need script to achieve. You need to import list at first, then get value from term store, and compare with the list. Change the list field per comparison result, then add new value to term store.
    However, there might some workaround to meet your requirement. Not surly understand, so I find some references for you:
    If you would like to export Term Set to CSV from SharePoint 2013, then you could compare it:
    http://gallery.technet.microsoft.com/office/PowerShell-for-SharePoint-a838b5d0#content
    If you would like to query SharePoint 2013 Managed metadata term store using JavaScript:
    http://sharepoint.stackexchange.com/questions/60045/query-sp2013-managed-metadata-term-store
    http://stackoverflow.com/questions/13858962/getting-all-the-term-stores-in-sharepoint-2010-web-services-or-client-side-obje
    If you would like to synchronize, import or copy term store & managed metadata in SharePoint between environments:
    http://www.matthewjbailey.com/synchronize-import-or-copy-term-stores-managed-metadata-in-sharepoint/
    Regards,
    Rebecca Tu
    TechNet Community Support

Maybe you are looking for