Editing only certain fields.

The recommended method of customizing your AppGini-generated application is through hooks. But sometimes you might need to add functionality not accessible through hooks. You can discuss this here.
Post Reply
kanklovitch
Veteran Member
Posts: 159
Joined: 2019-02-03 17:26

Editing only certain fields.

Post by kanklovitch » 2020-05-16 02:18

Hi super Heroes
Is this possible? An anonymous person could login to a database and only update one field. I would like anyone to search my database and if they see an error or mistake they could set a flag to alert me that one of the fields, probably a text field, has inaccurate information.

Thank you

jangle
Veteran Member
Posts: 89
Joined: 2020-01-18 17:41

Re: Editing only certain fields.

Post by jangle » 2020-05-16 03:15


kanklovitch
Veteran Member
Posts: 159
Joined: 2019-02-03 17:26

Re: Editing only certain fields.

Post by kanklovitch » 2020-05-16 03:53

Thanks Jim, sounds like it will be difficult for now.

jangle
Veteran Member
Posts: 89
Joined: 2020-01-18 17:41

Re: Editing only certain fields.

Post by jangle » 2020-05-20 15:00

Sorry,

I am new as well...

Jim

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1638
Joined: 2018-04-01 10:12

Re: Editing only certain fields.

Post by pbottcher » 2020-05-21 10:01

Hi,

you could solve your issue by adding the same table again to you APPGini app, put all field to read-only and leave only your "comment" field read-write.
After regenerating your app you need to replace the tabledefintion in your database by a view to the original table.

Drop table
create view tablecopy as select * from table

Like this you have a table that you can allow anonymous users access which will only have the comment field read-write, but will also get all all new entries from the original table.

Note that you should not allow "INSERT" on this copy.

Hope that helps.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

Post Reply