From: Joseph Hoetzl jhoetzl@citynetworks.com
Category: Category 1
Date: 29 Apr 1998
Time: 20:50:15
Remote Name: nyc-ny71-41.ix.netcom.com
I would like to be able to have a user click on an Action Bar button that then prompts them for a document type they would like to compose. In the @prompt dialog I would like to have sub-catagories. Based on what item the user selects, then compose the document that they select. One document is a main one and the rest are responses, but not necessarily to the main one. It works if I only have one sub-catagory but can't get multiple one to work. I have been trying to get this working for a while now, so I was wondering if anyone else has a code sample that can explain this to me. Here is what I have tried so far:
Item := @Prompt([OKCANCELLIST]; "Available Document Types"; "Please make a selection"; ""; "Customer Profile" : "Contact Profile" : "Projects": "Activity"); ProjectItems := @Prompt([OKCANCELLIST]; "Projects"; "Please make a selection"; ""; "Summary" : "Task") ; Activityitems := @Prompt([OKCANCELLIST]; "Activities"; "Please make a selection"; ""; "Action Item" : "Call Report" : " Incoming Correspondence" : "Meeting Report" : " Misc " : "Outgoing Correspondence" ); @If(Item="Customer Profile" ; @PostedCommand([Compose];"Customer") ; Item="Contact Profile"; @PostedCommand([Compose];"Contact") ; Item="Projects" ; Item="Activity" ; ActivityItems ; Item="Projects" ; ProjectItems; "");@If(ProjectItems="Summary" ; @PostedCommand([Compose];"Summary") ; ProjectItems="Task" ; @PostedCommand([Compose];"Task") ; "");@If(ActivityItems="Action Item" ; @PostedCommand([Compose];"Action") ; ActivityItems="Call Report" ; @PostedCommand([Compose];"Call") ;ActivityItems="Incoming Correspondence" ; @PostedCommand([Compose];"Incoming") ; ActivityItems="Outgoing Correspondence" ; @PostedCommand([Compose];"Outgoing") ; ActivityItems="Meeting Report" ; @PostedCommand([Compose];"Meeting") ; ActivityItems="Misc" ; @PostedCommand([Compose];"Misc") ; "");
I have also tried...
Item := @Prompt([OKCANCELLIST]; "Available Document Types"; "Please make a selection"; ""; "Customer Profile" : "Contact Profile" : "Projects": "Activity"); ProjectItems:=@Prompt([OKCANCELLIST]; "Projects"; "Please make a selection"; ""; "Summary" : "Task") ; ActivityItems:=@Prompt([OKCANCELLIST]; "Activities"; "Please make a selection"; ""; "Action Item" : "Call Report" : "Incoming Correspondence" : "Meeting Report" : "Misc " : "Outgoing Correspondence" ); @If( Item="Customer Profile" ; @PostedCommand([Compose];"Customer") ; Item="Contact Profile" ; @PostedCommand([Compose];"Contact") ; Item="Projects" ; ProjectItems ; Item="Activity" ; ActivityItems ; ProjectItems="Summary" ; @PostedCommand([Compose];"Summary") ; ProjectItems="Task" ; @PostedCommand([Compose];"Task") ; ActivityItems="Action Item" ; @PostedCommand([Compose];"Action") ; ActivityItems="Call Report" ; @PostedCommand([Compose];"Call"); ActivityItems="Incoming Correspondence" ; @PostedCommand([Compose];"Incoming") ; ActivityItems="Outgoing Correspondence" ; @PostedCommand([Compose];"Outgoing") ; ActivityItems="Meeting Report" ; @PostedCommand([Compose];"Meeting"); ActivityItems="Misc" ; @PostedCommand([Compose];"Misc");"");
[_private/nddisc_aftr.htm]