Accesing custom persistent property from script

Hello
I´m trying to add a custom persistent property to documents and layers, but when I try to access it from the script, always have error 55 saying that the object -layer/doc- doesn´t accept that property.
I defined the property within the VersionedScriptElementInfo section of the project fr file:
     resource VersionedScriptElementInfo(1)
             kFiredrakeScriptVersion, kCoreScriptManagerBoss, kWildFS, k_Wild,
             Property
                 kIsLocked,
                 p_isLocked,
                 "Item is locked",
                 "Item is locked",
                 BoolType,
                 kNoAttributeClass,
             // Connects this plug-in's events and properties to scripting.
             Provider
                 kCustomLockScriptProviderBoss,    // provider boss ID
                     Object { kLayerObjectScriptElement },
                     Object{ kDocumentObjectScriptElement },
                     Property{ kIsLocked, kReadWrite },
p_isLocked is defined using a free id:
     enum CustomScriptProperties
         p_isLocked = 'LVLk'
and kIsLocked is also declared:
     DECLARE_PMID(kScriptInfoIDSpace, kIsLocked, kCustomPrefix + 0)
Both, kDocBoss and kDocumentLayerBoss, have an addin declaring the custom lock implementation:
     IID_ICUSTOMLOCK,kCustomLockImpl,
Script code is something like this:
     app.activeDocument.layers.item(0).isLocked=true;
Do you know what´s happening?
Is it neccesary to add custom data on new doc/layer responder before accesing it?
Any ideas will be welcome
Regards

I think I have it!!!
Custom property name must be as declared witin the third field.
In this case, it must be itemIsLocked.
Sorry for such a trivial question.
Regards

