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...
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
end if;

Hope this helps.

Kind Regards, Yalim


answered 20 Sep '13, 08:37

Yalim%20Gerger's gravatar image

Yalim Gerger ♦♦
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



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



Asked: 20 Sep '13, 08:24

Seen: 2,115 times

Last updated: 25 Oct '13, 04:58

© Copyright Gerger 2017