Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Populating a menu

2 posts in Objects Last posting was on 2004-03-04 19:20:45.0Z
Mansoor Tareen Posted on 2004-03-02 17:02:01.0Z
From: "Mansoor Tareen" <mansoort@customcall.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Populating a menu
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Original-NNTP-Posting-Host: 64.179.52.211
Message-ID: <4044be31@forums-2-dub>
X-Original-Trace: 2 Mar 2004 09:02:41 -0800, 64.179.52.211
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 2 Mar 2004 09:00:51 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 2 Mar 2004 09:02:01 -0800
X-Trace: forums-1-dub 1078246921 10.22.108.75 (2 Mar 2004 09:02:01 -0800)
X-Original-Trace: 2 Mar 2004 09:02:01 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7816
Article PK: 735092

Hello,
I am using Powerbulder 9.0 I want to dynamically populate a menu based on
the result set returned from a datastore. Here is what I want to do exactly.
I have a menu item called 'Application Users'. When a user scrolls over this
menu item, I want to populate a list of sub menu items under it with all the
application users that are returned in the datastore that I will create. So
I need to dynamically add sub menu items until I reach the last record in
the datastore under the main menu item called 'Application Users'. Any ideas
on how I go about doing this? Is there a way to insert sub menu items using
script?

Any feedback would be greatly appreciated.
Mansoor Tareen.


Steve Katz [TeamSybase] Posted on 2004-03-04 19:20:45.0Z
Sender: 5dbd.404780bd.1804289383@sybase.com
From: Steve Katz [TeamSybase]
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Populating a menu
X-Mailer: WebNews to Mail Gateway v1.1s
Message-ID: <4047818d.5dc7.846930886@sybase.com>
References: <4044be31@forums-2-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 4 Mar 2004 11:20:45 -0800
X-Trace: forums-1-dub 1078428045 10.22.241.41 (4 Mar 2004 11:20:45 -0800)
X-Original-Trace: 4 Mar 2004 11:20:45 -0800, 10.22.241.41
Lines: 33
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7822
Article PK: 735097

My first question is why you want to do this as menu items?
What if the number of rows grows to 100's?

Anyway...if you know of a hard upper bound on the number of
application users, the easiest way to do this is have
"dummy" items already in the menu that are disabled and not
visible. Then you just have to set the text value of the
menu item, make the item visible and, if needed, enabled.

There are other ways to dynamically create menu items on the
fly. You can search the ng's for those techniques since
they are more involved.

steve
[TeamSybase]

> Hello,
> I am using Powerbulder 9.0 I want to dynamically populate
> a menu based on the result set returned from a datastore.
> Here is what I want to do exactly. I have a menu item
> called 'Application Users'. When a user scrolls over this
> menu item, I want to populate a list of sub menu items
> under it with all the application users that are returned
> in the datastore that I will create. So I need to
> dynamically add sub menu items until I reach the last
> record in the datastore under the main menu item called
> 'Application Users'. Any ideas on how I go about doing
> this? Is there a way to insert sub menu items using
> script?
>
> Any feedback would be greatly appreciated.
> Mansoor Tareen.
>
>