Similar Messages

  • Creating Custom persisted properties?

    Hi All,
    As as read atg.adapter.gsa.GSAPropertyDescriptor class will be use to create custom persisted properties. Then what is difference b/w custom persisted property, that we creating using property-type = sub class of above class and simple property that is in any table?
    Hint: custom persisted property is declared in .xml file outside of table just like transient property.
    -RMishra

    Hint: custom persisted property is declared in .xml file outside of table just like transient property.You can not have a persistent property outside <table>. If you do that your repository definition xml validation will fail during startup.
    As as read atg.adapter.gsa.GSAPropertyDescriptor class will be use to create custom persisted properties. Then what is difference b/w custom persisted property, >that we creating using property-type = sub class of above class and simple property that is in any table?Any regular persistent property in your repository is going to be handled through GSAPropertyDescriptor or its sub-class. In case you specify property-type as a sub-class of GSAPropertyDescriptor, then in that case some additional methods like rawToReal() and realToRaw() come into picture while calling getPropertyValue() and setPropertyValue() respectively.
    rawToReal() - converts from the database value to the property value as returned by RepositoryItem.getPropertyValue(). E.g. for a property that specifies a reference to another item, we can convert the ID stored in database of an item into the RepositoryItem itself to be returned from getPropertyValue().
    realToRaw() - converts from the value given to setPropertyValue into the value given to which will actually be stored in the database. E.g. a property that specifies a reference to another item, we can convert from the RepositoryItem object passed in () to its ID.
    The above default implementations are already provided in ATG Repository APIs and if you want to customize or change the default behavior then you can extend GSAPropertyDescriptor and define that class as property-type.
    As Shaik mentioned, one GSAPropertyDescriptor customization is already there in form of EnumPropertyDescriptor which comes into picture for "enumerated" data types. It is done by not specifying the class name in property-type but through an indirect approach where a type name for a repository property can be registered with this method:
    RepositoryPropertyDescriptor.registerPropertyDescriptorClass(String typeName, Class propertyDescriptorClass)
    Hope it helps.

  • How can I get the value of a custom property from a resource object?

    I am trying to get the value(s) of a custom property, called "status" within a method. The method has an object of type IResource available to it.
    I have tried the following:
    PropertyName propName = new PropertyName("","status");
    value = res.getProperty(propName).toString();
    However, I am getting a NullPointerException when I try to create the PropertyName instance.
    Is there a better way to get the value of a specific property from a resource object?
    Thanks,
      Tom

    Thanks Praveen.
    I was missing the default namespace of "http://sapportals.com/xmlns/cm" - I thought I could just pass an empty string for the namespace, but it looks like I must always specifiy, even if it is default.
    Tom

  • How to Handle Automatic Skip Property of Item in Oracle Forms through Custom.pll or from other methods

    Hi All,
    How to Handle Automatic Skip Property of Item in Oracle Forms through Custom.pll or from other methods.
    This is a enhancement requirement.
    When ever user enter value in field 1 then automatically cursor should go to next field.

    Hello Bobb,
    You can create a trigger(when-list-changed) for each list item where you could:
    1.recreate the record groups and then use POPULATE_LIST so you can hide the selected values. In forms builder online help there are some good examples about create record groups dynamically.
    or
    2.you can perform a validation instead of hiding the selected values. If the values is already selected the display a message 'Value already selected....'
    Second option is much faster(only an 'if clause')
    Hope this helps.
    Regards,
    Alex

  • Printing custom barcode from script

    Hi Friends,
    Need help.
    I have created a barcode from SE73.  I used it in a layout .  I want to print it from Script ( With  driver program) .  I am getting print preview . But when I give print barcode is not coming.   But the same barcode I used it in SMARTFORM.  from this I am able to get preview and print.  How to solve this. Please help me.

    Hi,
    If you are using zebra printer for Barcode printing then,
    1. for scripts you will have to write barcodes in postscript format (manual coding format).
    2. smartforms are higher version and are integrated with zebra printer. So there should not be any problem in converting the barcode character format and printing it.
    If you are using laser printer (normal printer)
    1. barcodes through character formats in scripts will not work.
    2. will work with smart forms.
    What is meant by manual coding???? pls help me.

  • Calling java from scripting

    Hello,
    I would like to integrate some scripting capability in my web application.
    The main purpose is to cover the following scenario :
    - I develop a web app with JSP technology, packaged in a MyAPP.WAR file containing my application and another file (MyCustomer.RAR?) containing installation specific informations. I want the MyApp.WAR to be the same for all my customers, just having the RAR file specific to each customer (installation).
    - In this ressource file, there could be some scripting functions that will be called from my JSP Pages to change the default presentation with some customer particular informations.
    Those informations would be extracted from my java data model. The purpose is to enable the customer to code some little script, and to avoid coding those in Java.
    The question I have on that are :
    1/ is it possible to call java instances from scripting language (I read on apache that the answer was yes for some of them), but I would like to know if javascript can do that.
    2/ Can I recover the "result" of the script in JSP ?
    An example :
    1/ The class containing a marvellous property
    class MyClass {
    public String myProperty;
    2/ The JSP page :
    <stlLib:callScript(Customer.RAR, "ScriptToCall",anInstance) />
    <stlLib:getResult ???>
    3/ A user script (pseudo-code)
    Customer 1 :
    Function ScriptToCall(object) {
    variable iwanttoshowsquareroot;
    iwanttoshowsquareroot = squareroot(object.myProperty);
    return iwanttoshowsquareroot ;
    Customer 2 :
    Function ScriptToCall(object) {
    variable mychoiceisdifferent;
    mychoiceisdifferent= object.myProperty / 2;
    return mychoiceisdifferent;
    According to what ScriptToCall looks like the result on page would be different
    Thanks in advance for your advises
    Olivier.

    1) The script will be running in the browser, not the server, yes? So in Netscape you can load Java objects via Javascript, but IE doesn't seem to support this. Although in either, you can call methods on an applet in the page. But you can't call a JS function from the Java code in the JSP page, since that is only executed on the server.
    2) Only if the "result" is submitted back to the server.

  • Custom info panel from CS5 not showing in CS6

    Do I need to move the custom panel entry from
    "\AppData\Roaming\Adobe\XMP\Custom File Info Panels\3.0\custom" to a new location?
    Also on a related front, at NAB I was asking about adding dropdown boxes to entries so we could standardize on a few set entries to make searching easier. I couldn't get an answer there - any ideas on the forums?

    You can design custom metadata panels - I have one for Client's name, project name, element type, Approved, etc. Whenever we generate files for a client we try to get the data filled in. It makes searching for clips from previous projects much quicker. The custom panel isn't showing in Bridge - i usually appears at the bottom of the metadata list after "File Properties" IPTC Core" etc.
    The dropdown box question - Some of the data we want to be picked from a list to make searching more acurate. For instance - "Element Type" would either be "Interview", "Background", "Logo", etc. We just wnat everyone labeling things with the same terms. (See "Property Release Status" under the IPTC Extension)

  • NoClassDefFound error when using custom Java package in scripting QPAC

    Hi,
    I compiled a little Java-package (.jar), which contains a class that uses
    com.adobe.workflow.datatype.form.FormDataTypeInstanceImpl.
    I put my library in the lib folder of JBoss (...\server\all\lib).
    Then I'm was trying to invoke my custom class in the scripting QPAC. But I'm constantly getting the error message
    NoClassDefFound com\adobe\workflow\datatype\form\FormDataTypeInstanceImpl. I already put
    adobe-wkf.jar (and various others) in the lib folder of JBoss. Without ever succeeding. Unfortunately.
    I'm going mad about this.
    Is there a way to address a custom package in the scripting QPAC, which uses
    FormDataTypeInstanceImpl?
    Steve

    Removing the LiceCycle jars from the lib folder did not work. I still get the same error message.
    What I wanted to do is provide some basic utilities, without having to spend a lot of time designing QPAC user interfaces.
    My utility class contains methods like this one:
    @param 
    pFormData
    @return
    @throws 
    ParserConfigurationException
    @throws 
    SAXException
    @throws 
    IOException
    public static 
    org.w3c.dom.Document formToXml
    FormDataTypeInstanceImpl pFormData
    throws 
    ParserConfigurationException, SAXException, IOException 
    byte
    data = pFormData.getXFAData
    InputStream objXMLInputStream = 
    new 
    ByteArrayInputStream
    data
    // create new Document object
    DocumentBuilderFactory objFactory = DocumentBuilderFactory.newInstance
    DocumentBuilder objBuilder = objFactory.newDocumentBuilder
    org.w3c.dom.Document objDocument = objBuilder.parse
    objXMLInputStream
    return 
    objDocument;
    Even without ever invoking the aforementioned method, I get the error
    NoClassDefFound: FormDataTypeInstanceImpl. Which is pretty weird.
    Do I have to write my own classloader?
    Steve

  • How to use search REST api to get custom managed property data for anonymous user?

     
    I am trying build a public portal with anonymous access and i am trying to read some
    content from custom managed property using search REST api in sharepoint 2013. I have tried to enable all possible attributes of the managed prop. Like searchable,queryable,safe etc. also i am including queryparametertemplate in my REST api search query. But
    still i am not able to retrieve the managed prop. For an anonymous user. The same query returns the value if i am logged in.
    Any Help is greatly appreciated. 
    Thanks,
    Rakesh
    Thanks, Rakesh

    Hi Rakesh,
    To enable anonymous Search REST queries, we need to create queryparametertemplate.xml and upload it to the correct library in SharePoint.
    From your description I can know that you have created the file, then I recommend to check the things below:
    Please use “QueryTemplatePropertiesUrl” instead of “queryparametertemplate” in the Search REST API query as following: &QueryTemplatePropertiesUrl='spfile://webroot/queryparametertemplate.xml'.
    Make sure that the Query Properties you need have been added to the QueryProperties element in the queryparametertemplate.xml file.
    Make sure that the query parameters you need have been added to the WhiteList element in the
    queryparametertemplate.xml file. For example, if you want to use Refiners in the REST API, then the Refiners should be added to the
    WhiteList element in the queryparametertemplate.xml file as following:
    <a:string>Refiners</a:string>.
    You can also debug setting properties in anonymous Search Rest queries following the link below:
    http://www.mavention.com/blog/debugging-setting-properties-anonymous-search-rest-queries
    More references about anonymous Search REST:
    http://blog.mastykarz.nl/configuring-sharepoint-2013-search-rest-api-anonymous-users/
    http://msdn.microsoft.com/en-us/library/office/jj163876%28v=office.15%29.aspx#bk_AnonymousREST
    Thanks,
    Victoria
    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]
    Victoria Xia
    TechNet Community Support

  • JMS event generator extract custom jms property

    [cross posted from integration.interest - this seems the correct place to post]
    Hi, I was looking for a way to enable a workflow/process to extact a custom jms property that is send with a jms message to the jms event generator.
    So the client inserts name/value pair inside the jms message, the event generator picks up the message and starts a workflow. How can I extract that custom name/value pair once inside the workflow/process ?
    TIA

    Hey can u tell me the solution for this problem.....I am also facing similar problems......Help is appericiated....

  • Dynamic cell associated value as query string parameter in custom hyperlink property of KPI of scorecard in PPS SP2013

    Can we pass dynamic cell associated value [of scorecard] as query string parameter in custom hyperlink property of KPI of scorecard in PPS SP2013 , so that we can pass those values to another page 
    How to get those cell associated values and set these dynamic value as query string parameter in custom hyperlink property of KPI of scorecard in performance point services in sharepoint 2013

     I could somehow link to the table name, but that can be changed...  Any ideas?
    Not sure if this will help or not but maybe a little from several areas might point you in the right direction.
    If you are concerned about users changing the table name then you can define a name to reference the table and then if the user changes the table name then the Refers to automatically changes to the new table reference but your defined name remains the same.
    However, if users want to break a system even when you think you have it bullet proof the users come along with armour piercing bullets.
    Example:
    Insert a table (say Table1)
    Go to Define a name and insert a name of choice (eg.  ForMyTab1)
    Then click the icon at the right of the Refers to field and select the entire table including the column headers and it will automatically insert something like the following in the Refers to field.
    =Table1[#All]
    Now if a user changes the table name then Table1 will also automatically change.
    Example code to to reference the table in VBA.
    Sub Test()
        Dim wsSht1 As Worksheet
        Dim lstObj1 As ListObject
        Set wsSht1 = Worksheets("Sheet1")
        Set lstObj1 = wsSht1.ListObjects(Range("ForMyTab1").ListObject.Name)
        MsgBox lstObj1.Name
    End Sub
    Regards, OssieMac

  • No search result using managed property from a column of a published infopath form

    Hi,
    I'm trying to use a managed property in the advanced search to retrieve only words from a column of a published InfoPath form. We are using FAST Search and verify that the column are being crawled by checking the crawled property in Central Admin but still
    cannot retrieve search result for the managed property. We also do a full crawl before testing the search. Thank you..

    Hi Rommel,
    When we create a column from a list (not site column), then we need create list item with this column value, then we need to full crawl, then the the crawled propery ows_listColumnName will be generated, then create a managed property to map this
    crawled property(start a full crawl again if needed), then add the custom managed property in advance search web part property, then check again.
    Here is an article about how to add the custom managed proerpty in advanced search web part, you can take a look.
    http://waelmohamed.wordpress.com/2011/05/31/add-custom-search-properties-in-your-advanced-search-sharepoint-2010/
    Thanks
    Daniel Yang
    TechNet Community Support

  • Remove property from a OOTB component

    Hello,
    I want to remove an OOTB property from a component - Can I do it using dyn admin or by creating a new properties file ?

    Hi ORA-100,
    For example if you want to remove a ootb property-firstName.
    1. Search & open the repository you want to extend in dyn/admin (in our case it is ProfileAdapterRepository)
    2. Click on "Examine Repository Definition" and there you can see-  CONFIGPATH Filename : /atg/userprofiling/userProfile.xml
    In the userProfile.xml search the item-descriptor "user" and see a table-  <table name="dps_user">.
    In this table ootb properties related to profiles are defined.You can search the 'firstName' property which we are going to remove.
    3. Now, you have to layer the userProfile.xml in your custom ATG module at the same location in config path as OOTB xml.
    4. NextcCreate a new table which extends the original table keeping important point in mind that a column which stores the repository id of this item-descriptor - we name it as USER_ID. This is basically the primary key of our new (auxiliary) table and is the foreign key for dps_user. This means that the value of column "id" of dps_user is same as "user_id" in custom_user. This is to ensure that our new table is linked to previous table and remove your property there as below-
    Here you can copy required tags like gsa-template for an xml from step 2's userProfile.xml; remaing code required for remove operation is as below-
    <item-descriptor name="user" cache-mode="simple" item-cache-timeout="550000" query-expire-timeout="550000" xml-combine="append">
    <table name="my_user" type="auxiliary" id-column-name="user_id">
    <property name="firstName" xml-combine="remove"/>
    </table>
    </item-descriptor>
    Let me know if you face any issue.
    Regards,
    Prateek Gupta

  • How to access component's control property from main .mxml file

    I have a main .mxml while in which i imported custom
    "popUpWindow" component using "import component.popUpWindow"
    statement. In main .mxml file I display later on that component as
    popUp window using popUp manager class. Once component is
    displayed, how can i access using actionscript component's
    TextInput control (specifically its .text property) from my main
    .mxml file?
    thanks

    I posted this answer elsewhere, maybe it will help:
    First, save the new component wherever you keep your
    components, let's say you call it "MyPopWindow.mxml"
    Assign public variables for the string in both the main app
    and the popup.
    In your case, in the main app:
    Code:
    public var myText:String = "whatever the text field should
    say.";
    and then in the pop up mxml:
    Code:
    [Bindable]
    public var myText;
    Then, in the main mxml file:
    Code:
    // define the window type
    private var popWin:MyPopWindow;
    private function popMeUp(event:MouseEvent):void{
    popWin =MyPopWindow(PopUpManager.createPopUp(this,
    MyPopWindow, true));
    popWin.myText = myText;
    The important things here to notice is the name of the
    component (i.e. the file) is used. A variable is created for the
    window, and TYPED to your file name. Then you use the constructor
    you already had, but again use your type. The "true" is optional
    and gives you a modal popup window.
    Lastly, assign the variable in the window (I called mine
    popWin) to the variable in the main file you want to pass.

  • [svn] 1649: Renamed our customized Velocity JAR from mm-velocity-1.4. jar to velocity-dep-1.4-flex.jar.

    Revision: 1649
    Author: [email protected]
    Date: 2008-05-09 14:49:18 -0700 (Fri, 09 May 2008)
    Log Message:
    Renamed our customized Velocity JAR from mm-velocity-1.4.jar to velocity-dep-1.4-flex.jar.
    The standard Velocity name for this JAR, which is built by Velocity's "jar-dep" target, is velocity-dep-1.4.jar. We append "-flex" to indicate that we've customized it, just as for our customized Batik JAR.
    This change affected the mxmlc classpath in modules/compiler/build.xml, the packaging scripts, and the Eclipse projects.
    I also renamed mm-velocity-LICENSE.txt and mm-velocity-NOTICE.txt to drop the "mm-" prefix.
    Bugs: -
    QA: No
    Doc: No
    Reviewer: Jono
    Ticket Links:
    http://bugs.adobe.com/jira/browse/velocity-1
    http://bugs.adobe.com/jira/browse/dep-1
    http://bugs.adobe.com/jira/browse/dep-1
    Modified Paths:
    flex/sdk/trunk/build.xml
    flex/sdk/trunk/development/eclipse/java/flex-jars/.classpath
    flex/sdk/trunk/modules/compiler/build.xml
    Added Paths:
    flex/sdk/trunk/lib/velocity-LICENSE.txt
    flex/sdk/trunk/lib/velocity-NOTICE.txt
    flex/sdk/trunk/lib/velocity-dep-1.4-flex.jar
    Removed Paths:
    flex/sdk/trunk/lib/mm-velocity-1.4.jar
    flex/sdk/trunk/lib/mm-velocity-LICENSE.txt
    flex/sdk/trunk/lib/mm-velocity-NOTICE.txt

    1) Did you assigned weblogic user to presentation server admin after the upgrade?
    Obiee11g: Administration link is missing for weblogic User(Presentation Services)
    2) Goto Administration tab and do 'Scan and Update Catalog Objects That Require Updates'
    Thanks,
    Saichand

