TableFrame readOnly property gets stuck!

TableFrame readOnly property gets stuck!

Post by Kenneth Brown Siz » Wed, 10 May 1995 04:00:00



Greetings to the solvers of paradoxes!

I have a very irksome little problem...

Here is the senario:
        Several of my forms have a TableFrame which I use to view a detail
        table.  In order to control (and log) updates to that table, I
        set the readOnly property of the TableFrame to TRUE in the page's
        Arrive method.  Then, only after the user has jumped through the
        appropriate hoops, do I set the readOnly property back to FALSE,
        allowing them to make edits.

Now for the problem:
        After successfully using one of these forms for weeks, suddenly the
        readOnly property of the TableFrame is stuck on TRUE!  I can bind
        the following code to a button:
                MY_FRAME.readOnly = FALSE
                msgInfo("ReadOnly = " + strVal(MY_FRAME.readOnly) )
        and the message will display ReadOnly = TRUE every time!!
        (and, most importantly, I really CAN'T edit the table either)

        Something is forcing the property to TRUE, but I have no idea
        what and I get no messages when I try to change it!?!?

Help! Help! Help! (Thank you! Thank you! Thank you!)

---Ken

--
+---------------------+-------------------------------------+-----------------+
|Ken Sizer, II        | 800 Merrie Road, Raleigh, NC  27606 |   My old dorm   |

+---------------------+-------------------------------------+-----------------+

 
 
 

TableFrame readOnly property gets stuck!

Post by Todd Fa » Wed, 10 May 1995 04:00:00



Quote:

>Greetings to the solvers of paradoxes!

>I have a very irksome little problem...

>Here is the senario:
>        Several of my forms have a TableFrame which I use to view a detail
>        table.  In order to control (and log) updates to that table, I
>        set the readOnly property of the TableFrame to TRUE in the page's
>        Arrive method.  Then, only after the user has jumped through the
>        appropriate hoops, do I set the readOnly property back to FALSE,
>        allowing them to make edits.

>Now for the problem:
>        After successfully using one of these forms for weeks, suddenly the
>        readOnly property of the TableFrame is stuck on TRUE!  I can bind
>        the following code to a button:
>                MY_FRAME.readOnly = FALSE
>                msgInfo("ReadOnly = " + strVal(MY_FRAME.readOnly) )
>        and the message will display ReadOnly = TRUE every time!!
>        (and, most importantly, I really CAN'T edit the table either)

>        Something is forcing the property to TRUE, but I have no idea
>        what and I get no messages when I try to change it!?!?

>Help! Help! Help! (Thank you! Thank you! Thank you!)

Well, I can't say what the exact problem might be.  But, it may be more effective to use a
different technique (one that I know works).  Instead of toggling the read-only property, set a
flag at the TableFrame level that indicates whether the user has completed the requisite
"hoops".  In the canArrive of the TableFrame, do this:

;----------------------------------
if not HoopsDone then
        eventInfo.setErrorCode(CanNotArrive)
endif
;----------------------------------

This will block any move until the flag is set to TRUE, which you can do with a simple custom
method that can be called from anywhere.        

;----------------------------------
method SetFlag(const theState Logical)

HoopsDone=theState

endmethod
;----------------------------------

Todd
--
====================================================================

"His mind is somewhat too much taken up with his mind." - John Earle
My employer couldn't possibly have such great ideas; therefore, the
ones expressed above must be my own.
====================================================================

 
 
 

TableFrame readOnly property gets stuck!

Post by Eugene I Levi » Fri, 12 May 1995 04:00:00



Quote:>Greetings to the solvers of paradoxes!

Borland did its best to warn you what's in the box. :-)

Quote:>I have a very irksome little problem...

>Here is the scenario:
>       Several of my forms have a TableFrame which I use to view a detail
>       table.  In order to control (and log) updates to that table, I
>       set the readOnly property of the TableFrame to TRUE in the page's
>       Arrive method.
...............
>       After successfully using one of these forms for weeks, suddenly the
>       readOnly property of the TableFrame is stuck on TRUE!
..............
>       Something is forcing the property to TRUE, but I have no idea
>       what and I get no messages when I try to change it!?!?

I'm not sure that it's the case, but Paradox has a really STUPID feature
that might produce this. An ObjectPAL programmer can change many UI
properties (colors, frame styles, read-only flags, etc, etc) from OPAL.
The question: are these changes permanent (so they will appear in future
runs of the form) or not? The answer: it depends. If after changing a
property you just close the form the new property value isn't saved in
the .fsl file. But if after changing a property you switch to design mode
the new property remains and will be used in all future runs.

An example: I have a tableFrame which highlights the current record by
changing its color from transparent to blue. The form is rather complex
and is still under construction. So I go through the design - run -
design loop many times dayly. If I press F8 (design) when any but the
topmost record is currently highlighted everything is OK. But if I forget
that I'm dealing with a great paradox and press F8 when the topmost
record is blue, the next run all records are blue!

Hope this might help,
--
=================+=================================================


Russia           |                          rest of the world.
=================+=================================================

 
 
 

TableFrame readOnly property gets stuck!

Post by STE.. » Sat, 13 May 1995 04:00:00


Quoting kbsizer from a message in comp.databases.paradox
   >         After successfully using one of these forms for weeks, suddenly the
   >         readOnly property of the TableFrame is stuck on TRUE!  I can bind
   >         the following code to a button:
   >                 MY_FRAME.readOnly = FALSE
   >                 msgInfo("ReadOnly = " + strVal(MY_FRAME.readOnly) )
   >         and the message will display ReadOnly = TRUE every time!!
   >         (and, most importantly, I really CAN'T edit the table either)
   >         Something is forcing the property to TRUE, but I have no idea
   >         what and I get no messages when I try to change it!?!?
   > Help! Help! Help! (Thank you! Thank you! Thank you!)

If you are on a network, some one may have improperly exited from the
table, leaving the read only lock on. This may have been through a three
finger salute, etc. If so, ask that specific user to open and close the
form, or look for *.lck files and delete them.

 ________________o___________________                                  
|                 \                  |                                  
|    o       Steve Pelletier      ___|                                  

|_(_)_<(_)_______________________|/                                    

 
 
 

1. Stuck in readonly access

Help me, i have a forme with a data control. The value of this object is not
set to read only. It data source is set to a database (access 97) with no
restriction on a local drive. I can modified, delete, add record to that
control. Even programmaticly !!!. I`m using Vb 5.0 SP3 with NT4.0 SP3. Help
ME!!!!!!

2. strange problem in accessing sql server

3. Column Properties in TableFrames....

4. OCP Exams Pl; Advise

5. TableFrame.Size property

6. Legal statement in PostgreSQL?

7. PDOX5 tableframe property info

8. esqlc on DEC UNIX

9. Re^3: [PDOXWIN 4.5] Changing Tableframe field properties

10. Changing Tableframe field properties

11. Property for all the collumn in TableFrame [WIN 4.5]

12. Getting rid of the IDENTITY property on a column withou getting rid of the column

13. Help? Password PDox files and Delphi ReadOnly property