This topic is locked

Value different from selection in Lookup Wizard

4/16/2007 12:15:51 AM
PHPRunner General questions
E
evan_ad2000 author

Hi,
I have used the lookup wizard in one of my add pages but it doesnt record the selection i made, instead, it takes the username of the person who is logged in as the value. Where could the error be?
thanks,

Evan

kujox 4/16/2007

I have used the lookup wizard in one of my add pages but it doesnt record the selection i made, instead, it takes the username of the person who is logged in as the value. Where could the error be?


Maybe it could be in the events, check if you have $values['lookup'] = $_SESSION['UserID'] in the after record added, otherwise I don't know where it could be as the default value would be overwrote by your choice in the dropdown.

J
Jane 4/16/2007

Evan,
please check your events on the Events tab and your Lookup wizard settings on the "Edit as" settings dialog on the Visual Editor tab.

E
evan_ad2000 author 4/16/2007

Evan,

please check your events on the Events tab and your Lookup wizard settings on the "Edit as" settings dialog on the Visual Editor tab.


Hi Jane,
My settings look alright to me because the website shows the correct information. What is wrong is what happens after i click submit. I even tried to list all the values of "$avalues". The first value should be a value which is selected from a list, but it always becomes the username of the person logged in.
Thanks,

Evan

Alexey admin 4/16/2007

Evan,
looks like you have "Users can edit their own records" security mode enabled with Username selected as OwnerID field.

In this case OwnerID field in the table will be overwritten with username.
Proceed to Security tab -> Advanced in PHPRunner to modify these settings.