Click Event Question - VB6 SDK 6.5

A quick question for you guys:
On the A/R Invoice form, I have a UDF that exists as a combo box.  I can trap the et_COMBO_SELECT event on that combo box just fine, however, I would like to generate a click event on the 'Name' field on the main form from the UDF et_COMBO_SELECT event.  The problem I'm running into is that because the form that contains the UDF has a different UID from the actual A/R Invoice main form, I get an error when I try to perform the click event on the 'Name' field.  The code I'm using is below.  Any help would be appreciated.
Thanks,
Greg
'(A/R Invoice) Change value of eqp_DivisionCode global variable when combo select event triggers
If eqp_pVal.FormType = -133 And eqp_pVal.FormMode = fm_ADD_MODE And _
   eqp_pVal.ItemUID = "U_Division" And eqp_pVal.EventType = et_COMBO_SELECT Then
   Set eqp_frm = SBO_Application.Forms.Item(FormUID)
   Set eqp_cmbDivision = eqp_frm.Items("U_Division").Specific
   eqp_DivisionCode = eqp_cmbDivision.Selected.Value
End If

Hi Greg,
if you want to access a User Defined Field on a System Form but in header level you need to approach it as follows:
If (pVal.EventType = et_FORM_LOAD And pVal.FormType = 139 And _
    pVal.Before_Action = True) Then
        Set oform = m_App.Forms.Item(FormUID)
        Dim oUsrForm As SAPbouiCOM.Form
        Dim num As Long
        Dim UDFformUID As String
        num = Right(FormUID, (Len(FormUID) - 2))
        num = num + 1
        UDFformUID = "F_" & num
        Set oform = m_App.Forms.Item(UDFformUID)
        oform.Items.Item("U_1").Specific.String = "Test"
    End If
Regards,
Lisa Mulchinock
SAP SDK Consultant
Galway

