Alpha Video Training
Results 1 to 2 of 2

Thread: UX List Control - Pass variable to ActionJavascript

  1. #1
    Member
    Real Name
    Nathan Webb
    Join Date
    Oct 2014
    Location
    Oregon
    Posts
    7

    Default UX List Control - Pass variable to ActionJavascript

    I'm new to UX List Controls. I have a list populating data from a SQL Stored Procedure and one of the fields is a hyperlink to open a HTML page. All of that works, however, the URL isn't passing the value from the specific line and field in the list control.

    This is what the OnClick event does:
    var PartID = {dialog.object}.getValue('list::LIST1::PartID');
    {dialog.object}.runAction('ActivityReport');

    This is my Action JS:
    Link Address Builder.png
    Last edited by teomner; 10-16-2019 at 02:20 PM.

  2. #2
    Member
    Real Name
    Nathan Webb
    Join Date
    Oct 2014
    Location
    Oregon
    Posts
    7

    Default Re: UX List Control - Pass variable to ActionJavascript

    OK, I figured it out. In the List Builder, it has a spot for Return Value, and I needed to set Return field to PartID. I then needed to open that Action JS and set the variable to {list1}

Similar Threads

  1. Use session variable in List control
    By clankford in forum Mobile & Browser Applications
    Replies: 3
    Last Post: 04-27-2017, 12:22 PM
  2. Session variable from a list control
    By dfricke10 in forum Mobile & Browser Applications
    Replies: 19
    Last Post: 08-10-2016, 11:48 PM
  3. List Control - Arguments - set at runtime or variable
    By CharlesParker in forum Mobile & Browser Applications
    Replies: 0
    Last Post: 06-06-2016, 06:34 PM
  4. Pass variable desktop variable to web page / dialog / grid
    By NormanRMouton in forum Alpha Five Version 10 - Desktop Applications
    Replies: 7
    Last Post: 07-08-2013, 12:04 PM
  5. Pass Variable to List Box control
    By Doug Chanley in forum Alpha Five Version 5
    Replies: 3
    Last Post: 07-06-2003, 03:24 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
  •