Dear All,
How do you manage user privilege to access certain menu item / edit fields, etc. on your FW?
What is best suited structure? I dunno if I am asking the right question, help me out here.
Any Idea?
bpd2000 wrote:Simple logig is enable/disable Menu Item according to user's rights
aTPloegen := ArrTranspose( oRs:GetRows() )
for i = 1 to len(aPloegen)
aadd(aToegang,aTploegen[ 6+I ][1]) // 6 = aantal velden in de browse
next
lFirsttime:= .T.
for i = 1 to len(aPloegen)
if aToegang[i]
nMove+=30
if aPloegTypes[i] .and. lFirsttime
lFirsttime:= .F.
nMove:=30
nTop:= 90
nLeft:= 1195
endif
@ nTop+nMove,nLeft BTNBMP aBtn[i] OF oDlg SIZE 80, 25 NOBORDER PROMPT aPloegen[i] 2007 ACTION (oRs:SetFilter( "ploeg2018 = ? and exlid = ?", { ::cCaption, .F. } ), oBrw[oFld:nOption]:GoTop(), oBrw[oFld:nOption]:Refresh(),oBrw[oFld:nOption]:setfocus(),oPloeg:refresh(),oBrw[oFld:nOption]:maketotals() ) font oBold CENTER
endif
next
xLOGIN := UPPER( WNetGetuser() )+space(15) // fivewin function
xLOGIN := SUBSTR(xLOGIN,1,15)
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 40 guests