Is it possible to fetch metadata property in .js file?

hi,
     Is it possible to fetch metadata property field in .js file.
     if so, can help me with the code or example...
Regards,
Fazz

Using server side java script (ecma) it is possible to fetch,  Not possible with client side javascript directly. Alternative for client side javascript making a ajax json request & then parse it.

Similar Messages

  • Add metadata/XMP to psb file

    Is it possible to add metadata/XMP to a .psb file? In Bridge the File Info Panel option is greyed out, and so are all the fields in the metadata panel.
    If it's not possible to add metadata to a psb file, can anyone suggest a suitable solution so that when I save a JPEG from the psb file, I can easily get the metadata for the image into that JPEG file? I want to make sure that if I later make some changes to the psb and re-save as a JPEG, all the metadata that was in the original JPEG would not get lost (or if it does get lost, there's an easy way to add it back again).
    Thanks
    Dave

    Thanks for the info, I tried saving a RAW file as a psb like you suggested, and it did indeed let me add metadata in Bridge.
    So I did some more testing, and I still have no idea why I can't add metadata/XMP to these two psb files I have. They were both created by PTGUI, but I just tried creating a new psb file with PTGUI, and I could add metadata to it okay, so it doesn't seem PTGUI is causing the problem. I also tried making the file large dimensions and megabytes wise (like the two problem files), and still I could add metadata to it okay, so it doesn't seem that large file size or dimensions is the problem either.
    So the solution seems to be to take a new psb file, copy all the layers from the problem psb into it, and then save the new psb file and delete the old one, then I can add metadata to the new psb file okay.
    Thanks for the help
    Dave

  • Rename MetaData property in KM

    Hi All,
    I am using a metadata property called "year"  for my document repository. All the existing documents are using this property.
    Now if i want to change the display name to " Calendar year" , it changes and saves.
    But when i create a new document in the repository, the property vanishes.All other properties are there. Now when i rename it back to "year" , it appears again.
    Any idea how to rename an existing metadata property , which is being used in repository ?
    Regards
    PN

    HI ,
    Is it possible to change the label directly for the Meta data property created in the "properties " of the metadata since the display name is actually the name which i enter for the property?
    I see the "label" field in the custom metadata property "year" which i had made .
    Kindly let me know
    Regards
    PN
    Edited by: Portal Newbie on Jul 3, 2008 5:35 AM
    Edited by: Portal Newbie on Jul 3, 2008 5:36 AM

  • How to implement DC metadata property in KM

    Hi all,
        I have requirement like adding DC metadata property for KM documents. Can any one please help me regarding this. i have followed this document
    http://dublincore.org/documents/dces/
    Regards,
    Kumar.

    Hi,
       I already have this document, in this document explain that how to search the DC metadata using TREX.
    My requirement is DC metadata will display with document name, like createdBy, Author, ModifiedBy..
    How can i add DC metadata in to documents in KM like KM predefined properties?
    Regards,
    Kumar.

  • Metadata property as Details Property in Details Screen

    Hi,
    is there any way (java class) to display a metadata property as a details property in a details screen (I think the default details area is overview_description).
    Thanks in advance.
    Regards
    Ray

    Hi,
    you can create a class that extends AbstractResourceDetailsProperties and renders a metadata property, similiar to the standard ModifiedDetailsProperty, for example, that renders the Modified Property.
    For example if I have a property named Customer I would create a class called CustomerDetailsProperty something like this:
    public class CustomerDetailsProperty extends AbstractResourceDetailsProperties {
         public CustomerDetailsProperty() {
         public boolean isPropertyAvailable(IResource resource) {
              com.sapportals.wcm.repository.IProperty tempProperty = null;
              try {
                   if (getPropertyName() != null)
                        tempProperty = resource.getProperty(getPropertyName());
              } catch (ResourceException rEx) {
                   log.errorT("Could not check property availability for resource < "
                             + resource
                             + " > "
                             + LoggingFormatter.extractCallstack(rEx));
                   return false;
              return tempProperty != null;
         public Component renderDetailsProperty(IResource resource) {
              try {
                   com.sapportals.wcm.repository.IProperty customerProp = null;
                   com.sapportals.wcm.repository.IProperty tempProperty = null;
                   if (getPropertyName() != null) {
                        tempProperty = resource.getProperty(getPropertyName());
                        customerProp =     resource.getProperty(PropertyName.getPN("http://sapportals.com/xmlns/cm", "Customer"));
                   if (tempProperty != null) {
                        String header =     getPropertyLabel(tempProperty, resource.getContext());
                        GridLayout grid = new GridLayout();
                        grid.addComponent(1, 1,     renderShortDateProperty(tempProperty, resource));
                        if (customerProp != null) {
                             Component customer = PropertyRenderUtil.renderProperty(customerProp , resource,     0);
                             Link userLink = null;
                             if (customer instanceof Link) {
                                  userLink = (Link) customer;
                                  userLink.setLinkDesign(LinkDesign.RESULT);
                                  grid.addComponent(2, 1, userLink);
                                  grid.getCell(2, 1).setWidth(";padding-bottom:3px;");
                             } else {
                                  grid.addComponent(2, 1, customer);
                                  grid.getCell(2, 1).setWidth(";padding-bottom:3px;");
                        return render(header, grid);
                   } else {
                        return null;
              } catch (WcmException wcmEx) {
                   log.errorT(
                        "Could not render lock property for resource < "
                             + resource
                             + " > "
                             + LoggingFormatter.extractCallstack(wcmEx));
              return null;
         public IResourceDetailsProperty getNewInstance(int priority) {
              CustomerDetailsProperty detailsProperty = new CustomerDetailsProperty();
              detailsProperty.setPriority(priority);
              return detailsProperty;
         public IPropertyName getPropertyName() {
              try {
                   return PropertyName.getPN("http://sapportals.com/xmlns/cm", "Customer");
              } catch (ResourceException e) {
                   e.printStackTrace();
                   return null;
         static Class _mthclass$(String x0) {
              try {
                   return Class.forName(x0);
              } catch (ClassNotFoundException x1) {
                   throw new NoClassDefFoundError(x1.getMessage());
         private static Location log =
              Location.getLocation((com.mycompny.CustomerDetailsProperty.class).getName());
    Best regards,
    Avishai Zamir

  • Is it possible to pass the property value dynamically to composite.xml

    Hi,
    Is it possible to pass the property value dynamically to composite.xml from bpel?
    For ex:
    <property name="bpel.config.auditLevel">$variable</property>
    I will get a different $variable value every time to bpel.
    Also, when I included the following code inside .bpel
    invoke name="InvokeListFileFTPAdapter-ListFiles"
    partnerLink="ListFilesFTPAdapter"
    portType="ns3:FileListing_ptt" operation="FileListing"
    inputVariable="listfilesRequest"
    outputVariable="listfilesResponse" bpelx:invokeAsDetail="no">
    <bpelx:toProperties>
    <bpelx:toProperty name="bpel.auditLevel"
    variable="AuditVariable"/>
    </bpelx:toProperties>
    </invoke>
    where auditvariable='Off'
    I don't see any change in em. The invoke activity is showing full payload, Can't we turn off the audit level from .bpel not from composite.xml

    Hi,
    You can use bpel preferences for that:
    1.
    In the composite add a property, for ex:
    <component name="test">
    <implementation.bpel src="test.bpel"/>
    <property name="bpel.preference.exam">abc</property>
    </component>
    2.
    To get the value within your bpel process use: ora:getPreference(exam)
    3.
    Then, you can change the value in the EM:
    Under Farm_soa_domain>weblogic domain>your_domain>soa_server1
    Right click on menu>system Mbean browser>oracle.soa.config>server:soa_server1>SCAComposite>your project>SCAComposite.SCAComponent>processName>
    Now, click on the properties attribute : you can see the exam property and change the value.
    Arik

  • Failed to fetch metadata

    I have NW2004S trial version installed without any problems.
    But when dragging a webservice into an iView I have the message ´failed to fetch metadata´. and Portal request failed due to: ....
    I have created DynamicWSProxies in visual admin according to the how to consume enterprise services using VC guide.
    FU2_800 with url: http://erp.esworkplace.sap.com and FU2_800_METADATA with url http://erp.esworkplace.sap.com/sap/bc/srt/wsil

    Hi to all of you,
    I hope you didn't miss the configuration of the proxy settings for your WebServiceProxies:
    1. Go to Visual Admin.
    2. Go to Server->Services->Web Services Container->Settings (on the bottom tabs)
    3. Set the proxy settings (if you have such).
    Restart the WS connector by:
    1.Go to Connector Container->sap.com/com.sap.portal.connectors.ws
    2. Stop and start the connector (using the stop and start buttons on the top toolbar).
    If this still doesn't work, I'd set the WS connector's log level to "ALL" and recreate the problem. The traces are very good and can give you some idea why the connection is broken.
    Regards,
    Natty

  • XML form and metadata property of a resource

    Hi,
    Is there any way to set custom metadata property of KM resource by entering it into input field of XML form?
    Can we relate property of a KM resource to the field created in XML form?

    Hi Deepti,
    check out the last reply in this <a href="https://forums.sdn.sap.com/thread.jspa?threadID=9449">thread</a>. It tells you how to work with predefined property meta data in the XML forms builder.
    Hope this answers your question,
    Robert

  • Multiselect Metadata Property in XML Form

    I have created an xml form to create news items for our company. The basics of the form can be found on http://service.sap.com/nw-howtoguides at Portal>KM and Collaboration>KM. I would like to add a custom metadata property that i have created that is multiselect. However i can't seem to figure out how to add the multiple checkboxes.
    Anyhelp would be appreciated.

    Hi Carsten,
    I think you might be able to help me out in this.
    I have created a multi valued property named “sls_region” with allowed values All, America, Europe. I have assigned this property in custom parameter section of Editxsl file of xml form.
    I have created a filter with “sls_region “property with all allowed values for property available in dropdown.
    While uploading news whatever value is selected in dropdown of filter gets assigned to custom property of the form.
    To make it more clear
    sls_region has value All, America, Europe
    If in filter dropdown America is selected …..custom property has value set as America
    If in filter dropdown Europe is selected …..Custom property has value set as Europe
    If in filter dropdown All is selected …..Custom property has value set as All
    This is working fine .Code which I am using for this is
    <xsl:param name="ext_mars:sls_region" />(Defined in custom parameters section)
    <input size="30" type="hidden"> 
    <xsl:attribute name="name">wcmprop.mars:sls_region</xsl:attribute>
    <xsl:if test="$ext_mars:sls_region=' '">
                     <xsl:attribute name="value" /> </xsl:attribute>
                </xsl:if>
                 <xsl:if test="$ext_mars:sls_region!=' '">
                   <xsl:attribute name="value">
    <xsl:value-of select="$ext_mars:sls_region"/></xsl:attribute>
                </xsl:if>
    </input>
    But I need to change functionality like when user select All in dropdown of filter, all available values for that custom property get sets in form.
    If in filter dropdown All is selected …..Custom property should have value set as All, America, Europe
    Please guide me how to modify above code to achieve this.
    Regards,
    Madhvika

  • Is it possible to fetch matrix column through formatted search in UDF?

    HI,
    Is it possible to fetch the value of first row of quantity column in user defined field through formatted search?
    SELECT $[$38.11.number]
      does work but in user defined column of matrix only. I have requirement that when there will be only one row in matrix, the quantity should be accessible in user defined field. and for this, the above query gives internal error.
    thanks and regards,
    Binita

    David,
    I used the query sent by you and further facing following problem. may be my filtering is on wrong parameter.
    SELECT $[rdr1.quantity] * $[ordr.u_qty1.number] from ordr o, rdr1 r where o.cardcode= $[ordr.cardcode] and r.itemcode = $[rdr1.itemcode]
    this query gives correct result when assigning to matrix column.
    when I applied the same query to user defined field, then after selecting the row as suggested by you, it does give value but, in this case, it takes it from rdr1 instead of from matrix.
    for example, I have selected item A001 in matrix. if that item is already there in rdr1, then it fetches its quantity from table instead of that provided by me in matrix's quantity column
    Please guide further,
    thanks in advance,
    Binita
    Edited by: Binita  Joshi on Jun 5, 2008 2:45 PM
    even
    SELECT $[$38.11.number] * $[ordr.u_qty1.number] from ordr o, rdr1 r where o.cardcode= $[ordr.cardcode] and r.itemcode = $[$38.1.0]
    is not working. no clues.

  • To fetch metadata of previous checked in document

    Hi All,
    Is there a way to fetch metadata value of immediate previously cheked in document of a particuler type.
    Is there a way to interact with database directly from ucm...something like querrinng the database directly thru idocscript or thru the script segments available in the ucm under the rule for profiles tab.
    Or any other suggestion to go abt it.
    Thanks in Advance.

    Hello,
    I think you should write a little bit more about how your scenario looks like in the real life.
    1. the first thing I think of is "Check in Similar" button which appears on the screen when you check in a new item
    2. however, what is "immediate previously checked in document of a type" for you? Do you want use the metadata field "Document Type"? Or, is the distinction based on anything else (e.g. profiles)? Do you want the document of this user, or of any user, who could check it in parallel?
    As for querying the database, do you want to use it to reach the scenario above? Or anything else?
    There are several ways how to reach database from UCM. If you want to use it for the scenario above I guess your first option will be a custom component, which will create a new service for you (unless you can use a standard one). Within this service you will create few queries - custom components provide a framework to do so quite easily.
    J.

  • How to limit visiblity of a new metadata property im KM?

    I was able to create a NEW metadata property
    plz note folder validity pattern(csv) was set to /document/myfolder/**
    Then i navigated to
    system configuration->cofigurtaion->content management->Global services->property meta structures and addded it to default properties structures.
    The above displays the NEW property in the folder,text file,html....upload area in 'myfolder'.
    This is working fine.
    Now to see this new property in the KM repository i navigated to
    system configuration->cofigurtaion->content management->User interface->settings->collectionrendererlist->admincollection list renderer->edit.
    I then added to the 'displayed properties' my NEW metadata propery.
    The Problem is that this NEW property is being displayed for every folder in KM repository.i want to limit it to 'myfolder' only.

    Hi,
    Please refer to this thread:
    https://forums.sdn.sap.com/thread.jspa?threadID=353368
    Greetings,
    Praveen Gudapati

  • Record fetch size property hint

    Hi all,
    I'm using Oracle Forms Builder 10g and Oracle DB 11g. I have a LoV which selects about 150k rows. In fact in the DB the select * from <table> returns first 50 rows for about a second. My question is: What value to set for Record fetch size property to receive the first records faster because now it is loading about 20-30 seconds/which is unacceptable for me :) /. I checked docs for this property and if i increase it i suppose it will display rows faster?
    Thanks in advance,
    Bahchevanov.

    The records are composed of two columns, a code (5 characters) and a description (average size 25 characters). The average size of the record is then approx. 30 characters. From the documentation available in Forms:
        Also, the way in which the actual value is computed when a value of 0 is
        specified has changed. The actual value in this case is now
        0.5 M / total_record_size (i.e. sum_of_column_sizes, not max_column_size),
        but no more than 100 and no less than 20.  The coefficients (0.5 M, 100, and
        20) can be changed by setting these environment variables: 
        FORMS_COMPUTED_RGFS_DIVIDEND, FORMS_MAX_COMPUTED_RGFS,
        and FORMS_MIN_COMPUTED_RGFS.I believe that we are running with the default. Is this OK for this data set? Do we need to set the environmental variables listed above?
    Thanks,
    Thomas

  • Failed to fetch metadata from web service

    Hi,
    I am trying to use a webservice in a model. My web service system is defined as http://<server>:50013/?wsdl
    and i can find the web service in the find data tab.
    When I drag the webservice to my model story board I get the following error message:
    Failed to fetch metadata
    Portal request failed due to: Operation {0} not found
    Any help is highly appreciated.
    Best regards,
    Jan

    Solved it. I tried to drag the data service directly into a layer. That did not work. When I drag it on to the storyboard and move it to a layer afterwards it works correctly.

  • Introducing Custom Metadata property through a package

    Hi,
    I want to introduce a new custom metadata property for my assets which could be displayed in the DAM metadata UI of an asset as below. I can see some steps mentioned to do this in http://dev.day.com/docs/en/cq/current/dam/how_to_edit_metadata.html. However I want to do this through a package that I am developing. Hence whenever my package is installed in CQ some custome metadata properties must be automatically regisitered for all assets.
    To summarize I have following queries:
    How to create/register custome metadata proerties for assets in a package using CQ APIs ?
    Once a custome metadata prperty is registered how to update its value using Asset API ?
    Appreciate any help here!

    Check http://www.wemblog.com/2013/01/how-to-associate-cug-with-dam-asset-in.html is that helps.
    Yogesh

Maybe you are looking for

  • Movie previews in mail.app

    On two different machines with Lion installed, I'm finding that any messages in Mail.app that have movies attached take forever to load and give me the spinning beach ball of death. I can view other attachments fine in Mail.app. Online via me.com the

  • Document atatchment to PO/PR/RFQ

    Can any body please suggest on can we attach a document to PR or PO or RFQ ?? Buyer prefer attaching a pdf file to quotation if possible, if not at least in PR/PO, If yes please suggest how?

  • File is visible in content server even after deletion

    Hi After a file has been deleted, it is still showing on the Search Results page. Although when I click on the Info button or the file Id, it shows the following error Error 404--Not Found From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1: 10.4.5

  • HT204291 Is it possibly to have iTunes music play out of both the computer and AppleTV while using Airplay Mirroring for the TV?

    Is it possibly to have iTunes music play out of both the computer and Apple TV while simultaneously using Airplay Mirroring to view the computer screen on the TV? Whenever I try, by clicking on 'computer' radial button for volume in iTunes Airplay, t

  • How to find posted documents for Master Data in BW?

    Hello, We are planning to use Knowledge Warehouse to store some documents against some Master Data like 0PROJECT. The idea is to use those documents when reporting on real cost versus budget. We created a custom interface that we use to create new ma