Initialize multiple reference attribute during ENTER NEW cmd

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
bondicoffee
Posts: 130
Joined: Tue Dec 03, 2013 10:19 pm

Initialize multiple reference attribute during ENTER NEW cmd

Post by bondicoffee »

Hi friends ,

I have a BO A having pm_reference1 as an attribute. I need to create B.O B having pm_reference2 of the same type as pm_reference 1.

I have created a process and passed B.O A as a parameter. Below is the rule in the process :
Enter New B with B.pm_reference2=A.pm_reference1

Using this operation, I am able to copy only the first value from pm_reference1.

I cannot use Create command and then Insert references as I have to display the form to the user to update the BO B.

I also cannot use Create, Insert and open the form in Edit mode as there is a possibility user might not want to create the record.
customaware
Posts: 2405
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Re: Initialize multiple reference attribute during ENTER NEW

Post by customaware »

I don' think it is possible using ENTER NEW.

Only using CREATE, INSERT, EDIT as in your last option...

But, can you not do it to a Temp B BO and then copy it to the 'live' table if the User does in fact want to create the record.
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
bondicoffee
Posts: 130
Joined: Tue Dec 03, 2013 10:19 pm

Re: Initialize multiple reference attribute during ENTER NEW

Post by bondicoffee »

Thanks for the cheat Mark.. :lol:
PointsWell
Posts: 1460
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

Re: Initialize multiple reference attribute during ENTER NEW

Post by PointsWell »

Create BOB
Insert BOA.pm_attribute in BOB.pm_attribute
Edit BOB using formName

You’d need to have some routine to delete the BOB in case the user doesn’t want to keep it. A status attribute could be used to periodically sweep up those Bo that don’t progress.
Post Reply