Page 2 of 2
Re: "PROBLEMILLA" CON TCBROWSE FWH
Posted: Fri May 22, 2020 10:52 am
by nageswaragunupudi
@ r, c XBROWSE oBrw SIZE ....................
DATASOURCE cAlias ;
COLUMNS "FIELD3", "LEFT(FIELD1,10)", "RIGHT(FIELD1,10)", "FIELD4", ....;
HEADERS ...........
Re: "PROBLEMILLA" CON TCBROWSE FWH
Posted: Fri May 22, 2020 3:53 pm
by pacotre
Muchas gracias.
Re: "PROBLEMILLA" CON TCBROWSE FWH
Posted: Sat May 23, 2020 5:14 pm
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.
Re: "PROBLEMILLA" CON TCBROWSE FWH
Posted: Sun May 24, 2020 10:01 am
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.
Re: "PROBLEMILLA" CON TCBROWSE FWH
Posted: Sun May 24, 2020 10:32 am
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
Re: "PROBLEMILLA" CON TCBROWSE FWH
Posted: Sun May 24, 2020 12:47 pm
by nageswaragunupudi
You are posting all your doubts on XBROWSE under TCBROWSE topic.
Please open a new post for your doubts on XBrowse.