Professional Documents
Culture Documents
Forum
New Posts Private Messages FAQ Calendar Community Forum Actions Quick Links Advanced Search
Forum PDMS/E3D Forum PML and PML2 New Innonation for PDMS Login of AVEVA
Results 1 to 17 of 17
+ Reply to Thread
Thread: New Innonation for PDMS Login of AVEVA
mansyur.usm
New Innonation for PDMS Login of AVEVA
Guest
mansyur.usm's Avatar We had developed PMLN for new Innonation for PDMS Login of
AVEVA
Attached thumbnails
Reply
Reply With Quote
tomek
and what is it good for ?
World Level
Reply
Reply With Quote
me_hungry
Lets better create new 'PDMS Login form' for 12.1 in such way that
it is possible to see all info about selected project.
Administrator
https://www.avevaworldforum.com/showthread.php?15357-New-Innonation-for-PDMS-Login-of-AVEVA&highlight=pdms+login+script 1/16
6/20/2021 New Innonation for PDMS Login of AVEVA
Discover more
Reply
Reply With Quote
htl
How can you do that?
Zone Level
Reply
Reply With Quote
htl
Can you show me the name of login form?
Thanks,
Zone Level
Reply
Reply With Quote
mansyur.usm the picture and the name will be shown according the user of the
pdms designer, show it will have function like ID Card.
Guest
mansyur.usm's Avatar
Reply
Reply With Quote
Reply
Reply With Quote
https://www.avevaworldforum.com/showthread.php?15357-New-Innonation-for-PDMS-Login-of-AVEVA&highlight=pdms+login+script 2/16
6/20/2021 New Innonation for PDMS Login of AVEVA
Reply
Reply With Quote
mansyur.usm but for PDMS12.1.SP2, It can apply for that, i don't know how
modify login form for PDMS12.1.SP2.
Guest
form in PDMS12.1.SP2.
I don't know the pml file for pdms login
mansyur.usm's Avatar
Reply
Reply With Quote
Reply
Reply With Quote
Reply
Reply With Quote
htl
Zone Level
the location file is
C:\AVEVA\Plant\PDMS12.0.SP6\PMLLIB\monitor\forms\
Thanks you!
Reply
Reply With Quote
mansyur.usm ------------------------------------------------------------------------
--
Guest
--
File: pdmslogin.pmlfrm
-- Type: Form Definition
-- Module: monitor
-- Replaces: FLOGIN
--
--
Modified: Mansyur Usman
-- Author: E.conba
--
--
Description:
-- Definition of
PDMS Login form.
--
https://www.avevaworldforum.com/showthread.php?15357-New-Innonation-for-PDMS-Login-of-AVEVA&highlight=pdms+login+script 3/16
6/20/2021 New Innonation for PDMS Login of AVEVA
------------------------------------------------------------------------
--
-- Methods defined:
--
-- Method call Return Description
-- =========== ====== ===========
-- cancel() - action for ok button
-- init() - constructor
-- ok() - action for ok button
-- pdmsLogin() - constructor
-- selectMdb() - action for mdb
-- selectModule() - action for modules option gadget
-- setMdb() - action for setting mdb
-- setPassword() - action to set the users password
-- setProject() - action setting the project
-- setUserName() - action for setting userName and checking for
Authentication
-- textWidth() - --
--
else
BUTTON.Apply16 AT X 0.1 Y 8 PIXMAP
/O:\PDMS\PMLLIB\picture\AAA.BMP callback|!!Alert.message ('MY
Name is $!UserName')|
paragraph.par31 at 18 9 text |$!UserName|
paragraph.par32 at 18 9.7 text |OTHERS USER|
paragraph.par33 at 18 10.4 text |INDONESIA|
endif
exit
-- End of form definition for !!pdmsLogin
------------------------------------------------------------------------
--
-- Method: !pdmsLogin()
--
-- Description: constructor
--
-- Method Type: Procedure
--
-- *** OLD STYLE PML ***
-- *** COMMAND LINE SYNTAX ***
--
------------------------------------------------------------------------
define method .pdmsLogin()
-- For Marine Header
Var !UserName Login
Var !UserName UpCase(|$!UserName|)
!comboBoxIcon = !!pml.getPathName('comboboxarrow9x12.png')
-- callbacks
!this.projName.callback = |!this.setProject()|
!this.pSel.callback = |show !!selectProject|
!this.userName.callback = |!this.setUserName()|
!this.uSel.callback = |show !!selectuser|
!this.passwd.callback = |!this.setPassword()|
!this.changePass.callback = |show !!changePass|
!this.mdb.callback = |!this.setMdb()|
!this.mdbForm.callback = |!this.selectMdb()|
!this.modules.callback = |!this.selectModule()|
!this.cancelCall = '!this.cancel()'
!okMacro = !!pml.getPathName('pdmsloginok.pmlfnc')
!this.ok.callback = '$m "' + !okMacro + '"'
!this.pSel.addPixmap(!comboBoxIcon)
!this.uSel.addPixmap(!comboBoxIcon)
https://www.avevaworldforum.com/showthread.php?15357-New-Innonation-for-PDMS-Login-of-AVEVA&highlight=pdms+login+script 5/16
6/20/2021 New Innonation for PDMS Login of AVEVA
!this.mdbForm.addPixmap(!comboBoxIcon)
!this.projName.validatecall = '!this.textWidth()'
!this.reLogin = false
endmethod
-- End of method definition for .pdmsLogin()
------------------------------------------------------------------------
--
-- Method: !init()
--
-- Description: constructor
--
-- Method Type: Procedure
--
-- *** OLD STYLE PML ***
-- *** COMMAND LINE SYNTAX ***
--
------------------------------------------------------------------------
define method .init()
!this.projName.val = ''
!this.project.val = ''
!this.userName.val = ''
!this.passwd.val = ''
!this.mdb.val = ''
if (!!sessionSettings.project.empty()) then
!this.keyboardFocus = !this.projName
else
!this.projName.val = !!sessionSettings.projName
!this.project.val = !!sessionSettings.project
if (!!sessionSettings.user.empty()) then
!this.keyboardFocus = !this.userName
else
!this.userName.val = !!sessionSettings.user
!this.keyboardFocus = !this.passwd
if (!!sessionSettings.mdb.empty().not()) then
!this.mdb.val = !!sessionSettings.mdb.substring(2)
endif
endif
endif
!this.modules.select('rtext', !!sessionSettings.module.upcase())
handle any
https://www.avevaworldforum.com/showthread.php?15357-New-Innonation-for-PDMS-Login-of-AVEVA&highlight=pdms+login+script 6/16
6/20/2021 New Innonation for PDMS Login of AVEVA
endhandle
!this.selectModule()
-- Only activate the Change Password button once the users
password
!this.changePass.active=false
!this.setUserName()
!this.restore.val = !!sessionSettings.restore
handle any
!this.restore.val = false
endhandle
!this.readOnly.val = !!sessionSettings.readOnly
handle any
!this.readOnly.val = false
endhandle
!this.authentication = authentication
!!runMacro('%PDMSDFLTS%/mon-admin.pmldat','')
handle ANY
-- Just in case the file has been deleted set the password to false
!this.chPass = FALSE
elsehandle NONE
!this.chPass = !!monAdminDflts.chPass
endhandle
endmethod
-- End of method definition for .init()
------------------------------------------------------------------------
--
-- Method: !selectModule()
--
-- Description: action for modules option gadget
--
-- Method Type: Procedure
--
-- *** OLD STYLE PML ***
-- *** COMMAND LINE SYNTAX ***
--
------------------------------------------------------------------------
define method .selectModule()
if (!this.loadMenuFlag[!this.modules.val]) then
!this.restore.active = true
else
!this.restore.active = false
endif
-- check that the user save file exists if it doesn't then switch restore
to false and grey it out
-- this doesn't work until the user has been set so handle the error
the first time you enter the form
!userName = !this.userName.val
!modKey=!!modKey(!this.modules.selection())
!dispFileObj = object FILE('%PDMSUSER%/' + !modKey + '-' +
!this.project.val.lowcase() + '-' + !this.mdb.val + '-
gphviews.pmldat')
if (!dispFileObj.exists().not()) then
!this.restore.val = false
!this.restore.active = false
else
!this.restore.active = true
endif
endmethod
-- End of method definition for .selectModule()
------------------------------------------------------------------------
--
-- Method: !setUserName()
--
-- Description: action for setting userName and checking for
Authentication
--
-- Method Type: Procedure
--
--
------------------------------------------------------------------------
define method .setUserName()
!userNameList=ARRAY()
!this.authentication = false
!authentication=authentication
if (!authentication) then
-- Is this user authenticated
!authUser=object authuser()
!userNames=!authUser.userList()
handle (2,109)
-- Not an authenticated user
!this.passwd.setFocus()
!this.authentication=false
!this.changePass.active=false
elsehandle none
-- Does the username in the form match any of the authenticated
users
do !i index !userNames
!userNameList[!i] = !userNames[!i].name
enddo
-- This is an authenticated user but is the username FREE if so we
still need a password
-- If not then no password is required
!userNo=!userNameList.findFirst(!this.userName.val )
if(!userNo.set()) then
--is this a free user
if (!userNames[!userNo].access.upcase() eq 'FREE') then
-- password required
!this.passwd.active=true
!this.passwd.setFocus()
!this.authentication=false
!this.changePass.active=false
else
!this.passwd.val=''
!this.passwd.active=false
!this.mdb.setFocus()
!this.authentication=true
!this.changePass.active=false
endif
else
-- set the user name to the default user
!this.userName.val=!authUser.defaultUser().name
handle any
-- password required
!this.passwd.active=true
!this.passwd.setFocus()
!this.authentication=false
!this.changePass.active=false
elsehandle none
--is this a free user
!user=object user(!this.userName.val)
if (!user.access.upcase() eq 'FREE') then
-- password required
https://www.avevaworldforum.com/showthread.php?15357-New-Innonation-for-PDMS-Login-of-AVEVA&highlight=pdms+login+script 8/16
6/20/2021 New Innonation for PDMS Login of AVEVA
!this.passwd.active=true
!this.passwd.setFocus()
!this.authentication=false
!this.changePass.active=false
else
!this.passwd.val=''
!this.passwd.active=false
!this.mdb.setFocus()
!this.authentication=true
!this.changePass.active=false
endif
endhandle
endif
endhandle
else
!this.passwd.setFocus()
!this.authentication=false
!this.changePass.active=false
endif
!userName = !this.userName.val
-- check that the user save file exists if it doesn't then switch restore
to false and grey it out
!modKey=!!modKey(!this.modules.selection())
!dispFileObj = object FILE('%PDMSUSER%/' + !modKey + '-' +
!this.project.val.lowcase() + '-gphviews.pmldat')
if (!dispFileObj.exists().not()) then
!this.restore.val = false
!this.restore.active = false
else
!this.restore.active = true
endif
!!sessionSettings.user = !this.userName.val
endmethod
!this.passwd.val = ||
!!messageFile.error(150, 22)
endif
else
!userPass ='|' & !userName & '|' & '/' & !password
endif
USERNAME $!userPass
handle none
!!sessionSettings.user = !this.userName.val
!this.mdb.setFocus()
if (!!monAdminDflts.chPass or !user.access.upcase() eq 'FREE') then
!this.changePass.active=!this.passwd.active
else
!this.changePass.active= FALSE
endif
elsehandle (98,205)
-- Project is locked
!!messageFile.error(150, 43, !this.project.val)
!this.project.val = ||
!this.userName.val = ||
!this.passwd.val = ||
!this.project.setFocus()
elsehandle (98,204)
elsehandle any
!!alert.error(!!error.text.after(|)|))
!this.userName.val = ||
!this.passwd.val = ||
!this.userName.setFocus()
endhandle
endmethod
------------------------------------------------------------------------
--
-- Method: !setProject()
--
-- Description: action for setting project
--
-- Method Type: Procedure
--
--
------------------------------------------------------------------------
define method .setProject()
https://www.avevaworldforum.com/showthread.php?15357-New-Innonation-for-PDMS-Login-of-AVEVA&highlight=pdms+login+script 10/16
6/20/2021 New Innonation for PDMS Login of AVEVA
!oldProject = !!currentProject
!idEvar = !oldProject & '000id'
var !id evar '$!idEvar'
!found=false
!projList = PROJECTS
if (!projList.size() eq 0) then
!!alert.error('No projects defined')
return
endif
var !unusedP proj
--DFN 10273
-- Fix to get round unhandled exception when no project set
handle (43,251) (39,33) (39,32)
!code = !projList[1].code()
PROJ $!code
endhandle
do !i indices !projList
if (!projList[!i].id().unset()) then
if (!projList[!i].code().upcase() eq !this.projName.val.upcase()) then
!project=!projList[!i].code().upcase()
!found=true
break
endif
elseif (!projList[!i].code().upcase() eq !this.projName.val.upcase()
or !projList[!i].id().upcase() eq !this.projName.val.upcase()) then
!project=!projList[!i].code().upcase()
!found=true
break
endif
enddo
if (!found.not()) then
-- Project not found
!!alert.error('Project not defined')
!project=!this.project.val
if (!id eq '') then
!this.projName.val = !project
else
!this.projName.val = !id
endif
endif
elsehandle (43,9)
!error = !!error.text.after(|)|)
!!alert.error(!error)
elsehandle any
elsehandle none
!this.project.val = !project.upcase()
!!currentProject = !project.upcase()
-- can not use current project because the user name will not be set
so have to go round all the projects
-- and find out the current project that way
!projList = PROJECTS
do !i indices !projList
if (!projList[!i].evar.substring(1,3).upcase() eq !project.upcase())
https://www.avevaworldforum.com/showthread.php?15357-New-Innonation-for-PDMS-Login-of-AVEVA&highlight=pdms+login+script 11/16
6/20/2021 New Innonation for PDMS Login of AVEVA
then
!projid=!projList[!i].id()
endif
enddo
!this.projName.val = !projid
!!sessionSettings.project = !project
!!sessionSettings.projName = !projid
endhandle
if (!project.upcase() neq !oldProject.upcase()) then
-- clear MDB for new project
!!sessionSettings.mdb = ||
!this.mdb.val = ||
!this.userName.setFocus()
endif
else
endmethod
------------------------------------------------------------------------
--
-- Method: !setMdb()
--
-- Description: action for setting mdb via text gadget
--
-- Method Type: Procedure
--
--
------------------------------------------------------------------------
define method .setMdb()
!this.setProject()
!this.setPassword()
$!mdb
handle any
!this.mdb.val = ''
!this.mdb.setFocus()
!!alert.error(!!error.text)
elsehandle none
!this.ok.setFocus()
endhandle
endmethod
-- End of method definition for .setMdb()
------------------------------------------------------------------------
https://www.avevaworldforum.com/showthread.php?15357-New-Innonation-for-PDMS-Login-of-AVEVA&highlight=pdms+login+script 12/16
6/20/2021 New Innonation for PDMS Login of AVEVA
--
-- Method: !selectMdb()
--
-- Description: action for ok button
--
-- Method Type: Procedure
--
-- *** OLD STYLE PML ***
-- *** COMMAND LINE SYNTAX ***
--
------------------------------------------------------------------------
define method .selectMdb()
!this.setProject()
!this.setPassword()
show !!selectMdb
endmethod
-- End of method definition for .selectMdb()
------------------------------------------------------------------------
--
-- Method: !ok()
--
-- Description: action for ok button
--
-- Method Type: Procedure
--
-- *** OLD STYLE PML ***
-- *** COMMAND LINE SYNTAX ***
--
------------------------------------------------------------------------
define method .ok()
endmethod
-- End of method definition for .ok()
------------------------------------------------------------------------
--
-- Method: !cancel()
--
-- Description: action for ok button
--
-- Method Type: Procedure
--
-- *** OLD STYLE PML ***
-- *** COMMAND LINE SYNTAX ***
--
------------------------------------------------------------------------
define method .cancel()
if (!this.reLogin.not()) then
!!fmsys.splashScreen(false)
FINISH
endif
endmethod
-- End of method definition for .cancel()
https://www.avevaworldforum.com/showthread.php?15357-New-Innonation-for-PDMS-Login-of-AVEVA&highlight=pdms+login+script 13/16
6/20/2021 New Innonation for PDMS Login of AVEVA
------------------------------------------------------------------------
--
-- Method: textWidth()
--
-- Description: Checks for the no. of characters entered in the
project name field.
--
-- Method Type: Function
--
-- *** OLD STYLE PML ***
-- *** COMMAND LINE SYNTAX ***
--
------------------------------------------------------------------------
define method .textWidth()
!this.project.val = !this.project.val.trim()
endmethod
-- End of method definition for .textWidth()
Reply
Reply With Quote
hackbard
did maybe anyone found out how to change the form for 12.1?
Pipe Level
We have all projects added to one start script so this is something a
hackbard's Avatar
bit tricki without a description.
Join Date: Sep 2008
Location: Germany Looking forward to e3D for that matter then you have even a worse
Posts: 91 overview :-/
Reply
Reply With Quote
Nightscreamer
Login form for 12.1 is in .NET library. Not PML fille.
Pipe Level
Reply
Reply With Quote
me_hungry
Administrator
I recreate it in such way:
https://www.avevaworldforum.com/showthread.php?15357-New-Innonation-for-PDMS-Login-of-AVEVA&highlight=pdms+login+script 14/16
6/20/2021 New Innonation for PDMS Login of AVEVA
Attached thumbnails
Discover more
Reply
Reply With Quote
Han_BFY
Thanks for sharing
This User has been Banned
Reply
Reply With Quote
Quick reply
Show your signature
«
Previous Thread
|
Next Thread
»
Similar Threads
Posting Permissions
You may post new threads BB code is On
You may post replies Smilies are On
You may post attachments [IMG] code is On
You may edit your posts [VIDEO] code is On
HTML code is Off
Forum Rules
Contact Us
Aveva World Forum
Archive
Terms of Service
Top
https://www.avevaworldforum.com/showthread.php?15357-New-Innonation-for-PDMS-Login-of-AVEVA&highlight=pdms+login+script 16/16