Edit NP BO in process

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
Jhstephenson
Posts: 303
Joined: Wed Apr 22, 2015 11:44 pm

Edit NP BO in process

Post by Jhstephenson »

I have a process I am calling from a Query.

That process creates an instance of a Non Persistent BO called Prompt. With this:

CREATE Prompt WITH Prompt.Date=CURRENT_TIMESTAMP,Prompt.UserID=LoggedInRegularUser,Prompt.Purpose='Test Non-Persistent BO Creation'

Then I have the process run an EDIT on that BO:

EDIT Prompt USING Main

That seems fairly simple. But what I get when I run it is:

Process has started. Its id is 76377. You can check its progress in the list of active processes.

With only 'Ok' for the option.

Shouldn't what I am doing bring up the Main form for the BO?

If it doesn't work that way, how can I get it to do that?
JonP
Posts: 287
Joined: Thu Feb 16, 2017 9:49 pm
Location: United States

Re: Edit NP BO in process

Post by JonP »

Instead of CREATE/EDIT, why don't you use ENTER NEW? That's how I use NP BOs and it works fine.
v8.1 on Windows 10 / MySQL 5.6 (local), v8.1 on Windows Server 2016 / MySQL 5.6 (server)
Jhstephenson
Posts: 303
Joined: Wed Apr 22, 2015 11:44 pm

Re: Edit NP BO in process

Post by Jhstephenson »

How do you pass data from the current context into the BO in that case?
JonP
Posts: 287
Joined: Thu Feb 16, 2017 9:49 pm
Location: United States

Re: Edit NP BO in process

Post by JonP »

As with CREATE, you can use WITH with ENTER NEW (try saying that 5 times fast):

ENTER NEW Prompt WITH Prompt.Date=CURRENT_TIMESTAMP,Prompt.UserID=LoggedInRegularUser,Prompt.Purpose='Test Non-Persistent BO Creation'
v8.1 on Windows 10 / MySQL 5.6 (local), v8.1 on Windows Server 2016 / MySQL 5.6 (server)
Post Reply