Hello, Formspider Team

I build three-level Master-Detail-Detail form. All works fine when data is presented for all levels. But when the second-level detail table has no rows, related to the master table I've get 'the recordset has no current row' error in runtime.

I've tried to catch exception in 'rowChange' events in db package, but it seams that this exception is raised before db procedure call.

Could you please explain this issue?

Thanks in advance

asked 20 Sep '13, 08:24

Andrew%20Pouckatch's gravatar image

Andrew Pouck...
168
accept rate: 0%

edited 25 Oct '13, 04:58


Hi Andrew,

Here is what's probably happening: In the procedure that is populating the 3rd level Datasource, you are reading the Primary Key value of the current row from your 2nd level Datasource using the api_datasource.getColumnValue(TX/NR). Since the 2nd level datasource has no rows api_datasource.getColumnValue(TX/NR) raises an exception. Ensure that there is a row in the 2nd level datasource prior to using api_datasource.getColumnValue(TX/NR). So something like:

if api_datasource.getCurrentRowId('2ndLevelDatasource') is not null then
  v_2ndLevelPK_nr:=api_datasource.getColumnValueNR('2ndLevelDatasource.PKColumn');
else
  v_2ndLevelPK_nr:=null;
end if;

Hope this helps.

Kind Regards, Yalim

link

answered 20 Sep '13, 08:37

Yalim%20Gerger's gravatar image

Yalim Gerger ♦♦
1.8k5
accept rate: 15%

Yes, it's a solution

Thank you!

(20 Sep '13, 08:46) Andrew Pouck...
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×43
×16
×8

Asked: 20 Sep '13, 08:24

Seen: 1,137 times

Last updated: 25 Oct '13, 04:58


© Copyright Gerger 2017