User-defined tagged structures in Documents

Hi, here's my situation. I'm trying to build an interface for users to create, edit, and view information that is marked up with two types of tags. The first type is structural and function pretty much identically to XML tags. Not a problem, really, if that's all I wanted. However, the second type of tags are structure-independent (i.e. can start and end anywhere) and thus don't work as part of an XML document.
Here's an example:
<Start>
Starting here...
<1>Hey, this is <A id = "blue">pretty </1>
<2>cool</A id = "blue"></2>
</Start>
the "Start" and "1" tags are the structure tags and the "A" is what I call a floating tag. My plan is to have the user perform various operations on both sets of tags, such as adding of deleting them, moving the start or end, swapping between various stored content, etc.
Anyway, I've been banging my head against the wall trying to integrate this with the StyledDocument interface, hopefully by slightly extended the DefaultStyledDocument class. I oculd run the whole thing with Positions and insertString() and delete()'s, but I feel as if there should be something that I can hook in with that let's me do this.
I've been hoping that the Element interface would be my savior here, but that seems to be getting further and further from happening the more I screw around with it.
Anyway, if you've gotten this far, thanks for your time and interest. Here are my questions:
1) Is there any way to implement the Element interface and then insert my classes into a DefaultStyledDocument?
2) Is there anyway of using the createBranchElement and createLeafElement from AbstractDocument to insert Elements into an already filled Document?
3) When using the ElementSpec methods of inserting Elements, is there any way of getting the created Elements a la the createXXXElement methods from AbstractElement?
4) After I get an Element in a Document, is there any simple way of getting it a reference to it based on position in the Document? Also, is there a programmatic way of removing it from the Document?
5) Am I totally on the wrong track here? Is there some really easy way of pulling this off that I'm just overlooking?
Again, thanks for your time,
Steve Erdman

Hi Jack,
Here they hav explained clearly pls go through the link below USER DEFINED INCLUDE STRUCTURES
http://www.michaelmanagement.com/forum/uploads/20070621_164819_OSS_335065_-_Us.pdf
Datasourceenhancement
Below are the steps to enhace a data source.
log on to r/3
1..R/3sys, enter RSA7, SELECT UR DS(0FI_GL_4), SELECT DISPLAY ENTRIES,
2.Select Delta Update and Execute.
3.now u can see the records if at all they r available.
4.Now Check The Data in u2018smq1u2019 in R/3 and Execute.
5.Select ur Data source now.
6.Display Entries.
if at all any entries are there it display in the form of queues
if u find any where data , it must be scheduled to ur data target using Info packages.
Now let us see How to Enhance the Data source.
7.R/3, Enter RSA6., select ur Data source, then Click on enhance extract structure.
8. Now it populates a structure name. Like this u201CZADTFIGL_4u201D. Go with continue
9.Give the Description.
10. Under Component Give the Description of the fields u want to add Starting with ZZ
11. Under component type give the concerned Technical names OF RELEVANT FIELDS in r/3. AND u201CENTERu201D
12. SAVE
13.Give The Package go with save, request no go with continue.(or create a new request)
14. Now check and activate.
15. go back from current screen select ds and go with change. Message continue, Request no continue
16.now find ur newly added fields in ds, deselect hide flag and field only flag(check box)
17. So far u have added field to ur DS, now u need to populate Data to UR Newly Added fields by writing user exit.
Enter CMOD in R/3, give the project name , go with Create.
18. Give the Description and Save
log on to bw , rsa1-source systems, find ur ds replicate ds
Now Devolope Required fields in Bw
Add to ur communication structure,
apply the Transfer rules ,
Add to ur Target
Recreate Update rules.
Schedule the data..
Regards,
Marasa.

