Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error in IWDBLookupComboBox when not in html template
#1
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


Attached Files Thumbnail(s)
   
Reply
#2
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)
Reply
#3
Thank you, Kudzu
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)