Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
SELF.Feq{PROP:Alrt,255} = Mouseleft2 !DobleClick alert
CASE EVENT()
OF EVENT:SELECTED
IF BRW1.Q.CUSAC:CustomerCode <> '
Self.Feq{PROP:COLOR,1} = 0D1FEFCH
Self.Feq{PROP:COLOR,2} = 0
Self.Feq{PROP:COLOR,3} = 0D1FEFCH
Self.Feq{PROP:SelStart} = 1
Self.Feq{PROP:ReadOnly} = 1
ELSE
Self.Feq{PROP:SelStart} = 1
Self.Feq{PROP:ReadOnly} = 0
END
Self.Feq{PROP:REQ} = TRUE
Self.Feq{PROP:IMM} = TRUE
UPDATE(SELF.FEq)
OF EVENT:ALERTKEY
CASE KEYCODE()
OF MouseLeft2
GlobalRequest = SelectRecord
BrwCustomerWindow
IF GlobalResponse = RequestCompleted
BRW1.Q.CUSAC:CustomerCode=CUS:CustomerCode
DISPLAY
RETURN(EditAction:Forward)
ELSE
Clear(CUS:Record)
Display
Return(EditAction:None)
END !END IF GlobalResponse = Reques
END !CASE
UPDATE(SELF.Feq) ! 7500
IF ReturnValue AND ReturnValue <> EditAction:Cancel AND| EditInPlace::CUSAC:CustomerCode.ReadOnly = 0
CUS:CustomerCode = BRW1.Q.CUSAC:CustomerCode
IF Access:Customer.Fetch(CUS:AK_Codigo) = Level:Benign
BRW1.Q.CUSAC:CustomerCode = CUS:CustomerCode
DISPLAY
RETURN(EditAction:Forward)
ELSE
GlobalRequest = SelectRecord
BrwCustomerWindow
IF GlobalResponse = RequestCompleted
BRW1.Q.CUSAC:CustomerCode=CUS:CustomerCode
DISPLAY
RETURN(EditAction:Forward)
ELSE
Clear(CUS:Record)
Display
Return(EditAction:None)
END
END
END !END IF ReturnValue..
IF LOC:AllowFocusLoss = FALSE !NO permitir salir del EIP
SELECT(LOC:EIPFEQ)
PRESSKEY(TABKEY)
RETURN
END
LOC:AllowFocusLoss = FALSE
LOC:EIPFEQ = Self.Feq
Update(Self.Feq)
CASE EVENT()
OF EVENT:Selected
IF BRW1.Q.CUSAC:CustomerCode <> '
LOC:AllowFocusLoss = TRUE
ELSE
LOC:AllowFocusLoss = FALSE
END
OF EVENT:Accepted
IF BRW1.Q.CUSAC:CustomerCode <> '
LOC:AllowFocusLoss = TRUE !Good boy!!!
RETURN(EditAction:Complete)
ELSE
LOC:AllowFocusLoss = FALSE
BEEP !You B*st*rd, type down an Custumer code!
Return(EditAction:None)
END
END