cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Default Values

Former Member
0 Likes
535

Hi Guys,

is this possible to set in the Customer BO default values? F.E i need to have Currency in EUR and Payment terms as 20 days net?

Does anyone has a sample code?

BR Manfred

View Entire Topic
astrid_burghart
Participant
0 Likes

Hi Manfred,

you can create a new event handler and perform a script.

There you have an if statement where you check if the field is empty.

If the field is empty, set the value.

Bind the event handler on the event handler that loads the bo.

Best regards,

Astrid

Former Member
0 Likes

Thank you. How do I get these Fields?

Are you able to send an sample code?

BR Manfred

astrid_burghart
Participant
0 Likes

Hi Manfred:

for example like this:


if ($data.Currency == "")

$data.Currency = "EUR"

end

Best regards

Astrid