Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Bug Reports » Losing $where when fixed selection is not present
Re: Losing $where when fixed selection is not present [message #2280 is a reply to message #2242] Tue, 18 August 2009 04:58 Go to previous messageGo to previous message
gpatti is currently offline  gpatti
Messages: 283
Registered: August 2008
Senior Member
OK. $where and $selection now show expected results:

1. Without making selections $where and $selection both hold the primary key
2. With selections $where holds the orimary key and $selection holds the selections made

However, if I make selections and then set $selection = $where in _cm_initialise (to match scenario 1) I still get the error message 'Primary key (primary_key_id) is not complete - check selection'.

Do I need to do something more complex than simply setting $selection?

A solution I can use if the approach I was taking is not valid is to trap that selections have been made and display a custom error telling the user not to make selections. This works OK.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: isnull clause being filtered out of $where with scriptNext()
Next Topic: Recover Password is encrypted
Goto Forum:
  


Current Time: Sun Aug 25 13:46:29 EDT 2024

Total time taken to generate the page: 0.01318 seconds