Author | Topic: Topdown - progressive input data lookup. | |
---|---|---|
Philip G Jackson | Topdown - progressive input data lookup. on Thu, 23 May 2013 14:36:22 +1200 I'm building a screen to act as a generic browser for data which will have a TDHiBrow browse as well as a couple of tdSle so users can type in; 1) a string to use for seeking the current index 2) a string to set a filter on the current index record and the next 500-100 records following on from that. For 1) above I want to allow a user to progressively enter a string and have the browse box update to reflect any matches for the string typed so far. How can I have some sort of callback or routine that does this from a tdSle? Cheers Phil Jackson | |
Raymond Fischbach | Re: Topdown - progressive input data lookup. on Thu, 23 May 2013 13:40:05 +0200 Philip G Jackson a écrit : > I'm building a screen to act as a generic browser for data which will have a > TDHiBrow browse as well as a couple of tdSle so users can type in; > 1) a string to use for seeking the current index > 2) a string to set a filter on the current index record and the next 500-100 > records following on from that. > > For 1) above I want to allow a user to progressively enter a string and have > the browse box update to reflect any matches for the string typed so far. > > How can I have some sort of callback or routine that does this from a tdSle? > > Cheers > > Phil Jackson Hi Phil, Some suggestions: Concerning the index selection, you can use the bValid callback of the tdXget(). For the incremental search, you could see how this is done in tdIsearch() and replicate the code in "your" tdcHibrow class. A second possible solution is to create your own tdIsearch() function by using the original one where you add a tdXget() with the bValid callback (for your index). But this one might be more tricky. Best regards, Raymond | |
Raymond Fischbach | Re: Topdown - progressive input data lookup. on Thu, 23 May 2013 13:41:49 +0200 Dans son message précédent, Raymond Fischbach a écrit : > Philip G Jackson a écrit : >> I'm building a screen to act as a generic browser for data which will have >> a TDHiBrow browse as well as a couple of tdSle so users can type in; >> 1) a string to use for seeking the current index >> 2) a string to set a filter on the current index record and the next >> 500-100 records following on from that. >> >> For 1) above I want to allow a user to progressively enter a string and >> have the browse box update to reflect any matches for the string typed so >> far. >> >> How can I have some sort of callback or routine that does this from a >> tdSle? >> >> Cheers >> >> Phil Jackson > > Hi Phil, > > Some suggestions: > > Concerning the index selection, you can use the bValid callback of the > tdXget(). > For the incremental search, you could see how this is done in tdIsearch() and > replicate the code in "your" tdcHibrow class. > > A second possible solution is to create your own tdIsearch() function by > using the original one where you add a tdXget() with the bValid callback (for > your index). But this one might be more tricky. > > Best regards, > Raymond Well, you need to replace tdSle by tdXget of course. | |
Philip G Jackson | Re: Topdown - progressive input data lookup. on Fri, 24 May 2013 10:40:55 +1200 Hi Raymond Thanks for the suggestions. I have the incremental search now working with the browse and can now add the other touches I want. I also noticed that the event loop I had copied from the TD example was concerting asc characters to alt keys so I was able to fix my digits only problem also. Many thanks! Phil Jackson On 5/23/2013 11:41 PM, Raymond Fischbach wrote: > Dans son message précédent, Raymond Fischbach a écrit : >> Philip G Jackson a écrit : >>> I'm building a screen to act as a generic browser for data which will >>> have a TDHiBrow browse as well as a couple of tdSle so users can type >>> in; >>> 1) a string to use for seeking the current index >>> 2) a string to set a filter on the current index record and the next >>> 500-100 records following on from that. >>> >>> For 1) above I want to allow a user to progressively enter a string >>> and have the browse box update to reflect any matches for the string >>> typed so far. >>> >>> How can I have some sort of callback or routine that does this from a >>> tdSle? >>> >>> Cheers >>> >>> Phil Jackson >> >> Hi Phil, >> >> Some suggestions: >> >> Concerning the index selection, you can use the bValid callback of the >> tdXget(). >> For the incremental search, you could see how this is done in >> tdIsearch() and replicate the code in "your" tdcHibrow class. >> >> A second possible solution is to create your own tdIsearch() function >> by using the original one where you add a tdXget() with the bValid >> callback (for your index). But this one might be more tricky. >> >> Best regards, >> Raymond > > Well, you need to replace tdSle by tdXget of course. > > | |
Raymond Fischbach | Re: Topdown - progressive input data lookup. on Fri, 24 May 2013 16:58:35 +0200 Philip G Jackson avait prétendu : > Hi Raymond > > Thanks for the suggestions. > > I have the incremental search now working with the browse and can now add the > other touches I want. I also noticed that the event loop I had copied from > the TD example was concerting asc characters to alt keys so I was able to fix > my digits only problem also. > > Many thanks! > > Phil Jackson > > On 5/23/2013 11:41 PM, Raymond Fischbach wrote: >> Dans son message précédent, Raymond Fischbach a écrit : >>> Philip G Jackson a écrit : >>>> I'm building a screen to act as a generic browser for data which will >>>> have a TDHiBrow browse as well as a couple of tdSle so users can type >>>> in; >>>> 1) a string to use for seeking the current index >>>> 2) a string to set a filter on the current index record and the next >>>> 500-100 records following on from that. >>>> >>>> For 1) above I want to allow a user to progressively enter a string >>>> and have the browse box update to reflect any matches for the string >>>> typed so far. >>>> >>>> How can I have some sort of callback or routine that does this from a >>>> tdSle? >>>> >>>> Cheers >>>> >>>> Phil Jackson >>> >>> Hi Phil, >>> >>> Some suggestions: >>> >>> Concerning the index selection, you can use the bValid callback of the >>> tdXget(). >>> For the incremental search, you could see how this is done in >>> tdIsearch() and replicate the code in "your" tdcHibrow class. >>> >>> A second possible solution is to create your own tdIsearch() function >>> by using the original one where you add a tdXget() with the bValid >>> callback (for your index). But this one might be more tricky. >>> >>> Best regards, >>> Raymond >> >> Well, you need to replace tdSle by tdXget of course. Thanks for the feed back. I am sure Clayton would be happy to see your solution. Raymond |