How can I add a custom property to an object, like a paragraph?

Hi,
We have a merge process that combine multiple document into one and I need to store the filename of the imported file at the beginning of each merge point.   Each document that we merge contains a Title paragraph and I was wrongly assuming that I could set the label property of this paragraph with my value for future references, but only to find out that the paragraph object doesn't have a label property.
I also tried setting a custom property by doing this
paragraph.properties["myCustomProperty"] = "value";
It doesn't crash, but if I try reading the value it is always undefined.
I'm looking for alternative, or on how would you approach this, can you please advice?
Your help is much appreciated.
Thanks

Peter Kahrel wrote:
You could label the paragraph's parent story. Is that any good?
Peter.
Well I tought about it, but then I have to find a way to keep track of which paragraph this value belongs to and so far I havent found a way to uniquely identify a paragraph and I can't assume that the merged document won't be edited so I can't use the index.
Peter Kahrel wrote:
Otherwise use a paragraph property that you never use and that doesn't affect composition, such as .bulletsTextAfter
P.
It may be an alternative, but that may cause problem in the furture if they ever decide to use or change that properties.  Plus, I'm not sure if can put anything I want in there, but that would be worth the try.

Similar Messages

  • How can I add a custom attribute to a catalog area? (CRM Isa Sales)

    Gents,
    How can I add a custom attribute to a catalog area? (CRM Isa Sales)
    Actually I would like to use the Catalog Area Type (maintained in trx COMM_PCAT_ADM on Catalog Area Header level). This field doesn't seem to be available in J2EE webshop. (The field documentation says it is for documentation purposes only so I don't expect it to be transferred).
    As this field is not readily available, I would like to add is as an attribute to the Catalog Area. BADI's PCAT_IMS_FEED_ATT and PCAT_IMS_FEED_VAL seem to indicate that it should be possible to add additional fields not only on product level, but also on Area level:
    Example implementation code:
    method IF_EX_PCAT_IMS_FEED_ATT~READ_NEW_FIELDS.
    * Example, how to add new attributes to a indexcategory
    * Possible levels are 'C'ategory and 'P'roduct.
    * Field 'VALUE' carries the attributetype ('S'tring, 'I'ntegar or
    * 'F'loat)
    * Structure 'IS_OBJECTS' carries actuall identifiers
      data: ls_fields        type comt_pcat_ims_feed_ux.
      case iv_level.
        when 'C'.                        "Category Level
    *     no new field
        when 'P'.                        "Product Level
          ls_fields-field = 'CUSTOMER_EXIT_FIELD'.
          ls_Fields-value = 'S'.
          append ls_fields to ct_fields.
    *     exproduct fields
          ls_fields-field = 'REMAN_ABL'.
          APPEND ls_fields TO ct_fields.
          ls_fields-field = 'EXCH_BUS'.
          APPEND ls_fields TO ct_fields.
      endcase.
    endmethod.
    However, when I create an implementation and add some code in the when 'C' part, the attributes do not seem to get transferred. (I've checked in the debug mode of the developer studio).
    - My example code:
    METHOD if_ex_pcat_ims_feed_att~read_new_fields.
    * Possible levels are 'C'ategory and 'P'roduct.
    * Field 'VALUE' contains the attributetype
    * ('S'tring, 'I'ntegar or * 'F'loat)
      DATA:
      ls_fields LIKE LINE OF ct_fields.
      CASE iv_level.
        WHEN 'C'.                        "Category Level
          ls_fields-value = 'S'.
          ls_fields-field = 'ZTEST'.
           APPEND ls_fields TO ct_fields.
        WHEN 'P'.                        "Product Level
      ENDCASE.
    ENDMETHOD.
    and:
    METHOD if_ex_pcat_ims_feed_val~read_new_fields.
      CASE iv_level.
        WHEN 'C'.
         ls_fields-field = 'ZTEST'.
         ls_Fields-value = 'Value 1'.
         append ls_fields to ct_fields.
        WHEN 'P'.
      ENDCASE.
    ENDMETHOD.
    In the ABAP debugger, I can see that my code is touched during initial and delta replications, however, after replication, the fields do not show up in the Java debugger.
    Any ideas?
    regards,
    Wilco Menge

    Hi,
    How can I customize the /bin/wcmcommand or how can I make use of [2] to create a custom WCMCommand?
    I think the "formUrl" is to post those input value to the jcr repository?
    var createDialog = {
            "jcr:primaryType": "cq:Dialog",
            "id": CQ.Util.createId("cq-createdialog"),
            "title":CQ.I18n.getMessage("Create Page"),
            "formUrl": CQ.shared.HTTP.externalize("/bin/wcmcommand"),
            "params": {
                "cmd":"createPage",
                "_charset_":"utf-8"
    I have added a field called "starred"
    Moreover, when I using the firebug to trace the post command, I can see that the starred value is posted also.
    :status
    browser
    _charset_
    utf-8
    cmd
    createPage
    label
    b
    parentPath
    /content/keyword_elaboration
    starred
    c
    template
    /libs/collab/commons/templates/form
    title
    a
    Source
    cmd=createPage&_charset_=utf-8&%3Astatus=browser&parentPath=%2Fcontent%2Fkeyword_elaboration&title=a&label=b&starred=c&template=%2Flibs%2Fcollab%2Fcommons%2Ftemplates%2Fform
    However, when I go to the crxde to view the node's attribute, the properity starred is not created
    Are there anything I did wrong or missing?
    Thanks.
    Message was edited by: aslkit

  • How can i add an custom attribute and assign it to an existing custom object class in sun ds

    I need to add an attribute to sun ds schema and assign it to an existing custom object class.
    I know how to add an attribute but how can i add the attribute to an existing custom object class.
    Please help.
    Thanks

    The objectclasses attribute is multi-valued, so you can add several values to it as long as they are unique.
    For instance, I think you can add several declaration of the same objectclass as below (note the difference is the number of spaces in the value) howewer, from a schema perspective, only 1 will be taken into account:
    objectclasses: ( 2.5.6.6 NAME 'person' DESC 'Standard LDAP objectclass' SUP top MUST ( sn $ cn ) MAY ( description $ seeAlso $ telephoneNumber $ userPassword $ CustomAttr) X-ORIGIN 'RFC 2256' )
    objectclasses: ( 2.5.6.6 NAME   'person' DESC 'Standard LDAP objectclass' SUP top MUST ( sn $ cn ) MAY ( description $ seeAlso $ telephoneNumber $ userPassword $ CustomAttr) X-ORIGIN 'RFC 2256    ' )
    That's the reason why it is safe to delete previous value if you want to update an existing objectclass. No problem to add a new objectclass (new oid and new name) to the schema.
    -Sylvain

  • How can I add a custom attribute to the create page dialog?

    I followed the following link to add a custom attribute called starred and this attaribute can be displayed in siteadmin grid
    http://dev.day.com/docs/en/cq/current/developing/customize_siteadmin.html
    I would like to let the user input the value when they create a page. That's why I would like to add a custom field in the input dialog box as attached pic.
    The method you describe before can only added those CQ bulid-in attribute.
    For those custom attribute, how can I added it?

    Hi,
    How can I customize the /bin/wcmcommand or how can I make use of [2] to create a custom WCMCommand?
    I think the "formUrl" is to post those input value to the jcr repository?
    var createDialog = {
            "jcr:primaryType": "cq:Dialog",
            "id": CQ.Util.createId("cq-createdialog"),
            "title":CQ.I18n.getMessage("Create Page"),
            "formUrl": CQ.shared.HTTP.externalize("/bin/wcmcommand"),
            "params": {
                "cmd":"createPage",
                "_charset_":"utf-8"
    I have added a field called "starred"
    Moreover, when I using the firebug to trace the post command, I can see that the starred value is posted also.
    :status
    browser
    _charset_
    utf-8
    cmd
    createPage
    label
    b
    parentPath
    /content/keyword_elaboration
    starred
    c
    template
    /libs/collab/commons/templates/form
    title
    a
    Source
    cmd=createPage&_charset_=utf-8&%3Astatus=browser&parentPath=%2Fcontent%2Fkeyword_elaboration&title=a&label=b&starred=c&template=%2Flibs%2Fcollab%2Fcommons%2Ftemplates%2Fform
    However, when I go to the crxde to view the node's attribute, the properity starred is not created
    Are there anything I did wrong or missing?
    Thanks.
    Message was edited by: aslkit

  • How can I add my custom ringtone to iTunes 10.7?

    I recently got an iPhone 5 and I want to add a custom ringtone to it. I created a 29-second clip of a song using a software called Audacity and then saved it as an .m4r file. Then, I tried the drag-and-drop method to add the file to my Tones playlist on iTunes; it did not show up anywhere in iTunes. Then I tried moving the file into the "Automatically Add to iTunes" folder; it still didn't work. I tried shortening the file name, and making the clip of the song shorter (to 20 secs), and nothing worked. Am I doing something wrong? Does anyone know how to solve this problem?
    (FYI: I am using iTunes 10.7.0.21; I have Windows 7.  I also tried using the "Create AAC Version" function on iTunes, but then I couldn't change the file type from .m4a to .m4r, so that's why I used Audacity.)
    Thanks in advance.

    I found the answer to my own question! The following discussion really helped, so if you have the same problem, check it out: https://discussions.apple.com/message/18885997#18885997

  • How can I add a custom title to multiple ALV reports selected by layout?

    Greetings and good day, everyone!
    Within the past week or so, I posted a question asking the best way to create a program that would generate multiple ALV reports.  I got some great ideas, and I've actually coded up a few simple demos based on your feedback -- thank you!
    Here's the issue I'm running into:  Many of you suggested that I put all report records into one table, and create a field that I could use to filter on later to determine which fields I want to display for the report.  For example, if I have 3 different reports, I put all the fields for all 3 reports into a table.  I then add a "report key" field.  As I put records into the report table for report 1, I code "01" into the "report key" field.  I do the same for reports 2 and 3, assigning each a "report key" of "02" and "03", respectively.
    I then set up layouts in the ALV for each of the three reports, using the filter option to only pull records with the "report key" value for that particular report.  This all works wonderfully!  However, I seem to have lost the ability to show a custom title for each layout.  I can create a generic TITLEBAR (like "Reporting Center") but I don't know how to reset the grid's title when a layout is selected.  I was hoping that SAP might use the layout description as the title on each page, but it doesn't -- it uses the TITLEBAR text.
    Any ideas?  I think this might be the best way to program multiple ALV reports, but if I can't display the right report title for a particular layout, I'll probably have to go back to my other alternative of putting each report in its own container/screen, and having a button to access each report from the application toolbar.
    Thanks,

    Srikanth,
    I don't have any Selection Screen radio buttons for the user to select a particular report; in my case, they specify some needed criteria by the program in the Selection Screen, the program goes off and does a fair bit of processing/updating, and then displays the ALV reports when finished.  They don't want to choose one particular report to view ahead of time; they want to have all 3 (in my case) there to see what processed correctly, what was eligible to process but kicked out with errors, and what failed some matching checks done up front (this layout includes additional fields from the input file so they can see what didn't match up against R/3).
    So, while I do like the code example you presented, I don't think it's going to help me in my case.

  • How can I add a Custom Field in Work Item "Bug" in VisualStudio Online agile MSF Template?

    We are using Visual Studio Online for task and bug tracking. The problem we are facing is that very few fields are available to working with. We need to add custom fields to filter bugs on multiple attributes like OS, Device model, Verified in build etc.
    We do not have local TFS server setup. The support questions i have read, they ask to update XML file for work item but i dont know how and where to get that xml file. Also is there any particular Role needed to access such configuration files?

    hi Zahid
    as already written above currently it is not possible to customize a process template on Visual Studio Online.
    but for your purpose you can use tags to save the attributes.
    see here Visual Studio Online - Work Item Tagging
    Please use Mark as Answer if my post solved your problem and use Vote As Helpful if a post was useful.

  • How can I add a custom made share button for Facebook?

    Hi!
    I have built a custom "share"-button for Facebook (with an additional layer for rollover/active states, using photoshop), but I don't know how to make it work?
    What code do I have to use, or can I just create a link using my button? What would the adress be?
    I googled this but couln't find anything that helped...
    Thanks in advance!

    It doesn't appear so simple Tobi. The image is pulled from Facebook's servers and the button in itself is an altogether different HTML page from Facebook shown on your site within an iFrame.
    I found something similar to your request (this requires PHP support on your server). Please check the below link.
    http://www.daddydesign.com/wordpress/how-to-create-a-custom-facebook-share-button-with-a-c ustom-counter/
    Thanks,
    Vikas

  • How can I add a custom footnote at the beginning of my document?

    Hi, I need to start a document adding my credentials using a custom footnote (the traditional * footnote...), but can't seem to do that without having to change the whole numbering of the other footnotes in the document. Is there any way to do it?

    Just curious: Why whould you want to add navigation Rules at run time. I believe the navigation rules should be set to begin with - "by s/w Architect Design".
    Else you can always use Redirect / Forward.

  • How can I add a custom button to a survey results screen

    I want to send it to a specific slide and not have it jump all the way to the first slide
    since those slides are just practice ones in a previous lesson and not the final exam.

    Please, could you explain a little bit? And which version of Captivate are you using?
    Lilybiri

  • How can you add iview personalization to web dynpro iviews like URL iviews?

    In the URL iview editor you can define URL paramaters which are available for personalization by the user from the iview's "Personalize" option. 
    Can this also be done using web dynpro for java iviews? 
    Thanks for your help.
    Jeff

    Hi Jeff,
    You do have a personalization that can be defined from the user, for java webdympro iview. But is not the same as you have for URL iviews.
    Have a look on the links bellow:
    http://help.sap.com/saphelp_nw70/helpdata/en/42/ed3ce7f8593eebe10000000a1553f7/content.htm
    http://www.octavia.de/fileadmin/octavia_files/content_bilder/Hauptnavigation/SAP_NetWeaver/WebDynpro/Tutorial_1.pdf
    Please remember to evaluate the replays, this incentive the SDN to keep growing,
    regards,
    Fabio

  • How Can i add a field to a table?

    Hi,experts
       How can i add a custom field to the table EBAN,And Display it in ME51N,ME52N,ME53N without access key.
    Regards
    Chris

    Hi,
    i also got same query can u pls tell me elaborately, if u can can u pls send some code.
    Thanks & Regards
    Jagadeeshwar.B

  • How can I add customer's information?

    I can add user to the wlcs_user table with jsp now .
    <um:createuser.............>
    But
    1. How can I add user to customer with jsp?
    2. How can I add user's information eg:cardid,e_mail,address etc) with jsp?
    which table these information will put into ?
    Thank in advance.

    I can add user to the wlcs_user table with jsp now .
    <um:createuser.............>
    But
    1. How can I add user to customer with jsp?For WLCS 2.0.1, look at the example code that came with the MyBuyBeans demo in
    <wlcs-install-dir>/src/examples/buybeans/client
    In particular, look at UserInformation, which is used to collect information
    for your Customer and look at RegistrationHelper, which has a
    register(userInformation) method that is used to create a new Customer.
    For WLCS 3.1 the Customer extends User, so that the Unified User Profile (see
    the documentation) can be used to easily integrate customers with WLPS users.
    2. How can I add user's information eg:cardid,e_mail,address etc) with jsp?
    which table these information will put into ?Look at _userreg.jsp.  These are properties that have not been registered with
    the "exampleportal" property set using the administration tool, so you cannot
    set them with the administration tool. You must use JSP tags or the API to set
    them.
    Ture Hoefner
    BEA Systems, Inc.
    2590 Pearl St.
    Suite 110
    Boulder, CO 80302
    www.bea.com

  • How to add a custom property to the user's master record?

    Hello,
    I would like to add a custom property to the user's master record which is unique to our company (User's region).
    Is that possible? and if yes, how?
    I'm a bit new to BW so a step-by-step procedure will help
    Roy

    The user names are stored in table USR01. IN that table see if you can add a field to have region. Extract this table and store it in User info object in BW.
    You will need a ABAP person to do this, if you are new to SAP.
    Ravi Thothadri

  • How can i add two values under the same property?

    Hi all,
    How can i add two values under the same property name in a
    prop list? For example:
    [question1: "item1","item2", question2: "item3","item4"]
    To be more precise, i am creating a property list and I want
    whenever a two values have the same property name to be added int
    he list under the same property. For example:
    gMyList.AddProp (#""&question&"" & x,
    member("input").text)
    question is a variable that is updated fromt he user's input.
    Now, whenever somethign like this happens:
    question = "question1"
    member("input").text = "five"
    question = "question1"
    member("input").text = "six"
    I want to output list to be:
    [question1: "five","six"] and so on
    Any ideas?

    Maybe you could make each property a list (so you have a
    property list full
    of lists), and add multiple values to the list held in a
    particular
    property?
    Cheers
    Richard Smith

Maybe you are looking for

  • How do I install an App on 200 iPods for University Students

    What kind of options are there for installing the same app (a free app) on 200 different iPod Touches? We have 200 new iPod touches that we need to get into the hands of 200 nursing students. We would like to load the Skyscape Resources app on each o

  • Nonlatin characters in URLs;NTFS Invalid or incomplete multibyte error

    I'm testing with a file called "柯有伦-零.mp3", which contains Chinese characters. (Maybe your browser won't show it correctly, and the font might be crappy...) Well, here's a screenshot of the correct filename: My locale: en_US.utf8 Downloader I tested

  • NW2004s: Homogeneous systemcopy ABAP + JAVA

    When doing a combined ABAP + Java systemcopy via R3load procedure, the "old" configurations in the propertysheets on the filesystem may get lost. What is the general procedure here to find out, what needs to be manually adapted after a systemcopy? I

  • RV016 firmware upgrade and manual

    I am trying to upgrade my RV016 from 3.0.2.01-tm to 4.0.4.02. I have not received any messages  and the log has nothing. I have left the computer and switch for 2 hours and it never seems to end.  (serial no. DF0006200812) I am looking for any guidan

  • Espacio otros

    como libero espacio de "OTROS" ?