Similar Messages

  • Click event question

    I have a form that objects are either visible or invisible if a check box has been clicked. I am wondering if there is a limit to actions on an event?

    Add Canvas A as a child of Canvas B. After doing so, use the
    e.currentTarget (where e:Event) to fire a click event for Canvas B.
    If you want to fire a child within, then use e.target instead.
    Does that help any?
    --Christopher--

  • Adobe plugin For Mouse Click Event Handler

    Hi All, How to write plugin For Mouse Click Event Handler? Please reply quickly..
    Thanks in Advance

    AS has already been replied to you on the other threads.
    THE ACROBAT SDK has all the information you need to implement your solution. If you investigate the SDK and find a specific part of implementing your solution that is causing a problem. Then post that specific problem on the forum so that Leonard/PDL/ Aandi/Everyone else, can help you with specific problems.
    This question is too open ended for it to be easily answered with out doing a lot of work.
    Please download the SDK.
    Investigate the Documentation/Samples.
    Start developing your plug-in. ( I would recommend the Acrobat-plug-in wizard)
    And if you hit a specific problem we will be happy to try and help.
    Please note MULTIPLE POSTS just annoy.
    HTH
    Malky

  • How can I (neatly) control mouse click events in a multi-dimensional array?

    Hello everyone!
         I have a question regarding the use of mouse clicks events in a multi-dimensional array (or a "2D" array as we refer to them in Java and C++).
    Background
         I have an array of objects each with a corresponding mouse click event. Each object is stored at a location ranging from [0][0] to [5][8] (hence a 9 x 6 grid) and has the specific column and row number associated with it as well (i.e. tile [2][4] has a row number of 2 and a column number of 4, even though it is on the third row, fifth column). Upon each mouse click, the tile that is selected is stored in a temporary array. The array is cleared if a tile is clicked that does not share a column or row value equal to, minus or plus 1 with the currently targeted tile (i.e. clicking tile [1][1] will clear the array if there aren't any tiles stored that have the row/column number
    [0][0], [0][1], [0][2],
    [1][0], [1][1], [1][2],
    [2][0], [2][1], [2][2]
    or any contiguous column/row with another tile stored in the array, meaning that the newly clicked tile only needs to be sharing a border with one of the tiles in the temp array but not necessarily with the last tile stored).
    Question
         What is a clean, tidy way of programming this in AS3? Here are a couple portions of my code (although the mouse click event isn't finished/working correctly):
      public function tileClick(e:MouseEvent):void
       var tile:Object = e.currentTarget;
       tileSelect.push(uint(tile.currentFrameLabel));
       selectArr.push(tile);
       if (tile.select.visible == false)
        tile.select.visible = true;
       else
        tile.select.visible = false;
       for (var i:uint = 0; i < selectArr.length; i++)
        if ((tile.rowN == selectArr[i].rowN - 1) ||
         (tile.rowN == selectArr[i].rowN) ||
         (tile.rowN == selectArr[i].rowN + 1))
         if ((tile.colN == selectArr[i].colN - 1) ||
         (tile.colN == selectArr[i].colN) ||
         (tile.colN == selectArr[i].colN + 1))
          trace("jackpot!" + i);
        else
         for (var ii:uint = 0; ii < 1; ii++)
          for (var iii:uint = 0; iii < selectArr.length; iii++)
           selectArr[iii].select.visible = false;
          selectArr = [];
          trace("Err!");

    Andrei1,
         So are you saying that if I, rather than assigning a uint to the column and row number for each tile, just assigned a string to each one in the form "#_#" then I could actually just assign the "adjacent" array directly to it instead of using a generic object to hold those values? In this case, my click event would simply check the indexes, one at a time, of all tiles currently stored in my "selectArr" array against the column/row string in the currently selected tile. Am I correct so far? If I am then let's say that "selectArr" is currently holding five tile coordinates (the user has clicked on five adjacent tiles thus far) and a sixth one is being evaluated now:
    Current "selectArr" values:
           1_0
           1_1, 2_1, 3_1
                  2_2
    New tile clicked:
           1_0
           1_1, 2_1, 3_1
                  2_2
                  2_3
    Coordinate search:
           1_-1
    0_0, 1_0, 2_0, 3_0
    0_1, 1_1, 2_1, 3_1, 4_1
           1_2, 2_2, 3_2
                  2_3
         Essentially what is happening here is that the new tile is checking all four coordinates/indexes belonging to each of the five tiles stored in the "selectArr" array as it tries to find a match for one of its own (which it does for the tile at coordinate 2_2). Thus the new tile at coordinate 2_3 would be marked as valid and added to the "selectArr" array as we wait for the next tile to be clicked and validated. Is this correct?

  • Click event on SWFLoader

    Hello,
    In my FLEX application i have a SWFLoader where i load some wsf files that are located in others places in the web. Some of the swf files loaded contain an hyperlink associated and, when the swf file is clicked, a new web page is opened.
    So, i need to count the number of clicks made in the SWFLoader but, in the case when the swf file has an hyperlink associated, the click event is not fired. What can i do to detect if a click was made in the SWFLoader?
    Thanks in advance for your help.

    Hi carlos_sousa4,
    Check the below code loading the Flash SWF in to Flex application.. and handling a click event on the Flash SWF Button in the Flex app..
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="vertical"
    backgroundAlpha="0"
    backgroundColor="#FFFFFF">
    <mx:Script>
      <![CDATA[
       import mx.controls.Button;
       import mx.controls.Alert;
       private var loadedSWFMainTimeline:*;
       public function onSWFLoadComplete():void {
        Alert.show("onSWFLoadComplete");
        //loadedSWFMainTimeline gets you a reference to the Flash SWF MainTimeline
        loadedSWFMainTimeline = swfLoader.content;
        if(loadedSWFMainTimeline)
         var _button:SimpleButton = loadedSWFMainTimeline.button_btn as SimpleButton;
         _button.addEventListener(MouseEvent.CLICK,onMCButtonClick);
       public function onMCButtonClick(event:MouseEvent):void {
        if(loadedSWFMainTimeline)
         Alert.show("HELLO SWF LINK CLICKED");
      ]]>
    </mx:Script>
    <mx:SWFLoader id="swfLoader" source="assets/flashswf.swf" complete="onSWFLoadComplete();"/>
    </mx:Application>
    Note : In the above code  button_btn is the Flash button instance of the SWF file and the corresponding type in the Flex will be SimpleButton...In your post you said that you are using a HyperLink so may be you should flash.text.TextField datatype instead of SimpleButton.
    Try to debug by putting a break point at onSWFLoadComplete function and watch the loadedSWFMainTimeline varibale you will come to know the exact type and the other parameters in the SWF file.
    If this post answers your question or helps, please kindly mark it as such.
    Thanks,
    Bhasker Chari

  • Can't get click event to load from ImageButton

    *Newbie Alert*
    I am trying to create dynamic image buttons that when clicked will redirect to anothr page as well as add a new item to a SharePoint list. My Image buttons create sucessfully but the click event is not loaded. I have added a break point visual studio and
    can see that the function is never loaded.
    My Image button creation code (within Page_load) is:
    ImageButton lnk = new ImageButton();
    lnk.ID = WPtitle;
    lnk.CommandName = WPtitle;
    lnk.CommandArgument = WPtitle;
    lnk.PostBackUrl = WPUrl;
    lnk.Visible = true;
    lnk.ImageUrl = WPImgUrl;
    tc.Controls.Add(lnk);
    lnk.Click += new System.Web.UI.ImageClickEventHandler(this.send_Click);
    and then my event is:
    public void send_Click(object sender, ImageClickEventArgs e)
    SPWeb site = SPContext.Current.Web;
    var clicklist = site.Lists["listname"];
    string WPTitle = ((ImageButton)sender).CommandArgument.ToString();
    SPListItem additem = clicklist.AddItem();
    additem["Title"] = "text";
    additem["Clicked"] = "1";
    additem.Update();
    Any help as to why this is not loading would be greatly appreciated.
    Thanks

    hi,
    you have assign a evenhandler after you add the button to the control list. just assign your event handler before you add the button to the control list.
    2nd option is
    bn.Click += MyClick;
    private void MyClick(object sender, EventArgs e) {
    MessageBox.Show("hello");
    Here you're registering a click event and specify the code that runs when the event fires.
    http://stackoverflow.com/questions/8207449/how-to-dynamically-add-a-code-behind-for-button
    if this helps you please mark as the answer.

  • Possible bug - Missing click event when handling change event

    Using Flex 4.5 SDK, I have a spark ComboBox and a Button next to it for applying a filter according to ComboBox selection.
    I listen to both the ComboBox's change event & the Button's click event (for different functions).
    When I manually delete the ComboBox text value from its TextInput (i.e. changing selected index to -1) and immediately click on the Button,
    the click event-handler function is not being called and only the ComboBox's change event-handler function is executed.
    (Selecting a value from the ComboBox's list and clicking on the button triggers both methods on the right order.)
    There's also a state definition for the module, but it isn't being changed during these operations...
    Is this a bug or a correct behavior? Am I missing something here?
    Any workaround suggestions?
    (I thought of listening also to mouse-down or mouse-up on the button instead, but haven't tried it yet...)
    *** UPDATE ***
    When using the Button's mouseDown event the behavior is as expected, so there's a simple workaround.
    However, it seems to me like there's a bug with the Button's click event listener or something...
    *** UPDATE #2 ***
    I created a test application for that and couldn't reproduce the problem.
    Then I figured out the problem and solved it.
    It's a bit emmbarrasing, but I actually disabled the button (enabled=false) as in a child method of the change handling code...
    (If there is no value, don't allow applying the filter - It makes sense! )
    Anyway... No issue after all.
    However, I choose to leave this post (and not delete it) as an example of identifying and resolving a strange behavior in a complex application.

    There's no need.
    Please read the section UPDATE #2.

  • How to open a text file using button click event

    hi, How can i open a text file in a textpad or notepad on the click event of a button.?
    Thanks
    Jay

    Pnt,
    this will not work LV 8.0.1 and LV 8.6 will give back error 193.
    Attached is a VI to use the ShellExecute WinAPI. The VI is LV 7.1.1.
    Message Edited by waldemar.hersacher on 10-09-2008 10:48 PM
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions
    Attachments:
    ShellExecute.zip ‏27 KB

  • Find out which component on the UI is listening and changing to the click event?

    Hello Forum,
    Is there a way in flex to know which component is taking the click event which is being bubbled to the topLevelApplication. I'm clicking it and some container in the parent hierarchy is invalidating/refreshing the screen on click, so the child ficker's on click.

    You need to put traces or alerts for each container till topLevelApplication, in order to know which is flickering the click...
    Hope you got my point!!!
    If this post answers your question or helps, please kindly mark it as such.

  • Double Click Event not fired for IE 11 with compatibility mode for HTML elemnt table

    Hi,
    I am facing an issue with Double click event(not getting fired on double click of mouse) for IE 11 with compatibility mode on HTML element "table" for Windows 7 64 bit machine.It runs fine on IE 10 with compatible mode with Windws 7 64  bit
    machine -- double click event.
    Can you please help to resolve the issue?
    Thanks and Regards,
    Yogesh

    Hi,
    f12>Debug tab, click the 'start' button.....(select break on all exceptions from the dropdown on the Debug tab)
    click your table and correct any errors that are listed in the Console of the developer tool.... probably you are using attachEvent I/o addEventListener. You should be using addEventListener for IE9 and higher and other web browsers.(it the w3c standard
    (recommendation).
    Post questions about html, css and scripting for website developers to the MSDN IE Web Development forum. Include with your question a link to your website or a mashup that shows the issue.
    Rob^_^

  • Right-Click Event Matrix

    Good Morning
    Experts:
    I have added several options(SAP and Custom) to the Right-Click event.  It works as designed when Right-Clicking on the Matrix.  However, when Right-Clicking anywhere else on the screen, the options are still displayed.
    How can I restrict the options to only be displayed when Right-Clicking on a Matrix?
    Thanks,
    EJD

    Hi Ed,
    The right click event is completely separate event (ie it is not an EventType within the ItemEvent).
    So to code it (C#):
    private void _sboApp_RightClickEvent(ref SAPbouiCOM.ContextMenuInfo EventInfo, out bool BubbleEvent)
         BubbleEvent = true;
         if(EventInfo.FormUID == "MYFORM")
              // Do some stuff
    You also need to have defined the event while initialising the application object:
    this._sboApp.RightClickEvent += new SAPbouiCOM._IApplicationEvents_RightClickEventEventHandler(this._sboApp_RightClickEvent);
    There's an example project in the UI section of the SDK samples (number 22).
    Kind Regards,
    Owen

  • Image button click event not triggered in IE11

    I have an Image button, on its click event textbox is displayed, but it is not working in IE 11. It is working fine on chrome

    Please post questions related to ASP.NET in the ASP.NET forums (http://forums.asp.net).

  • Click event for specific timeline label?

    Hello,
    I am creating an interactive map: San Diego Gaslamp Interactive Walking Map
    ...it is still in progress at the moment, so only a few things work.
    This question is in regards to the "LODGING/ACCOMMODATIONS" menu on the right hand side.
    I am trying to create 2 click events. Click to open and click to close, so I'm wondering if it's possible to do something like this:
    if at label 2 sym.stop("label1");
    if at label 1 sym.stop("label2");
    I'm not sure how to code the "if at label 2" part...or if it's even possible.
    Any help would be greatly appreciated!

    Hi Redesign,
    Thanks for the response!
    I adjusted your code to my document and added the following to the "lodgingindexbutton", but it doesn't appear to be working:
    var MyStop=0;
    sym.$('lodgingindexbutton').bind("click",function(){if (MyStop==0){
    sym.stop("lodgingstart");
    MyStop=1;
    } else {
    sym.stop("lodgingover");
    MyStop=0;
    Not sure if I did something wrong?...
    If you are up for it, I have attached the original files here:
    http://adobe.ly/1vZTtqf
    I am trying to add the "2 clicks" code to the "lodgingindexbutton".
    You can get to it by double-clicking the Index in the upper right corner.
    Then you will see the "lodgingindexbutton" at the top of the index.
    As you can see, I currently have it set to just open, then you can close it by clicking the triangle.
    This is working and will be fine, but I thought it would be nice to click open and click closed as it seems that what a user would want to do.
    Any help would be appreciated. Thanks so much!!
    Jason

  • Click event on sub page menu makes my master page menu go away..???

    I've populated a menu using xml retrieved from a stored procedure and all is working great, except when I select an item from the sub menu and call a click event and it makes my main menu on my site.master go away and shifts the current aspx page up.
    <asp:Menu ID="mnu_catproj" runat="server" BackColor="#B5C7DE" DynamicEnableDefaultPopOutImage="False" DynamicHorizontalOffset="2"
    DynamicPopOutImageTextFormatString="" Style="position: relative;" Font-Bold="True" Font-Italic="False" Font-Names="Verdana" Font-Size="X-Small"
    ForeColor="White" Orientation="Horizontal" StaticEnableDefaultPopOutImage="False" StaticSubMenuIndent="10px" >
    <DataBindings>
    <asp:MenuItemBinding DataMember="Category" TextField="#InnerText" ValueField="#Value" />
    <asp:MenuItemBinding DataMember="Project" TextField="#InnerText" />
    </DataBindings>
    <DynamicHoverStyle BackColor="#CC9900" ForeColor="#0000CC" />
    <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
    <DynamicMenuStyle BackColor="#B5C7DE" />
    <DynamicSelectedStyle BackColor="#507CD1" />
    <StaticHoverStyle BackColor="#284E98" ForeColor="White" />
    <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
    <StaticSelectedStyle BackColor="#507CD1" />
    </asp:Menu>
    Protected Sub mnu_catproj_MenuItemClick(sender As Object, e As MenuEventArgs) Handles mnu_catproj.MenuItemClick
    lblCategory.Text = mnu_catproj.SelectedItem.Parent.Text.ToString()
    lblProject.Text = mnu_catproj.SelectedItem.Text()
    btnMD_submit.Enabled = True
    End Sub
    I know the click event is calling the subroutine but the Master Page menu goes away
    <asp:Menu ID="MainMenu" runat="server" DataSourceID="XmlDataSource1" Font-Names="Verdana" ForeColor="#333399" ScrollDownImageUrl="/Images/menuSeparator.gif" StaticPopOutImageUrl="/Images/menuSeparator.gif" Orientation="Horizontal" DynamicPopOutImageUrl="~/Images/triangle-16.gif" ItemWrap="True" CssClass="menuStyle" Height="27px">
    <DataBindings>
    <asp:MenuItemBinding DataMember="Menu" Depth="0" TextField="text" Selectable="False" />
    <asp:MenuItemBinding DataMember="SubMenu" Depth="1" NavigateUrlField="url" TextField="text" ValueField="url" />
    <asp:MenuItemBinding DataMember="SubMenu" Depth="2" NavigateUrlField="url" TextField="text" ValueField="url" SelectableField="url" />
    <asp:MenuItemBinding DataMember="SubMenu1" NavigateUrlField="url" TextField="text" ValueField="text" ToolTipField="#Value" TargetField="target" />
    </DataBindings>
    <DynamicHoverStyle BackColor="#003399" Font-Size="X-Small" ForeColor="White" Font-Bold="False" />
    <DynamicMenuItemStyle HorizontalPadding="10px" VerticalPadding="5px" BackColor="#E5E5E5" BorderColor="#999999" BorderStyle="Solid" BorderWidth="0.01em" Font-Size="X-Small" ForeColor="Black" />
    <DynamicMenuStyle BackColor="#E5E5E5" />
    <DynamicSelectedStyle BackColor="#507CD1" Font-Size="X-Small" />
    <StaticHoverStyle BackColor="#FF9900" ForeColor="White" Font-Bold="False" />
    <StaticMenuItemStyle HorizontalPadding="15px" VerticalPadding="4px" />
    <StaticMenuStyle CssClass="menuStyle" />
    <StaticSelectedStyle BackColor="#FFCC66" />
    </asp:Menu>
    finally: this works fine in Firefox browser but not in IE or Chrome

    Hi DeanO78O,
    This forum is to discuss problems of Windows Forms. Your question is not related to the topic of this forum.
    You could  post it in the dedicated ASP.Net Forum
    http://forums.asp.net for more efficient responses, where you can contact ASP.NET experts.
    Best regards,
    Youjun Tang
    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.

  • Make Double Click event on Row, Matrix

    Hi All,
    I'm new in SDK and sorry for my English.
    Please show me how to make double click event on Row of  Matrix, i have created a table contain all Draft which Docstatus is open and order by ObjType(DocType), but i can't using Link Button on DocNum Column to view Object Detail . I think another way to do that is make a double click event on each row of matrix. Can I do like that ? plz show me . Thank for any suggestion.
    Thanks

    Hi Shafi,
    This is my .srf file
    <items><action type="add"><item uid="MTX_Data" type="127" left="15" tab_order="0" width="620" top="41" height="285" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1"><AutoManagedAttribute /><specific SelectionMode="2" layout="0" titleHeight="19" cellHeight="19" TabOrder="0">
    This is my code draw a form with matrix
    Private Sub DrawForm()
            Try
                'Read File interface
                LoadFromXML("DraftOpen.srf")
            Catch ex As Exception
                MessageBox.Show(ex.Message)
            End Try
            oForm = SBO_Application.Forms.Item("DRFOPEN")
            ' Add Items       
            ' Add a matrix
            oMatrix = oForm.Items.Item("MTX_Data").Specific
            oMatrix.SelectionMode = SAPbouiCOM.BoMatrixSelect.ms_Single
    This is my event
    Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
            If pVal.FormUID = "DRFOPEN" And pVal.ItemUID = "MTX_Data" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_DOUBLE_CLICK And pVal.BeforeAction = True Then
                Try
                    oForm = SBO_Application.Forms.Item("DRFOPEN")
                    Dim omatrix As SAPbouiCOM.Matrix
                    omatrix = oForm.Items.Item("MTX_Data").Specific
                    If omatrix.RowCount > 0 Then
                        For i As Integer = 1 To omatrix.RowCount
                            If omatrix.IsRowSelected(i) = True Then
                                MessageBox.Show(omatrix.Columns.Item(1).Cells.Item(pVal.Row).Specific.value)
                                MessageBox.Show(omatrix.Columns.Item(2).Cells.Item(pVal.Row).Specific.value)
                            End If
                        Next
                    End If
                Catch ex As Exception
                    SBO_Application.MessageBox(ex.Message)
                End Try
            End If
    please help me to check this code. i don't know why it's still not working with double click event. sorry to disturb you.
    Edited by: PeterHoang on Aug 30, 2011 10:15 AM

Maybe you are looking for