In QlikView, Alternate States are not accessible in the load script.They are a feature of User interface.
To use/create Alternate state, user have to first create Alternate state in Settings/Document properties. Once an Alternate state is created then user can either use this alternate state in any sheet object or create new ones.
If Alternate State is not created in Settings/document properties, it will not show in any sheet object
Create Alternate state in the document properties
Once Alternate state is created in the document properties, it will show up in the sheet object
Now you can use Alternate state /state identifiers in your visualization
Please watch my video for more details