Maybe you are looking for

  • Somehow - My Time Capsule Has Insufficient Memory For A Back Up

    I have a 1 TB Time Capsule. I recently got an email from apple stating that my mac is affected in a batch that has hard drive issues and was advised before taking it in to back up my mac. Before the email came through out of the blue, my Mac had lost

  • Applet stalls or loads slowly at preload

    I'm currently working on setting up my a fairly complex flash forms with a lot of tabs and validation. I have to say that it really only loads smoothly one out of 4 times. The other times, I run into issues when it says "initializing" or "Loading lib

  • Late 2013 Mac Pro wake from sleep crashes - which logs to look at?

    I started encountering wake-from-sleep crashes with my late 2013 Mac Pro a couple of weeks ago.  Prior to that the system had been pretty solid.  Other than app and OS updates installed from the App Store, I can't think of any software changes that m

  • Transcoding never ends

    Hello all, I'm new to this so bear with me - If I'm making a DVD where the sequence is about five or ten minutes long, everything works fine.  But if I try to burn one of fifteen minutes or more, it never stops transcoding.  The Build Progress window

  • Converted added to itunes but no show on library

    i have converted everything ok and its in avisynth script i added the file to the library onto itunes but when i want to update and put it on the ipod i cant find the file in the library and i have itunes 6 but the video section is empty.... what the