473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

how to reassign records

hi all

can anybody tell me the logic or the code how to reassign some records from one user to another user
Apr 20 '09 #1
6 1910
r035198x
13,262 8TB
You need to give more details than that.
Apr 21 '09 #2
hi r035198x,


Say for example u have an user admin and another user ahila.u have some modules like accounts,contacts,leads etc where u have some records.
i want to reassign a particular module(with all the records included) from one user to another user and get updated.

thanks in advance
Apr 21 '09 #3
r035198x
13,262 8TB
Then it would depend on the table structures you have but ultimately all you would do is run an update statement that changes the user_id to the new value.

Having said that, it all sounds very inappropriate. Why would you want reassign those records to another user? Why not rename the user who owns the records to the new user. You do less work that way.
Apr 21 '09 #4
hi r035198x,

actually i m trying out a module myaccount in sugarcrm where u have an option for reassigning records.There u can reassign the records of one particular module to another user.

This is done in the case where an employee quits the job, or not in the position to complete the job.Then the work(records) is assigned to some other user(employee) or a team member.

Able to get it.
And for u r kind info i m not that much sound in php and mysql (at the beginner level).
This is a task i m trying out for myproject work .

kindly get me an idea on how to go about it

thanks in advance
Apr 21 '09 #5
r035198x
13,262 8TB
Doesn't sound like a good design. This is what roles should be used for. The work records should be modifiable by someone in a particular role not just by a specific individual.
When an employee quits, just create a new employee, give him the same role as the old guy and the work proceeds as normal.
That way the system is more informative and more flexible. You can determine who did which part of the work.
Apr 21 '09 #6
oh ok

i will try out that in that manner

thanks r035198x
Apr 21 '09 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Shailesh Humbad | last post by:
I have a class and map like this: class MyObject { ... }; map<int, MyObject> Box; Now, I want to reassign the keys of one or more of the pairs in Box based on another map<int, int> that...
3
by: CSDunn | last post by:
Hello, I have an Access 2000 Project in which the data comes from a SQL Server 2000 database, and multiple users need to be able to see new records as each user adds records. The users also need...
6
by: Paul T. Rong | last post by:
Dear all, Here is my problem: There is a table "products" in my access database, since some of the products are out of date and stopped manufacture, I would like to delete those PRODUCTS from...
5
by: Grant | last post by:
Hi Is there a way to recover deleted records from a table. A mass deletion has occurred and Access has been closed since it happened Louis
13
by: Jan | last post by:
Hi I have a database that I use to keep track of the sales promotions that we send to companies. I normally send a mailing based on a subset of the companies in the database (found using the...
3
by: Schwammkopf | last post by:
Hi ! What i want to do in C++ is : int a = new a; a = 0, a = 0; int* p = &a; while (1) // any condition instead of 1
1
by: cfli1688 | last post by:
I have the following list: <id>1</id> <title>a1</title> <id>1</id> <title>a2</title> <id>2</id> <title>b1</title> <id>2</id> <title>b2</title>
11
by: shriil | last post by:
Hi I have this database that calculates and stores the incentive amount earned by employees of a particular department. Each record is entered by entering the Date, Shift (morn, eve, or night)...
8
by: Bernhard Merkle | last post by:
Hi there, I am reading Learning Python 3e from Mark Lutz and just found out that reassigning to builtins is possible. What is the reason, why Python allows this ? IMO this is very risky and can...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.