Make a drop down list depend on other dropdown lsit

 
Hello experts
I want make two dropdown list  inputs in first one will select a list from main lists 
and the second input will show the list that selected in the first input

when  assign the second input to the first one I got  constant expected error.
enum List1
{
   ITEM_A,
   ITEM_B,
   ITEM_C
};

enum List2
{
   ITEM_X,
   ITEM_Y,
   ITEM_Z
};


enum MainList
{
   LIST1,
   LIST2
};

// Inputs
input MainList Main = 0; 
input int Item= Main ;
so how do I make this correctly
  
 
zreboo:
I want make two dropdown list  inputs in first one will select a list from main lists 
and the second input will show the list that selected in the first input

This cannot be implemented for the properties window.

Because you can't choose the data type of a global variable at runtime.
 
Vladislav Boyko #:

This cannot be implemented for the properties window.

Because you can't choose the data type of a global variable at runtime.

Ok, Thanks  Vladislav for your reply, I think I have to gather them in one drop down list.