Is it possible to have clickable drawn elements

I can add a click event to the canvas, but can't figure how to have a click specific to only an object on the canvas can anybody help? I just want to add an event listener to the circles and not the canvas, but I can not figure out how to point to them specifically so i can make them draggable. I included a canvas click function that displays the mouse position when you click the canvas.
var winRes = "dialog {  \
    text: 'test',  \
    margins: 15, \
    alignChildren: 'row', \
    canvas: Custom {  \
        preferredSize: [200, 200], \
        creation_properties: {borderStyle: 'black'} , \
// Window
var win = new Window(winRes);
function color() { return [Math.random(),Math.random(),Math.random(),1] }
// define the graphic property
canvasGraphics = win.canvas.graphics
// do the drawing
win.canvas.onDraw = redraw
win.canvas.addEventListener ('mousedown', down, false);
function down(e){
    curX = e.clientX;
    curY = e.clientY;
    alert("Mouse position: " + curX + ", "+ curY)
function redraw() {
          // creates a red filled square
          canvasGraphics.newPath()
          canvasGraphics.rectPath(0, 0, 200, 200)
          canvasGraphics.fillPath(canvasGraphics.newBrush(canvasGraphics.BrushType.SOLID_COLOR, color(), 1)) // HERE
          canvasGraphics.newPath()
          var dot1 = canvasGraphics.ellipsePath (20, 20, 30, 30)        
          canvasGraphics.fillPath(canvasGraphics.newBrush(canvasGraphics.BrushType.SOLID_COLOR, color(), 1)) // HERE
          canvasGraphics.newPath()
          var dot2 = canvasGraphics.ellipsePath (20, 90, 30, 30)
          canvasGraphics.fillPath(canvasGraphics.newBrush(canvasGraphics.BrushType.SOLID_COLOR, color(), 1)) // HERE
          dot1.onmousedown = dot2.onmousedown = function(){
              var me = this;
              alert(me)
win.show()

Ryan,
Have you looked into trying to use the Web Pane URL for your scenario?
<a href="http://help.sap.com/saphelp_mdm550/helpdata/en/8c/ca6d92fe624549a2809c8d02ab063c/frameset.htm">Web Pane URL</a>
<a href="http://help.sap.com/saphelp_mdm550/helpdata/en/43/79696a7c9c6fcae10000000a1553f6/frameset.htm">Web tab</a>
This will allow you to create a URL to search Google for example based on the data contained your fields/attributes. You need to create the custom URL in the Console and then activate the option from the configuration settings in the Data Manager. This will then activate the Web tab for this link, all internal to MDM.
Let me know if you need more detail.
Thanks,
Tim

Similar Messages

  • Possible to have clickable link in a compressed movie

    Hello forum readers,
    I have several QT movies that I'm compressing in Compressor 1.2.1.
    These movies will be offered free on the internet , and I would like to have my logo branding (bottom right corner) so when clicked - it would take them to the website in a browser.
    Is this possible?
    Thanks for any help you may offer,
    Luke Wonderly

    Greetings, 9mluke.
    While I've never done this, it is possible to have clickable urls in a Quicktime file. MacBreak Weekly does this. In fact, they have a video podcast which takes you step by step through the process. It requires a 3rd party program called LiveStage Pro to actually embed clickable links. All of that is described in their podcast which can be found via iTunes here:
    MacBreak 31: The Road To 1080p pt. 6

  • Possible to have dynamic content within a campaign?

    Is it possible to have dynamic content elements within an email campaign so that different content appears based on a recipient's interests?

    Hey there, Nope.
    BUT
    See the BC Blog

  • Is it possible to have a clickable hyperlink as a field under Products?

    As the subject says, is it possible to have a clickable hyperlink setup as a field in the Products table somehow? Basically I have a field that automatically constructs a hyperlink based on an assignment and I'm wondering if there is a way you can set it up so that you can just click on it and have it open up Internet Explorer as opposed to having to copy the link and paste it in a browser.
    Thanks!

    Ryan,
    Have you looked into trying to use the Web Pane URL for your scenario?
    <a href="http://help.sap.com/saphelp_mdm550/helpdata/en/8c/ca6d92fe624549a2809c8d02ab063c/frameset.htm">Web Pane URL</a>
    <a href="http://help.sap.com/saphelp_mdm550/helpdata/en/43/79696a7c9c6fcae10000000a1553f6/frameset.htm">Web tab</a>
    This will allow you to create a URL to search Google for example based on the data contained your fields/attributes. You need to create the custom URL in the Console and then activate the option from the configuration settings in the Data Manager. This will then activate the Web tab for this link, all internal to MDM.
    Let me know if you need more detail.
    Thanks,
    Tim

  • Make clickable UI-elements for windows Phone 8.1 apps maps

    Windows Phone 8.1 App , C#
    I would like to let the user add Pushpins ( which apparently are called MapIcons ) to the map and when the user clicks the newly created Pushpin some other ui-elements should appear.
    But apparently MapIcons are not clickable and you can not inherit from them since they are sealed, so no luck in making them clickable.
    I tried to just extend from Windows.UI.Xaml.Controls.Button , but those have not Location, probably because the do not belong to the Windows.UI.Xaml.Controls.Maps-namespace. So I can not really add them to the Windows.UI.Xaml.Controls.Maps.MapControl.Children
    or Windows.UI.Xaml.Controls.Maps.MapControl.MapElements, since they will not be on the map where I would want them to be.
    So how do you make a clickable ui-element that I can give a location on the map?
    I already was here
    https://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn792121.aspx#showing_xaml_controls_and_shapes_on_the_map
    But I don't see how I can add clickable elements to my map
    I could write something like this of course
            <Maps:MapControl Grid.Row="1"
                x:Name="map"
                MapServiceToken="token"
                >
                <Maps:MapIcon>
                </Maps:MapIcon>
            </Maps:MapControl>
    But this MapIcon again is not clickable and it also staticly coded. I want to add mine dynamic.

    Hi Michael,
    Yes, as you said the MapIcon is not clickable, then for the workaround, please try to check the reply which posted by @Jogy in here:
    http://stackoverflow.com/questions/25377526/windows-phone-8-1-mapicon-click-event .
    Rest Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • RE: DropLists in ArrayFields - is it possible to have adifferent sele

    Richard;
    Here you go....
    newList : Array of ListElement = new;
    { add elements }
    row : Integer = { get your row };
    column : Integer = { get by name or just know the number }
    // poof! Watch that down cast!
    (DropList)(<arrayField>.BodyGrid.GetChildInCell(row,column)).SetElementList(
    newList);
    You can also change FieldWidget settings....
    <arrayField>.BodyGrid.GetChildInCell(row,column).FillColor =
    C_BLUE;
    My array field doesn't scroll (lucky me!). See if the AfterFieldScrolled
    event fires at the right time to recalculate the widget state. I haven't
    played with it and I'm far from a Forte GUI guru, but I suspect that you are
    altering the column template and the visible widget is separate from the
    data. So as you scroll, the data would scroll but the new settings stay
    put. That's not what I would want/need. The widget reflects something
    about the data. When the data scrolls, so should the presentation
    properties!
    What may be needed is to somehow derive the presentation state settings
    dynamically from the mapped data. So when the data scrolled, the dynamic
    settings change on the new presentation row.
    Let me know.....
    Scott Irwin
    -----Original Message-----
    From: Richard Finegan [SMTP:[email protected]]
    Sent: Monday, August 24, 1998 1:38 PM
    To: 'Forte Users Mailing List'
    Subject: DropLists in ArrayFields - is it possible to have a
    different selection list per row?
    I have a DropList in an ArrayField column. Is it possible to have a
    different list of selections for each DropList in a different row?
    (ex.
    DropList #1 in row #1 can choose from a/b/c, whereas a DropList #2
    in row
    #2 can choose only from d/e/f, etc.) Technote 4996 seems to imply
    that it
    isn't possible, and everything I've tried so far has failed as well.
    Any insight appreciated.
    Richard Finegan
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    One way to do this is to get at the specific dropList widget in the
    arrayField by calling the getChildInCell(Row,Column) method on
    <..theArrayField..>.BodyGrid. This widget can then be assigned any
    dropList you want. Depending on the uniqueness of the individual
    dropLists, each data row specific dropList can be coded as an attribute
    (array of ListElement) on the mapped class, which can then be assigned
    to the dropList widget.
    A code snippet to do this would be -
    method refreshArray
    begin
    for displayRow in 1 to <myArrayField>.VisibleRows do
    dataRow : integer = displayRow + <myArrayField>.TopRow - 1;
    myDropListWidget : dropList =
    dropList(<myArrayField>.BodyGrid.getChildInCell(displayRow,
    <..columnNumOfDropList..>));
    myDropListWidget.setElementList(myArrayField[dataRow].myElementList);
    end for;
    end method;
    This method has be called only when the user scrolls the arrayField, as
    in -
    when <myArrayField>.AfterFieldScrolled do
    refreshArray();
    Hope this helps.
    Prashant.
    From: Richard Finegan[SMTP:[email protected]]
    Reply To: Richard Finegan
    Sent: Monday, August 24, 1998 11:38 AM
    To: 'Forte Users Mailing List'
    Subject: DropLists in ArrayFields - is it possible to have a
    different selection list per row?
    I have a DropList in an ArrayField column. Is it possible to have a
    different list of selections for each DropList in a different row?
    (ex.
    DropList #1 in row #1 can choose from a/b/c, whereas a DropList #2 in
    row
    #2 can choose only from d/e/f, etc.) Technote 4996 seems to imply
    that it
    isn't possible, and everything I've tried so far has failed as well.
    Any insight appreciated.
    Richard Finegan
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • I have Adobe Premiere Elements and it will not let me export?

    I have Adobe Premiere Elements and it will not let me export? It also will not let me login. It says  photoshop.com is temporarily unaivalable and to check my network settings. Error 400. Can anyone help me? I need to export this video as soon as possible.

    You don't say which version of Premiere Elements you're using, but Photoshop.com was discontinued last year, so you won't be able to log into it.
    As for exporting -- it's hard to give you specific information without knowing which version of the software you're using and on what operating system but -- which Share or Publish & Share option are you using and what is happening when you use it?

  • Is it possible to have video with a transparent background in dps?

    Is it possible to have video with a transparent background in dps?. Basically i've animated some elements in apple motion and want to incorporate them as an overlay (with the indesign page background showing through).

    You could do it with an image sequence but AFAIK there’s no support for alpha channels in video.

  • B2B EDI translation ----Is it possible to increase the sub-element length

    B2B EDI translation ----Is it possible to increase the sub-element length??
    Am new to the B2B 10g- EDI Integration environment. In our production setup, am getting the following error.
    B2B EDI Translation failed, because one of the fields was too long. The length of Sub-element length is '41'. The maximum allowed length is '35'.
    In the segment RFF defined in the guideline at position 0070; Is it possible to increase / expand the lenght from 35 to 41.....
    Thanks and Rgds,
    -Srini

    Hi Nitesh
    I have the same problem what srini explained above.
    I'm using Oracle B2B Document editor.
    That corresponding element's field is in disabled state ,a red triangle displays in top right corner of that field.
    Could you help me to solve this issue?
    Regards
    Kathir

  • Is it possible to have CFTREE auto expand? (with binding)

    Hi there,
    ColdFusion newbie here so please bear with me.
    I'm doing some tutorials on CFTREE right now, so far it works
    well as is, but I have a question:
    Is it possible to have the whole tree expanded automatically
    when the user first open the page? I know there is the "expand"
    attribute for the "cftreeitem" element, but it is not allowed when
    using dynamic data bindings.
    I know I could probably do the manual looping of queries to
    achieve this, but it would be nicer if we could use the binding
    mechnism and still have ColdFusion automatically go through
    different levels.
    The data I intend to use the CFTREE on is of quite managable
    amount, so I don't think performance would be a big problem here.
    Any tips or hints will be appreciated, and many thanks in
    advance!
    Billy

    I've never used it but it seems that there is an attribute
    called expand in the cftree items- I imagine the tag is something
    like
    <cftree>
    <cftreeitem value = "Travel Assistant" display = "Travel
    Assistant" parent = "Emp_ID" queryAsRoot = "No" expand = "yes">
    </cftree>
    good luck

  • Possible to show the WBS element in the down payment request?

    Hi,
    We have a

    Hi,
    We have a Plant maintenance order with a WBS element.
    We have created a PO for a vendor. The WBS element is not shown on the PO.
    Is it possible to show the WBS element on the down payment request of that vendor?
    Thank you for your feedback.
    Kind regards,
    Linda

  • Hey is it possible to have a slideshow of our camera roles as our lock screen background in an update??

    Hey is it possible to have a slideshow of our camera roles as our lock screen background in an update??

    If it's a report program, use a comment in the selcetion screen for information of the user as shown below.
    * Information
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-003.
    SELECTION-SCREEN COMMENT /1(60) text-004. "Text containing the information message
    SELECTION-SCREEN END OF BLOCK b1.
    If you are using a module pool, you can create a tooltip for the element as suggested.

  • Is it possible to have an empty column title in a configTable?

    Hi all,
    is it possible to have an empty column title within a configurable table (chtmlb:configTable)? Whenever I change the title with the config tool to empty and save the changes it seems that it doesn't take effect.
    The problem is that the column width is too less to display the whole text and I don't want to have "A..." displayed there.
    Best regards
    Ben

    Hi,
    Not possible directly but possible programatically.
    The Column titles come from the data-element description. To override this, you will need to change the data element nd its fairly simple. Create a data element similar to the std. data element domain but put your description and then in GET_M method of that attribute, use this Z data type.
    For example, suppose its searhc result Displaying addresses in a table view, then for states, you get name as "Region".
    In most of asian countires, instead of region, "state" this word is used. So if i want to disply the colum header as states and not region,
    1) i will find which is the doain of std. region field.
    2) i will create a data element with this domain but i will give different description to my data element, This description would be States
    3) In the GET_M method of that particular column attribute, i will change the type to my data element.
    an i am done.
    Thus you can create your data element with shorten and more meaningful text . I think system does not allow you to save a data element or domain w/o a description hence i doubt if blank will be possible..need to check it out.
    Hope this helps
    Thanks & Regards,
    Suchita

  • Is it possible to have an icon in the column title of a chtmlb:configTable?

    Hi all,
    is it possible to have an icon (with tooltip) displayed in the column header as the title within a configTable (extension chtmlb)? I think I already know the answer but I want to try everything I can.
    Within the configuration mode I think there is not possibility isn't it? But is there any kind of coding (maybe with columnDefinitions or something) to do it?
    Thank you for your help.
    Best regards.
    Ben

    Hi Ben,
    You can try enhancing the handler class of the BSP Element (configTable). There is a method in the class CL_CHTMLB_CONFIG_TABLE named IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS. Or create a new BSP Element based on a custom class similar to the standard one.
    Regards.
    Isaac Meléndez

  • Spry Accordion: Is it possible to have no row selected?

    Is there any way to make the Accordion act like there is no
    row currently selected? It doesn't appear to be possible to set
    this to null. The data in this case is being loaded from an XML
    file, so I made a work-around by making the first XML element in
    the list an empty tag, which worked ok, but that makes it harder to
    retrieve the XML file directly from the database. Is there any way
    to truly have no row selected in the Accordion?

    True, I guess the accordion isn't the issue. What I'm
    referring to are the functions for getting the current row from in
    the XMLDataSet API. As far as I can tell, it doesn't seem to be
    possible to have a null value for the currently selected row. I
    just wanted to make sure that it is not in fact possible to have an
    XMLDataSet instance with no currently selected row?

Maybe you are looking for

  • PermGen space Error in Weblogic Server

    Hi, I am facing problem with Premgen space; java.lang.outofMemory+, while deploying (Importing the jar file in the server) my service in the Server, I need to restart the Server each and every time due to this problem. I am currently using Weblogic 1

  • Embedded video plays and then shows frame one at end.

    Hi, I have an embedded video that is approx 500 frames. It plays through but at the end, when it stops, it shows frame 1. At the end of the video I have placed stop(); Any ideas on how to get it to stay at the last frame at the end? Thanks for any he

  • Dropdowns not appearing when logged into a webbased software product.

    Hello, I have some webbased software that I'm a member of and there is a navigation area where dropdown boxes will appear if i'm on my pc using any browser. According to the developer, the dropdowns are written in javascript. In my iphone though, the

  • Jtree expand all not working

    I have a very large jtree, that at it second level gets loaded from a JDOm file. The problem is I am having a problem expanding all the nodes under a particular node. I need an expandAll method. Nothing I have tried has expanded beyond the child leve

  • Graphics completely screwed up after 10.6.2 update

    Hi All, I was using Numbers 08 earlier this evening and the graphics all looked fine. After allowing Software Update to install the 10.6.2 update tonight, and restart, I opened up Numbers to find that the graphics boxes, including pie charts, etc, ar