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