LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-03-2014, 07:16 AM   #1
jags1984
Member
 
Registered: Mar 2013
Posts: 83

Rep: Reputation: Disabled
Creating a Drop list menu in using Dialog in shell script.


Hi,

I am trying to create a drop down list in Dialog using Shell script. I referred the below links for my work, it was usefull. But there is no option for dropdown list menu creation in these.



Pls let me know can we have a drop down or Some workaround in DIALOG.


Regards,
Jags
 
Old 05-03-2014, 07:47 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530
A "dropdown" is just one way to present information and without telling us why you would need it I'd say use "--menu" instead.
 
Old 05-04-2014, 04:58 AM   #3
jags1984
Member
 
Registered: Mar 2013
Posts: 83

Original Poster
Rep: Reputation: Disabled
Menu option is only to display the items.

The scenario is to display the items dynamically when somethings is selected


Menu 1 (Checklist Menu)

* Source Dir

* Destn Dir


When Source Dir is selected need to display a list of configured path
on select of the specific path certain parameters has to be displayed on the same screen



--menu will only display the selection (done on checklist menu)
 
Old 05-04-2014, 07:43 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530
Quote:
Originally Posted by jags1984 View Post
Menu option is only to display the items.
Menu is for selecting an item.


Quote:
Originally Posted by jags1984 View Post
(..) to be displayed on the same screen
You'll have to adjust the decision making flow to what functionality dialog offers you.
 
Old 05-05-2014, 02:40 AM   #5
jags1984
Member
 
Registered: Mar 2013
Posts: 83

Original Poster
Rep: Reputation: Disabled
I have more than one fields that needs a drop down list in the same menu.


Menu list is for only one type of listing.
 
Old 05-05-2014, 01:45 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530
Quote:
Originally Posted by jags1984 View Post
I have more than one fields that needs a drop down list in the same menu.
I could post the same answer again but instead maybe you could take a cue from your conclusion in one of your previous threads:

Quote:
Originally Posted by jags1984 View Post
Looks like i have redesign everything now.
 
Old 05-06-2014, 01:52 AM   #7
jags1984
Member
 
Registered: Mar 2013
Posts: 83

Original Poster
Rep: Reputation: Disabled
I have to try a little bit before thinking of Re-designing.....

Manual pages and docs didnt help me much so posted the question.


Thanks,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dialog and other GUIs in shell script!!! a.toraby Solaris / OpenSolaris 1 10-12-2008 06:19 AM
Using Dialog in Shell Script kushalkoolwal Programming 30 06-04-2007 03:52 AM
Need help creating/using a password dialog box for an Expect script crazygyhrous Linux - General 1 12-13-2005 12:48 PM
HELP!! Perl script to display drop down menu domquem Programming 3 06-03-2005 12:26 PM
shell script with dialog sqn Programming 3 04-08-2004 03:25 PM


All times are GMT -5. The time now is 10:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration