How to get value from another 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

How to get value from another table

Post by dire »

Table A has value form Table B (tableB.id) and I need value from Table B( tableB.code).
I want to use custom function with ew_ExecuteScalar (Select TableB.code FROM TableB WHERE ??) in global code and then call this function from custom attributes field.

Please for some good example, because I’m starting to learn.

thx :)


motfs
User
Posts: 258

Post by motfs »

You can put JavaScript function in Custom Attribute only. But your code is server side. Elaborate in detail what you try to do.


dire
User
Posts: 41

Post by dire »

I have Table Customer with fields (name, surname, address, post, state, etc). Fields post, state are FK from table sif_post and sif_state.
I would like to have link on field address (for googl emaps).
I manage Prefix (url for googl emaps), HREF value is address, I need post_code from sif_post and state_code from sif_state


motfs
User
Posts: 258

Post by motfs »

You can create Custom Field to get the value (test your SQL expression first) and use these fields to create full address. Read Custom Fields in help file for more details.


dire
User
Posts: 41

Post by dire »

thx


Post Reply