Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • kristian schneider 190 posts 351 karma points
    Aug 26, 2012 @ 20:10
    kristian schneider
    0

    autocomplete with members does not work

    Hi As seen here:

    http://www.screenr.com/zub8

    I cant get autocomplete to work on members. As I type in something it just deletes the string in the textfield. It never retrives anyhing. 

    Looking at fiddler it does not seem to do any ajax calls either. 

    This is on a 4.8.1 installation. Any sugestions?

    /Kristian

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    Aug 27, 2012 @ 12:20
    Hendy Racher
    0

    Hi Kristian,

    What's your XPath expression ? My guess is that the characters are being deleted as it can't find any matching data - which it expects to find in the original page hit, rahther than any ajax calls to request data - can you see any inline data ?

    (Currently working on a Sql AutoComplete data-type for uComponents v5.1.0+ which uses ajax requests for the data, so will also be updating this data-type in the near future to do the same (probably renaming it to XPath AutoComplete)).

    HTH,

    Hendy

  • kristian schneider 190 posts 351 karma points
    Aug 27, 2012 @ 13:07
    kristian schneider
    0

    Hi Hendy

    the XPath is 

    descendant::*

    I can see the following:

    var body_prop_deltagere_autocompleteData = [{text: '734964837',id: '1057'}];

    Which looks a bit weird. I can also type in "7" and then it completes on the the above number. The number is the "Login" field of the member node.

    How can I change it to use text from other fields?

    Best regards

    Kristian

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    Aug 27, 2012 @ 13:55
    Hendy Racher
    1

    Hi Kristian,

    Unfortunatley it's not possible to specifiy which member fields are to be used for the text. Currenlty the XPath express gets a collection of members and then their Ids and Logiin Names are used to populate the data set.

    Perhaps that's something to add to the new version - a drop down list in the configuration to specify the text to use, listing all the default properties, plus any custom properties found ? 

    Cheers,

    Hendy

  • kristian schneider 190 posts 351 karma points
    Aug 28, 2012 @ 19:37
    kristian schneider
    0

    Hi Hendy

    Yes that could be usefull.

    I'll change my loginname to something more readable.

    Thanks for the help

    Cheers

    Kristian

Please Sign in or register to post replies

Write your reply to:

Draft