Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
nddymyke

New Member
Registered:
Posts: 9
Reply with quote  #1 
I have a client validation when form loads. It works fine.

If the validation fails I need to correct it via server side.

After a server side processing is done ie updating the grid.

I want the form to automatically refresh as it no longer violates the client business rule.

Until I close and reopen the form it is stock on the client message.

Kindly point me in the right direction on how to auto refesh the page instead of closing and reopening the page.

Thanks in advance.

__________________
NMA
0
suityou01

Avatar / Picture

Veteran
Registered:
Posts: 213
Reply with quote  #2 

Need a little more information. If the validation fails you need to correct it on the server side? Why? Why not fix the problem in the client so it passes validation, then it will update the server when you submit the form?

0
praxkan

Veteran
Registered:
Posts: 142
Reply with quote  #3 
To "refresh" a form just have a hidden button on the form, set the button type as "server operation" and then click it using client script (buttonClick('btnName')). That will basically cause a serverside hit and refresh any grid that's set to "always refresh", and all fields that have "is dependent on" checked
0
BMellert

Guru
Registered:
Posts: 688
Reply with quote  #4 
I use the approach you describe often enough.  I've found that within the server operation something has to "be coded" though.  What I generally do is create a code activity (named NOOP) and have only a comment within the actual code.  Maybe that's no longer needed, but what I discovered in the earlier days of V9.

Other than that, is your BO set to auto refresh and grid set to is dependent (and its a read only grid)?  Presuming your client script isn't erroring and the server "refresh" button is being clicked, it should work then.
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!