Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
suityou01

Avatar / Picture

Veteran
Registered:
Posts: 213
Reply with quote  #1 
Little brain teaser for a Monday.

I have a grid, which is supported by a custom scripted business object. The purpose of this is so that the grid can be "detached" from the database, ie the rows are only written when the form is submitted.

This part works quite well.

However, there is another "detached" grid which contains child rows. The parent row has child row counter, and the requirement is to check that each parent row has the required number of child rows, and if not pop up a message box and prevent form submission.

The problem with this is that the child grid will only display the rows for the currently selected parent row, so it is not possible to iterate through child grid as it only displays a sub set of the data.

What I need to do is to create a global javascript array that looks like

{parentid,count}

Which is all well and good. So I need to add some code to the Insert button, button push event to add the row to the array. The problem is, I don't know the parent id until the row is inserted into the grid.

From what I can see the chain of events is :

Button push event (client)
Button push event (server)
Grid refresh.

So I need to somehow "hook" the grid refresh event on the client side.

It's pretty horrible to have to hack Metastorm in this way, and my profound apologies for even mentioning this on here, but this is what I have been asked to do.

I have of course tried suggesting that we just use standard Metastorm controls and BOs and don't do this in a detached way but it is not yet accepted as an approach I can take.

Somewhere between a rock and a hard place.
0
suityou01

Avatar / Picture

Veteran
Registered:
Posts: 213
Reply with quote  #2 
I seem to have a 98% hit rate on asking questions on here that no one replies to :)
0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #3 
That's a pretty good hit rate!

Well, for starters, you are using a Scripted BO. That is uncharted territory for most. It is also an area with a few problems, at least one is fatal (I shall document with an example soon).

Frankly I am having enough trouble finding time to get standard features working in 9.1.3.x, and have no time to look at anything else for a while. I've also just found out that there is no 9.1.3.7 hot-fix planned, do all my fatal 9.1.3.6 issues are not going away any time soon. I have to address that now.

I am getting quite irritated working as OpenText's Free Testing Department without even getting fixes for the fatal issues I have uncovered, so I shall be documenting them in all their gory detail here very shortly.

__________________
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
praxkan

Veteran
Registered:
Posts: 142
Reply with quote  #4 
Ditto on Jerome's post - scripted BO's are not familiar for most of us (including me). There's scant documentation, and half the searches on that subject return results of people complaining about bugs with its implementation 

However, I did read through this question many times, but couldn't quite understand if it was the scripted bo itself that was the issue versus some other JS issue... Is there any specific reason you're having to use scripted BO versus other means (besides the fact that someone wants it that way)


0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!