Canvas objects' information to XML

What is the best way to create an XML file with the
information of a canvas container's elements?
Say the canvas has a panel with a background color, then the
XML file would look something like this:
<canvas>
<panel backgroundColor="#222222"/>
</canvas>
Thanks!

You can walk the run-time dom using container methods and
properties like getChildAt() and numChildren. className will return
a sting you could use for the main node name. You will have to
decide which attributes whose values you want to record.

Similar Messages

  • Problem Updating Business Partner DI Object loaded via XML

    Hello,
    I'm working with  SB1 8.81 PL 08
    I have to Update a Business Partner Object in a Target SB1 Company Database starting from a Business Partner Objects saved as XML from the Source SB1 Company Database.
    Normally this works fine, I load from XML this Object and calling the Method Update all data is Syncronized in the Target DB.
    But if the Business Partner Object has at least a Contact Person and in the Target Company DB a Marketing Document has been created for this particular Business Partner the Update Method called on the loaded by XML object always fail giving the following error:
    Error: -10
    Message: Contact Person is referenced by another object.  , 'Sales Quotations [...contact Person ID...]'
    The modifications I need to update do not involve contact person in the BP object but only other simple properties like Tel Nr. ...
    In conclusion ... if the target BP has a marketing document created it seems no more possible to update it with an XML load, instead if a load the BP using the   GetByKey() Method and changing manually some properties of the object the Update works fine.
    Thank you for support.
    Max

    Hi,
    First Use the getbykey to get the Business partnet then update.
    sample code is available with B1WS package
    Regards.

  • How to create and instance of Java Object from an XML Document.

    Hi,
    How can we use a XML Document to create an instance of Java Object and do vice versa ie from the Java Object creating the XML Document.
    XML Document is available in the form of a String Object.
    Are there helper class available to achieve this.
    I need to do this in a Servlet.
    Regards
    Pramod.

    JAXB is part of JavaSE while Xmlbeans claims full schema support and full infoset fidelity.
    If the standard APIs do all that you need well then use them.

  • Which SD Table holds the Technical Object Information?

    I am writing a report in SQ01 and can't find an SD table holding the technical objects information from the Sales contracts or orders. Can anyone suggest a table or which tables to joins I need. .
    Thanks
    Jen

    .... also:
    inner join with sales ordem item:
    VBPM-VBELN = VBAP-VBELN
    VBPM-POSNR = VBAP-POSNR
    Available fields:
    Technical reference object type
    Technical reference object
    Serial number

  • Convert  Objects into an XML Document? Possible?

    Hello,
    Is there a way to convert different objects into an XML File/Document
    If I create 10 objects and then I want to create an XML Document
    of these objects,is it possible to do this?
    Ajay

    Hello,
    Is there a way to convert different objects into an
    XML File/Document
    If I create 10 objects and then I want to create an
    XML Document
    of these objects,is it possible to do this?
    Ajayjust override the .toString() method...

  • Xml data type is not supported in distributed queries. Remote object 'OPENROWSET' has xml column(s).

    Hi,
    Can anyone help me out please.
    I have written one stored Procedure to create a views using Openrowset(openquery) but for tables which contains xml data types throwing error while executing the SP. Error
    " Xml data type is not supported in distributed queries. Remote object 'OPENROWSET' has xml column(s)."
    Please refer the Stored Procedure & error message below.
    USE [Ice]
    GO
    /****** Object:  StoredProcedure [dbo].[Pr_DBAccess]    Script Date: 08/14/2014 16:08:20 ******/
    SET
    ANSI_NULLS ON
    GO
    SET
    QUOTED_IDENTIFIER ON
    GO
    ALTER
    PROCEDURE [dbo].[ Pr_DBAccess](@SERVERTYPE
    NVARCHAR(50),@SERVERNAME
    NVARCHAR(100),@DATABASENAME
    NVARCHAR(100),@SCHEMANAME
    NVARCHAR(100),@TABLENAME
    NVARCHAR(100),@USERNAME
    NVARCHAR(100),@PASSWORD
    NVARCHAR(100))
    AS
    BEGIN
    DECLARE @openquery
    NVARCHAR(4000),
    @ETL_CONFIG_IDN
    NVARCHAR(100);
     IF @SERVERTYPE='SQL'
     BEGIN
    SET @openquery= 
    'CREATE VIEW '+@TABLENAME+
    ' WITH ENCRYPTION AS SELECT * FROM OPENROWSET(''SQLNCLI'',''SERVER='+@SERVERNAME+';TRUSTED_CONNECTION=YES;'',''SELECT * FROM '+@DATABASENAME+'.'+@SCHEMANAME+'.'+@TABLENAME+''')'
    SELECT @openquery
    END
    EXECUTE
    sp_executesql @openquery
    END
    ----While running the SP manually below error occured

    HI ,
    1. You cannot use a table or view that contains xml or clr type as 4-part name in your query
    2. You need to cast the column to either nvarchar(max) or varbinary(max) or other appropriate type to use
    3. If you have a table that has xml type for example then you need to create a view that contains all columns other than xml and query it instead. Or you can issue a pass-through query using OPEN QUERY with the appropriate columns only.
    Here is a work around:
    SELECT
          Cast(a.XML_Data as XML) as XML_Data
    FROM
          OPENQUERY([LINKED SERVER NAME HERE],'
              SELECT
                Cast(XML_Data as Varchar) as XML_Data
             FROM
                [DATABASE NAME].[SCHEMA].[TABLE NAME]'
    ) a
    Basically, the data is queried on the remote server, converts the XML data to a varchar, sends the data to the requesting server and then reconverts it back to XML.
    You can take help from below link;
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/c6e0f4da-821f-4ba2-9b01-c141744076ef/xml-data-type-not-supported-in-distributed-queries?forum=transactsql
    Thanks

  • Storing users workspace information in XML

    Hi,
    I have to store users workspace information in XML file so that user can retreive it later. The information that needed to be stored can be any thing. This XML file will be stores in oracle back end.
    Well i am not totally well aware of XML advantages and how well we can use it.
    If any one who is is well aware of XML can provide me some information that will help in understanding it better like any related site, white papers etc.
    For more clarification about the information that needed to be stores can be like,
    1. Customization of Menu
    2. Customization of ToolBar
    3. Child windows opened
    4. Which window is currently loaded
    etc
    Also i need a generic way to manuplating my code so that i wont have to make major changes during the process.
    Thanks in advance.

    you might be better asking this in the XML forum.
    What will probably happen is that the XML structure is your template eg
    Store1 xml
    <menu> store1 menu</menu>
    Store2 xml
    <menu>store2 menu</menu>
    From your xml dtd you can derive what is needed to create a Java model which you will have to populate with the values of the XML tags.
    Then your gui will reflect any changes made in the model
    If you do a search on sun for XML there is a tutorial which may be of use. Also depending how big your project is you may wish to look at JAXB

  • Tab Focus of Extended Canvas Object

    I have extended the Canvas control to add some functionality;
    however, I now need my control to be able to be tabbed to and
    focused and I can't seem to get this to work.
    I have set the tabEnabled to true, the "focusSkin" to
    HaloFocusRect, the focusEnabled to true, and set the tabIndex on
    the object.
    None of these seem to work. When I tab through the items on
    the screen the canvas object just seemed to be skipped over.
    Any ideas on how to get this extended canvas object to get
    focus by tabbing to it would be helpful. Thanks for any
    help.

    View Objects tend to behave very strange if they do not have a key column.
    I had the same problem as you described (though in custom screen) and the problem disappeared
    the second I marked the id-attribute as "key". Maybe this solves your problem as well.
    Good luck!

  • Getting info on objects loaded via xml

    Hello:
    i am a beginner/intermediate as3 coder, and i am stuck on
    something related to objects loaded via XML.
    i am able to load JPEG images onto a simulated "shelf", but i
    am trying to arrange them on the shelf (like a store shelf) so that
    each new item is placed directly next to the previous item as they
    load. i can get it to work on a very basic level by specifying the
    spacing between items manually betwen the code, but to makre this
    reuseable and efficient, the ideal is to have the "next" object
    loaded be placed on the shelf based on the width of the previous
    object. but when i try to access the width of the object that is
    loaded via the imageLoader, i can;t find it. if i trace the image
    loader wifth, it is 0; i have tried several ways to name the object
    as it loads and then get/save its dimensions somehow, but i am not
    having any luck. i use all the Lynda titles and i also use some of
    the better books, but i just can;t seem to solve this.
    any hellp would be appreciated.
    thank you.

    Thak you for this -- it did help somewhat, but i am still
    stuck.
    When i use the contentLoaderInfo listener, you are right, i
    can discern the width of the loader. but when i do this it only
    works for the last item loaded. here is my problem -- i am trying
    to load graphics dynamically, and have each graphic go to it's
    proper "place" on a simulated shelf -- so the foirst object might
    go to (0,0), then next object should go directly to the right of
    the first object, etc, etc. and i am loading all this dynamically
    from an xml file. if i just specify a distance, then i can get
    everything to load at uniform distances from each other. problem is
    each of the graphics has a unique width, height, etc, so i need to
    be able to "catch and capture" this info as each one is loaded.
    when i wait until the entire loader has loaded, the only
    peopoerties left for me to capture and use are the propoerties of
    the last itm loaded.
    any ideas on how to do this -- anyone?
    thanks very much, i just can't seem to figure this out.

  • No base object information for AQ$_PROP_TABLE_1

    Hi all,
    My alert log is stating that there is no base object information for the AQ$_PROP_TABLE_1 table? This table is owned by sys which is preventing me from preparing the table.
    Q1) How did the database end up in the state?
    Q2) How do I fix it?
    I'm running 9.2.0.3.
    WARNING: no base object information defined in logminer dictionary!!!
    knlldmm: gdbnm=HLRDB.SITE1
    knlldmm: objn=6850
    knlldmm: objv=1
    knlldmm: scn=1004390
    SQL> select OBJECT_NAME from dba_objects where OBJECT_ID=6850;
    OBJECT_NAME
    AQ$_PROP_TABLE_1
    Enter user-name: sys as sysdba
    Enter password:
    Connected.
    SQL> begin
    2 DBMS_CAPTURE_ADM.PREPARE_TABLE_INSTANTIATION('AQ$_PROP_TABLE_1');
    3 end;
    4 /
    begin
    ERROR at line 1:
    ORA-12087: online redefinition not allowed on tables owned by "SYS"
    ORA-06512: at "SYS.DBMS_CAPTURE_ADM_INTERNAL", line 74
    ORA-06512: at "SYS.DBMS_CAPTURE_ADM", line 159
    ORA-06512: at line 2
    Many thanks,
    Warren

    Select the image you'd like to use as the placeholder, and assign it a "name" in the Inspector - also make sure that the name only contains standard letters, numbers or underscores and starts with a letter (no spaces or punctuation). Does it show up in the Actions menu after that?

  • Flash does not load information from xml on DMM system

    I have flash file load information from xml file. flash file and xml file i push on IIS server. In presentation i add URL of flash file but flash file not show information.
    I try run URL direct from DMP is ok.
    Flash file write for Flash litte 3.1 and use action script 2.0. DMS system test with DMM version is 5.3 and DMP 4310G.
    Please point where the error and the notes on  flash file use with DMM for my programmer.
    Thanks!

    Hi guy's
    I think I maybe faced with a similar issue.
    I've been working on a flash build that pulls in xml feeds. Everything I have works great so far but I've only been able to test as standalone(Desktop) and in the browser.
    When I tested standalone(Desktop) I did get the flash security popup but once I granted access it worked fine.
    I've never used DMP 4310 before. At this point in time I dont have access to it either. All I know is that my swf will be put on it.
    Can anyone tell me how the DMP 4310 will handle the flash security popup?

  • Object information pop-up in case of object link

    Hi,
    I want to populate object information screen while creation of notification automatically if object link exist on that object.
    Thanks .

    Hi Rahul
    Go to
    SPRO>>>Plant Maintenance and Customer Service>>>Maintenance and Service Processing>>>Maintenance and Service NotificationsMaintenance and Service Notifications>>>Notification Processing>>>Object Information>>>Define Object Information Keys
    Define oject keys with all required parameters.
    Then
    SPRO>>>Plant Maintenance and Customer Service>>>Maintenance and Service Processing>>>Maintenance and Service NotificationsMaintenance and Service Notifications>>>Notification Processing>>>Object Information>>>Assign Object Information Keys to Notification Types.
    Assign your key and required notification type.
    In create notification once you enter an object ie. FL or equip. object informatin will come with all details.

  • DW Workbench - Source System : Object Information

    I recently applied some bi support packs through spam, and I realize now in my BW Workbench Source Systems
    under Modeling,  the active/inactive sign under Source System : Object Information column is no longer showing,
    which, usually indicate whether the connection to the source system is ok or not.
    Does anyone know what configuration is changed?
    Thanks.
    Edited by: BI Junior on Jul 16, 2009 8:04 PM
    Edited by: BI Junior on Jul 17, 2009 2:36 AM

    Thanks Mohan Kumar,
    I check the source system, it is ok.
    However, under that column, I used to have a active/inactive symbol which will tell me whether
    the connection is ok or not, now the symbol is gone, so I have to check to see whether the
    related source system ok or not.
    Could you see the symbol in your system? My BI7 ides was SP70009, now I updated to SP70016...

  • Marshalling 'autotype' generated objects back to XML

    I have a document-literal webservice implementation that uses
    WebLogic request/response binding classes generated by
    'autotype'. My trouble is that there does not seem to be any way to programmatically
    transform these Java objects back into XML form. I'm fairly new to web services
    development with webLogic, so I may be missing something, and my hope is that
    there is a straight-forward solution for this.
    I have tried to use the serialize method from the Codec class, but something in
    the underlying implementation throws a NullPointerException in reference to the
    SerializationContext object. And I can't seem to find any documentation on this
    object, or anything explicitly pertaining to marshalling back to XML. So at this
    point, my less than desirable approach is to create a set of parallel classes
    using JAXB, so that I can have access to the JAXBContext marshaller.
    Here is the underlying method for our web service operation (which unsuccessfully
    calls the serialize method on the codec class):
    public com.hp.bea.OutValidateConfig validate_v1_2(com.hp.bea.InValidateConfig
    validateRequest)
    InValidateConfigCodec vcrequestCodec = new InValidateConfigCodec();
    weblogic.xml.stream.XMLName xmlType =
    weblogic.xml.stream.ElementFactory.createXMLName( "http://production.psg.hp.com/types"
    , "InValidateConfigType" );
    try {
    DocumentBuilder docBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
    Document vcDoc = docBuilder.newDocument();
    XMLOutputStream xmlOutputStream = XMLOutputStreamFactory.newInstance().newOutputStream(vcDoc);
    SerializationContext ctx= SerializationContextFactory.newInstance().createSerializationContext();
    // ctx.setNamespacePrefixMap();
    if ( validateRequest == null )
    System.out.println("ValidateRequest is null");
    else
    System.out.println("ValidateRequest is not null");
    System.out.println(validateRequest);
    try
    vcrequestCodec.serialize(validateRequest, xmlType, xmlOutputStream, ctx);
    catch (Exception excp)
    excp.printStackTrace();
    // TODO - call service handler
    Document vcResp = docBuilder.newDocument();
    OutValidateConfigCodec vcResponseCodec = new OutValidateConfigCodec();
    XMLInputStream xmlInputStream = XMLInputStreamFactory.newInstance().newInputStream(vcResp);
    DeserializationContext dCtx= DeserializationContextFactory.newInstance().createDeserializationContext();
    vcResponseCodec.deserialize(xmlType, xmlInputStream, dCtx);
    } catch (Exception e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    return null;
    There must be something I'm missing, because I'm sure there is a simple way to
    Marshall my object back to XML. Am I using the wrong API? Can someone please
    shed some light on this? Any insight or suggestions are much appreciated.
    Thank you,
    Matt

    Hi Matthew,
    Try this example from Manoj [1] and see it fits your use case.
    Hope this helps,
    Bruce
    [1]
    http://www.manojc.com/?sample43
    Matthew Cohen wrote:
    >
    I have a document-literal webservice implementation that uses
    WebLogic request/response binding classes generated by
    'autotype'. My trouble is that there does not seem to be any way to programmatically
    transform these Java objects back into XML form. I'm fairly new to web services
    development with webLogic, so I may be missing something, and my hope is that
    there is a straight-forward solution for this.
    I have tried to use the serialize method from the Codec class, but something in
    the underlying implementation throws a NullPointerException in reference to the
    SerializationContext object. And I can't seem to find any documentation on this
    object, or anything explicitly pertaining to marshalling back to XML. So at this
    point, my less than desirable approach is to create a set of parallel classes
    using JAXB, so that I can have access to the JAXBContext marshaller.
    Here is the underlying method for our web service operation (which unsuccessfully
    calls the serialize method on the codec class):
    public com.hp.bea.OutValidateConfig validate_v1_2(com.hp.bea.InValidateConfig
    validateRequest)
    InValidateConfigCodec vcrequestCodec = new InValidateConfigCodec();
    weblogic.xml.stream.XMLName xmlType =
    weblogic.xml.stream.ElementFactory.createXMLName( "http://production.psg.hp.com/types"
    , "InValidateConfigType" );
    try {
    DocumentBuilder docBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
    Document vcDoc = docBuilder.newDocument();
    XMLOutputStream xmlOutputStream = XMLOutputStreamFactory.newInstance().newOutputStream(vcDoc);
    SerializationContext ctx= SerializationContextFactory.newInstance().createSerializationContext();
    // ctx.setNamespacePrefixMap();
    if ( validateRequest == null )
    System.out.println("ValidateRequest is null");
    else
    System.out.println("ValidateRequest is not null");
    System.out.println(validateRequest);
    try
    vcrequestCodec.serialize(validateRequest, xmlType, xmlOutputStream, ctx);
    catch (Exception excp)
    excp.printStackTrace();
    // TODO - call service handler
    Document vcResp = docBuilder.newDocument();
    OutValidateConfigCodec vcResponseCodec = new OutValidateConfigCodec();
    XMLInputStream xmlInputStream = XMLInputStreamFactory.newInstance().newInputStream(vcResp);
    DeserializationContext dCtx= DeserializationContextFactory.newInstance().createDeserializationContext();
    vcResponseCodec.deserialize(xmlType, xmlInputStream, dCtx);
    } catch (Exception e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    return null;
    There must be something I'm missing, because I'm sure there is a simple way to
    Marshall my object back to XML. Am I using the wrong API? Can someone please
    shed some light on this? Any insight or suggestions are much appreciated.
    Thank you,
    Matt

  • I want to transform an object into a XML-String

    Hallo,
    in my BSP I want to transform an object into a xml string to set a server side cookie.
    Therefore my code is:
      DATA:
        lv_xml      TYPE string,
        lv_username TYPE string.
    model    ?= get_model( model_id = 'main' ).
      lv_username = sy-uname.
      Call TRANSFORMATION id SOURCE o = model  RESULT XML lv_xml.
      cl_bsp_server_side_cookie=>set_server_cookie(
            name                  = 'MODEL'
            application_name      = runtime->application_name
            application_namespace = runtime->application_namespace
            username              = lv_username
            session_id            = runtime->session_id
            data_value            = lv_xml
            data_name             = 'MODEL'
            expiry_time_rel       = 3600 ).
    But after the command "Call Transformation" the xml-string doesn't contain all the data of my object, only this:
    <?xml version="1.0" encoding="iso-8859-1"?>#<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0"><asx:values><O href="#o19"/></asx:values><asx:heap xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:abap="http://www.sap.com/abapxml/types/built-in" xmlns:cls="http://www.sap.com/abapxml/classes/global" xmlns:dic="http://www.sap.com/abapxml/types/dictionary"> <cls:ZCL_M_ESS_TRV_OVW id="o19"/
    ></asx:heap></asx:abap>
    What is wrong?
    Regards.
    Martin

    see thread nr.: Re: Call transformation with an object

Maybe you are looking for