Android Question [B4X] B4XLongTextTemplate.text is read-only

Discussion in 'Android Questions' started by jimmyF, May 2, 2019.

  1. jimmyF

    jimmyF Active Member Licensed User

    This is what I am doing:
    Dim column As B4XTableColumn = B4XTable1.GetColumn(ColumnId)
    Dim value As String = B4XTable1.GetRow(RowId).Get(ColumnId)
            LongInputTemplate.Text = value
            LongInputTemplate.CustomListView1.DefaultTextBackgroundColor = xui.Color_White
            LongInputTemplate.CustomListView1.DefaultTextColor = xui.Color_Black  
    'LongInputTemplate.Text = column.Id
            Wait For (Dialog.ShowTemplate(LongInputTemplate, "OK""""CANCEL")) Complete (Result As Int)
    If Result = xui.DialogResponse_Positive Then
    $"UPDATE data SET ${column.SQLID} = ? WHERE rowid = ?"$Array As String(LongInputTemplate.Text, RowId))          
    End If
    but the text is non-editable.

    What am I doing wrong, please?

  2. Erel

    Erel Administrator Staff Member Licensed User

    Nothing. B4XLongTemplate is a template for showing long text.

    Simplest way to create a long text input field is with B4XPreferencesDialog and the multiline text field.
    jimmyF likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice