Get a Jumpstart with our Sample Apps
Results 1 to 3 of 3

Thread: Custom Control in List Using xBasic

  1. #1
    Member
    Real Name
    Scott Binger
    Join Date
    Oct 2011
    Posts
    279

    Default Custom Control in List Using xBasic

    I have a custom control in a list control that uses the following xbasic to generate the html for the displayed text. The problem is that it does not seem to like the e.dataSubmitted method. As always, thanks so much for the assistance!


    dim txt as c
    dim txtalt as c
    dim control as c

    txt= ds.data("CComment")
    control = e.dataSubmitted.Filler
    txtalt = strtran(txt,"*PLACEHOLDER*",control)

    CommentTest_render = txtalt

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

    Default Re: Custom Control in List Using xBasic

    Maybe this isn't all of your code... but I'm not sure I understand what you want to do.

    The "e" object is not available in a Custom Control.

    Where is "Filler" coming from? You're expecting it in e.dataSubmitted... but is it coming from the List control data... or from a control in your UX? Is it user supplied... or coming from a table when the UX is rendered?

    If you've included all your XBasic... then I can see that you're passing in (or want to), from the Client, the value of your Filler control. You're then replacing the "CComment" List control "*PLACEHOLDER*" with the value of Filler.

    So... you're getting all the data you need from the Client, sending it to the Server, replacing text, and sending it back.

    I'm wondering if this could all be accomplished on the Client without an XBasic Custom Control.

  3. #3
    Member
    Real Name
    Scott Binger
    Join Date
    Oct 2011
    Posts
    279

    Default Re: Custom Control in List Using xBasic

    Thanks David. Client-side was indeed the way to go in this case. Didn't want or need the callback at all. This video helped me out:

    http://www.ajaxvideotutorials.com/V1...clientside.swf

Similar Threads

  1. Replies: 6
    Last Post: 06-24-2016, 11:50 AM
  2. UX List's custom Control (column) - to access UX control in xbasic/server
    By Mkpatil in forum Mobile & Browser Applications
    Replies: 11
    Last Post: 11-18-2015, 12:58 AM
  3. List control with custom data source and parent list
    By sjackson@drake in forum Mobile & Browser Applications
    Replies: 1
    Last Post: 07-01-2015, 10:26 PM
  4. Need help with Xbasic for custom control
    By citorlfl in forum Mobile & Browser Applications
    Replies: 0
    Last Post: 02-03-2014, 09:53 PM
  5. List control custom control
    By PhilM1965 in forum Mobile & Browser Applications
    Replies: 5
    Last Post: 08-30-2013, 07:55 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
  •