Alpha DevCon 2018
Results 1 to 4 of 4

Thread: Filter a Viewbox (SQL data source) against a ControlBar Edit Control - help

  1. #1
    "Certified" Alphaholic peteconway's Avatar
    Real Name
    Peter Conway
    Join Date
    Oct 2005
    Location
    Melbourne, Australia
    Posts
    2,484

    Default Filter a Viewbox (SQL data source) against a ControlBar Edit Control - help

    I'd swear i've done this before, can't get it working.. any help appreciated.
    Insanity: doing the same thing over and over again and expecting different results.
    Albert Einstein, (attributed)
    US (German-born) physicist (1879 - 1955)

  2. #2
    "Certified" Alphaholic Lance Gurd's Avatar
    Real Name
    Lance Gurd
    Join Date
    Jun 2005
    Location
    Southampton, UK
    Posts
    1,381

    Default Re: Filter a Viewbox (SQL data source) against a ControlBar Edit Control - help

    Hi Pete,

    Did you ever remember how to do this, I'm trying to do the same thing now?

  3. #3
    "Certified" Alphaholic peteconway's Avatar
    Real Name
    Peter Conway
    Join Date
    Oct 2005
    Location
    Melbourne, Australia
    Posts
    2,484

    Default Re: Filter a Viewbox (SQL data source) against a ControlBar Edit Control - help

    Lance - you can do it - you need to be on the latest pre-release (Build 4940 or later) and use the set UX Component - Arguments - Setting Values on the Client-Side
    BUT
    There is a step missing from the notes that took some time to figure out - so you don't have to go through the pain here is a test case I made for Selwyn.

    In a ControlBar you would get the value to set the argument like this..
    var vLastName = this.data.LastName; // where LastName is the ViewBox data object for the field
    {dialog.Object}.setArgumentValue('ARGVALUE',vLastName);
    // where ARGVALUE is the name of the argument anything to do with the argument must be in UPPER CASE.
    Then just refresh the Viewbox.
    2018-03-15_1620.png
    Last edited by peteconway; 03-15-2018 at 07:56 AM.
    Insanity: doing the same thing over and over again and expecting different results.
    Albert Einstein, (attributed)
    US (German-born) physicist (1879 - 1955)

  4. #4
    "Certified" Alphaholic Lance Gurd's Avatar
    Real Name
    Lance Gurd
    Join Date
    Jun 2005
    Location
    Southampton, UK
    Posts
    1,381

    Default Re: Filter a Viewbox (SQL data source) against a ControlBar Edit Control - help

    Thanks Pete,

    I will give this a go, am really getting into what can be done with Viewboxes, such less overhead as opposed to lists

Similar Threads

  1. List Control Data Source Filter using SQL IN operator
    By frankiez in forum Mobile & Browser Applications
    Replies: 4
    Last Post: 06-01-2017, 04:00 PM
  2. Controlbar builder reference to data values
    By edsicard in forum Mobile & Browser Applications
    Replies: 1
    Last Post: 12-15-2016, 06:42 AM
  3. How to use a VIEWBOX as injectible content in a controlbar disclosure
    By cptutrecht in forum Mobile & Browser Applications
    Replies: 7
    Last Post: 11-25-2016, 05:22 PM
  4. Replies: 6
    Last Post: 06-24-2016, 10:50 AM
  5. Pop-up window to edit data in a control
    By WebChew in forum Application Server Version 11 - Web/Browser Applications
    Replies: 0
    Last Post: 06-21-2013, 04:15 PM

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
  •