Copy field value from Master to Detail table

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
dire
User
Posts: 41

Copy field value from Master to Detail table

Post by dire »

Hey,

I’m trying to copy field value from master table to detail table (order-> order details)

  1. In table Order, under Client Script->Global->Pages with header/footer->Startup Scrip
    $Fld_xx=$row(“Order_xx”); //(Order_xx is specific field)

  2. In table Order details, Server Events->Table Specific->Common->Row _Rendered
    Order_details.xx=$fld_xx; //(Order_details.xx is specific field in order details)

What is wrong with code?


motfs
User
Posts: 258

Post by motfs »

One is client side variable and another is server side variable. Do not mix up.

Assume you want to paste the value in Master/Detail Edit:

  1. Client side (Client Scripts -> Table-Specific -> Edit Page -> Startup Script):
    copy the value (your code) and paste the value (use .value(<value>). Read the Client Scripts -> Startup Script (Example 1) in help file for more details.

  2. Server side:

  3. get the value from master table (use ew_ExecuteScalar("<sql>"))

  4. use Row_Rendered server event to render the value in server side.


Post Reply