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 button on the form that users should click and this should populate the grid with selected values on the form dynamically.

The grid has six columns created by selecting the variables from the other business object.

New row should be added to the grid when ever the button is clicked with new values.

I have the variables defined and bound to the text boxes. The grid should display as many rows as has been added.

Please an example or reading source will be greatly appreciated.

Thanks in advance.

__________________
NMA
0
BMellert

Guru
Registered:
Posts: 688
Reply with quote  #2 

Add the "Insert rows" Database object to the "When button pressed" action.  Build your insert statement into the table.  The table and BO should be marked as "Always refresh".

0
nddymyke

New Member
Registered:
Posts: 9
Reply with quote  #3 
Does it mean I must have to define the table as the columns in the grid and then create the BO based on the table? where will I mark the table Refresh always.

__________________
NMA
0
BMellert

Guru
Registered:
Posts: 688
Reply with quote  #4 
To display results in a grid you will need a BO to display the results.  In this case, likely a table.

The instance of the BO on the form should be set to always refresh.
0
nddymyke

New Member
Registered:
Posts: 9
Reply with quote  #5 
Thank you BMellert

Your answer solved the issue I had


__________________
NMA
0
jrusling

Member
Registered:
Posts: 13
Reply with quote  #6 
I have the same sort of function as described in this topic and I am able to insert records without error. The problem I have is that the "grid refresh" is always one record/insert behind. So when I enter data and click add the grid does not show anything. When I add a second record and click add the grid refreshes and shows the first record but not the second. On the third add it shows the 1st and 2nd and so on, always behind by one record. Any ideas?
__________________
John Rusling
0
jrusling

Member
Registered:
Posts: 13
Reply with quote  #7 
UPDATE: So because I have this function working in another process I was comparing to find out what was different. The only difference was that the first process (the one that works) uses a table that I created using the solution table option. In this new process I created the table manually in the DB. So I went into my new process and re-created the table using the solution table option and now it works. That means there must be some difference between the two tables relating to how they were created but I can't figure out what that difference is to save my life. While my problem is resolved there is now a looking question which I'd live to answer so if anyone has any ideas....
__________________
John Rusling
0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #8 
Now that is what I call proper testing.

I am fascinated, and would like to try this out, Could you possibly post the SQL you used to create the table and i'll try it for myself?

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