Labels not Working

John Brumett
John Brumett Member Posts: 612 ✭✭

When I created and added an attribute to my label the attribute does not show up in the label and then disappears when I go back to the original label. Can anyone else confirm this?     

Comments

  • MJ. Smith
    MJ. Smith MVP Posts: 54,952

    I recall several having such problems initially but I don't recall what we were doing wrong. At least my non-response will bump it so perhaps someone else has their memory in better working order.

    Orthodox Bishop Alfeyev: "To be a theologian means to have experience of a personal encounter with God through prayer and worship."; Orthodox proverb: "We know where the Church is, we do not know where it is not."

  • Tom Philpot (Faithlife)
    Tom Philpot (Faithlife) Member, Logos Employee Posts: 1,913

    When I created and added an attribute to my label the attribute does not show up in the label and then disappears when I go back to the original label. Can anyone else confirm this?     

    John,

    That can happen if you enter an invalid label attribute. An attribute can be invalid because the name is blank, or because the value does not match with the expected type of the attribute. If you created the label from a template in a highlighting style, the types are specified in the highlighting style. If you create an attribute in the editor popup, the type is determined by the type of the first value entered. If you change the value to something that isn't valid, you'll get a red outline on the Label, but you won't get any error when you save, Logos will just silently drop the invalid value.

    After looking at this it seems we could do a better job communicating when values are invalid. Currently, you have to have the cursor in the attribute value that is invalid. We should probably keep the "red highlight" around invalid values whether the text field has focus or not so it's more explicit that somethings wrong. I'll create a case for this.

    Mobile Development Team Lead

  • Dave Hooton
    Dave Hooton MVP Posts: 36,152

    When I created and added an attribute to my label the attribute does not show up in the label and then disappears when I go back to the original label. Can anyone else confirm this?     

    I can't reproduce the issue unless you provide detailed steps. Where was it "created"? Where is "original label"?

    Dave
    ===

    Windows 11 & Android 13

  • Tom Philpot (Faithlife)
    Tom Philpot (Faithlife) Member, Logos Employee Posts: 1,913

    I forgot to mention that if you press "Esc" to close the autocompletion popup or click outside of it to dismiss the popup without selecting a value, it can leave the text you typed in the text field, but not actually save the value. Then when you click "Save" or "Done" the value won't be saved on the Label or the Label Template. This may be the behavior you're seeing. I think we have a case for that. For now, the workaround is to always press "Enter" (or press "Tab" on Windows) or click on a value in the list.

    Note: pressing Enter or Tab will take the first suggestion in the list once the list is populated, so it's generally faster than waiting for the whole autocompletion list to appear if you know, for example, that you want "Jerusalem" and you can type if fast enough :)

    Mobile Development Team Lead

  • Dave Hooton
    Dave Hooton MVP Posts: 36,152

    Tom

    there is also the problem that a saved value cannot be removed in the Labeling section of Highlighting e.g erase a text value, hit Enter and Save.

    Dave
    ===

    Windows 11 & Android 13

  • Tom Philpot (Faithlife)
    Tom Philpot (Faithlife) Member, Logos Employee Posts: 1,913

    Thanks for the reminder, Dave. We've got a case for that, so I'll take a look at that too.

    Mobile Development Team Lead