Assignment

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
austinl
User
Posts: 38

Assignment

Post by austinl »

I have two tables set up. One is for radios and the other is for radio assignment. On the radio assignment there is a returned button. How can I use the check duplicate button to make it so the same radio cannot be assigned when it is already assigned, but it can be reassigned when it is marked returned. I wold like to keep the records instead of deleting them.


scs
User
Posts: 694

Post by scs »

And another field (eg. datetimereturned) as part of key field will do.


austinl
User
Posts: 38

Post by austinl »

How would that work so when the radio is returned it can be reassigned? I am very sorry for not understanding.


mobhar
User
Posts: 11736

Post by mobhar »

  1. Post your table schema, and
  2. Describe us by using one simple example.

austinl
User
Posts: 38

Post by austinl »

A radio will be signed into the system with no duplicates. It will then be signed out and cannot be reassigned until it is marked as "Yes" for returned. Then the radio will be able to be reassigned without deleting the record.

== Table structure for table radios

|------
|Column|Type|Null|Default
|------
|//ID//|int(11)|No|
|Type|varchar(20)|No|
|Serial Number|varchar(50)|No|
|Condition|varchar(50)|No|
|Owner|varchar(50)|No|
|Returned|varchar(20)|No|
|Notes|text|Yes|NULL
|Signature|varchar(25)|No|

== Table structure for table resource_assignment

|------
|Column|Type|Null|Default
|------
|//ID//|int(11)|No|
|Serial|varchar(50)|No|
|Member|varchar(50)|No|
|Required Training|varchar(20)|No|
|Returned|varchar(20)|No|
|Notes|text|Yes|NULL
|Signature|varchar(25)|No|


mobhar
User
Posts: 11736

Post by mobhar »

Unfortunately, you did not mention which fields from the table schema that will be involved by using the radio button control.


austinl
User
Posts: 38

Post by austinl »

The returned field in resource_assignment.


mobhar
User
Posts: 11736

Post by mobhar »

Which field, exactly?


Post Reply