Paul Ladley
Posts: 0
Joined: Wed May 14, 2014 4:46 pm

Problem adding labels to list item

I am a newbie, so excuse me if I have missed something VERY basic.

I am trying to delete an entity from a database. The entities are displayed in a list, which I want to click on and press a delete button. I have looked at a couple of tutorials and they suggest putting labels on etc...

The problem is that when I drag the label on to the list item, it greys out. When you run it, you cannot select the list item ...

I have tried dragging a grid on to a list and you get the same result. Same thing when you drag labels / grids on to a collapsible set.

I have looked at the properties and can't find anything to make the the list item clickable once they have been greyed out. What am I doing wrong?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Problem adding labels to list item

Hello Paul,

You can use the approach with data-item-id attribute to store id: http://docs.appery.io/documentation/b...

Paul Ladley
Posts: 0
Joined: Wed May 14, 2014 4:46 pm

Problem adding labels to list item

Hi Evgene,

Thanks for that. I can see how that would work for a simple list.

But what about if I drag a label on like it describes in the tutorial section "Using a hidden label" which states "Another approach also uses local storage, but has a slightly different setup. Instead of adding a new attribute to the element, it uses a hidden value in the list"?

This is a label on the list item. And when I do that it becomes unselectable.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Problem adding labels to list item

It still can be selected. These list items are losing "highlighted property" on hover event.

Paul Ladley
Posts: 0
Joined: Wed May 14, 2014 4:46 pm

Problem adding labels to list item

Read in another topic that they were using a split button.

But as soon as i drag a label or grid on to the split button it stops being clickable. No hover state, and the cursor doesn't change except for becoming a caret over the label text.

Check boxes, though, work as expected. They remain clickable and don't lose their styling.

Am I doing something wrong?

Paul Ladley
Posts: 0
Joined: Wed May 14, 2014 4:46 pm

Problem adding labels to list item

I have tried to map a check box to the data but it seems to fail. I only see one label on screen nothing else. Can you map data to a check box? If so I guess I am doing something wrong in following the same process as mapping data to a list.

Paul Ladley
Posts: 0
Joined: Wed May 14, 2014 4:46 pm

Problem adding labels to list item

Any updates on why I can't add labels to lists, as described in you tutorials?

Do I need to do what a fellow user suggested?

<<

If so, can you expand (give me a step through on how to do the above?

BTW: ignoring this issue for the moment, I must same I am very impressed with Appery. And my company is likely to go for it as our mobile solution.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Problem adding labels to list item

Hi Paul,

Map service response parameter to checkbox and add the following JS code:pre$(element)&#46;attr('checked',value);/pre
Please check, probably you can't add components to listitem because of parameter Divider=true. Also try cleaning cache and send us a screenshot of the editor with this mobilelist.

Return to “Issues”