Results 1 to 5 of 5

Thread: delegates don't seem to be firing

  1. #1
    Senior Member
    Join Date
    Nov 2014
    Location
    Kailua, Hawaii
    Posts
    104

    delegates don't seem to be firing

    I'm trying to capture the selection from my combobox and it wasn't working. To try and debug it, in the Click delegate I entered, Set Step On as well as a message box. Nothing happened when I ran the app and clicked on the combo box to change the choice.

    // Event delegate for 'click' event
    function preports_sreport_list_combobox_report_name_click()
    {
    set step on
    m.x=messagebox('you clicked me',0)
    };

    I tried the same thing on a command button, click and still nothing.

    Any idea where I'm going wrong?

    Thanks,
    Steve

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,162
    Blog Entries
    22
    You should be using the interactivechange delegate. The "click" delegate is just for custom objects using the Lianja Framework classes. You are using a canvas section which works on "formitems".
    Last edited by barrymavin; 2023-01-26 at 21:31.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  3. #3
    Senior Member
    Join Date
    Nov 2014
    Location
    Kailua, Hawaii
    Posts
    104

    combobox delegates don't seem to be firing

    Hi Barry,

    Actually, InteractiveChange was the first delegate I tried this on. When it didn't work, I figured the click event is a simpler delegate so I tried that.

    Attached are 2 screenshots. One of the attribute setting and one of the code.

    Also, can you tell me what the use is of the attribute, "Data Source". The tip says: "The table and column that this field is bound to. Specify m.varname to bind to a memory variable."

    Thanks,
    Steve
    Attached Images Attached Images   

  4. #4
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,162
    Blog Entries
    22
    Your delegate is written in javascript. SET STEP ON is a LianjaScript command.

    You have set the scripting language to javascript not LianjaScript.

    Data binding is the process that establishes a connection between the app UI and the data it displays.

    The data source binds the control to a column or variable. As you navigate data the value for the control is taken from that column. If you update the control e.g select a different value in your Combobox or edit a textbox the underlying data source will be updated. This is known as data binding.
    Last edited by barrymavin; 2023-01-27 at 19:30.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  5. #5
    Senior Member
    Join Date
    Nov 2014
    Location
    Kailua, Hawaii
    Posts
    104
    Ooohh,

    Thanks!

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us