This topic is locked

Problem with results specific to only users own enteries

4/25/2008 8:28:01 PM
PHPRunner General questions
E
erago author

I have a table for something like "Events" or Classifieds.

it is a "user" add edit Page or table. under Advanced security settings, I have set this table to "Users can see others data, can edit their own data only.
now what I want is to ad a view to that same table, but have it only display the session Users entries. ( making it user friendly to keep their records up to date)

have tried making a custom view from first table, calling it something like "My Events" and setting it to "Users can see and edit their own data only.
but it creates a Double "My Events" in the menu's (which you can see in PHPRunner ) and and error page when you try to look at the original "Events List" page, once you check it online. I already have one custom view of the same table. and it and the original are working as desired. is two custom views of the same table too many?
have tried using the where clause in Edit SQL query, but it doesn't seem to like the use of a "@$_SESSION["UserID"]"
what is the best way to get this feature to work.

J
Jane 4/28/2008

Hi,
your settings looks correct.

It's difficult to tell you what's happening without seeing actual files.
Please publish your project on Demo Account and send to support@xlinesoft.com a URL to your pages along with instructions on reproducing this error.

I'll find what's wrong with your project inspecting it at Demo account site.

E
erago author 5/3/2008

found a solution, made a custom view of the "Events"( as in Calendar of Events) table. and made it an exact copy of the original in all settings, then turned off the original in database tables. no menu for this item and no check box next to table name.

Applied the same master detail relationship to the new custom view as the old one. and then create the new custom view of Events labeled "My Events" and under Security Settings and advanced turn "My Events" setting to user can see and edit their own data only.

Not sure why this caused so many problems when using the original "Events" Table. but now working as it should.