# expand/collapse does not always show..

**URL:** <https://techcommunity.softwareag.com/t/expand-collapse-does-not-always-show/90830>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-Single-Point-of-Development-SPoD\
**Created:** [July 30, 2009, 2:44pm UTC](https://techcommunity.softwareag.com/t/expand-collapse-does-not-always-show/90830 "2009-07-30T14:44:50Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ronald\_Wijchers](https://avatars.discourse-cdn.com/v4/letter/r/e5b9ba/32.png) [@Ronald\_Wijchers](https://techcommunity.softwareag.com/u/Ronald_Wijchers)\
**Post date:** [July 30, 2009, 2:44pm UTC](https://techcommunity.softwareag.com/t/expand-collapse-does-not-always-show/90830/1 "2009-07-30T14:44:50Z")

</div>

in the program editor i noticed that the expand/collapse indicators (+ and - signs before the source code) do not show up when i list a source from the command line. When i select it from a list (right click and choose list) they do show up and also when i list a source from within another source (right click on the source name after a callnat/fetch and choose list).

It works like this both in 6.1.1 and 6.3.5

Does anybody know anything about this, is this a bug or a feature ?

thanks  
Ronald

---

<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:** [July 30, 2009, 3:51pm UTC](https://techcommunity.softwareag.com/t/expand-collapse-does-not-always-show/90830/2 "2009-07-30T15:51:05Z")

</div>

Hi Ronald,

I hardly think it is a ‘feature’. 🙂

Perhaps you should create a SL24 request.

---

<div class="post-metadata">

**Author:** ![Steve\_Robinson](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/steve_robinson/32/107_2.png) [@Steve\_Robinson](https://techcommunity.softwareag.com/u/Steve_Robinson)\
**Post date:** [July 30, 2009, 4:31pm UTC](https://techcommunity.softwareag.com/t/expand-collapse-does-not-always-show/90830/3 "2009-07-30T16:31:21Z")

</div>

Hi Ronald;

I am working with 6.3.5. I do get the expand/collapse indicators when I do a LIST MYPROG from the command line.

By any chance is the program you are LIST’ing in Report Mode? The expand/collapse is only a structured mode feature.

steve

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [July 30, 2009, 7:35pm UTC](https://techcommunity.softwareag.com/t/expand-collapse-does-not-always-show/90830/4 "2009-07-30T19:35:45Z")

</div>

> [@Ronald Wijchers](#):
>
> It works like this both in 6.1.1 and 6.3.5

Works in NAT 6.1.1 for me. But I don’t use SPoD…  
Does this “feature” occur on local sources or on SPoD-Sources?

---

<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:** [July 31, 2009, 9:19pm UTC](https://techcommunity.softwareag.com/t/expand-collapse-does-not-always-show/90830/5 "2009-07-31T21:19:42Z")

</div>

I run NAT635.0.

The other day I could reproduce i SPoD environment. This was against a customer NVD server. Today I cannot reproduce in SAG environment.  
Maybe it is related to the version of NDV server?

---

<div class="post-metadata">

**Author:** ![Ronald\_Wijchers](https://avatars.discourse-cdn.com/v4/letter/r/e5b9ba/32.png) [@Ronald\_Wijchers](https://techcommunity.softwareag.com/u/Ronald_Wijchers)\
**Post date:** [August 5, 2009, 12:24pm UTC](https://techcommunity.softwareag.com/t/expand-collapse-does-not-always-show/90830/6 "2009-08-05T12:24:14Z")

</div>

> [@Steve Robinson](#):
>
> Hi Ronald;
> 
> I am working with 6.3.5. I do get the expand/collapse indicators when I do a LIST MYPROG from the command line.
> 
> By any chance is the program you are LIST’ing in Report Mode? The expand/collapse is only a structured mode feature.
> 
> steve

no, that’s not it. When i list the same program by selecting it from a list of modules (right click → list) it does work.

It might be the NDV server, although that would be very strange indeed. These indicators are just a “PC” editor feature, so what does that have to do with the version of the NDV ? Also, it will be difficult for me to test that, since we have only the one version ofcourse…

---

<div class="post-metadata">

**Author:** ![Ronald\_Wijchers](https://avatars.discourse-cdn.com/v4/letter/r/e5b9ba/32.png) [@Ronald\_Wijchers](https://techcommunity.softwareag.com/u/Ronald_Wijchers)\
**Post date:** [August 5, 2009, 12:40pm UTC](https://techcommunity.softwareag.com/t/expand-collapse-does-not-always-show/90830/7 "2009-08-05T12:40:14Z")

</div>

aha… i just discovered something interesting:

- when i start Natural and i type “L program” i don’t get any +/- signs, whatever i do.

- then i list a few module names (“list progra\*”), and list one from there (right click-\>list). Now i do get +/- signs.

- from that point on, i always get +/- signs, also when i just type “L program” in the command line.

so as soon as i list one source and i get these +/- signs, after that everything works fine… ? Very strange indeed.

And before you ask: yes, i have tried this at least 4 times and every time when i close Natural and start it again, it works like this…

---

<div class="post-metadata">

**Author:** ![Jerome\_LeBlanc](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/jerome_leblanc/32/111_2.png) [@Jerome\_LeBlanc](https://techcommunity.softwareag.com/u/Jerome_LeBlanc)\
**Post date:** [August 5, 2009, 7:21pm UTC](https://techcommunity.softwareag.com/t/expand-collapse-does-not-always-show/90830/8 "2009-08-05T19:21:35Z")

</div>

Well, you’re not crazy. I get the same result when following your steps. Using Natural Studion 6.3.3

---

<div class="post-metadata">

**Author:** ![Ronald\_Wijchers](https://avatars.discourse-cdn.com/v4/letter/r/e5b9ba/32.png) [@Ronald\_Wijchers](https://techcommunity.softwareag.com/u/Ronald_Wijchers)\
**Post date:** [August 7, 2009, 12:00pm UTC](https://techcommunity.softwareag.com/t/expand-collapse-does-not-always-show/90830/9 "2009-08-07T12:00:57Z")

</div>

thanks for that confirmation Jerome. 😃 What OS are you on ? That might be good information for SAG to know (I’m on XP pro).

is there anybody else who wants to try this, before i report this to SAG ? It might be good to have a few more people who can confirm this (or not…)

thanks

---

<div class="post-metadata">

**Author:** ![Klaus\_Sponagel](https://avatars.discourse-cdn.com/v4/letter/k/3bc359/32.png) [@Klaus\_Sponagel](https://techcommunity.softwareag.com/u/Klaus_Sponagel)\
**Post date:** [August 14, 2009, 12:57pm UTC](https://techcommunity.softwareag.com/t/expand-collapse-does-not-always-show/90830/10 "2009-08-14T12:57:34Z")

</div>

Hi Ronald  
I can reproduce this and I checked this with the colleague responsible for the editor in the Natural Studio.  
He’s investigating the problem. So I’m confident that it will be solved in the next PL of the Natural Studio (V636 PL01 is the next PL to be release if I’m informed correctly).

Best regards  
Klaus

---

<div class="post-metadata">

**Author:** ![Jerome\_LeBlanc](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/jerome_leblanc/32/111_2.png) [@Jerome\_LeBlanc](https://techcommunity.softwareag.com/u/Jerome_LeBlanc)\
**Post date:** [August 16, 2009, 4:57am UTC](https://techcommunity.softwareag.com/t/expand-collapse-does-not-always-show/90830/11 "2009-08-16T04:57:36Z")

</div>

Klaus,

While your checking with your colleague, can you add this to his list?

The expand and collapse markers also show when a block or loop is not properly closed. It gets confused by the EXAMINE … FOR … statement. It appears to believe the FOR in this statement is the beginning of a FOR loop.

After a little trial an error, it appears to only be a problem when the first argument of the examines statement is an array. I am attaching a screenshot so you can see the expand/collapse icons.

The code, if you want to copy/paste is:

```auto
* 
IF #A (1) GE ' ' 
  EXAMINE #A (1) FOR #B  
      GIVING INDEX #I 
END-IF 
* 
IF #A (1) GE ' ' 
  EXAMINE #A (1) FOR #B 
  GIVING INDEX #I 
END-IF 
* 
IF #A (1) GE ' ' 
  EXAMINE #A (1) FOR #B GIVING INDEX #I 
END-IF 
* 
IF #A (1) GE ' ' 
  EXAMINE #C FOR #B GIVING INDEX #I 
END-IF 
* 
```

In the image, you will notice that the first IF is ok, the second and third show as errors and the last one is ok. The only difference between the first and second is a space at the end of the EXAMINE line in the first one.

Thanks, Jerome  
[Expand-Collapse Errors.bmp](https://techcommunity.softwareag.com/uploads/short-url/97KxlLtYvFfZSjh6ULlrIJlkhQJ.bmp) (420 KB)

---

<div class="post-metadata">

**Author:** ![Klaus\_Sponagel](https://avatars.discourse-cdn.com/v4/letter/k/3bc359/32.png) [@Klaus\_Sponagel](https://techcommunity.softwareag.com/u/Klaus_Sponagel)\
**Post date:** [August 20, 2009, 2:58pm UTC](https://techcommunity.softwareag.com/t/expand-collapse-does-not-always-show/90830/12 "2009-08-20T14:58:17Z")

</div>

Hi Jerome  
It seems it already was on his list 😉  
Because I can reproduce the problem with NAT633 PL0 but not with NAT633 PL01.  
So it seems to be solved with PL01

Best regards  
Klaus

---

<div class="post-metadata">

**Author:** ![Jerome\_LeBlanc](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/jerome_leblanc/32/111_2.png) [@Jerome\_LeBlanc](https://techcommunity.softwareag.com/u/Jerome_LeBlanc)\
**Post date:** [August 20, 2009, 8:41pm UTC](https://techcommunity.softwareag.com/t/expand-collapse-does-not-always-show/90830/13 "2009-08-20T20:41:08Z")

</div>

Excellent!

Is this forum a good way to report bugs, or is there a better option?

Thanks, Jerome

---

<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:** [August 21, 2009, 1:15pm UTC](https://techcommunity.softwareag.com/t/expand-collapse-does-not-always-show/90830/14 "2009-08-21T13:15:15Z")

</div>

The official site for error reporting is [servline24.softwareag.com](http://servline24.softwareag.com).

---

<div class="post-metadata">

**Author:** ![Ronald\_Wijchers](https://avatars.discourse-cdn.com/v4/letter/r/e5b9ba/32.png) [@Ronald\_Wijchers](https://techcommunity.softwareag.com/u/Ronald_Wijchers)\
**Post date:** [September 2, 2009, 1:06pm UTC](https://techcommunity.softwareag.com/t/expand-collapse-does-not-always-show/90830/15 "2009-09-02T13:06:47Z")

</div>

aha…this is good news. Thanks Klaus & Jerome !

---

<div class="post-metadata">

**Author:** ![Ronald\_Wijchers](https://avatars.discourse-cdn.com/v4/letter/r/e5b9ba/32.png) [@Ronald\_Wijchers](https://techcommunity.softwareag.com/u/Ronald_Wijchers)\
**Post date:** [October 13, 2010, 2:43pm UTC](https://techcommunity.softwareag.com/t/expand-collapse-does-not-always-show/90830/16 "2010-10-13T14:43:30Z")

</div>

just a short follow up on this…

Does anybody know if this has been solved already in some release ? We are now on 6.3.6 SP0, but it still does not work as (I think) it should…

thanks,  
Ronald

---

<div class="post-metadata">

**Author:** ![Finn\_the\_Dane1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/finn_the_dane1/32/132_2.png) [@Finn\_the\_Dane1](https://techcommunity.softwareag.com/u/Finn_the_Dane1)\
**Post date:** [October 13, 2010, 3:09pm UTC](https://techcommunity.softwareag.com/t/expand-collapse-does-not-always-show/90830/17 "2010-10-13T15:09:34Z")

</div>

Hi Ronald  
I run nat6.3.9 - and I can’t repro using your cookbook (i.e. restart nat and list a program from command-line).  
So appears to be fixed - if I did the right steps 😉  
Finn

---

<div class="post-metadata">

**Author:** ![Ronald\_Wijchers](https://avatars.discourse-cdn.com/v4/letter/r/e5b9ba/32.png) [@Ronald\_Wijchers](https://techcommunity.softwareag.com/u/Ronald_Wijchers)\
**Post date:** [October 20, 2010, 3:30pm UTC](https://techcommunity.softwareag.com/t/expand-collapse-does-not-always-show/90830/18 "2010-10-20T15:30:06Z")

</div>

ok, thanks Finn.

---

<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:57pm UTC](https://techcommunity.softwareag.com/t/expand-collapse-does-not-always-show/90830/19 "2021-04-02T14:57:19Z")

</div>


