[SOLVED]Set attr from another BO in form without using shortcut

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
lueu
Posts: 89
Joined: Tue Mar 07, 2023 11:49 pm

[SOLVED]Set attr from another BO in form without using shortcut

Post by lueu »

Hello all good helpers :)

Could anyone point me to how to go about to achieve this in AwareIM?

1. User chooses an ID on a form on BO1(got this one settled)
2. Check in BO2 which name belongs to this ID
3. Put this name from BO2 (or actually from BO1, but the same as I find in BO2) in the name attribute in the form for BO1

Challenge: can't use shortcut because I need the attr to be saved in BO1, not just show it on the form.

I'm lost, any advice would be greatly appreciated.
Last edited by lueu on Fri Nov 24, 2023 12:37 pm, edited 1 time in total.
joben
Posts: 230
Joined: Wed Nov 06, 2019 9:49 pm
Location: Sweden
Contact:

Re: Set attr from another BO in form without using shortcut

Post by joben »

This is if you don't have references between the BOs at all:

Update rule in BO1. Dynamic.

If BO1.Idnumber WAS CHANGED Then
FIND BO2 WHERE (BO2.Idnumber=BO1.Idnumber)
BO1.Name=BO2.Name


If you do have an established reference between BO1 and BO2:

Update rule in BO1.

B01.Name=B01.B02.Name

(BO2 is the name of the actual reference in B01).
Regards, Joakim

Image
lueu
Posts: 89
Joined: Tue Mar 07, 2023 11:49 pm

Re: Set attr from another BO in form without using shortcut

Post by lueu »

PERFECT! Just what I was looking for! Thank you so much! :D
Post Reply