Adding a default value to a List View

0
Hello all, I'm trying to create list views with some fields that may or may not be filled in once the information has been selected by the user. Is there a way to add " N/A " as the default text if there is no selection/entry for that specific field? The information is being displayed inside of the list view, using a table with each attribute in the corresponding sections.
asked
2 answers
1

Brandon,

You could add a boolean variable to your entity to control the display of each field. Then, based on selections made by the user in the first field or two of the page, you can build some on change microflows that will set the value of the booleans for the remaining fields on the page. You can then use these booleans to either hide the subsequent fields or disable them.

For instance, lets say you have an entity containing information about your customers, including the following attributes: - yearsInBusiness (integer) - creditCheckRequired (boolean) - displayCreditCheckRequired (boolean)

On an entry page for this entity, you could have a field for yearsInBusiness and a check box for creditCheckRequired. Then you could create a microflow that will be called in the onChange event on yearsInBusiness, which would set displayCreditCheckRequired boolean to true if yearsInBusiness is less than 5 and false if yearsInBusiness is 5 or more. Finally, if you make creditCheckRequired checkbox visible based on the value of displayCreditCheckRequired, you will only see that checkbox on your page if yearsInBusiness has a value less than 5.

Hope that helps,

Mike

answered
0

Hi Brandon,

According to me a ListView is a view group that displays items in a scrollable list. By the help of adapter, list items are automatically inserted into the list. We just need to set the adapter using setAdapter method of ListView. - For more information to you query see the video Blog at: http://findnerd.com/list/view/How-to-implement-a-ListView-in-your-Android-application-/5893/ at one of my favorite android developer forum where you can also ask you specific app development queries and receive answers with in no time.

answered