Hi team,

I am (pre) creating 4 new empty rows as follows api_datasource.createrow(ds_name) api_datasource.createrow(ds_name) api_datasource.createrow(ds_name) api_datasource.createrow(ds_name) api_datasource.firstrow(ds_name)

It always sets the third row as the active row instead of the first row after the first row method call. Is this a bug or am I missing something here.

asked 17 Jul '14, 05:14

Raymond's gravatar image

Raymond
24319
accept rate: 0%


Hi Raymond,

We'll look into this issue but as a workaround you can do the following: (I am sure you thought of this workaround but I am writing it just to inform future readers of the thread.)

createRow API returns the RowID of the row it creates. So you can store the RowID of the first row you are creating and then set it as the current row using the api_datasource.setCurrentRow API. So the code would look something like this:

v_row_id:=api_datasource.createRow(ds_name);
v_row1_id:=api_datasource.createRow(ds_name);
v_row1_id:=api_datasource.createRow(ds_name);
v_row1_id:=api_datasource.createRow(ds_name);
api_datasource.setCurrentRow(ds_name,v_row_id);

Kind Regards,
Yalim

link

answered 17 Jul '14, 05:58

Yalim%20Gerger's gravatar image

Yalim Gerger ♦♦
1.8k5
accept rate: 15%

Thanks Yalim, Yes that is what I am doing currently.

link

answered 17 Jul '14, 06:41

Raymond's gravatar image

Raymond
24319
accept rate: 0%

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:

×1

Asked: 17 Jul '14, 05:14

Seen: 762 times

Last updated: 17 Jul '14, 06:41

Related questions


© Copyright Gerger 2017