Alpha DevCon 2018
Results 1 to 1 of 1

Thread: Using Function to Populate Data Bound Control

  1. #1
    Member
    Real Name
    Kim Garbade
    Join Date
    Oct 2017
    Posts
    4

    Default Using Function to Populate Data Bound Control

    I am writing a desktop web application using AA version 12.4.4.5 using SQL Server 12.

    I have a data bound dialog for adding a Work Order. The Work Order ID (WONum) is not auto-incremented by SQL Server, but it is calculated based on today’s date (formatted YYYYMMDD# - For Example: the first number today would be ‘201711201’).

    I have a function that correctly calculates the next WONum. What I would like to do is when the user opens the “AddWorkOrder” dialog/UX the “Work Order Number” textbox is automatically populated with the newly calculated WONum for them.

    I would like to put this auto populate code in the “AddWorkOrder” onDialogInitialize event or afterDialogValidate event… either way on an event. Is this possible, or should I use the “AddWorkOrder” button’s click event that opens the “AddWorkOrder” dialog and then pass it the WONum value?

    If anyone had any sample code that would be great.

    Thank you for you time.
    Last edited by GarbadeK; 11-20-2017 at 11:37 AM. Reason: Incomplete first post

Similar Threads

  1. Replies: 13
    Last Post: 06-12-2017, 06:45 AM
  2. Data-bound image will not display in a list control
    By spoweroz in forum Mobile & Browser Applications
    Replies: 2
    Last Post: 05-08-2017, 09:54 PM
  3. Relating List Data To UX Control Data Bound Field
    By iRadiate in forum Mobile & Browser Applications
    Replies: 2
    Last Post: 10-18-2016, 09:59 PM
  4. Dropdown Box And Issue With Populate Bound Controls From List Control
    By kingcarol in forum Mobile & Browser Applications
    Replies: 16
    Last Post: 04-02-2016, 11:05 AM
  5. Is it possible to attach images in data bound control to an e-mail using actionscript
    By coleresources in forum Mobile & Browser Applications
    Replies: 3
    Last Post: 01-26-2015, 07:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •