﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Akal Tech RSS Feed</title><link>http://www.quickobjects.com/Views/Forum/Default.aspx</link><description>Akal Tech Forum Topics</description><copyright>Akal Tech (c) 2010. All rights reserved.</copyright><language>en-us</language><lastBuildDate>9/10/2010 7:34:16 PM GMT</lastBuildDate><item><title>Topic: Not getting the results with Left Join?</title><description>&lt;br&gt;Topic Description: Hello,&lt;br&gt;&lt;br&gt;I can't seem to be getting any results with the following code. What am I doing wrong?&lt;br&gt;&lt;br&gt;&lt;div style="border: 1px solid rgb(127, 157, 185); overflow: auto; background-color: white; width: 100%; line-height: 100% ! important; font-family: Courier New; font-size: 11px;"&gt;&lt;table style="border-width: 0px; border-bottom: 0px solid rgb(238, 238, 238); margin: 2px 0px; width: 99%; border-collapse: collapse; background-color: rgb(255, 255, 255);" cellpadding="0" cellspacing="0"&gt;&lt;col style="border-bottom: 1px solid rgb(247, 247, 247); font-family: Courier New; font-size: 11px; padding-left: 10px; white-space: nowrap;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;font style="font-size: 11px;"&gt;&lt;/font&gt;&lt;font style="color: blue;"&gt;using&lt;/font&gt;&lt;font style="font-size: 11px;"&gt;&amp;nbsp;(Users&amp;nbsp;u&amp;nbsp;=&amp;nbsp;&lt;/font&gt;&lt;font style="color: blue;"&gt;new&lt;/font&gt;&lt;font style="font-size: 11px;"&gt;&amp;nbsp;Users())&amp;nbsp;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="background-color: rgb(247, 247, 247);"&gt;{&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;u.ObjectMode&amp;nbsp;=&amp;nbsp;ObjectModes.Search;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="background-color: rgb(247, 247, 247);"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;u.Join_DepartmentID_Departments_Parent(JoinTypes.Left);&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;u.DepartmentID_Departments_Parent.DivisionID.Value&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="background-color: rgb(247, 247, 247);"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;u.Find();&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font style="color: blue;"&gt;return&lt;/font&gt;&lt;font style="font-size: 11px;"&gt;&amp;nbsp;u.GenericList;&amp;nbsp;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="background-color: rgb(247, 247, 247);"&gt;}&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br&gt;I have checked the AffectedRows property is 0 and ErrorString is also null. The data is also there in the table.&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;Ryan&lt;br&gt;&lt;hr style="height:1px;"&gt;Replies: 2&lt;br&gt;Last Reply: Wed, 20 May 2009 07:21:46 GMT&lt;br&gt;Reply By: Ryan Aljets&lt;hr style="height:1px;"&gt;</description><link>http://www.quickobjects.com/Views/Forum/Topic.aspx?BPT=5&amp;PT=7&amp;APT=80</link><pubDate>Wed, 20 May 2009 07:21:46 GMT</pubDate></item><item><title>Reply: Re: Not getting the results with Left Join?</title><description>Victor,&lt;br&gt;&lt;br&gt;Thank you for the reply. I added ValueOrNull and it works perfectly!&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;Ryan&lt;br&gt;</description><link>http://www.quickobjects.com/Views/Forum/Topic.aspx?BPT=5&amp;PT=7&amp;APT=80</link><pubDate>Wed, 20 May 2009 07:21:46 GMT</pubDate></item><item><title>Reply: Re: Not getting the results with Left Join?</title><description>Can you please check see if you have record in departments table with division id 1?&lt;br&gt;&lt;br&gt;In case you looking to get result where either division id is null or division id is equal to 1 then you need to specify ValueOrNull to SearchMode property of the division id field.&lt;br&gt;&lt;br&gt;&lt;div style="border: 1px solid rgb(127, 157, 185); overflow: auto; background-color: white; width: 100%; line-height: 100% ! important; font-family: Courier New; font-size: 11px;"&gt;&lt;table style="border-width: 0px; border-bottom: 0px solid rgb(238, 238, 238); margin: 2px 0px; width: 99%; border-collapse: collapse; background-color: rgb(255, 255, 255);" cellpadding="0" cellspacing="0"&gt;&lt;col style="border-bottom: 1px solid rgb(247, 247, 247); font-family: Courier New; font-size: 11px; padding-left: 10px; white-space: nowrap;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;font style="font-size: 11px;"&gt;u.DepartmentID_Departments_Parent.DivisionID.SearchMode&amp;nbsp;=&amp;nbsp;SearchModes.ValueOrNull;&amp;nbsp;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="background-color: rgb(247, 247, 247);"&gt;u.Find();&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br&gt;Please let me know if this don't resolve your problem.&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Victor&lt;br&gt;&lt;br&gt;Quick Objects Support&lt;br&gt;</description><link>http://www.quickobjects.com/Views/Forum/Topic.aspx?BPT=5&amp;PT=7&amp;APT=80</link><pubDate>Tue, 19 May 2009 18:02:49 GMT</pubDate></item></channel></rss>