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?
Edit NP BO in process
Re: Edit NP BO in process
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)
-
- Posts: 303
- Joined: Wed Apr 22, 2015 11:44 pm
Re: Edit NP BO in process
How do you pass data from the current context into the BO in that case?
Re: Edit NP BO in process
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'
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)