Results 1 to 3 of 3

Thread: Field Name Alignment Problems

  1. #1
    Daraius Guest

    Field Name Alignment Problems

    Here is what I want to accomplish...
    1) Rename a field using dbNameMap
    2) Retain Center justification on Field Titles on the Grid and Right justification on form, search, edit screens (same as default behavior).

    Here is what happens ....
    If I never use dbNameMap or dbFormNameMap (default behavior) then:
    - Field Names (column titles) on a grid are center justified
    - Field names on the View Form are right justified
    - Field Names on the Edit Form are right justified
    - Field Names on the Search form are right justified

    If I use only [dbNameMap=oldname, newname] to rename a field
    - it does get renamed everywhere
    - BUT on the search, view, and edit forms, the field name for the remapped field gets center justified !

    If I use only [dbNameMap=oldname, newname, align=right]
    - It gets right justified everywhere (including on the Grid)

    If I then use [dbFormNameMap=oldname,newname,align=right;...
    - The field on the View Form does indeed get right justified
    - BUT the field names on Search and Edit forms remain centered
    - In fact the field names on Edit Forms obey the NameMap from
    dbNameMap rather than dbFormNameMap.

    I am not sure how this was supposed to work. But there seems to be no combination that gets me what I want (which is remap a field and DON't mess with the original justification).

    Perhaps adding a dbEditNameMap and dbSearchNameMap ???
    Or just make dbFormNameMap control everything except the Grid.
    And of course completely isolating their functionality ...

    This is a cosmetic problem, but irritating all the same.

    Thanks,
    Daraius

  2. #2
    Mark Guest

    Field Name Alignment Problems (reply)

    Daraius,
    You're right. It would be nice to have a dbEditNameMap. But there isn't one right now, so just do this instead: Detect if you are in Edit mode and if so, then define dbNameMap to whatever you want. This example will give you an idea of how to detect that you are in edit mode:
    http://www.aspdb.com/UNO/UNO_TwoDates.asp

    Mark.

    ------------
    Daraius at 11/7/00 2:06:35 PM

    Here is what I want to accomplish...
    1) Rename a field using dbNameMap
    2) Retain Center justification on Field Titles on the Grid and Right justification on form, search, edit screens (same as default behavior).

    Here is what happens ....
    If I never use dbNameMap or dbFormNameMap (default behavior) then:
    - Field Names (column titles) on a grid are center justified
    - Field names on the View Form are right justified
    - Field Names on the Edit Form are right justified
    - Field Names on the Search form are right justified

    If I use only [dbNameMap=oldname, newname] to rename a field
    - it does get renamed everywhere
    - BUT on the search, view, and edit forms, the field name for the remapped field gets center justified !

    If I use only [dbNameMap=oldname, newname, align=right]
    - It gets right justified everywhere (including on the Grid)

    If I then use [dbFormNameMap=oldname,newname,align=right;...
    - The field on the View Form does indeed get right justified
    - BUT the field names on Search and Edit forms remain centered
    - In fact the field names on Edit Forms obey the NameMap from
    dbNameMap rather than dbFormNameMap.

    I am not sure how this was supposed to work. But there seems to be no combination that gets me what I want (which is remap a field and DON't mess with the original justification).

    Perhaps adding a dbEditNameMap and dbSearchNameMap ???
    Or just make dbFormNameMap control everything except the Grid.
    And of course completely isolating their functionality ...

    This is a cosmetic problem, but irritating all the same.

    Thanks,
    Daraius

  3. #3
    Sue Bee Guest

    Field Name Alignment Problems (reply)


    Daraius,

    I used this code for aligning the column headings on my grid style.

    MyDb.dbGridTHBGtag="Align=Left"

    There is probably others.

    Sue

    ------------
    Mark at 11/7/00 2:28:28 PM

    Daraius,
    You're right. It would be nice to have a dbEditNameMap. But there isn't one right now, so just do this instead: Detect if you are in Edit mode and if so, then define dbNameMap to whatever you want. This example will give you an idea of how to detect that you are in edit mode:
    http://www.aspdb.com/UNO/UNO_TwoDates.asp

    Mark.

    ------------
    Daraius at 11/7/00 2:06:35 PM

    Here is what I want to accomplish...
    1) Rename a field using dbNameMap
    2) Retain Center justification on Field Titles on the Grid and Right justification on form, search, edit screens (same as default behavior).

    Here is what happens ....
    If I never use dbNameMap or dbFormNameMap (default behavior) then:
    - Field Names (column titles) on a grid are center justified
    - Field names on the View Form are right justified
    - Field Names on the Edit Form are right justified
    - Field Names on the Search form are right justified

    If I use only [dbNameMap=oldname, newname] to rename a field
    - it does get renamed everywhere
    - BUT on the search, view, and edit forms, the field name for the remapped field gets center justified !

    If I use only [dbNameMap=oldname, newname, align=right]
    - It gets right justified everywhere (including on the Grid)

    If I then use [dbFormNameMap=oldname,newname,align=right;...
    - The field on the View Form does indeed get right justified
    - BUT the field names on Search and Edit forms remain centered
    - In fact the field names on Edit Forms obey the NameMap from
    dbNameMap rather than dbFormNameMap.

    I am not sure how this was supposed to work. But there seems to be no combination that gets me what I want (which is remap a field and DON't mess with the original justification).

    Perhaps adding a dbEditNameMap and dbSearchNameMap ???
    Or just make dbFormNameMap control everything except the Grid.
    And of course completely isolating their functionality ...

    This is a cosmetic problem, but irritating all the same.

    Thanks,
    Daraius

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •