Custom object to paint

hi ,
i need to paint a special object on canvas. this object must look like rectangle with some text or image inside . i looked in Graphics class but didn't find what i want.
how can i specify this object?
thank you in advance

Hi Hans,
In order to successfully round-trip MessageItems which are strongly-typed
classes, you need to call MessageItem.registerBodyClass(PlayerData) - call
this just once as the session synchronizes, and it will remember that this
class should be preserved. If PlayerData contains any other classes (other
than the plain player classes like String, etc), then register those as
well.
However, this really only works when the class you've registered is at the
top level of what you're sending - we don't introspect your objects to see
if one of the registered classes is contained inside what you're sending.
So, to make this work, I'd recommend adding "userId" as a property inside
PlayerData, and sending a PlayerData object :
PlayerDataCollection.addItem(playerData); // playerData has userID inside of
it.
On a semi-related note, I wonder somewhat if a customUserField might not be
a better place to store player data? In this way, your custom playerData can
be attached right to the UserDescriptor of each user - it will be removed
when the player leaves, etc. Might be less management work for you. See
UserManager.registerCustomUserField() and UserManager.setCustomUserField()
in the API reference for more. The same registerBodyClass rules apply there.
  hope that helps.
   nigel

Similar Messages

  • Need to take part of selection criteria out of a custom report (R painter)

    Hi Experts..
    I have a requirement to hide cost elements/group which appear as part of selection criteria on our custom report (report painter) for projects.
    1. Why this appears as part of the selection criteria as i did not find this defined in Edit --> General data selection. (I only found  CO area, Valuation, Fiscal year, Period, and Object in there).
    2. We have found a system performance issue when a user put in cost elements for selection. So I am required to take this out. I thought i can just take this out from General data selection.. If I can't find it in there, where would i be able to do that??
    3. Suppose I would hide this selection by creating a screen variant.. I was looking in SHD0
    but its not working with our Z T.Code...it display the error message "Variants are possible only for dialog transactions"... This does not seem to work with a custom t-code. Then how would I do this ????
    Please help clarify on this ....
    Thanks....
    Monica
    Edited by: Monica Kong on Aug 24, 2008 6:01 AM

    Hi Monica,
    I believe we have an executable report here...
    go to se38 -> enter program name -> click on "attributes" button -> display
    We can see the type as 'Executable' or 'Modulepool'
    generally a selection screen is brought by using keywords 'Parameters' or 'select-options' in Executable programs and with screen in modulepool ..although we can use a combination of both in some cases
    So in your program..
    check for keywords
    'Parameters'/'Select-options'
    The best way to proceed is to press F1 on the field that needs to be removed from selection...note the details
    "screen number" and "screen field"
    (1)By default screen number = 1000  if it is an executable program
    Now see the scrren field ..if it is select-options it will something like field-low or field-high
    so in the report
    search for field for cost center and group with keyword starting as parameters or select-options and comment the same
    Remember to comment tte fields throughout the program since this field will be used in multiple locations
    (2) if it is modulepool program note the screen number , go the program and screen and remove the field from screen painter and comment the fields where ever used in the program
    Also note that using screen variant is a good option but done if user needs specific settings on a report or we need the original report as it is plus additional report with few variations
    Hope it helps
    Pls check and revert
    Regards
    Byju

  • Performance issue in Webi rep when using custom object from SAP BW univ

    Hi All,
    I had to design a report that runs for the previous day and hence we had created a custom object which ranks the dates and then a pre-defined filter which picks the date with highest rank.
    the definition for the rank variable(in universe) is as follows:
    <expression>Rank([0CALDAY].Currentmember,  Order([0CALDAY].Currentmember.Level.Members ,Rank([0CALDAY].Currentmember,[0CALDAY].Currentmember.Level.Members), BDESC))</expression>
    Now to the issue I am currently facing,
    The report works fine when we ran it on a test environment ie :with small amount of data.
    Our production environment has millions of rows of data and when I run the report with filter it just hangs.I think this is because it tries to rank all the dates(to find the max date) and thus resulting in a huge performance issue.
    Can someone suggest how this performance issue can be overcome?
    I work on BO XI3.1 with SAP BW.
    Thanks and Regards,
    Smitha.

    Hi,
    Using a variable on the BW side is not feasible since we want to use the same BW query for a few other reports as well.
    Could you please explain what you mean by 'use LAG function'.How can it be used in this scenario?
    Thanks and Regards,
    Smitha Mohan.

  • How to create the data for custom objects in pList

    Hi,
    I am new in developing on iPhone and I don't know much about this area. I would like to ask a question. I couldn't find the answer on this question in apple documentation but I hope Internet community will help me.
    Lets say I have a class called classA. The classA has 2 public properties (or fields):
    *int customIndex*;
    and
    NSString *customTitle;
    My view controller class showMeSomething has a property NSArray which holds the objects of type classA. I would like to load the array from the plist resource file. How do I edit the resource file with initial values or how do I know the format of the plist which can be loaded from using mainBundle for my array of custom objects?
    Thanks!

    Here's some info on working with plists:
    http://developer.apple.com/documentation/Cocoa/Conceptual/PropertyLists/Introduc tion/chapter1_section1.html
    They can be edited with any text editor. Xcode provides a graphical editor for them - make sure to use the .plist extension so Xcode will recognize it.

  • Generate quote off custom object--HTML in narrative duplicates table

    Hi,
    I am trying to build a quote header and lines off a custom object. Quote header works, but I am using a separate narrative report called from a web link to show the quote item lines data. The narrative section displays my basic table header and lines, but since the report returns two rows for the selected parts, the table with the header and lines is displayed twice, once for each row returned by the report itself.
    I just want one instance of the table, one header and two lines, not separate tables for each part.
    Here is the sample html placed in the narrative section of the report.
    <TABLE BORDER="5" WIDTH="50%" CELLPADDING="4" CELLSPACING="3">
    <TR>
    <TH COLSPAN="2"><BR><H3>TABLE TITLE</H3>
    </TH>
    </TR>
    <TR ALIGN="CENTER">
    <TH>Column A</TH><TD>@5</TD><TH>Column B</TH><TD>@8</TD>
    </TR>
    </TABLE>
    Many thanks for any input.

    Hi,
    Instead of putting it all in the Narrative section you could use the Prefix and Postfix like below:
    <!-- Prefix -->
    <TABLE BORDER="5" WIDTH="50%" CELLPADDING="4" CELLSPACING="3">
    <TR>
    <TH COLSPAN="2">
    TABLE TITLE
    </TH>
    </TR>
    <TR ALIGN="CENTER">
    <TH>Column A</TH><TH>Column B</TH>
    </TR>
    <!-- Narrative -->
    <TR ALIGN="CENTER"><TD>@5</TD><TD>@8</TD>
    </TR>
    <!-- Postfix-->
    </TABLE>

  • Event Bubbling Custom Object not inheriting from control

    One of the new things flash flex and xaml have are ways which
    the event easily bubbles up to a parent that knows how to handle
    the event. Similar to exceptions travel up until someone catches
    it.
    My goal is to use the frameworks event system on custom
    objects. My custom objects are:
    ApplicationConfiguration
    through composition contains:
    SecurityCollection which contains many or no SecurityElements
    and
    FileSystemCollection.cs which contains many or no
    FileSystemElement objects
    ect ect basically defining the following xml file with custom
    objects.
    [code]
    <ApplicationConfiguration>
    <communication>
    <hardwareinterface type="Ethernet">
    <ethernet localipaddress="192.168.1.2" localport="5555"
    remoteipaddress="192.168.1.1" remoteport="5555" />
    <serial baudrate="115200" port="COM1" />
    </hardwareinterface>
    <timing type="InternalClock" />
    </communication>
    <filesystem>
    <add id="location.scriptfiles" value="c:\\" />
    <add id="location.logfiles" value="c:\\" />
    <add id="location.configurationfiles" value="c:\\" />
    </filesystem>
    <security>
    <add id="name1" value="secret1" />
    <add id="name2" value="secret2" />
    </security>
    <logging EnableLogging="true"
    LogApplicationExceptions="true" LogInvalidMessages="true"
    CreateTranscript="true" />
    </ApplicationConfiguration>
    [/code]
    basically these custom objects abstract the xml details of
    accessing attributes, writing content out of the higher application
    layers.
    These custom objects hold the application configuration which
    contains the users options. The gui application uses these
    parameters across various windows forms, modal dialog boxes ect.
    The gui has a modal dialog that allows the user to modify these
    parameters during runtime.
    basically i manage: load, store, new, edit, delete of these
    configuration files using my custom objects.
    Where would event propagation help in custom objects like
    described above?
    ConfigurationSingleton.getInstance().ApplicationConfiguration.CommunicationElement.Hardwar eInterfaceElement.EthernetElement.RemoteIPAddress
    =
    System.Net.IPAddress.Parse(this.textBoxRemoteEthernetIpAddress.Text);
    The EthernetElement should propagate a changed event up to
    the parent ApplicationConfiguration which would persist this to the
    registry, db, file or whatever backend.
    currently this logic is maintained else where. I serialize
    the root node which compositely serializing the nested nodes and i
    check of the serialization is different from that in the backend
    … This tells me if the dom was modified. It works but i would
    like an event driven system.
    how should i implement bubbling using custom objects?
    3 implementation ideas:
    1) A simple way is to implement a singleton event manager:
    EventManager.RegisterRoutedEvent
    http://msdn2.microsoft.com/en-us/library/ms742806.aspx
    I like this idea but how can you tell which object is nested
    in who… this way the event can be stopped and discontinue
    propagation?
    2) If i use binders as discussed in Apress’s book:
    Event-Based
    Programming Taking Events to the Limit
    basically a binder connects the events between seperate
    objects together… although it would work for my app, I would
    like a more generalized approach so i can reuse the event system on
    future project.
    3) how does flash flex handle this..
    objectproxy.as?
    http://www.gamejd.com/resource/apollo_alpha1_docs/apiReference/combined/mx/utils/ObjectPro xy.html#getComplexProperty()
    >Provides a place for subclasses to override how a complex
    property that needs to be either proxied or daisy chained for event
    bubbling is managed.
    how does these systems all work....? Reflection ?
    this way i can simulate this on my own custom classes.
    Thanks!

    I have a strong sensation that the OSMF project is quite dead.
    no new submits since 2010, the contact form on the offical OSMF
    project website http://www.opensourcemediaframework.com/
    returns a PHP error.
    and many unanswered questions about OSMF in this forum.
    i think it would be wise to not use OSMF if possible, although
    I'm also stuck with it since we are utilizing HDS/PHDS
    protocols which are utilized in the framework.
    otherwise its quite a head-ache.
    I'm unable to get to a video element coming from a proxied element
    that is being produced via an HDS connection.
    and haven't found any solution that works.

  • How can I disable a Custom Object Test?

    I wonder if there is a way to disable a Custom Object Test. When I do a right click I don't see the option as in the other items under the frame node. I don't want to delete them because I may use them as reference in the future. So far I've been saving the file with a different name in order to preserve them, but, I don't want to have too many unused files around.

    In order to disable a Custom Object Test right click on the Custom Object Test node and select "Script VBA Properties...". In the window that is opened uncheck "e-Tester" if you want to disable it when playing back in eTester for regression testing. The other two checkboxes are to disable the execution of the Custom Object Test when running the script in eLoad.

  • How can i create a custom object 0REQUID

    Hello all,
    I have a question. How can i create a custom object 0REQUID? Is it possible to create it without actvating BI content?
    Thanks in advance..

    Hi,
    If you want to create a new info object which is a copy of 0REQUID. then
    Go to > info object key figure / Chara catalogue> create new key figure / Chara --> enter 0REQUID in front of TEMPLATE and you will get all details of 0REQUID in your new key figure / chara.
    Hope this helps.
    Assgn pts if helpful.
    Regards
    Edited by: chintamani deshmukh on Apr 14, 2008 11:09 AM

  • Checking the status of task records tied to the custom object 3

    We are using custom object 3
    There has been lot of configuration work done on this object.
    There is a checkbox on the UI. When a user will checks off the check box, a task record(s) is created depending on the condition.
    Is there a way for me to check the status on the task records and then set a field on the parent record i.e. custom object 3.
    Thanks,
    Nitika

    To whom are you speaking?

  • Using a Custom Object to allow an Entity to link to itself

    Hey folks,
    Have a feeling the answer to this is No, but have to ask anyway.
    Is there any way that anyone is aware of to use a Custom Object to link an Entity to itself? For example... We have a CO (Custom Object) which is linked to Service Request. I want to link this CO to Service Request again, allowing one Service Request to be linked to another Service Request via the CO. I can obviously link Service Request to the CO, but the second link doesn't seem likely.
    Cheers,
    Mark

    You can link multiple Service Requests to a single Custom Object (1-3) very easliy. Just expose SRs under related items on the Custom Object and adjust Access Profiles appropriately. Alternately, you can add Custom Objects to related items on the Service Request page layout so SRs can be linked to multiple COs.
    In the end, you can end up with one CO linked to multiple SRs. This should give you what you are looking for - there may be more elaborate solutions involving multiple advanced custom objects.
    The key, of course, is how you need this data to be viewed or reported on. You'll need to assess this solution to see if the output is what you require.

  • Many to Many with Custom Objects 4 and up

    Hello,
    Pls. I need to define a new CO4 that will have a many to many relationship with Contact.
    From OD help pg.775 I understand that I should use another CO (f.ex. CO5) to be the intersection. Help file indicates how to rename the objects...and put them in the related info. section... but I don´t know what FIELDS (if any) I should define in the intersection CO5.
    Pls. Anyone could help ?
    Txs. a lot.
    Antonio

    Yes. You have to define them in CO5 Layout.
    You should see Name, Contact and Custom Object 04 (you may have renamed it). Not the Id field.
    Then when you add THE CO5 layout to Contact Related section, you can add new association between Contact and CO4.
    Don't forgot to enable the Access Profiles in Contact, CO4 and CO5.

  • Error when trying to create custom object

    Hi,
    The error below occurs when I am trying to create a new form that was created using the customer object 1 form.
    No language independent code exists for value 'English - United States' and type 'OCC_CUST_ZOBJ_1_LOV_3' with language 'ENU' in table 'S_LST_OF_VAL'.(SBL-DAT-00510)
    Has anyone seen this before?
    thanks

    David, I would recommend contacting On Demand customer care.

  • How to find all those list of SAP standard and custom objects that are changed from a specific point of time

    Hi all,
    Please let me know the process to track or find all the SAP Standard and custom objects. that got changed from a specific point of time.
    Is there any function module or any table where this change log is maintained.?
    I just only need the details ,wheather that SAP standard or Custom object has got changed or not.
    Thanks in advance

    Hi RK v ,
    I really don't know what your actual requirement is , but if you want to know the objects as per the modification , then transport request will be much help to you .
    Have a look into table E070 and E071 .
    Regards ,
    Yogendra Bhaskar

  • Sales order with reference to a custom object

    Hi all experts, I have a question.
    I want to create a sales order with reference to a complete custom object created in the CRM system. The custom object has a unique number assigned to it. How can I use the reference of this custom object in my sales order?
    In other words, can I use a field in the sales order which will be storing this custom object number? If yes, which field can be used? If no, how else can this be achieved? Thanks in advance.

    Animesh,
    You have two options:  Use the external reference number field on the Sales order if it is not be being used, however if you capture the customer's PO number you are probably aleady using that field.  Otherwise I would do what you said and create a new Z-field via the EEWB and store your external reference number there.
    If the custom object number was 10 digits alpha numeric, you could possibly create a custom partner function, but I really don't recommend it.  The z-field will give you better performance for reporting, and future processing.  I would put the z-field field in the CUSTOMER_H segment of the document.
    Take care,
    Stephen

  • Expose Data 0f 1 Custom object group them based on another custom object

    1. Custom Object 2: Call Report
    2. Custom Object 1: Customer
    3. Account:
    Fields: Account
    Account Id
    Call Report
    Created Date
    Row Id
    Subject
    Owner
    Status
    Customer
    Customer Name
    Using Real Time Reporting-> Call Reporting
    Hide Display of Distributor Id, prompt on dashboard
    Need to group customer name based on call report row id.
    Union of 2 reports, we cannot use Account Id as prompt(does not support).
    Report output as below
    Account id1, created date, object, status, owner, Customer name 1
    Customer name 2
    Account id2, created date, object, status, owner, Customer name 6
    Customer name 7
    Account id4, created date, object, status, owner, Customer name 9
    Thanks in Advance.

    Please add a question to your post. It is not clear what output you are trying to achieve that is not working.
    Thanks!

Maybe you are looking for