AnsweredAssumed Answered

How can I make a "zero" value in a dropdown list

Question asked by hanstrager on Apr 1, 2013
Latest reply on Apr 1, 2013 by philmodjunk

Title

How can I make a "zero" value in a dropdown list

Post

     I have made a small application so I can keep track on reciepts. In on layout, I can "filter" (search functions) these reciepts with the following code:

     Go to Layout [ “List” (Zips) ]
     Set Variable [ $CategoryList; Value:Globals::Category ]
     Set Variable [ $K; Value:1 ]
     Enter Find Mode [  ]
     Set Field [ Zips::DATE; Globals::Date1 & "..." & Globals::Date2 ]
     Set Field [ Zips::Season; Globals::season ]
     Set Field [ Zips::Seller; Globals::Seller ]
     Set Field [ Zips::PAYER; Globals::Payer ]
     Set Field [ Zips::Category; GetValue($CategoryList ; 1) ]
     Set Error Capture [ On ]
     Perform Find [  ]
     Loop
     Set Variable [ $K; Value:$K + 1 ]
     Exit Loop If [ $K > ValueCount($CategoryList) ]
     Enter Find Mode [  ]
     Set Field [ Zips::DATE; Globals::Date1 & "..." & Globals::Date2 ]
     Set Field [ Zips::Season; Globals::season ]
     Set Field [ Zips::Seller; Globals::Seller ]
     Set Field [ Zips::PAYER; Globals::Payer ]
     Set Field [ Zips::Category; GetValue($CategoryList ; $K) ]
     Extend Found Set [  ]
     End Loop
      

     I have 2 date fields where i can type a date into, a check box and 3 drop down lists thats taking their value from different fields. My problem is when I want to "uncheck" or have a zero value in the drop down lists - so it dosen't filter/search based on that field, im wonder if there's a way to put in a value at the top which will make this the drop down menu field empty..?

Outcomes