Hi formspider team,

I have a datasource with a unique NOT visible primary key and other columns are being displayed on a panel. The underlying table contains thousands of rows, however, after every query there will be only 150-200 rows in the datasource. The panel grid shows 5 rows at the time.

The current row depends on other settings on the form. So, after querying the DS the panel should set focus to the appropriate current row with this procedure:

api_datasource.setCurrentRowByPK('datasource-name',unique-key-value);

This works correctly. When i scroll the datasource i can see the current row being highlighted. However, the panel does NOT show this current row. It always shows the first 5 rows. Which are almost never the current row.

I tried this to make this panel show the current row automatically:

api_component.setValue - has not effect at all
api_component.setselectedrowid - will not work, because the primary key is (offcourse) not visible

Is there any other way to male the current row visible?

Kind regards, Jan Willem

PS. I have seen a few similar questions, but none of them offers the solution.

asked 26 Jun, 10:38

Jan%20Willem%20Vermeer's gravatar image

Jan Willem V...
1431436
accept rate: 0%


Hi Jan Willem,

When I tried to use

api_datasource.setCurrentRowByPK('datasource-name',unique-key-value);

the grid highlights the appropriate row, scrolls down/up to it and shows it correctly. So, I couldn't reproduce your issue. Can you send a sample application or design XML sample?

Kind Regards Serdar

link

answered 03 Jul, 05:20

Serdar's gravatar image

Serdar ♦♦
100k4
accept rate: 13%

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:

×64
×19
×9
×8

Asked: 26 Jun, 10:38

Seen: 254 times

Last updated: 03 Jul, 05:20


© Copyright Gerger 2017