Skip to main content
Question

How to retrieve tickbox (Y/N) as a custom field to another view?

  • August 29, 2022
  • 3 replies
  • 47 views

Forum|alt.badge.img+8
  • Do Gooder (Customer)
  • 21 replies

I have  a SQL Column:   EMAIL_ORDER_CONF_DB in CUST_ORD_CUSTOMER_API  (Customer/Order/Misc Customer Info) and I would like to retrieve that same tickbox as  Custom Field to Customers – Sales Specific Information. How can I do that?

3 replies

Forum|alt.badge.img+13

Hi @mingram,

is the  EMAIL_ORDER_CONF_DB in CUST_ORD_CUSTOMER_API connected to a public method?

 

If yes, create a expression type custom field in the “Customers – Sales Specific Information”.

In the expression statement, call te getter method passing the customer id.

Hope this helps!

Best Regards,
Bhagya


Forum|alt.badge.img+8
  • Author
  • Do Gooder (Customer)
  • 21 replies
  • August 29, 2022

How can I check that?


Forum|alt.badge.img+13

Hi @mingram,

In the API CUST_ORD_CUSTOMER_API  check whether there is a getter method for EMAIL_ORDER_CONF_DB.

Example:
 



Or else try to write a SQL statement to retrieve the EMAIL_ORDER_CONF_DB from view.


Example:

select  EMAIL_ORDER_CONF_DB
from VIEWNAME
where customer_id=CUSTOMER_ID


VIEWNAME =  The underlying view which contains the EMAIL_ORDER_CONF_DB
customer_id = In the view “VIEWNAME ”, the relevant customer_id field name
CUSTOMER_ID = In the window, “Customers – Sales Specific Information” field name

Example:
 



Best Regards,
Bhagya