cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic refresh of webpage.

Former Member
0 Kudos

Hi,

I want to refresh he webpage. I have as assignment block on webui qutation. Assignment bolck contains OCA button,Category, Status, Approver name for every record in the tableview. When I click on the OCA button I have to call workflow to send the document for approval. After sending the document the workflow will update the status inthe database table as 'in process', 'Conditionally approved', 'accepted', 'rejected'.

Now I want to display the status field info automatically(without any button) on the table view whenever the workflow updates status info in the database table.

Is it possible to refresh automatically to display the current status?

Regards,

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

It is most likely not a problem with refreshing the page, The reason is most likely that BOL buffer is not refreshed. And the reason for this is that workflow work with API directly to change the status. The status change is not informed to BOL layer which is sitting on top of this.

To refresh the BOL, you can do entity reread. Example lr_status->reread( ), ie. On the click on the button, get the reference of BOL entity BTStatusHAll and then call the method reread.

Former Member
0 Kudos

Hi Shyam,

Thank you very much for your reply. I am doing it for value node. I cant use BOL in this case.Is there any other way? Do you think that will DO_PREPARE_OUTPUT method help out me in this situation?

Regards,

Former Member
0 Kudos

Hi,

it really depends on the kind of workflow you trigger.

If it is a synchronous workflow you can update the value node in the "do_prepare_output" as well as in the event handler itself.

If it is an asynchronous call, the status change is probably not finished and you cannot update your value node. In this case you have to decide what is more important. A fast respond or a changed status. You could wait in the event handler for a few seconds or until the status is changed and update your value node afterwards.

In every case you have to update your value node yourself like in the "on_new_focus"

Best Regards,

Andy

Edited by: Andreas Schmidt on Jan 29, 2011 8:09 PM