# textgridsss2

**URL:** <https://techcommunity.softwareag.com/t/textgridsss2/92824>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, NaturalONE, Natural-for-AJAX\
**Created:** [February 20, 2010, 2:43am UTC](https://techcommunity.softwareag.com/t/textgridsss2/92824 "2010-02-20T02:43:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [February 20, 2010, 2:43am UTC](https://techcommunity.softwareag.com/t/textgridsss2/92824/1 "2010-02-20T02:43:58Z")

</div>

I would like to display program source code in a grid. Seems like the TEXTGRIDSSS2 would be the appropriate control to use (from the documentation). Some programs can range up to 3000 lines so it seems like one would need to use server side scrolling.

The problem I am having is that if I expand the array too large and populate it, then I get a physical terminal overflow when trying to display the grid. Increasing the buffer size is a no go at the moment.

The way the program works currently is that the user enters a module name, which is then used to read the source lines from the FUSER file. The program source code lines are then moved over to the textgrid array.

At the moment I have the rowcount set to 20 lines in the textgridsss2 control.

Any suggestions?

---

<div class="post-metadata">

**Author:** ![Thomas\_Schwade](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/thomas_schwade/32/131_2.png) [@Thomas\_Schwade](https://techcommunity.softwareag.com/u/Thomas_Schwade)\
**Post date:** [November 11, 2010, 2:23pm UTC](https://techcommunity.softwareag.com/t/textgridsss2/92824/2 "2010-11-11T14:23:10Z")

</div>

Did you have a look into the example library SYSEXNJX? There is also an example that demonstrates server side scrolling.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [November 15, 2010, 9:34pm UTC](https://techcommunity.softwareag.com/t/textgridsss2/92824/3 "2010-11-15T21:34:17Z")

</div>

The example (ctrtss-p) in SYSEXNJX is helpful, but does not explain what some of the variables do. I had to do a LOT of experimentation to figure out what TOPINDEX, ROWCOUNT and SIZE do exactly (see attached example)

Am I correct in thinking that if there are a large number of items to display in the TEXTGRIDSSS2 then it is up to the application program to control the number of items sent to the user at a time?  
[display.txt](https://techcommunity.softwareag.com/uploads/short-url/7XpqPm4hicfsyIbaJifBR91Ft4g.txt) (9.06 KB)

---

<div class="post-metadata">

**Author:** ![Thomas\_Schwade](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/thomas_schwade/32/131_2.png) [@Thomas\_Schwade](https://techcommunity.softwareag.com/u/Thomas_Schwade)\
**Post date:** [November 15, 2010, 10:07pm UTC](https://techcommunity.softwareag.com/t/textgridsss2/92824/4 "2010-11-15T22:07:10Z")

</div>

The information in the chapter [http://techcommunity.softwareag.com/ecosystem/documentation/natural/njx813/njx/njx-sss.htm](http://techcommunity.softwareag.com/ecosystem/documentation/natural/njx813/njx/njx-sss.htm) might be of additional use. Basically, the fields in the LINESINFO structure tell the application the amount of records that should be delivered next. The application should then deliver the requested amount of records.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:58pm UTC](https://techcommunity.softwareag.com/t/textgridsss2/92824/5 "2021-04-02T14:58:04Z")

</div>


