Hi,
Just trying to understand how to do things the 'Alpha way' compared to the tools I've used in the past, so I'd appreciate some help please (a kind of quick start!)
This is a ficticious scenario but hopefully it'll explain what I want to do...
Say I had a table which recorded the quantity of a certain item on stock and its location (on a shelf in a warehouse) and I wanted to update the location in this table, plus record its movement in a seperate table which logged the items' movement history - what would be the best way to do this in Alpha?
The Stock table would have the following fields;
StockID (code for the item)
ItemDescription (name of the item)
Qty
CurrentLocation (shelf number)
The StockMovements table would have the following fields;
StockID
MovementDate (date it was moved)
OldLocation
NewLocation
I wouldn't expect the user to display the Stock form and overtype the CurrentLocation field with the new location to modify that record, then create a new record in a form over the StockMovements table, entering the date, StockID, Old and NewLocations. I want to do both things (update a record in one table and create a new record in another table) from one 'screen'.
The way I'd do this in Dataease would be to display a data-entry form where the user would type in the StockID code, the form would display the matching ItemDescription so the user could verify they'd entered the correct StockID code. The form would also display a field allowing (requiring) the user to enter the new location that the item was moved to. Therefore the db would update the CurrentLocation in the Stock table and enter a new movement record in the StockMovements table (StockID,CurrentDate,OldLocation,NewLocation).
I started by trying to create a form in Alpha, but do all forms have to be based on a table?
I also looked at creating an operation, then choosing the 'Update records' genie, but it didn't seem to offer what I'm looking for.
As I said this is just an example to show what I want to do, so I just need to know how I'd go about doing this sort of thing with Alpha (which tools/genies etc).
TIA,
Rich
Just trying to understand how to do things the 'Alpha way' compared to the tools I've used in the past, so I'd appreciate some help please (a kind of quick start!)
This is a ficticious scenario but hopefully it'll explain what I want to do...
Say I had a table which recorded the quantity of a certain item on stock and its location (on a shelf in a warehouse) and I wanted to update the location in this table, plus record its movement in a seperate table which logged the items' movement history - what would be the best way to do this in Alpha?
The Stock table would have the following fields;
StockID (code for the item)
ItemDescription (name of the item)
Qty
CurrentLocation (shelf number)
The StockMovements table would have the following fields;
StockID
MovementDate (date it was moved)
OldLocation
NewLocation
I wouldn't expect the user to display the Stock form and overtype the CurrentLocation field with the new location to modify that record, then create a new record in a form over the StockMovements table, entering the date, StockID, Old and NewLocations. I want to do both things (update a record in one table and create a new record in another table) from one 'screen'.
The way I'd do this in Dataease would be to display a data-entry form where the user would type in the StockID code, the form would display the matching ItemDescription so the user could verify they'd entered the correct StockID code. The form would also display a field allowing (requiring) the user to enter the new location that the item was moved to. Therefore the db would update the CurrentLocation in the Stock table and enter a new movement record in the StockMovements table (StockID,CurrentDate,OldLocation,NewLocation).
I started by trying to create a form in Alpha, but do all forms have to be based on a table?
I also looked at creating an operation, then choosing the 'Update records' genie, but it didn't seem to offer what I'm looking for.
As I said this is just an example to show what I want to do, so I just need to know how I'd go about doing this sort of thing with Alpha (which tools/genies etc).
TIA,
Rich
Comment