Alpha Video Training
Results 1 to 3 of 3

Thread: How to utilise ux component properties

  1. #1
    "Certified" Alphaholic glenschild's Avatar
    Real Name
    Glen Schild
    Join Date
    Apr 2000
    Location
    Frome, Somerset, UK
    Posts
    1,502

    Default How to utilise ux component properties

    Not been able to figure this out yet but on each ux component under the information section there is a last updated field which automatically updates whenever changes to the component are saved. I would like to use this data in a footer on the component. I have not yet been able to figure out how to access this detail. Thoughts anyone?

    Thanks

    Glen
    Glen Schild



    My Blog


  2. #2
    "Certified" Alphaholic
    Real Name
    David Kates
    Join Date
    Apr 2008
    Location
    Unionville, ON
    Posts
    7,569

    Default Re: How to utilise ux component properties

    Not sure if it's exposed anywhere on the client-side... but in the Server-side event, onDialogInitialize, e.tmpl.info is available which carries all that information. Send it through to the client-side via e.javascript... as in...

    Code:
    dim uxInfo as c
    uxInfo = json_generate(e.tmpl.info);
    e.javascript = "{dialog.Object}.__uxInfo=" + uxInfo + ";showUXInfo();"
    This will create JSON from the e.tmpl.info property variable, assign it to a dialog property named __uxInfo, and then call a function I created named showUXInfo() in order to examine that JSON.

    You could also assign each property of e.tmpl.info to a state variable using e._state.

    Lot's of ways to get this data into the client.

  3. #3
    "Certified" Alphaholic glenschild's Avatar
    Real Name
    Glen Schild
    Join Date
    Apr 2000
    Location
    Frome, Somerset, UK
    Posts
    1,502

    Default Re: How to utilise ux component properties

    Quote Originally Posted by Davidk View Post
    Not sure if it's exposed anywhere on the client-side... but in the Server-side event, onDialogInitialize, e.tmpl.info is available which carries all that information. Send it through to the client-side via e.javascript... as in...

    Code:
    dim uxInfo as c
    uxInfo = json_generate(e.tmpl.info);
    e.javascript = "{dialog.Object}.__uxInfo=" + uxInfo + ";showUXInfo();"
    This will create JSON from the e.tmpl.info property variable, assign it to a dialog property named __uxInfo, and then call a function I created named showUXInfo() in order to examine that JSON.

    You could also assign each property of e.tmpl.info to a state variable using e._state.

    Lot's of ways to get this data into the client.
    Thanks David
    Glen Schild



    My Blog


Similar Threads

  1. Tabbed Gridlinker Problem Overriding Child Component Properties
    By Tarek in forum Application Server Version 8
    Replies: 0
    Last Post: 03-17-2008, 05:03 PM
  2. Grid Component Properties
    By dmchris in forum Application Server Version 8
    Replies: 4
    Last Post: 02-11-2008, 11:30 PM
  3. Copy Field Properties within a web component?
    By walhoney in forum Application Server Version 8
    Replies: 2
    Last Post: 10-04-2007, 09:53 AM
  4. How can i change my web component properties
    By alimrb in forum Web Application Server v6
    Replies: 3
    Last Post: 12-15-2004, 04:48 PM
  5. How can i change my web component properties
    By alimrb in forum Alpha Five Version 6
    Replies: 0
    Last Post: 12-09-2004, 05:55 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
  •