LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Creating a Drop list menu in using Dialog in shell script. (https://www.linuxquestions.org/questions/linux-newbie-8/creating-a-drop-list-menu-in-using-dialog-in-shell-script-4175503786/)

jags1984 05-03-2014 06:16 AM

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

unSpawn 05-03-2014 06:47 AM

A "dropdown" is just one way to present information and without telling us why you would need it I'd say use "--menu" instead.

jags1984 05-04-2014 03:58 AM

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)

unSpawn 05-04-2014 06:43 AM

Quote:

Originally Posted by jags1984 (Post 5164222)
Menu option is only to display the items.

Menu is for selecting an item.


Quote:

Originally Posted by jags1984 (Post 5164222)
(..) to be displayed on the same screen

You'll have to adjust the decision making flow to what functionality dialog offers you.

jags1984 05-05-2014 01:40 AM

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.

unSpawn 05-05-2014 12:45 PM

Quote:

Originally Posted by jags1984 (Post 5164742)
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 (Post 4924746)
Looks like i have redesign everything now.


jags1984 05-06-2014 12:52 AM

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,


All times are GMT -5. The time now is 06:07 AM.