Alpha Video Training
Results 1 to 14 of 14

Thread: Display text field content on hover

  1. #1
    Member
    Real Name
    George Corder
    Join Date
    May 2002
    Location
    Kentucky
    Posts
    517

    Default Display text field content on hover

    In my app I have a date field [task1date] that would show the completion date of a task. In the detail view, I also display a memo field that the user would populate with various notes [task1note]. On my grid view, I would only like to show the task1date field, but if the user hovers over this field, how can I have the task1note field contents appear? I am looking for an effect similar to the bubble help?

  2. #2
    Member
    Real Name
    Edhy Rijo
    Join Date
    Sep 2012
    Location
    Bronx NY
    Posts
    348

    Default Re: Display text field content on hover

    Hi George,

    It is actually the bubble help or "Title" that you need to use.
    In the task1date field, add {task1note} in the Bubble help property. If you are setting this via code, then just set the "Title" property of the control.
    Edhy Rijo
    Progytech
    (Computer Consultants)
    The makers of CardTracking.Net
    www.progytech.com

  3. #3
    Member
    Real Name
    George Corder
    Join Date
    May 2002
    Location
    Kentucky
    Posts
    517

    Default Re: Display text field content on hover

    Thanks Edhy.

    Another question now is, if one of the task's completion date is null but the user has keyed information explaining further items needed in the memo field, I have to hover over the slight 1 millimeter left edge of the date field in order to see the comment. What can be done to give the hover trigger a larger target when the field contains no data?

    2014-08-20_173353.png

  4. #4
    "Certified" Alphaholic
    Real Name
    Rich Fulham
    Join Date
    May 2011
    Location
    Portland, OR
    Posts
    1,021

    Default Re: Display text field content on hover

    If you are using a Grid then I was going to say move your bubble help from
    (1) "Display Settings" / "Bubble Help" (this applies to the <span> element inside the <td> cell of a table)
    to
    (2) "Column Properties" / "Bubble Help Text" (this applies to the entire <td> - cell element)

    But, (2) does not allow place holders. It would be nice if Alpha allowed place holders in (2), so the entire cell would be hover-able !

    May be setting the width would work?
    Under "Display Settings" / "conditional style" enter a condition of "1 = 1" and an "advanced style" of "width: 7em;"

    May be having your query return eight spaces when the date is null? Although, even that might not be enough unless you turn on "preserve white-space" with an "advanced style" of "white-space: pre"

    -Rich

  5. #5
    Volunteer Moderator drgarytraub's Avatar
    Real Name
    Dr. Gary Traub
    Join Date
    May 2000
    Location
    Boca Raton, FL
    Posts
    2,783

    Default Re: Display text field content on hover

    Create a cakculated field that encompasses whatever fields you want and then put the calc field place holder in the bubble help/.
    Gary S. Traub, Ph.D.


  6. #6
    Member
    Real Name
    George Corder
    Join Date
    May 2002
    Location
    Kentucky
    Posts
    517

    Default Re: Display text field content on hover

    I am using MySQL. I'm not sure where to create a calculated field opposed to creating one in a dbf environment.

  7. #7
    "Certified" Alphaholic
    Real Name
    Govindan Gandhi
    Join Date
    Aug 2008
    Location
    New York, NY
    Posts
    4,294

    Default Re: Display text field content on hover

    go to grid builder, select sql statement instead of table.
    then when you build the query
    add the table, then select columns and select all that apply to you (possibly * ) then click on the expression and the select the expression that will select the calculated field and add the fields.
    usually it is named as expr1 like that change it to something you like.
    thanks for reading

    gandhi

    version 11 3381 - 4096
    mysql backend
    http://www.alphawebprogramming.blogspot.com
    ggandhi344@gmail.com
    Skype:ggandhi344@gmail.com
    1 914 924 5171

  8. #8
    "Certified" Alphaholic iRadiate's Avatar
    Real Name
    Stephen
    Join Date
    Jan 2011
    Location
    London, ON, Canada
    Posts
    1,665

    Default Re: Display text field content on hover

    George, to clarify, are you looking to accomplish something like I have on my grids (see video)?
    If so, I can show you how to do this.

    When I hover over a field, the popup window displays other relevant field(s).
    http://screencast.com/t/zou1XBMoOC21
    Last edited by iRadiate; 08-22-2014 at 09:38 AM.

  9. #9
    Volunteer Moderator drgarytraub's Avatar
    Real Name
    Dr. Gary Traub
    Join Date
    May 2000
    Location
    Boca Raton, FL
    Posts
    2,783

    Default Re: Display text field content on hover

    Calc fields can be within the grid ...
    Gary S. Traub, Ph.D.


  10. #10
    Member
    Real Name
    George Corder
    Join Date
    May 2002
    Location
    Kentucky
    Posts
    517

    Default Re: Display text field content on hover

    Yes Stephen, I like that approach. If you could show me the way, that would be great. I like the shorter delay in the popup and the cursor placement seems to be much more forgiving vs bubblehelp.

  11. #11
    "Certified" Alphaholic iRadiate's Avatar
    Real Name
    Stephen
    Join Date
    Jan 2011
    Location
    London, ON, Canada
    Posts
    1,665

    Default Re: Display text field content on hover

    Quote Originally Posted by George Corder View Post
    Yes Stephen, I like that approach. If you could show me the way, that would be great. I like the shorter delay in the popup and the cursor placement seems to be much more forgiving vs bubblehelp.
    http://msgboard.alphasoftware.com/al...564#post678564

  12. #12
    "Certified" Alphaholic
    Real Name
    Rich Fulham
    Join Date
    May 2011
    Location
    Portland, OR
    Posts
    1,021

    Default Re: Display text field content on hover

    George: are you using a Grid or UX?

    Stephen: that is really cool.

    Alpha Software: Please consider providing the simple solution of allowing placeholders in the "Column Properties" / "Bubble Help Text" so the bubble help (with placeholders) can be applied to the entire cell, instead to the control inside the cell like the "Display Settings" / "Bubble Help" does. Or, an option that specifies if the bubble help should be applied to cell or its contents like the option for styles.
    Last edited by RichCPT; 08-22-2014 at 03:14 PM. Reason: second suggestion to alpha

  13. #13
    Member
    Real Name
    George Corder
    Join Date
    May 2002
    Location
    Kentucky
    Posts
    517

    Default Re: Display text field content on hover

    I'm using a grid.

  14. #14
    Member
    Real Name
    George Corder
    Join Date
    May 2002
    Location
    Kentucky
    Posts
    517

    Default Re: Display text field content on hover

    Thanks for all of the input, I will work through these and see what fits.

Similar Threads

  1. Display long text from field in LABEL on repeating row
    By pettechservices in forum Mobile & Browser Applications
    Replies: 3
    Last Post: 07-15-2014, 03:06 PM
  2. How do I display a UUID field as discriptive text in read only grid?
    By westridge in forum Application Server Version 11 - Web/Browser Applications
    Replies: 1
    Last Post: 06-07-2013, 12:41 PM
  3. HTML Bubble Help against a data field - Sometimes it shows on hover sometimes not...
    By pulsoft in forum Alpha Five Version 11 - Desktop Applications
    Replies: 2
    Last Post: 08-28-2012, 12:26 PM
  4. Display Alternate Text in Grid Field
    By tommyrotten in forum Application Server Version 10 - Web/Browser Applications
    Replies: 3
    Last Post: 11-20-2009, 07:09 PM
  5. Adaptative field height for full content display
    By EMHmark7 in forum Application Server Version 9 - Web/Browser Applications
    Replies: 16
    Last Post: 06-24-2008, 11:40 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
  •