Results 1 to 6 of 6

Thread: YAFR add "READ ONLY STATE" to dbSuggestion form

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2009
    Location
    Queens, NY, NY
    Posts
    7,429

    Default YAFR add "READ ONLY STATE" to dbSuggestion form

    I just got bitten because a user decided to change a value in a db suggestion form, and then change the child record. My goto patch was to set read_only_state on the DEO, but it'snot defined for dbSuggestionform

    Code:
        Object otRecipeHead_Name is a dbSuggestionForm
                    Entry_Item tRecipeHead.Name
                    Set Location to 26 9
                    Set Size to 13 226
                    Set Label to "Recipe Name:"
                    Set Label_Col_Offset to 0
                    Set Label_Justification_Mode to JMode_Top
                    Set Read_Only_State to True
    Compiler is unhappy with last line. For now I used isCommitted in the DD instead, but since the DD in the view was marked "read only" I'm a little concerned as to what broke that. (It's possible that the save was handled through a BPO, but still. Not cool. )
    Michael Mullan.
    Danes Bridge Enterprises.

    ++++++++++++++++++++++++++++
    There is just today. Tomorrow is a concept
    that is mostly theoretical. -- GM Wylie
    ++++++++++++++++++++++++++++

  2. #2
    Join Date
    Feb 2009
    Location
    Brazil
    Posts
    5,445

    Default Re: YAFR add "READ ONLY STATE" to dbSuggestion form

    I bet someone will come and say.
    If you need a readonly control, why using a suggestion form ? Use a plain dbform instead.

    Who that might be!?
    Samuel Pizarro

  3. #3
    Join Date
    Feb 2009
    Location
    Queens, NY, NY
    Posts
    7,429

    Default Re: YAFR add "READ ONLY STATE" to dbSuggestion form

    well Vincent Samuel,

    because the normal use case for a Suggestion form is to select from existing data, not to change it.

    also "read_only_State" in DD is ignored if a child save propagates up, which is what happened here.
    Last edited by Michael Mullan; 7-May-2021 at 02:09 PM. Reason: sounded too angry
    Michael Mullan.
    Danes Bridge Enterprises.

    ++++++++++++++++++++++++++++
    There is just today. Tomorrow is a concept
    that is mostly theoretical. -- GM Wylie
    ++++++++++++++++++++++++++++

  4. #4
    Join Date
    Feb 2009
    Location
    Brazil
    Posts
    5,445

    Default Re: YAFR add "READ ONLY STATE" to dbSuggestion form

    No discussion.
    Samuel Pizarro

  5. #5
    Join Date
    Feb 2009
    Location
    Hengelo, Netherlands
    Posts
    10,869

    Default Re: YAFR add "READ ONLY STATE" to dbSuggestion form

    Michael,

    In ComboForm's you don't use read_only_state too but entry_state.

    Now, when you set entry_state (or read_only_state) how can it respond on a number of entered characters.
    Regards,
    Data Access Worldwide
    Vincent Oorsprong

  6. #6
    Join Date
    Feb 2009
    Location
    Queens, NY, NY
    Posts
    7,429

    Default Re: YAFR add "READ ONLY STATE" to dbSuggestion form

    It's a dbsugeestion form. It's MORE than a combo form.

    I want READ_ONLY_STATE to work like it's working in dbforms.

    In particular, after the record is selected, the text can be edited. Grrr.

    /MM
    Michael Mullan.
    Danes Bridge Enterprises.

    ++++++++++++++++++++++++++++
    There is just today. Tomorrow is a concept
    that is mostly theoretical. -- GM Wylie
    ++++++++++++++++++++++++++++

Posting Permissions

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