Search found 10 matches: xlogin

Return to advanced search

Unattended creation of .pdf . resolution problem -- RESOLVED

... in this code .. nView = 3 //nView := 3 Do Case Case nVIEW = 1 PRINTER oPRINT FROM USER ; PREVIEW MODAL ; NAME "Request Print Routine "+xLOGIN IF EMPTY( oPRINT:hDC ) MsgStop ( "Printer not Ready !" ) CLOSE DATABASES oDlg:END() RETURN(NIL) ENDIF Case nVIEW = 2 PRINTER oPRINT ...
by Rick Lipkin
Thu Sep 16, 2021 1:17 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Unattended creation of .pdf . resolution problem -- RESOLVED
Replies: 9
Views: 1285

Re: How do you handle User Access on your FW App

Validating a user is not difficult .. first of all I use the function WnetGetUser: xLOGIN := UPPER( WNetGetuser() )+space(15) // fivewin functionxLOGIN := SUBSTR(xLOGIN,1,15)  Take the results of xLogin and search your user table .. ...
by Rick Lipkin
Sat Aug 18, 2018 3:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How do you handle User Access on your FW App
Replies: 5
Views: 967

Re: Password protected access to menu. Advice ?

To All I use the WNetGetUser() function to extract the logged in User Id on the workstation and save it to a Public variable xLogin .. I use xLogin to find the UserID stored in my security table to assign permissions as you saw earlier .. If there is no match .. I force a manual login. ...
by Rick Lipkin
Fri May 12, 2017 1:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Password protected access to menu. Advice ?
Replies: 25
Views: 3505

TestSmtp

... problem. Sorry for the attached code .. I have tried to condense it. Rick Lipkin SC Dept of Health, USA //------------------------------- IF xLOGIN = "UNKNOWN" yLOGIN := WNetGetUser() // FiveWin function yLOGIN := UPPER( yLOGIN ) oSAY := NIL cSAY := NIL cWELCOME := "WELCOME to the PMO Strategic ...
by Rick Lipkin
Tue Jul 08, 2008 7:15 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TestSmtp
Replies: 6
Views: 1609

Jpg background instead of Bmp

... substitute the same image in .jpg format rather than bitmap .. Rick Lipkin SC Dept of Health, USA //----- main menu -------// xMESSAGE := "User "+xLOGIN+" Rights "+cRIGHTS+ ; " Default= "+cDEFA+" Rdd= "+cRDD+ ; " Revision "+DTOC(dEXE)+; " -r"+str(nSCR1,4)+" x "+STR(nSCR2,4) DEFINE ICON oICO RESOURCE ...
by Rick Lipkin
Tue Jun 03, 2008 9:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Jpg background instead of Bmp
Replies: 1
Views: 556

... the code snipit I inserted : IF xADMIN = 'Y' MENUITEM "&Change Agency .." ; ACTION( _ChgAgen(), ; cRIGHTS := _Rights(), ; xMESSAGE := ("User "+xLOGIN+" Rights "+cRIGHTS+ ; " Default= "+xDEFA+" Rdd= "+cRDD+ ; " Revision "+DTOC(dEXE)+; " Agency\Mp= "+ALLTRIM(xAGENCY)+"\"+alltrim(xPOOL)+; " -r"+str(nSCR1,4)+" ...
by Rick Lipkin
Wed Nov 28, 2007 12:54 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Update Menu on MDI frame ?
Replies: 4
Views: 811

Update Menu on MDI frame ?

... "Utilities Programs" IF xADMIN = 'Y' MENUITEM "&Login Diff User .." ; ACTION( _Log_in(), ; cRIGHTS := _Rights(), ; xMESSAGE := ("User "+xLOGIN+" Rights "+cRIGHTS+ ; " Default= "+xDEFA+" Rdd= "+cRDD+ ; " Revision "+DTOC(dEXE)+; " Agency\Mp= "+ALLTRIM(xAGENCY)+"\"+alltrim(xPOOL)+; " -r"+str(nSCR1,4)+" ...
by Rick Lipkin
Tue Nov 27, 2007 10:58 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Update Menu on MDI frame ?
Replies: 4
Views: 811

Bryon

I find this works because it looks at the credentials of the workstation profile. In Microsoft the workstation profile and the AD network id should be the same and syncronized..

Works from Win98 thru Vista

xLOGIN := WNetGetUser() // FiveWin function

Rick Lipkin
SC Dept of Health, USA
by Rick Lipkin
Wed Sep 26, 2007 11:10 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Active Directory
Replies: 2
Views: 611

Update the Message bar

To All I have a message bar : xMESSAGE := "User "+xLOGIN+" Rights "+cRIGHTS+ ; " Default= "+cDEFA+" Rdd= "+cRDD+ ; " Revision "+DTOC(dEXE)+; " -r"+str(nSCR1,4)+" x "+STR(nSCR2,4) SET MESSAGE OF oWind ; to xMESSAGE CLOCK How can I update the message ...
by Rick Lipkin
Mon Jul 16, 2007 7:03 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Update the Message bar
Replies: 5
Views: 1784

... Id='+xUSERID+';Password='+xPASSWORD ) CATCH oErr MsgInfo( "Error in Opening USERINFO table" ) RETURN(.F.) END TRY oRs:Find("USERID = '"+xLOGIN+"'" ) IF oRs:eof oRs:MoveFirst() ENDIF DEFINE WINDOW oUser ; FROM 2,2 to 25,65 ; of oWndMDI ; TITLE "USERINFO Records Browse" ; MENU BuildMenu(oRs) ...
by Rick Lipkin
Thu Jun 21, 2007 1:53 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: ADO update visability between workstations
Replies: 18
Views: 4943

Return to advanced search