Popup Update Form from Grid

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: 297
Joined: Wed Apr 22, 2015 11:44 pm

Popup Update Form from Grid

Post by Jhstephenson »

Hopefully I can explain this well enough...

I have a Job BO that has several Yes/No type attributes and some cost and time estimate attributes.

On a query I have several of those Yes/No attributes set so they edited inline. No problem so far.

I want to ultimately be able to check one or more of the attributes and then have them popup an edit form for the record being edited with several of the other attributes (A couple of Dates and some job cost estimate attributes).

My thought was I could just create a rule that when a Yes/No attribute was changed to 'Yes' it could call a process that would display the editable attributes for that record on a form and they could fill in what they needed to and then save those attributes to the record that was checked.

When we try that though we get an error saying:
"The server may have started a process that requires interaction with the user. This is disallowed in the current context. Please check your configuration to make sure there are no rules attached to an object that start a process requiring user interaction."

My question is, am I trying to do something that cannot be done that way, or am I missing something?

My alternative for it is that I am going to create a couple of buttons that can just kick off a process that will update Yes/No attributes and show an edit form with the attributes I want to manually change.

It just seemed like it would be a slick way to do it with the first method.

Thanks,
Jim
BLOMASKY
Posts: 1471
Joined: Wed Sep 30, 2015 10:08 pm
Location: Ocala FL

Re: Popup Update Form from Grid

Post by BLOMASKY »

Generally a RULE can not have any user interaction (Besides the REPORT ERROR operator). However, a rule can trigger a procedure that might be able to call the edit form. Maybe... Possibly....

Bruce
Jhstephenson
Posts: 297
Joined: Wed Apr 22, 2015 11:44 pm

Re: Popup Update Form from Grid

Post by Jhstephenson »

Thanks Bruce,

I have it set so that when the Yes/No attribute is changed a Rule fires off a process which actually is supposed to open the Edit form. But, that is when that error pops up.

Jim
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Re: Popup Update Form from Grid

Post by tford »

Bruce is right. Rules can't trigger user interaction like the error message says.
Tom - V8.8 build 3137 - MySql / PostGres
Jhstephenson
Posts: 297
Joined: Wed Apr 22, 2015 11:44 pm

Re: Popup Update Form from Grid

Post by Jhstephenson »

tford wrote:Bruce is right. Rules can't trigger user interaction like the error message says.
Yeah, I guess it is door number 2 for now.
PointsWell
Posts: 1457
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

Re: Popup Update Form from Grid

Post by PointsWell »

Lateral thinking, an attribute that stores some HTML to capture the value of the checkbox attribute and launch a process which changed the no to a yes and then launches the form?

That gets round the rule / prompt issue.
BLOMASKY
Posts: 1471
Joined: Wed Sep 30, 2015 10:08 pm
Location: Ocala FL

Re: Popup Update Form from Grid

Post by BLOMASKY »

So, instead of your user "checking" the attributes, put a button next to them that runs a process to both toggle them to yes, and run your process. That way you don't need no "Stinkin Rules".

Bruce
Post Reply