"PROBLEMILLA" CON TCBROWSE FWH

User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: "PROBLEMILLA" CON TCBROWSE FWH

Post by nageswaragunupudi »

@ r, c XBROWSE oBrw SIZE ....................
DATASOURCE cAlias ;
COLUMNS "FIELD3", "LEFT(FIELD1,10)", "RIGHT(FIELD1,10)", "FIELD4", ....;
HEADERS ...........
Regards

G. N. Rao.
Hyderabad, India
pacotre
Posts: 40
Joined: Fri Jan 10, 2014 10:38 am

Re: "PROBLEMILLA" CON TCBROWSE FWH

Post by pacotre »

Muchas gracias.
pacotre
Posts: 40
Joined: Fri Jan 10, 2014 10:38 am

Re: "PROBLEMILLA" CON TCBROWSE FWH

Post by pacotre »

nageswaragunupudi wrote:@ r, c XBROWSE oBrw SIZE ....................
DATASOURCE cAlias ;
COLUMNS "FIELD3", "LEFT(FIELD1,10)", "RIGHT(FIELD1,10)", "FIELD4", ....;
HEADERS ...........
No podía imaginar que era tan fácil. Y supongo que otra duda que tengo también será fácil, pero que no veo:

Como se evalua el índice activo una vez que pinchamos un header? para indicarlo en texto en el Dialog.
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: "PROBLEMILLA" CON TCBROWSE FWH

Post by nageswaragunupudi »

XBrowse automatically, on its own, reads and parses all index expressions of all open indexes and decides which index can be used for which column and stores the Tag name in oCol:cSortOrder and order bag name in oCol:cOrdBag and uses this information to change the index order when the user clicks on the header. In 99% of the cases, this should work satisfactorily.
The programmer can override this behavior by specifying oCol:cSortOrder and oCol:cOrdBag himself, but this may be done only if xbrowse fails to recognize the correct index tag.
Regards

G. N. Rao.
Hyderabad, India
pacotre
Posts: 40
Joined: Fri Jan 10, 2014 10:38 am

Re: "PROBLEMILLA" CON TCBROWSE FWH

Post by pacotre »

Ok. All is working ok, but I need to know when de user has changed the index clicking on header, then I can write the fieldname in Dialog.

For example something like this:

'On change indexord()' msginfo("Active index is "+str(indexord())). My problem is I don't know identifier when user is clicking on header with Xbrowse

Thank you
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: "PROBLEMILLA" CON TCBROWSE FWH

Post by nageswaragunupudi »

You are posting all your doubts on XBROWSE under TCBROWSE topic.
Please open a new post for your doubts on XBrowse.
Regards

G. N. Rao.
Hyderabad, India
Post Reply