Simplicty and flexibility!


How to make SetState permanent when you get out of form.


Started by Ken Roth
Search
You will need to Sign In to be able to add or comment on the forum!

How to make SetState permanent when you get out of form.

SetState("Hide",0)  How to make it permanent while getting out of the form, until I change it to Show.


Written by Ken Roth 24/09/15 at 18:11:48 Dataease [{8}]FIVE

Re:How to make SetState permanent when you get out of form.

Hallo KEN, what about global variable ? Maybe a solution......Kind regards markus


Written by grohmann.papier@t-online.de 24/09/15 at 19:25:42 Dataease [{8}]FIVE

Re:Re:How to make SetState permanent when you get out of form.

Not really a programmer, can you give me an example of how to hide a cell and how to hide a button even after you leave the form. I'm trying to hide pin#'s without using security as that complicates matters for those without clearance. Also, in the old days there was programming books for DE, are there any for the 8 series. Or are there companies in the US that will consult or write DE applications?


Written by Ken Roth 25/09/15 at 02:45:30 Dataease [{8}]FIVE

Re:Re:Re:How to make SetState permanent when you get out of form.

Download Sample!

Hi, have a little problem with the formulation of your question.

Any manipulation you do in a form will be reset when you reload the form, so you have to do the manipulation when you open the form.

If you want the change to be "permanent" for a user it need to be saved related to him in a table etc, if you want the change to be "permanent" for a session you can store it in a global variable with SetVar() and retrieve it with GetVar().

We have compiled a little sample that show how you can use a global variable called SecurityLevel - SetVar("SecurityLevel","Low") to control the enabling and disabling of a form/field/button etc.

We use Styling to show the state - SetStyle() and we use disabling of fields rather than hiding where appropriate.

Have a look and see if it answers any or all of your questions.

The key is the small fields Manip in each form.




Written by DataEase 25/09/15 at 08:42:39 Dataease [{8}]FIVE
DG3_ForumList