Skip to content

Proper syntax table.field or filed.table BUG in form designer?

Forums Forums Superbase NG Personal Proper syntax table.field or filed.table BUG in form designer?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #216
    JD Kromkowski
    Participant

    What’s the deal with this: is it TABLE.field or field.TABLE For a filter for example, it is TABLE.field = “myfield” But if I “modify” form, in the form designer the field editboxes are displayed field.TABLE JDK

    #2215
    Michael
    Keymaster

    On 08/04/2013 13:56, kromkowski wrote:
    > What's the deal with this:
    >
    > is it TABLE.field or field.TABLE
    >
    >
    > For a filter for example, it is
    >
    > TABLE.field = "myfield"
    >
    > But if I "modify" form, in the form designer the field editboxes are
    > displayed
    >
    > field.TABLE
    >
    > JDK
    >

    The syntax for queries is Table.Field. We decided to add this additional information for bound edit and text controls in the most
    recent revision, and after careful consideration went for Field.Table, mainly because if something gets cut off, it is better to
    be the table name than the field name.

    Ciao, Neil

    #2218
    JD Kromkowski
    Participant

    OK. I had worked very hard to rid myself of thinking anyway but
    TABLE.field, so there was some momentary self doubt about what I was
    seeing and whether I had trained my self completely wrong.

    If there is any best practice, I recommend:

    datasources – lower case "mydata"
    tables – UPPERCASE "MYTABLE"
    fields – (I try but am not totally consistent – Initial Caps)
    "Myfield" or "MyField"

    JDK

    On 04/08/13 2:13 PM, Neil Robinson wrote:
    > On 08/04/2013 13:56, kromkowski wrote:
    >> What's the deal with this:
    >>
    >> is it TABLE.field or field.TABLE
    >>
    >>
    >> For a filter for example, it is
    >>
    >> TABLE.field = "myfield"
    >>
    >> But if I "modify" form, in the form designer the field editboxes are
    >> displayed
    >>
    >> field.TABLE
    >>
    >> JDK
    >>
    >
    > The syntax for queries is Table.Field. We decided to add this additional information for bound edit and text controls in the most
    > recent revision, and after careful consideration went for Field.Table, mainly because if something gets cut off, it is better to
    > be the table name than the field name.
    >
    > Ciao, Neil
    >

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.