report with log in time and log out time

suri
Member Posts: 123
hi superiors
i want to print the report with login time and log out time of the user
i have created table with three fields
sno=code
logintime=time
log out time=time
i have created a new form with this fields and i have taken a one command button
while entering values into the form ,after clicking the command button it must have to effect into the table
i have written the code in command button onpush()
it was not inserting any values into the table
i have tried in on activate of the command button...but it was not entering any values into the form
i have tried the code in ,but it was not entering any values...
Form - OnActivateForm()
can any one suggest me where to write the code
thank you
i want to print the report with login time and log out time of the user
i have created table with three fields
sno=code
logintime=time
log out time=time
i have created a new form with this fields and i have taken a one command button
while entering values into the form ,after clicking the command button it must have to effect into the table
i have written the code in command button onpush()
it was not inserting any values into the table
i have tried in on activate of the command button...but it was not entering any values into the form
i have tried the code in ,but it was not entering any values...
Form - OnActivateForm()
can any one suggest me where to write the code
thank you
0
Comments
-
If you set SourceTable property of form to table which you have created.
then whatever you have entered in form will be automatically inserted in table..no need to write any code.
Please try..0 -
thanks for giving reply mohana sir
i have tried like that
when we insert values in the form it was inserting into the table
but when we insert for next time it was overwriting
can you give any suggestion regarding this
i thought we have to write the code..to rectify this problem0 -
When you open form next time you will see already existing data also.
why to change the same data?
create new line...
Please check table 51 - User Time Register, how it is designed..0 -
ok mohana thanks for your reply
i am sorry to delay,for giving the reply.
thanks a lot.i got it0 -
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions