Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #1 

Having followed the directions, everything works in creating a scripted Business Object. The problem we now have is that we cannot get this Business Object to refresh. In the Data Access pane there is no property 'Always Refresh' for the Business Object instance.

To demonstrate this, use the given sample (sample3) and add a form to the ReadOnlySample project. Add one of the Business Object to that, and see if you can set 'Always Refresh' on the instance.

I assume that there is another method we need to implement, but there is no documentation of this method. Frankly, if scripted Business Objects cannot be refreshed, they are almost useless to us, since most of the functionality we require needs a refresh.

If anybody is able to tells us what we are missing, or point us to any documentation at all, we would be grateful.


__________________
Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.
0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #2 
OK, figured it from the manual.

You have to implement the ISupportRefill interface and add the AlwaysRefresh function to make this work.


__________________
Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.
0
Magnusf

Member
Registered:
Posts: 10
Reply with quote  #3 
Hi Jerome,

can this work on an editable BO? I added this to my editable scripted BO but then the possibility to have an editable grid disappeared.

I would like too have my editable grid updated from an external parameter.


Best regards,

Magnus
0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #4 
What do you mean by updated? If you mean set an editable BO in code, that can be done.

If you mean can it be 'refreshed', then no, it cannot.

__________________
Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.
0
Magnusf

Member
Registered:
Posts: 10
Reply with quote  #5 
Hi Jerome,

thanks for your answer. Yes, I want it to be refreshed. I have a list of templates in one grid. When I click on a template I want to have an editable grid below showing the template rows for the selected template. But I guess I need to go back to work with an readonly grid and have a Add, Update and delete button :(
0
suityou01

Avatar / Picture

Veteran
Registered:
Posts: 213
Reply with quote  #6 
Is this now a problem again in 9.2.1.2?

I have a custom scripted business object and a grid. The CBO has two parameters, folderId and a sequence number.

I have a field on the form that allows me to type in the sequence number and lo, the grid below should filter to show only those rows.

What actually happens is nothing. The grid doesn't even flicker.

The scripted BO does implement ISupportRefill, the AlwaysRefresh method is set to return true.

I have had the BO set with read only ticked, and not ticked.

I swear this was working before I patched from 9.2.0 last week.

Weird.
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!