Atozed Forums
Error in IWDBLookupComboBox when not in html template - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Error in IWDBLookupComboBox when not in html template (/thread-1254.html)



Error in IWDBLookupComboBox when not in html template - cprmlao@hotmail.com - 09-19-2019

Hi, I have a IWDBLookupComboBox and I have noted an error in chrome console in "setprocessAjaxExecute" when "evaluating: setEnabled".

I have this IWDBLookupComboBox in the form but I don´t include it into html template of the form.

If I include it into html template the error disappears.

So, Is it a bug?

I have attached the image error.


Regard, Luiz

Code:
object ESTADO: TIWDBLookupComboBox [30]
    Left = 169
    Top = 261
    Width = 121
    Height = 21
    Css = 'form-control'
    RenderSize = False
    StyleRenderOptions.RenderSize = False
    StyleRenderOptions.RenderPosition = False
    StyleRenderOptions.RenderFont = False
    StyleRenderOptions.RenderVisibility = False
    StyleRenderOptions.RenderStatus = False
    StyleRenderOptions.RenderAbsolute = False
    StyleRenderOptions.RenderPadding = False
    StyleRenderOptions.RenderBorder = False
    Font.Color = clNone
    Font.Size = 10
    Font.Style = []
    TabOrder = 28
    AutoEditable = True
    DataField = 'ESTADO'
    DataSource = dsClientesCad
    FriendlyName = 'Sem sele'#231#227'o'
    KeyField = 'SIGLA'
    ListField = 'NOME'
    ListSource = dsEstados
    DisableWhenEmpty = False
    NoSelectionText = '-- Sem Sele'#231#227'o --'
  end



RE: Error in IWDBLookupComboBox when not in html template - kudzu - 09-19-2019

If you dont include it in the template, IW doesnt keep track of this and will still try to update the control. Since you dont include it, ESTADO wont be there when IW expects it to be.

If you dont plan to include the control in a template, you can set it to hidden (Visible = false)


RE: Error in IWDBLookupComboBox when not in html template - cprmlao@hotmail.com - 09-19-2019

Thank you, Kudzu