Normal Topic security login determines ClientID value (Read 261 times)
lksseven
Full Member
***
Offline



Posts: 416
Location: Southwest
Joined: Jan 26th, 2009
security login determines ClientID value
Jun 24th, 2009 at 3:22pm
Print Post Print Post  
Update:  I missed one (that I know of) ....

Orders:OnRetrieveOpenSpec
If (@Mode() > -1) and (@Group = "myclients")
 {
   ClientID = vUser
   ReadOnly(ClientID,2)
 }
************************

I'm working on a client order form to allow clients to logon to my  Sesame app, go to Sales Order screen, and add/print their own orders.  I've put code into the Orders:OnFormEntry, Orders!ClientID:OnElementEntry, and Orders!ClientID:OnElementChange ... will this do it?  Also, if someone has a more elegant solution, I'm eager to learn it.  Thanks.

Orders:OnFormEntry
If (@Mode() > -1) and (@Group = "myclients")
 {
   ClientID = vUser
   ReadOnly(ClientID,2)
 }

Orders!ClientID:OnElementEntry
If (@Mode() = 0) and (@Group = "myclients")
 {
   ClientID = vUser
   ReadOnly(ClientID,2)
 }

Orders!ClientID:OnElementChange
If (@Mode() > -1) and @Group = "myclients"
 {
   ClientID = vUser
   ReadOnly(ClientID,2)
 }
« Last Edit: Jun 28th, 2009 at 2:20pm by lksseven »  

Larry
Back to top
IP Logged