Quantcast
Channel: SharePoint 2010 - Setup, Upgrade, Administration and Operations forum
Viewing all articles
Browse latest Browse all 13778

Infopath FormState Arraylist Problem

$
0
0
Hi All,

I've a question regarding using form_state in InfoPath forms. I'm trying to create a global arraylist that could be used throughout the form class as I would need to store data(string) and use them later.

I have this so far but it seems I have problems initiating the arraylist. I have tried adding a string into the list (emailList.add("Something")) but it returns nothing.

private ArrayList emailList
{
get
{
if (FormState["emailList"] != null)
{
return (ArrayList)FormState["emailList"];
}
else
{
ArrayList list = new ArrayList();
return list;
}
}
set
{
FormState["emailList"] = value;
}
}

would really appreciate it if someone could help me! Thank you so much in advance!

Viewing all articles
Browse latest Browse all 13778

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>