Xbrowse oCol assigment with variabel Headers

Post Reply
User avatar
Marc Venken
Posts: 1485
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Xbrowse oCol assigment with variabel Headers

Post by Marc Venken »

I always want to use the col names for all actions in xbrowse, since while in devellopment, de colums always changes from place

so we know this works

WITH OBJECT :p_2018
:nEditType := EDIT_NONE
END
WITH OBJECT :p_2017
:nEditType := EDIT_NONE
END

Now I was able to have a dynamic header in xbrowse based on the active year : J_2019, J_2018, J_2017,... (So this works)

oBrw[1]:cHeaders := { 'Code','Naam','Gemeente','Dat_LST','J_'+str(year(date()),4),'J_'+str(year(date())-1,4),'J_'+str(year(date())-2,4),'J_'+str(year(date())-3,4),'J_'+str(year(date())-4,4),'Totaal' }

Now I Tried to get the object working

WITH OBJECT : &'J_'+str(year(date()))
:cOrder:= "D" // No obstante muestra como "A"
//:aBarGetList:= aGroepen
ENDWITH

I tried several combinations, but didn't find the correct way
Marc Venken
Using: FWH 23.08 with Harbour
User avatar
nageswaragunupudi
Posts: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
Contact:

Re: Xbrowse oCol assigment with variabel Headers

Post by nageswaragunupudi »

Code: Select all | Expand


WITH OBJECT :oCol( "J_" + Str( Year( Date() ), 4 ) )
 
Regards

G. N. Rao.
Hyderabad, India
Post Reply