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 
From the voluminous documentation:
Quote:
Grid Functions

eworkGetCurrentCol

This method returns the index of the currently selected column. In the cell exit event handler, it returns the column that has just been left, rather than the one being entered. For compatibility with Version 5 client-side functions, this index is zero-based.


First off, version 5? FIVE? This has been zero-based in 5, 6 and 7. Is this just a 'Copy, Paste & don't bother editing' process, perhaps?

Anyway, it is just wrong, unfortunately. I am not sure if this function existed previously, and I never used it because it did not work. The lack of documentation in the Designer manual did not help.

What it does is tell you the column the user just entered. So what's the big deal? Well, it is useless. The user could have clicked into that column from anywhere, or back-tabbed from the next column. There is no way to tell. So it is useless. It is actually worse that useless as it actually makes you think it can be used, when it can't.

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

Member
Registered:
Posts: 23
Reply with quote  #2 
I just tested this and it works as expected.  One of the uses of this function is to use this in conjuction with the eworkGetCurrentRow() and eworkGetCell in order to get the value of the cell you have just exited.  For example:

var cellvalue;
cellvalue = eworkGetCell("Grid1", eworkGetCurrentCol("Grid1"), eworkGetCurrentRow ("Grid1"));
alert (cellvalue);


0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #3 
try it on cell entry

__________________
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  #4 
Sorry, maybe I am misunderstanding it. It returns the cell exited on a cell exit event, and the cell entered on cell entry event.

I think I got confused over the functionality and my expectation was wrong. One for the bin.


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

New Member
Registered:
Posts: 3
Reply with quote  #5 
Hi,

I am getting similar problem as you Jerome. On cell entry event eworkGetCurrentCol works, but eworkGetCurrentRow doesn't. It returns on cell entry event number of row which I exited, which is incompatible with the documentation.

Maybe it depends on BPM build version. I am using 9.0.0.1262, or diffrent grids parameetrs cause problems...
0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #6 
I need to look at this again, I think. I thought I was getting confused, but perhaps it is not working as documented.

OnCellExit works fine, I do know that.

__________________
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
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!