Custom Asset library List Definition

Hi All,
I am trying to create a list definition for asset library using visual studio 2010. Now the problem is there is no such template for Asset library available in visual studio, so can anyone please tell me the workaround for that??

Hi,
You can create the list definition based on the AssetLibrary by copy/paste the “AssetLibrary” folder under features directly.
Here is a similar thread for your reference:
https://social.msdn.microsoft.com/forums/sharepoint/en-US/1e25f974-9f20-4a67-8c68-ee3f33584bc2/list-definition-in-asset-library-sharepoint-2013
Best Regards
Dennis Guo
TechNet Community Support

Similar Messages

  • Adding custom button to Ribbon for custom list definition

    I'm trying to add a custom button to the ribbon, specifically for a custom list definition.  I have two custom list definitions, one for a document library (Type="11008") and one for a list (Type="10002").  
    I can use the following CustomAction to successfully add a button to the document library ribbon:
    <CustomAction Id="MyCustomAction.DocLib"
    RegistrationId="11008"
    RegistrationType="List"
    Location="CommandUI.Ribbon">
    <CommandUIExtension>
    <CommandUIDefinitions>
    <CommandUIDefinition Location="Ribbon.Library.Share.Controls._children">
    <Button
    Id="MyCustomAction.DocLib.Button"
    Alt="Help"
    Sequence="5"
    Command="SayHi"
    Image32by32Left="-64" Image32by32Top="-320" Image32by32="/_layouts/$Resources:core,Language;/images/formatmap32x32.png"
    Image16by16Left="-64" Image16by16Top="-176" Image16by16="/_layouts/$Resources:core,Language;/images/formatmap16x16.png"
    LabelText="Say Hi!"
    TemplateAlias="o1"/>
    </CommandUIDefinition>
    </CommandUIDefinitions>
    <CommandUIHandlers>
    <CommandUIHandler Command="SayHi" CommandAction="javascript:alert('Hi!');"/>
    </CommandUIHandlers>
    </CommandUIExtension>
    </CustomAction>
    If I try to do the same thing for my list, the button does not show up:
    <CustomAction Id="MyCustomAction.List"
    RegistrationId="10002"
    RegistrationType="List"
    Location="CommandUI.Ribbon">
    <CommandUIExtension>
    <CommandUIDefinitions>
    <CommandUIDefinition Location="Ribbon.List.Share.Controls._children">
    <Button
    Id="MyCustomAction.List.Button"
    Alt="Help"
    Sequence="5"
    Command="SayHi"
    Image32by32Left="-64" Image32by32Top="-320" Image32by32="/_layouts/$Resources:core,Language;/images/formatmap32x32.png"
    Image16by16Left="-64" Image16by16Top="-176" Image16by16="/_layouts/$Resources:core,Language;/images/formatmap16x16.png"
    LabelText="Say Hi!"
    TemplateAlias="o1"/>
    </CommandUIDefinition>
    </CommandUIDefinitions>
    <CommandUIHandlers>
    <CommandUIHandler Command="SayHi" CommandAction="javascript:alert('Hi!');"/>
    </CommandUIHandlers>
    </CommandUIExtension>
    </CustomAction>
    What am I missing that is keeping me from getting this button to show up in my List ribbon?

    Well, I debated just deleting my question, but I'll leave it up in case someone else runs into this.  My custom list definition for my list had <Toolbar Type="Freeform" />.  I don't remember why I changed that, but once I changed
    that back to <Toolbar Type="Standard"/> my custom buttons started showing up as expected.
    The answer
    here pointed me in the right direction.

  • Hide a field inherited by the content type in a custom list definition

    The requirement is to create new content type that inherits from a Parent content type. I also created custom document library definition that uses the newly created content type.
    There are some fields that are inherited from the parent type that I would like "NOT TO" show in the edit/display form in the libraries created based on the new list definition.
    How can I achieve this? In the list definition, I added ShowInEditForm="FALSE" and ShowInDisplayForm="FALSE" ShowInViewForm="FALSE".
    But these fields won't hide and it still shows up when a new document is uploaded. Any help would be appreciated.
    Thanks!

    Hey,
    Have
    this link for your reference. It will help you.
    Thanks. Please mark it as an answer if it helps.

  • Custom List definition site columns managed properties not appearing in search results

    Hi i developed a site column, custom content type and a list definition. I set the value for this column and started crawling but i don't find these properties in search schema. If i add this column manually in a library and start crawling, these properties
    are showed. What 's the difference?
    kesari suresh

    HI,
    I am able to finally crack the issue.
    I forgot to add the Event Receiver for the new List Definition I was creating.
    Added below lines in the Event receiver of List definition and found that the crawled properties and Managed properties (For Managed Metadata Columns) were creating successfully.
    <Receiver>
          <Name>TaxonomyItemSynchronousAddedEventReceiver</Name>
          <Type>ItemAdding</Type>
          <Assembly>Microsoft.SharePoint.Taxonomy,
    Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
          <Class>Microsoft.SharePoint.Taxonomy.TaxonomyItemEventReceiver</Class>
          <SequenceNumber>10000</SequenceNumber>
        </Receiver>
        <Receiver>
          <Name>TaxonomyItemUpdatingEventReceiver</Name>
          <Type>ItemUpdating</Type>
          <Assembly>Microsoft.SharePoint.Taxonomy,
    Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
          <Class>Microsoft.SharePoint.Taxonomy.TaxonomyItemEventReceiver</Class>
          <SequenceNumber>10000</SequenceNumber>
        </Receiver>
    Thanks,
    kesari suresh

  • List definition custom type ID or SharePoint base type ID ?

    I have successfully created list definitions using a custom type value in the elements.xml as well as by leaving the type value at the Visual Studio default of 101 (for a custom document library).
    Leaving the type value as 101 seems to work as long as the definition is in a feature on its own (so that the type is unique within that feature).
    I have found articles that suggest that all list definitions should be given a unique type value (conventionally above 10000) and other articles that seem to suggest using the SharePoint built-in list types is valid.
    Is the choice of type based upon whether I need to be able to differentiate my lists in the future or are there other technical reasons for preferring one method over the other ?
    Thank you in advance for your advice as I hope it will prevent me choosing a wrong strategy (or picking up bad habits).

    Greetings,
    what I have done so far is :
    1. Create site columns declaratively and deploy in a feature.
    2. Create content types declaratively and deploy in a feature including a custom feature receiver to prime the content type (which if I understood correctly should propagate changes to the content types to lists).
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <!-- Parent ContentType: Document (0x0101) -->
    <ContentType ID="0x010100D0DBA4954E79485287BB9FDD2FD32BD3" Name="KGEngBasicDoc" Group="KG" Description="Default KG Engagament Document" Overwrite="TRUE" Inherits="TRUE" Version="0">
    <FieldRefs>
    <FieldRef ID="{c788a2de-9005-4fbf-a80f-ff570e9e8ebb}" DisplayName="KG Correspondent" Required="FALSE" Name="KGCorrespondent" />
    <FieldRef ID="{4F24D5B8-436C-4A5F-AA1F-B3E66E72576B}" DisplayName="KGCorrespondent_0" Required="FALSE" Hidden="TRUE" Name="KGCorrespondentTaxHTField0" />
    <FieldRef ID="{9e3713d9-3004-4b53-9999-3fc1dbabf88e}" DisplayName="KGDocType" Required="FALSE" Name="KGDocType" />
    <FieldRef ID="{b471df76-40df-463b-9881-bc438cd3d7f3}" DisplayName="KGDocType_0" Required="FALSE" Hidden="TRUE" Name="KGDocTypeTaxHTField0" />
    <FieldRef ID="{ecc70efc-db96-407e-b9fd-d64a3c3a3345}" DisplayName="KGRecipient" Required="FALSE" Name="KGRecipient" />
    <FieldRef ID="{b2170479-32ec-42ee-b12e-3f10c5357c82}" DisplayName="KGRecipient_0" Required="FALSE" Hidden="TRUE" Name="KGRecipientTaxHTField0" />
    <FieldRef ID="{8aa58e8e-38e0-4b04-bcf8-d0c8000e5b36}" DisplayName="KGTasksAndMatters" Required="FALSE" Name="KGTasksAndMatters" />
    <FieldRef ID="{e40d1dd3-731d-4641-9e1e-2eef51f9889b}" DisplayName="KGTasksAndMatters_0" Required="FALSE" Hidden="TRUE" Name="KGTasksAndMattersTaxHTField0" />
    <FieldRef ID="{6150e127-ea5a-4f92-b1f9-b3b966fd67a5}" DisplayName="KGEngagementID" Required="FALSE" Name="KGEngagementID" />
    <FieldRef ID="{983c6a7b-7545-4163-bc05-3afd1b380ad5}" DisplayName="KGEngagementID_0" Required="FALSE" Hidden="TRUE" Name="KGEngagementIDTaxHTField0" />
    <FieldRef ID="{f3b0adf9-c1a2-4b02-920d-943fba4b3611}" DisplayName="Taxonomy Catch All Column" Required="FALSE" Hidden="TRUE" Name="TaxCatchAll" Sealed="TRUE" Sortable="FALSE" />
    <FieldRef ID="{8f6b6dd8-9357-4019-8172-966fcd502ed2}" DisplayName="Taxonomy Catch All Column1" Required="FALSE" Hidden="TRUE" Name="TaxCatchAllLabel" ReadOnly="TRUE" Sealed="TRUE" Sortable="FALSE" />
    </FieldRefs>
    </ContentType>
    </Elements>
    3. Create list definition declaratively, each in their own feature. (Since I wanted to be able to deploy views as well as allowing users to select lists of my custom 'type' to create adhoc, I thought I needed to create list definitions.)
    Note : This is the bit my question was referring to and currently I am using type id 101 instead of the custom type 100042 as I wanted them to be detected as document libraries by various third party
    products.
    ELEMENTS.XML
    <?xml version="1.0" encoding="utf-8" ?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <!-- Do not change the value of the Name attribute below. If it does not match the folder name of the List project item, an error will occur when the project is run. -->
    <ListTemplate
    Name="KGEngagementLibrary"
    Type="101"
    BaseType="1"
    OnQuickLaunch="TRUE"
    SecurityBits="11"
    Sequence="110"
    DisplayName="KGEngagementLibrary"
    Description="KG Engagement Documents"
    Image="/_layouts/15/images/itdl.png"
    DocumentTemplate="121"/>
    </Elements>
    SCHEMA.XML
    <?xml version="1.0" encoding="utf-8"?>
    <List xmlns:ows="Microsoft SharePoint" Title="KGEngagementLibrary" Direction="$Resources:Direction;" Url="KGEngagementLibrary" BaseType="1" xmlns="http://schemas.microsoft.com/sharepoint/" EnableContentTypes="TRUE">
    <MetaData>
    <ContentTypes>
    <ContentType ID="0x010100D0DBA4954E79485287BB9FDD2FD32BD3" Name="KGEngBasicDoc" Group="KG" Description="Default KG Engagament Document" Inherits="TRUE" Version="0"><FieldRefs><FieldRef ID="{c788a2de-9005-4fbf-a80f-ff570e9e8ebb}" DisplayName="KG Correspondent" Required="FALSE" Name="KGCorrespondent" /><FieldRef ID="{4F24D5B8-436C-4A5F-AA1F-B3E66E72576B}" DisplayName="KGCorrespondent_0" Required="FALSE" Hidden="TRUE" Name="KGCorrespondentTaxHTField0" /><FieldRef ID="{9e3713d9-3004-4b53-9999-3fc1dbabf88e}" DisplayName="KGDocType" Required="FALSE" Name="KGDocType" /><FieldRef ID="{b471df76-40df-463b-9881-bc438cd3d7f3}" DisplayName="KGDocType_0" Required="FALSE" Hidden="TRUE" Name="KGDocTypeTaxHTField0" /><FieldRef ID="{ecc70efc-db96-407e-b9fd-d64a3c3a3345}" DisplayName="KGRecipient" Required="FALSE" Name="KGRecipient" /><FieldRef ID="{b2170479-32ec-42ee-b12e-3f10c5357c82}" DisplayName="KGRecipient_0" Required="FALSE" Hidden="TRUE" Name="KGRecipientTaxHTField0" /><FieldRef ID="{8aa58e8e-38e0-4b04-bcf8-d0c8000e5b36}" DisplayName="KGTasksAndMatters" Required="FALSE" Name="KGTasksAndMatters" /><FieldRef ID="{e40d1dd3-731d-4641-9e1e-2eef51f9889b}" DisplayName="KGTasksAndMatters_0" Required="FALSE" Hidden="TRUE" Name="KGTasksAndMattersTaxHTField0" /><FieldRef ID="{6150e127-ea5a-4f92-b1f9-b3b966fd67a5}" DisplayName="KGEngagementID" Required="FALSE" Name="KGEngagementID" /><FieldRef ID="{983c6a7b-7545-4163-bc05-3afd1b380ad5}" DisplayName="KGEngagementID_0" Required="FALSE" Hidden="TRUE" Name="KGEngagementIDTaxHTField0" /><FieldRef ID="{f3b0adf9-c1a2-4b02-920d-943fba4b3611}" DisplayName="Taxonomy Catch All Column" Required="FALSE" Hidden="TRUE" Name="TaxCatchAll" Sealed="TRUE" Sortable="FALSE" /><FieldRef ID="{8f6b6dd8-9357-4019-8172-966fcd502ed2}" DisplayName="Taxonomy Catch All Column1" Required="FALSE" Hidden="TRUE" Name="TaxCatchAllLabel" ReadOnly="TRUE" Sealed="TRUE" Sortable="FALSE" /></FieldRefs></ContentType><ContentTypeRef ID="0x0101">
    <Folder TargetName="Forms/Document" />
    </ContentTypeRef><ContentTypeRef ID="0x0120" /></ContentTypes>
    ETC..
    4. Deploy list instances programmatically using event receiver.
    Note : The highlighted bits relate to the type and feature id used in my content type deployment.
    public override void FeatureActivated(SPFeatureReceiverProperties properties)
    SPWeb web = properties.Feature.Parent as SPWeb;
    try
    SPList list = null;
    list = null;
    foreach (SPList _list in web.Lists)
    if (_list.Title.Equals("Administration"))
    list = _list;
    if (list == null)
    web.AllowUnsafeUpdates = true;
    Guid listID = web.Lists.Add("Administration", //List Title
    "Administration documents", //List Description
    "Lists/Administration", //List Url
    "8ba84f44-fe8c-4789-a7dc-d264154041d2", //Feature Id of List definition Provisioning Feature – CustomList Feature Id
    101, //List Template Type
    "101"); //Document Template Type .. 100 is for None
    web.Update();
    web.AllowUnsafeUpdates = false;
    catch (Exception ex)
    The whole point of trying to create list definitions was that this seemed to be the only way for me to provide customized views for users at list creation time.  If it wasn't for that then I think I could have created all of
    these elements programmatically instead.
    (I could not figure out how to create a list definition programmatically).
    Please let me know what I should or shouldn't be doing in this deployment chain.
    Thanks !!

  • [Forum FAQ] A custom filterable list definition

    Scenario:
    A list can be filtered by query string from URL, now we need to create a custom list definition contains this feature.
    Solution:
    Here are the steps in details:
    1. Create a List Definition project in Visual Studio 2010;
    2. Modify the Schema.xml file in the list definition project as below:
    3. Build and deploy the solution to SharePoint 2010 server;
    4. Here are the screenshots about how it works:
    Filter the list with such an URL:
    http://sp/Lists/List1/AllItems.aspx?Param1=2014-08-24&Param2=2014-08-28
    References:
    Creating SharePoint 2010 List Definitions in Visual Studio 2010
    SharePoint 2010 - Create List Definition and Instance
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    A good solution. Liked it very much. Can you please make it a technet blog for others.
    [email protected]

  • Can I add Custom Content Type created programmatically to Custom List Definition?

    I have created Custom content type programmatically in the Feature Receiver. Followed by this have another feature which creates List Template. I want to add the custom content type to the list template.
    Using VS 2012, I added the custom content type to the list definition. The Schema.xml for the list definition looks as below:
    <ContentTypes>
    <ContentTypeRef ID="0x010100D7D9F4B1F4A9684BB44389571024B2EC00C393BB21B8AD7B41B62A87DF0501504D" />
    </ContentTypes>
    ID was automatically added by the VS tool.
    List Template is created, the new content Type is also added, but the Name is displayed as "Document" instead of the custom content type name. So I see two CTs with the name "Document".
    How can I achieve this? Any help is appreciated.

    Hi,
    Please add EnableContentTypes="TRUE" in the <List > tag.
    The following materials would be helpful:
    How to add custom content type to a custom list
    http://innersharepoint.blogspot.de/2009/10/how-to-add-custom-content-type-to.html
    SharePoint Custom List Definition with Content Type
    https://achrafsp.wordpress.com/2013/03/31/sharepoint-list-definition-with-content-type/
    Create a Custom SharePoint List Definition
    http://www.mssharepointtips.com/tip.asp?id=1188
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Thumbnail view for Library copied from Asset Library does not work

    Hello ,
    I created list definition based on Assed Library (I copied files from \15\TEMPLATE\FEATURES\AssetLibrary\AssetLibrary ) - I reused schema.xml and other files.
    Then I added my new custom content type.
    The problem is following:  thumbnail view does not work now ( "/AssetLibraryDemo/Forms/Thumbnails.aspx" )
    I don't have any javascript errors and any specific error in ULS log.
    Can you give me advice, why thumbnail view has stopped working?

    I need to use "List teplates" gallery functionality for this task.

  • Asset Library Video Customisation

    Hi,
    I have an asset library created on our Office 365 SharePoint Tenancy.  We will be using this library for Video files.  I have updated the library to have additional columns to reflect additional information required, for example our reference number
    for the video we have uploaded.  From the Asset library page, I have customised the list to display these additional columns of information.  When I select the Video, the new page loads that has the video (which can be played on it), created information
    and the description field.
    What I would like to do is customise this page to include a box at the top that has the additional information that has been entered for the current video that is playing.
    Any assistance will be greatly appreciated.
    Thanks
    Adam

    Hi Damas,
    According to your description, my understanding is that you want to add a custom field into the
    videoplayerpage.aspx page.
    For ahieving it, you can open videoplayerpage.aspx with SharePoint Designer 2013, then find
    <div id="idVideoSetDescriptionContainer" class="TextGreyStyle DivSectionStyle"> and add
    <SharePointWebControls:FieldValue FieldName="test" ControlMode="Display" runat="server"/>,
    like the screenshot below:
    Note: you need to change the "test" to the name of your custom field.
    Best Regards,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback
    for TechNet Subscriber Support, contact [email protected]
    Wendy Li
    TechNet Community Support

  • Connection Pooling and JSP Custom Tag Library - is code (inside) the best way/correc?

    Hi, can anyone advise as to whether my tag library code (based
    on Apache Jakarta Project) will actually achieve connection
    pooling functionality across my entire JSP based application? I
    am slightly concerned that my OracleConnectionCacheImpl object
    may exist multiple times, hence rendering my conection pooling
    attempt useless.
    package com.solved.tag.dbtags.connection;
    import java.io.IOException;
    import java.sql.Connection;
    import java.sql.SQLException;
    import javax.servlet.jsp.tagext.TagSupport;
    import javax.servlet.jsp.JspTagException;
    import javax.sql.DataSource;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import oracle.jdbc.pool.OracleConnectionCacheImpl;
    * <p>JSP tag connection, used to get a
    * java.sql.Connection object.</p>
    * <p>JSP Tag Lib Descriptor
    * <pre>
    * &lt;name>connection&lt;/name>
    &lt;tagclass>com.solved.tag.dbtags.connection.ConnectionTag&lt;/t
    agclass>
    * &lt;bodycontent>JSP&lt;/bodycontent>
    &lt;teiclass>com.solved.tag.dbtags.connection.ConnectionTEI&lt;/t
    eiclass>
    * &lt;info>Opens a connection based on a jndiName.&lt;/info>
    * &lt;attribute>
    * &lt;name>id&lt;/name>
    * &lt;required>true&lt;/required>
    * &lt;rtexprvalue>false&lt;/rtexprvalue>
    * &lt;/attribute>
    * </pre>
    * @author Matt Shannon
    public class ConnectionTag extends TagSupport {
    static private OracleConnectionCacheImpl cache = null;
    public int doStartTag() throws JspTagException {
    try {
    Connection conn = null;
    if (cache == null) {
    try {
    InitialContext ic = new InitialContext();
    DataSource ds = (DataSource) ic.lookup
    ("jdbc/pool/OracleCache");
    cache = (OracleConnectionCacheImpl)ds;
    catch (NamingException ne) {
    throw new JspTagException(ne.toString());
    conn = cache.getConnection();
    pageContext.setAttribute(getId(),conn);
    catch (SQLException e) {
    throw new JspTagException(e.toString());
    return EVAL_BODY_INCLUDE;
    package com.solved.tag.dbtags.connection;
    import java.sql.Connection;
    import java.sql.SQLException;
    import javax.servlet.jsp.tagext.TagSupport;
    * <p>JSP tag closeconnection, used to close the
    * specified java.sql.Connection.<p>
    * <p>JSP Tag Lib Descriptor
    * <pre>
    * &lt;name>closeConnection&lt;/name>
    &lt;tagclass>com.solved.tag.dbtags.connection.CloseConnectionTag&
    lt;/tagclass>
    * &lt;bodycontent>empty&lt;/bodycontent>
    * &lt;info>Close the specified connection. The "conn"
    attribute is the name of a
    * connection object in the page context.&lt;/info>
    * &lt;attribute>
    * &lt;name>conn&lt;/name>
    * &lt;required>true&lt;/required>
    * &lt;rtexprvalue>false&lt;/rtexprvalue>
    * &lt;/attribute>
    * </pre>
    * @author Matt Shannon
    * @see ConnectionTag
    public class CloseConnectionTag extends TagSupport {
    private String _connId = null;
    * The "conn" attribute is the name of a
    * page context object containing a
    * java.sql.Connection.
    * @param connectionId
    * attribute name of the java.sql.Connection to
    close.
    * @see ConnectionTag
    public void setConn(String connectionId) {
    _connId = connectionId;
    public int doStartTag() {
    try {
    Connection conn = (Connection)pageContext.getAttribute
    (_connId);
    conn.close();
    } catch (SQLException e) {
    // failing to close a connection is not fatal
    e.printStackTrace();
    return EVAL_BODY_INCLUDE;
    public void release() {
    _connId = null;
    package com.solved.tag.dbtags.connection;
    import javax.servlet.jsp.tagext.TagData;
    import javax.servlet.jsp.tagext.TagExtraInfo;
    import javax.servlet.jsp.tagext.VariableInfo;
    * TagExtraInfo for the connection tag. This
    * TagExtraInfo specifies that the ConnectionTag
    * assigns a java.sql.Connection object to the
    * "id" attribute at the end tag.
    * @author Matt Shannon
    * @see ConnectionTag
    public class ConnectionTEI extends TagExtraInfo {
    public final VariableInfo[] getVariableInfo(TagData data)
    return new VariableInfo[]
    new VariableInfo(
    data.getAttributeString("id"),
    "java.sql.Connection",
    true,
    VariableInfo.AT_END
    data-sources.xml:
    <?xml version="1.0"?>
    <!DOCTYPE data-sources PUBLIC "Orion data-
    sources" "http://xmlns.oracle.com/ias/dtds/data-sources.dtd">
    <data-sources>
    <data-source
    class="oracle.jdbc.pool.OracleConnectionCacheImpl"
    name="jdbc/pool/OracleCache"
    location="jdbc/pool/OracleCache"
    url="jdbc:oracle:thin:@oracle1:1521:pdev"
    >
    <property name="maxLimit" value="15" />
    <property name="cacheScheme" value="2" />
    <property name="user" value="console" />
    <property name="password" value="console" />
    <description>
    This DataSource is using an Oracle-native DataSource Class so as
    to allow Oracle Specific extensions.
    A getConnection() call on this DataSource will return
    oracle.jdbc.driver.OracleConnection.
    The connection returned is a logical connection.
    The caching scheme in place is Fixed Wait. Refer below to
    possible values.
    Dynamic 1
    Fixed Wait 2
    Fixed Return Null 3
    </description>
    </data-source>
    </data-sources>
    many thanks,
    Matt.

    Hi. Show me your pool definition.
    Joe
    Ramamurthy wrote:
    I am using the jsp custom tag library from BEA called sqltags.tld which came with Weblogic 5.1. Currently I am using Weblogic6.1 sp2 on Solaris.
    I have created a Connection Pool for Sybase database using the driver com.sybase.jdbc.SybDriver.
    When I created jsp page to connect to the connection pool using sqltags custom tag library, I am getting the error
    "javax.servlet.jsp.JspException: Failed to write body content
    at weblogic.taglib.sql.ConnectionTag.doAfterBody(ConnectionTag.java:43)
    at jsp_servlet.__hubwcdata._jspService(__sampletest.java:1014)"
    After this message, whenever I try to access the same jsp page I am getting the message
    "javax.servlet.jsp.JspException: Failed to load JDBC driver: weblogic.jdbc.pool.D
    river
    at weblogic.taglib.sql.ConnectionTag.doStartTag(ConnectionTag.java:34)
    at jsp_servlet.__hubwcdata._jspService(__sampletest.java:205)".
    Can you please help me the reason why this problem is happening and how to fix this ?
    This problem doexn't happen consistently. This occurs once in a while.
    I tried to increase Login delay Seconds parameter in the Connection Pool to 15 sec. It didn't help me much.
    Thanks for your help !!!
    Ram

  • How do I completely enable a new custom asset in Correspondence Management?

    Hello!
    I'm trying to add a new custom asset to the Correspondence Management Solution Accelerator, and have it behave like all other assets in the system (ie searchable, updateable etc).  I'm almost there, but there's obviously something I'm missing, and I was hoping someone here might have done this before, or have a link to some documentation regarding the matter that I may have missed.  The asset I'm trying finish creating is for a LiveCycle user in a specific domain.  This is what I've done so far...
    I've created the asset definition MyUser.fml and placed it in the FSIApp\Portal\webapp\WEB-INF\assetDefinitions folder.  I've then registered this fml file in the spring-config.xml file in both the 'lc.cm.assetDefinitionsDeployer' and 'lc.cm.assetTypeRegistryBootstrapper' beans.  In the 'lc.cm.assetTypeRegistryBootstrapper' bean, I set the key to 'MyUser', and the value to the class path of my Java class that represents this asset.
    On the Java side I've created the MyUser.java class, as well as MyUserService.java and MyUserServiceImpl.java to allow the searching, updating etc of the MyUser assets.
    After running the Bootstrap process, I can log into the Manage Templates application, select Data Dictionaries from the 'View' dropdown, and view/edit the MyUser data dictionary properties with no problems.  So I'm happy that the asset has successfully been registered with the application.
    Where I'm stuck is choosing the MyUser asset from the drop down, and searching the system for assets of that type.  I can choose the MyUser asset type from the 'view' drop down, but the search result returns an empty array.
    From digging into the existing Manage Templates code, I've created the following classes:
    public interface IMyUserService extends IEventDispatcher -  containing the following function definitions:
              function getMyUser(id:String):IAsyncToken;
              function getAllMyUsers(param1:Query=null):IAsyncToken;
    public class MyUserSeviceProvider extends ServiceProvider - containing a getter/setter for MyUserServiceDelegate
    public class MyUserServiceDelegate extends ServiceDelegate implements IMyUserService - containing the functions defined in IMyUserService, as well as creating the RemoteObject to perform the actions.
    The MyUserServiceDelegate constructor is:
         public function MyUserServiceDelegate ()
                super();
                _service = new RemoteObject("myapplication.services.myUserService");
                _service.showBusyCursor = true;
    This is the code for the function in getAllMyUsers in MyUserServiceDelegate:
         public function getAllMyUsers(param1:Query = null):IAsyncToken
                var operationToken:AsyncToken = this._service.getAllMyUsers(param1);
                var token:IccToken = new IccToken(this.className + ".getAllMyUsers");
                operationToken.addResponder(getDefaultResponder(token));
                return token;
    I've also made changes to the following config files to register the RemoteObject destination specified in the MyUserServiceDelegate constructor:
    spring-http-config.xml:
         <bean name="/service/UserService" class="org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter">
            <property name="service" ref="myapplication.services.myUserService" />
            <property name="serviceInterface" value="com.mydomain.lc.services.MyUserService" />
        </bean>
    remoting-config.xml:
         <destination id="myapplication.services.myUserService"/>
    flexmessagebroker-servlet.xml
         <flex:remoting-destination ref="myapplication.services.myUserService" />
    Above my Java class definition of MyUserServiceImpl.java I have the following line:
    @Service("myapplication.services.myUserService")
    So......
    My problem is that when I choose the MyUser asset from the drop down, no search results are returned (an empty array is returned).  I have logging code in the getAllMyUsers function in the MyUserServiceDelegateclass.as, as well as logging in the MyUserServiceImpl.java class (not shown in the above code snippets) and neither of them fire when selecting the MyUser asset from the drop down.  So neither of the classes are being called on the search.  If I force a search via the following line:
    MyUserSeviceProvider.getMyUserService().getAllMyUsers();
    the logging in both the Flex and Java classes works (and the java class returns the results as expected).  So I'm happy that these functions, as well as the linking between the Flex and the Java side is working correctly.
    The step that I can't seem to work out is having the selection of the asset in the drop down call the desired function automagically.  I've been digging into the SearchManager, the ServiceLocator and heaps of other classes, but I'm falling deeper and deeper into the rabbit hole...
    Can anyone shed some light on what they think might be needed to make the final link here?  I've been digging and digging into the code for days now and my brain hurts!!
    Any advice appreciated!!
    Thanks,
    Kristian

    Hi Saket,
    By 'not really complete' I'm assuming (hoping) that some work has been done on this already.  Our project requires the use of custom assets, so it's very important that we get this functionality running as soon as possible.
    Any help, unsupported or otherwise, would be great.  Feel free to email me any details if you'd prefer not to post anything public on the boards.
    Cheers,
    Kristian

  • Visual Studio 2013 is creating new feature every time new list definition is added

    We are using Visual Studio 2013 and details are as under:
    Microsoft Visual Studio Ultimate 2013
    Version 12.0.30501.00 Update 2
    We we add a new list definition in our project, it creates a new feature with it. If we delete the feature and add list definition in the existing feature, list is created but columns are not added in the list.
    Same thing happened if we rename "Feature1", a new feature is created every time a new list definition is created.
    This doesn't happen when we add a Visual WebPart.
    Also, we have three different custom list option in the drop down in new list creating wizard.
    Is this a bug or we are doing something different.   
    http://farhanfaiz.wordpress.com

    Intellisense has a bug in VS2013 where it doesn't recognize InitializeComponent when you start working on the XAML.  My feeling is that if you try to compile this app, it will run fine (as long as there are no actual errors).
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • Powershell Script to create "custom" Document Library

    I have a powershell script which creates a Document Library for every user in AD.
    This works, but rather than using the default Document Library I want it use a custom Document Library.  However this isnt working.
    My script to create the default Document Library is this...
    [System.Reflection.Assembly]::Load("Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c")
    $site = new-object Microsoft.SharePoint.SPSite("http://servername/sitename");
    $siteweb = $site.OpenWeb();
    $webs = $siteweb.Webs;
    $strFilter = "(&(objectCategory=User)(name=accountname))"
    $objDomain = New-Object System.DirectoryServices.DirectoryEntry
    $objSearcher = New-Object System.DirectoryServices.DirectorySearcher
    $objSearcher.SearchRoot = $objDomain
    $objSearcher.PageSize = 1000
    $objSearcher.Filter = $strFilter
    $objSearcher.SearchScope = "Subtree"
    $colProplist = "samaccountname"
    foreach ($i in $colPropList){$objSearcher.PropertiesToLoad.Add($i)}
    $colResults = $objSearcher.FindAll()
    foreach ($objResult in $colResults)
    $objItem = $objResult.Properties; $objItem.samaccountname
    $listTemplate = [Microsoft.SharePoint.SPListTemplateType]::DocumentLibrary
    $listId = $siteweb.Lists.Add($objItem.samaccountname, "", $listtemplate);
    $list = $siteweb.Lists.GetList($listId, $true);
    $roleDef = $siteweb.RoleDefinitions.GetByType("Contributor");
    $user = "domain\" + $objItem.samaccountname;
    $rolAssign = new-object Microsoft.SharePoint.SPRoleAssignment($user, "email", "name", "notes");
    $rolAssign.RoleDefinitionBindings.Add($roleDef);
    if(!$list.HasUniqueRoleAssignments)
    {$list.BreakRoleInheritance($true);}
    for ($i = $list.roleAssignments.Count - 1; $i -gt -1; $i--)
    { $list.RoleAssignments.Remove($i) }
    $list.RoleAssignments.Add($rolAssign);
    $list.Update();
    Now I have a custom Document Library named "TESTLIB" so if I substitute the line:
    $listTemplate = [Microsoft.SharePoint.SPListTemplateType]::DocumentLibrary
    with
    $listTemplate = [Microsoft.SharePoint.SPListTemplateType]::TESTLIB
    Then it errors with this...
    How can I script powershell to create a "custom" Document Library?
    Thanks

    The below link should help you in creating custom document library using powershell
    http://blogs.technet.com/b/heyscriptingguy/archive/2010/09/23/use-powershell-cmdlets-to-manage-sharepoint-document-libraries.aspx
    Vinod H
    Thanks for the link but I cant see anything to assist creating a custom library?  Was there something in paticular you saw?

  • How can i get a full url of video uploaded in asset library on sharepoint 2013

    Hi All,
    I have videos in SharePoint 2013 Asset Library, now i want display that videos in my SharePoint webpage as a webpart.
    Now, how can i get a full url of video uploaded in asset library?
    Thanks in Advance!

    The Asset library does a pretty good job of hiding the full URL. An "asset" item is actually a folder. The folder contains the video and support files like preview thumbnails.
    So, if you upload a video named butterfly.wmv to http://yourSite/sites/demo/Assets the path to the video would be http://yourSite/sites/demo/Assets/butterfly/butterfly.wmv. If the user changed the name while uploading the file to "Pretty bugs"
    the URL would then be http://yourSite/sites/demo/Assets/Pretty%20Bugs/butterfly.wmv.
    Probably the best way to explore these hidden folders and discover the "real" URL is to use SharePoint Designer 2013.
    Launch SharePoint Designer and open your site.
    In the Navigation area click "All Files". (If you don't see All Files then your administrators may have partially locked down SPD.)
    In the list of files and folders click the Assets library.
    Find and click your video (you will see the "Name" as entered in the file's properties, not the file name.)
    Find the video file, right-click it and click Properties.
    Copy the Location.
    If you just want to display the video in the page:
    Edit the page
    Click INSERT
    Click Web Part
    From the Media and Content category select Media Web Part and click Add.
    Edit the web part (click the web part's dropdown)
    From the MEDIA ribbon click Change Media
    Click From SharePoint and navigate to your assets library and pick a video
    Mike Smith TechTrainingNotes.blogspot.com
    Books:
    SharePoint 2007 2010 Customization for the Site Owner,
    SharePoint 2010 Security for the Site Owner

  • How to Get a Video Thumbnail preview image in sharepoint Asset Library

    namespace ConsoleApplication3
    class Program
    static void Main(string[] args)
    using (var site = new SPSite("http://contoso/sites/teams"))
    using (var web = site.OpenWeb())
    var list = web.Lists.TryGetList("Videos");
    var videoProperties = new Dictionary<string, object>();
    videoProperties["Keywords"] = "Intranet Video";
    //videoProperties["AlternateThumbnailUrl"] = "/_layouts/images/preview.jpg";
    UploadVideo(list, @"C:\Downloads\Video3.mp4", videoProperties);
    public static void UploadVideo(SPList list,string fileName,IDict ionary<string,object> properties)
    SPFile file;
    using (var fileStream = File.OpenRead(fileName))
    var urlOfFile = SPUrlUtility.CombineUrl(list.RootFolder.ServerRelativeUrl, Path.GetFileName(fileName));
    file = list.RootFolder.Files.Add(urlOfFile, fileStream, true);
    list.Update();
    //listid = list.ID.add();
    SPListItem listItem = list.GetItemById(file.ListItemAllFields.ID);
    //SPListItem listItem = list.GetItems("Video3");
    var videoContentType = list.ParentWeb.Site.RootWeb.AvailableContentTypes["Video"];
    // listItem["ContentTypeId"] = videoContentType.Id;
    foreach (var property in properties)
    listItem[property.Key] = property.Value;
    listItem.Update();
    in this code "SPListItem listItem = list.GetItemById(file.ListItemAllFields.ID); " im getting null reference exception.an i have tried with other line "var listItem = file.ListItemAllFields;" same error.any one help me to get solve this
    issue.And how to Get a uploaded video Thumnail image.

    Hi,
    I did a test with your code in my environment and it works fine.
    For a better troubleshooting, I suggest you debug your code step by step. You may need to check if file.ListItemAllFields.ID is valid.
    If you want to get video Thumnail image, there is a column named Preview Image URL, the internal name of the field is AlternateThumbnailUrl.
    You can get the field value using Sever Object Model like below.
    String url = item[“AlternateThumbnailUrl”].ToString();
    Here is a similar thread for your reference:
    http://social.technet.microsoft.com/Forums/en-US/251974d8-18ac-4ff9-88a2-633b5bd80fce/get-asset-library-column-value-preview-image-url-programmatically?forum=sharepointgeneralprevious
    More information about how to get list item using Server Object Model:
    http://msdn.microsoft.com/en-us/library/office/ms460897%28v=office.14%29.aspx
    Best regards,
    Zhengyu Guo
    Zhengyu Guo
    TechNet Community Support

Maybe you are looking for

  • Timeout for  "new BufferedReader (new InputStreamReader (System.in));"

    BufferedReader in = new BufferedReader (new InputStreamReader (System.in)); String message = in.readLine();  The above code waits infinitely until the user enter the data from the command line and presses enter key. The following code can provide a t

  • Quantity of SQL History shrinking

    I've noticed since about Dec. 2006 or Jan. 2007 that the quantity of SQL History kept has varied greatly and generally shrunk. In the last five days it has shrunk from 21 days to 10 days. I currently only have 47 entries in SQL History. I estimate th

  • PGP error in PI 7.4 - BouncyCastle Provider not found

    Hi , I am working on PGP encryption in SAP PI7.4 . I have followed below link : PGPEncryption Module: A Simple How to Guide Using PGP in Process Integration But while doing end to end scenario it is givingg error : Exception caught by adapter framewo

  • Connecting a wireless nanny cam to iMac - no RCA connection

    I have just migrated from the PC to Mac world. I have a wireless nanny cam that I use to record to my PC (like a DVR) by installing in my PC a DVR/PCI card that has RCA input jacks. A receiver would connect into the RCA jacks and thus receive the wir

  • BRS Import

    while upload datas in ff67 we found difficulties to uploading datas becuase it is taking too much time to upload. so we wanted to import ff67 data in shortcut method. so i went thru ff_5 to import data. but i am not knowing what method i have to give