Passing Value From Master to Detail Table

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

Passing Value From Master to Detail Table

Post by amsire2 »

Hi, can you help me to solve this problem?

I have 2 tables

MasterTable : Order
Fields =
OrderID (PK)
TotalOrder

DetailTable: Payment
Fields =
PaymentID (PK)
Total Order
OrderID (FK)

How can I pass the value of TotalOrder from MasterTable to TotalOrder in DetailTable.


mobhar
User
Posts: 11660

Post by mobhar »

Container("Order")->TotalOrder->CurrentValue


amsire2
User
Posts: 130

Post by amsire2 »

mobhar wrote:

Container("Order")->TotalOrder->CurrentValue

Where should I place this codes


mobhar
User
Posts: 11660

Post by mobhar »

It actually depends on your needs; in which event did you want to use it.


amsire2
User
Posts: 130

Post by amsire2 »

I want the value to be pass when I Add the Details Table


mobhar
User
Posts: 11660

Post by mobhar »

Then you may use Row_Rendered server event; check the current page id is equal to "add".


Post Reply