Similar Messages

  • Rebate, see rebate payments in user defined info structure (SIS)

    Hi Gurus...i hope you can help me
    The client need to see the rebate payments for each material in a user define info structure (S500) where the material is a characteristic of the infostructure and the payment is a ratio
    I get to show the accrued value per material but no the payment
    If the system show me the accrued value for at material level in a infostructure..i supose is possible to show the payment value?
    I did create a S520 info structure as copy of S060, but when i try to create a update rule for the payment ratio the system show me the follow message
    "Only source fields from MC communications structures allowed"
    please let me kow how i did wrong....
    tx a lot

    Payments of rebates in SAP ERP are credit notes (billing documents).
    Therefore you should see them in the sales infosystem as billing documents.
    If you add the billing document type in the sales infostructure as a characteristic, then you will be able to report on rebate payments because they always have a specific billing document type.

  • Message while creating user defined information structure

    Hi Experts,
    Iam creating a user defined information structure for flexible planning. I selected the following characteristics.
    1. Sales organization
    2. Distribution channel
    3. Sold to party
    4. Plant
    5. Material
    But I get the following message "Include product groups/materials field for planning hierarchy".
    May I know whats the reason for this message and how to solve it.
    Please help me here.
    Thanks in advance
    Pradeep.

    Th hierarchy what you created may have some error, please reassign the sequence in hierarchy and check it out, it will work

  • Create User-defined field for Marketing Documents

    I need to create a User-Defined field for Marketing Documents under Title and Rows.
    I need to do it via .NET instead of manually go into SAP to create it.
    Does anyone can give me idea on how to do this?

    Hi David,
    There are examples of how to do this in the SDK samples (look for MetaDataOperations project in the DI samples).
    There are also examples in the SDK help. Here's one:
    Private Sub AddUserField()
    '// The UserFieldsMD represents a meta-data object that allows you
    '// to addremove fields from tables or change the fields' characteristics
        Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
    '// In any meta-data operation there should be no other object "alive"
    '// but the meta-data object, otherwise the operation will fail.
    '// This restriction is intended to prevent a collisions.
        '// The meta-data object needs to be initialized with a
        '// regular UserFields object
        Set oUserFieldsMD = oCompany.GetBusinessObject(oUserFields)
        '// When adding user tables or fields to the SAP Business One database
        '// use a prefix identifying your partner name space
        '// this will prevent collisions between the various partners add-ons
        '// SAP's name space prefix is "BE_"
        '// Set the Fields' mandatory properties
        oUserFieldsMD.TableName = "OCRD" '// BP table
        oUserFieldsMD.Name = "BE_UserField1"
        oUserFieldsMD.Description = "A user field"
        oUserFieldsMD.Type = db_Alpha '// am alphanumeric type
        oUserFieldsMD.EditSize = 20
        '// Add the field to the table
        oUserFieldsMD.Add
    End Sub
    Kind Regards,
    Owen

  • User-defined include structures in FI

    Hi all,
    Can any body explain me about user-defined include structures in FI and how to do the enhancements..Plz suggest me by explaining with ABAP code. Plz tell me step by step.
    Thanks,
    Jack

    Hi Jack,
    Here they hav explained clearly pls go through the link below USER DEFINED INCLUDE STRUCTURES
    http://www.michaelmanagement.com/forum/uploads/20070621_164819_OSS_335065_-_Us.pdf
    Datasourceenhancement
    Below are the steps to enhace a data source.
    log on to r/3
    1..R/3sys, enter RSA7, SELECT UR DS(0FI_GL_4), SELECT DISPLAY ENTRIES,
    2.Select Delta Update and Execute.
    3.now u can see the records if at all they r available.
    4.Now Check The Data in u2018smq1u2019 in R/3 and Execute.
    5.Select ur Data source now.
    6.Display Entries.
    if at all any entries are there it display in the form of queues
    if u find any where data , it must be scheduled to ur data target using Info packages.
    Now let us see How to Enhance the Data source.
    7.R/3, Enter RSA6., select ur Data source, then Click on enhance extract structure.
    8. Now it populates a structure name. Like this u201CZADTFIGL_4u201D. Go with continue
    9.Give the Description.
    10. Under Component Give the Description of the fields u want to add Starting with ZZ
    11. Under component type give the concerned Technical names OF RELEVANT FIELDS in r/3. AND u201CENTERu201D
    12. SAVE
    13.Give The Package go with save, request no go with continue.(or create a new request)
    14. Now check and activate.
    15. go back from current screen select ds and go with change. Message continue, Request no continue
    16.now find ur newly added fields in ds, deselect hide flag and field only flag(check box)
    17. So far u have added field to ur DS, now u need to populate Data to UR Newly Added fields by writing user exit.
    Enter CMOD in R/3, give the project name , go with Create.
    18. Give the Description and Save
    log on to bw , rsa1-source systems, find ur ds replicate ds
    Now Devolope Required fields in Bw
    Add to ur communication structure,
    apply the Transfer rules ,
    Add to ur Target
    Recreate Update rules.
    Schedule the data..
    Regards,
    Marasa.

  • User defined field in marketing documents

    Hi All,
             How to add user defined field in marketing documents using Programtically.
    Thanks,
    P.Suresh Kumar.

    Private Sub AddUserField()
    '// The UserFieldsMD represents a meta-data object that allows you
    '// to add\remove fields from tables or change the fields' characteristics
        Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
    '// In any meta-data operation there should be no other object "alive"
    '// but the meta-data object, otherwise the operation will fail.
    '// This restriction is intended to prevent a collisions.
        '// The meta-data object needs to be initialized with a
        '// regular UserFields object
        Set oUserFieldsMD = oCompany.GetBusinessObject(oUserFields)
        '// When adding user tables or fields to the SAP Business One database
        '// use a prefix identifying your partner name space
        '// this will prevent collisions between the various partners add-ons
        '// SAP's name space prefix is "BE_"
        '// Set the Fields' mandatory properties
        oUserFieldsMD.TableName = "OCRD" '// BP table
        oUserFieldsMD.Name = "BE_UserField1"
        oUserFieldsMD.Description = "A user field"
        oUserFieldsMD.Type = db_Alpha '// am alphanumeric type
        oUserFieldsMD.EditSize = 20
        '// Add the field to the table
        oUserFieldsMD.Add
    End Sub

  • [All Platforms][Your Music] Make it possible to tag and filter "My Music" with user-defined tags

    It would be very nice and convenient to be able to tag and filter "My Music" (playlists, songs, albums and artists) with user-defined tags. I'm sure quite a few users would like to classify their music by genre. Myself, I would like to tag my albums, assigning them to different virtual collections.

    Updated: 2015-07-23Hello and thanks for the feedback!
    A similar idea has also been suggested here:
    https://community.spotify.com/t5/Live-Ideas/Your-Music-Grouping-or-Sorting-by-Tags/idi-p/744947
    Add your kudos and comments there please! ;)

  • Adding a "custom" color to a user defined tag ?

    How can I add my own user defined "color" to a new tag I create in the Finder ?
    Thx

    Hi a_mumford,
    Using tags is a great way to stay organized. I use this feature quite a bit. I've linked to an article which explains how to use and edit them:
    OS X Yosemite: Use tags to organize files
    Edit tags
    In the Finder, choose Finder > Preferences, click Tags, then do any of the following: 
    See a tag in the Finder sidebar: Select the blue checkbox to the right of the tag. 
    Change a tag color: Click the color next to the tag , then choose a new color. 
    Change a tag name: Click the tag, click the tag’s name, then enter a new name.
    Create a new tag: Click Add . 
    Delete a tag: Select the tag, then click Remove . 
    Add a tag to the shortcut menu: Select the tag in the list, then drag it over the tag you want to replace in the favorites section at the bottom of the window. There can be up to seven tags in the shortcut menu that appears when you Control-click a file. 
    Remove a tag from the shortcut menu: Drag the tag out of the Favorite Tags section until you see a puff of smoke.
    Thank you for contributing to Apple Support Communities.
    Take care,
    Bobby_D

  • User defined Info structure

    Hi all
    I am trying to create an infostructure of my own which will update document posting date after each transaction.
    through mc21 I created an info structure under Inventory Controlling Event.
    Created a separate update group for it.
    Created update through mc24 & maintained required data-field
    After generating the update I activated the infostructure.
    maintained the user parameter MCL= X against my user profile.
    now for testing I created ome material document through MIGO.
    carried out update Log through mc30,but the the log is not showing my infostructure & not showing any data in table output also.
    am not able to populate data in the infostructure.Is there anything remained for updating configuration?
    Regards
    Surupa

    Hi Rajesh,
    Yes COOIS is T-code where U could retrive any information regarding the production order. But I would like to know if I have info-structure how i could configure reports in STD-SAP. Since I managing the production  in 2 units of measure one is Kg and other in Lit.  In COOIS i able to get report in kg but I also want report in Lit.
    Thanks in advance for ur suggestions.
    Regards,
    Neel

  • How to Genrate Report On User defined Info-structure.

    Dear Friends,
    I have Info-structure having key figure as production order number, Production order qty and  final comfirmation other that STD. I want to generate report but I don't want  to go for the ABAP development. Is there any option we do have to generate reports.
    Thanks and Regards,
    Neel...

    Hi Rajesh,
    Yes COOIS is T-code where U could retrive any information regarding the production order. But I would like to know if I have info-structure how i could configure reports in STD-SAP. Since I managing the production  in 2 units of measure one is Kg and other in Lit.  In COOIS i able to get report in kg but I also want report in Lit.
    Thanks in advance for ur suggestions.
    Regards,
    Neel

  • User-defined info structures

    Hi,
    How are info structures populated? Where does the data come from?
    I have a problem with the stock quantity being displayed in the report because in RWBE, there are no stocks being reflected but using MCG3 and choosing the info structure, I'm getting values.
    Thanks!

    Hi Winnie CHan
    Info structures are populated with regular transaction data like material movements.
    You have standard info structures already for inventory. Did you explore them ?
    Check the options available in Inventory reporting/Inventory Info systems (suggest you to use the menu paths under MM. That's the besy way to explore
    Best regards
    Ramki

  • Linking the UDO of type document to user defined field

    I created the user defined field and i need to link the UDO of type document to that user defined field. How to link the UDO to user defined field.

    Dear
    do you mean to add a user defined field to an document type UDO? if this  is the case,
    1. create the UDT
    2. go to Tools-> customization tools->User Defined Fields-Management, expand User Tables, add the udf to the UDT
    3. register the UDT as UDO.
    best regards,
    xiaodan an

  • Item - The item is not a user-defined item

    I have added a user defined field in Marketing Documents -> Title.In short I have added a user defined field at the header level.I have used this field for certain calculations while adding inventory transfer.I have created a combo for this field and added values as,
    Private Sub AddSeries()
            Dim ddlSeries As SAPbouiCOM.ComboBox
            Dim objDTSeries As New DataTable
            Dim intI As Integer
            Try
                objForm = SBO_Application.Forms.GetForm("-940", 1)
                ddlSeries = objForm.Items.Item("U_ProdSeries").Specific
                strQuery = "Select Series,SeriesName FROM NNM1 WHERE ObjectCode=13"
                objDTSeries = GetData(strQuery)
                If objDTSeries.Rows.Count > 0 And ddlSeries.ValidValues.Count = 1 Then
                    For intI = 0 To objDTSeries.Rows.Count - 1
                        ddlSeries.ValidValues.Add(objDTSeries.Rows(intI).Item("Series"), objDTSeries.Rows(intI).Item("SeriesName"))
                    Next
                End If
            Catch ex As Exception
                SBO_Application.MessageBox("AddSeries()=" & ex.Message)
            End Try
        End Sub
    Also,I want to clear the combo for certain condition.For clearing the combo I have used the code as,
    Private Sub DeleteSeries()
            Dim ddlSeries As SAPbouiCOM.ComboBox
            Dim intI As Integer
            Try
                objForm = SBO_Application.Forms.GetForm("-940", 1)
                ddlSeries = objForm.Items.Item("U_ProdSeries").Specific
                While ddlSeries.ValidValues.Count > 0
                    ddlSeries.ValidValues.Remove(0, SAPbouiCOM.BoSearchKey.psk_Index)
                End While
            Catch ex As Exception
                SBO_Application.MessageBox("DeleteSeries()=" & ex.Message)
            End Try
        End Sub
    While Removing the value it gives error as,
    Item - The item is not a user-defined item

    Hello dilip
    try this code .i hope yure problem may be solved
    Private Sub AddSeries()
            Dim ddlSeries As SAPbouiCOM.ComboBox
            Dim objDTSeries As New DataTable
            Dim intI As Integer
            Dim oItem As SAPbouiCOM.Item
            Dim Rs As SAPbobsCOM.Recordset
            Try
                objForm = SBO_Application.Forms.GetForm("-940", 1)
                Rs = objMain.objCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                oItem = objForm.Items.Item("ITEM ID").Specific
                ddlSeries = oItem.Specific
                strQuery = "Select Series,SeriesName FROM NNM1 WHERE ObjectCode=13"
                Rs.DoQuery(strQuery)
                Rs.MoveFirst()
                For k As Integer = ddlSeries.ValidValues.Count - 1 To 0 Step -1
                    ddlSeries.ValidValues.Remove(k, SAPbouiCOM.BoSearchKey.psk_Index)
                Next
                If (ddlSeries.ValidValues.Count >= 0) Then
                    While Rs.EoF = False
                        ddlSeries.ValidValues.Add(Rs.Fields.Item("Series").Value, Rs.Fields.Item("SeriesName").Value)
                        Rs.MoveNext()
                    End While
                End If
            Catch ex As Exception
                SBO_Application.MessageBox("AddSeries()=" & ex.Message)
            End Try
        End Sub

  • How to make user-define value's query

    Dear All,
    In we have 3 user-defined fields in marketing document. When I type in field 1 and field 2, we need line total = field 1 * field 2.
    Would it be possible for me to config it in SAP? I setup a user-define value and have a query for it. Make it updated when field 2 changed. But when I am not clear on how to write the query. I have a query select $[POR1.U_Field1]*$[POR1.U_Field2]
    But I got an error message. It has to be some syn error in my query.
    It is a service type document so that I cannot have a where POR1.Itemcode = ...
    Can anybody help me out? Thanks in advance.
    Regards,
    Yuka
    Edited by: Jie Jin on Mar 23, 2010 7:28 PM

    I use Select $(Por1.Price.number)*$(Por1.U_Numberofunit.number)   //replace ( to [
    The price was been change to null. Then my query is like select *6. Thanks.
    Edited by: Jie Jin on Mar 23, 2010 7:42 PM
    Edited by: Jie Jin on Mar 23, 2010 7:44 PM

  • User defined characteristics for planning hierarchy

    Hi Experts,
    I am using flexible planning for sales planning when I define a planning hierarchy, I want to include a user defined field also.
    The requirement is like this, Planner wanted to see the cumulative sales figures of domestic and exports (Exports will be to more than one country. So I cant use countries for this).
    How can I do this?
    Request your expert advice.
    Regards

    Hi Ram,
    Thanks for the reply. Since Iam using flexible planning, I will be creating a user defined info structure. But my question is can I include a custom defined characteristic also in the hierarchy which is not available in the field catalogs for characteristics system is showing?
    If so where should I define this characteristics first before assigning to the information structure.
    Thanks & Regards
    Enrico

Maybe you are looking for

  • LR 2.4, coming to terms with the new metadata filters

    Personally I have trouble to master the new LR2 system of metadata filters, which was migrated from the left tab in V1, into the new over-the-grid horizontal tab. For example, after import of images in several folders, I selected the top folder and L

  • How can I get client IP address in portlet (servlet) ?

    How can I get client IP address in portlet (servlet) ? request.getRemoteAddr() return server IP. May be I must use Portal API, which extend Servlet classes, but I can't find this. Can any help me?

  • Cannot register portal to SSO

    I am trying to register the portal to SSO running the ssoreg script but I get an error message in the log file, even though the script says that SSO registration tool finished successfully. The script that I run is the above: ssoreg -site_name www.my

  • Java FX + Request + Applet

    Hello, I develop a simple Chat that sends the Chat Msg to a server and write it into a database. After that the read the 10 newest messages and response these as string... In Netbeans it works greatly (Standard Exceution).. but If I change it to "Run

  • A cache exception RenderAgent is not initialized in Oracle IPM 11g

    Hi, Any idea what this is error is about I am using Oracle IPM 11g and when viewing the document in the Viewer I am getting the below error. Am using Oracle UCM as the repository. A cache exception RenderAgent is not initialized Thanks