Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, June 29, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Relationship works but no records show
Russell Hulsing
Posts: 16
 
Relationship works but no records showYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Mar 11 12:37 PM
fiogf49gjkf0d

OK, I created a relationship between the Contact table and the FLGX_Accounts table using TAXID.


I created a smartpart under the contact entity and in the smartpart added a datasrouce that points to the relationship and a datagrid that uses the datasource.


Everything works except no records show in the grid.


In other smartparts where the relationship links based on ContactID it works fine.


So how do I get the records for this relationship to show in a tab based on the TAXID relationship.


I feel like I'm missing something stupid.


 


Thanks, Russ..

[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Relationship works but no records showYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Mar 11 11:03 AM
fiogf49gjkf0d

you've got the relationships going back and forth both ways for the NON Contact ID link, correct?


 


Is there actual data in the database?


 


The Smart Part and data grid are Not reacting to the ContactID, correct....you've pointed everything at this non contactID relationship.....the data grid, etc.

[Reply][Quote]
Russell Hulsing
Posts: 16
 
Re: Relationship works but no records showYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Mar 11 11:07 AM
fiogf49gjkf0d

I have a 1 to M relationship where the Contact table is the parent and the FLGX_Accounts table is the child where the link is based on TAXID.


Yes, the contact record I am using definatley has multiple records in the FLGX table.


The datasource uses the relationship I created., and the datagrid points at the datasource.


 


Thanks, Russ...

[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Relationship works but no records showYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Mar 11 11:52 AM
fiogf49gjkf0d

I would suggest that you run the SLX Profiler on the Web Server, then load up a Contact and open up this grid.


Then find the Statement that should've loaded the grid and see how many records it returned. More than likely it is returning 0 rows, but if that is the case, you will have the SQL statement that actually executed against the DB and will be able to take it apart.


Things to look on the SQL statement for:


- Security Joins


- Inner Joins for other associated Objects


 


Also, you may be able to find out from the Profiler if SLX or SQL failed to Parse/Execute the statement, plus the associated error message (I am thinking that this isn't your case as an error would've been reflected on the Client, but still something to check).

[Reply][Quote]
Russell Hulsing
Posts: 16
 
Re: Relationship works but no records showYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Mar 11 10:25 AM
fiogf49gjkf0d

Thanks Raul, I definitely want to try this but am not seeing the profiler in the Slaeslogix app group.  Am I missing something.  Do I need to download and install this seperatley?


I was not the one that installed these, so I am not sure if it was installed or not.


Thanks, Russ..

[Reply][Quote]
Russell Hulsing
Posts: 16
 
Re: Relationship works but no records showYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Mar 11 10:34 AM
fiogf49gjkf0d

NEVER MIND, I found it.


Thanks, Russ..

[Reply][Quote]
Russell Hulsing
Posts: 16
 
Re: Relationship works but no records showYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Mar 11 10:43 AM

OK, here is the output from profiler


---------- Client SQL ---------
SELECT child1_.FLGX_ACCOUNTSID as y0_, child1_.ACCOUNTID as y1_, child1_.ACCOUNTNUM as y2_, child1_.accounttype as y3_, child1_.TAXID as y4_, child1_.TAXID as y5_ FROM CONTACT this_ inner join FLGX_ACCOUNTS child1_ on this_.CONTACTID=child1_.TAXID WHERE this_.CONTACTID = [DBTYPE_STR,"C6UJ9A0003MD"]
---------- Executed SQL ----------
SELECT child1_.FLGX_ACCOUNTSID as y0_, child1_.ACCOUNTID as y1_, child1_.ACCOUNTNUM as y2_, child1_.accounttype as y3_, child1_.TAXID as y4_, child1_.TAXID as y5_ FROM CONTACT this_ inner join FLGX_ACCOUNTS child1_ on this_.CONTACTID=child1_.TAXID  WHERE this_.CONTACTID = ?


Does this shed any light on why no records are showing? Why is the executed SQL and the CLient SQL different?


 


Thanks, Russ..

[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Relationship works but no records showYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Mar 11 11:32 AM
fiogf49gjkf0d

Russ:


  Is the TAXID field on the FLGX_ACCOUNTS table storing the Contact's CONTACTID value?


  Or do you have a TAXID field on the CONTACT table?


 

[Reply][Quote]
Russell Hulsing
Posts: 16
 
Re: Relationship works but no records showYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Mar 11 11:39 AM
fiogf49gjkf0d

There is no ContactID in the flgx table, so I am trying to match based on taxid in the contact table and taxid in the flgx table.


If I just do a regular SQL query in SQL manager, records come back fine, so I must be doing something wroing in either the relationship or the datasource/datagrid in the smartpart. Just not sure what I am missing.

[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Relationship works but no records showYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Mar 11 12:57 PM
fiogf49gjkf0d

Got it.


If you pay attention to the SQL statement, it shows that you are joining from CONTACT.CONTACTID TO FLXG.TAXID.


 


You need to drop your Relationship and Recreate it, but make sure that you choose the Correct Fields on both sides (Source and Target table).


 


 

[Reply][Quote]
Russell Hulsing
Posts: 16
 
Re: Relationship works but no records showYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 15 Mar 11 11:10 AM
fiogf49gjkf0d

OK, I am very confused now.


I deleted everything and started from scratch.


I made TAXID indexed and an ID in the contact table.


I recreated the relationship and it is contact.taxid 1 to flgx_accounts.taxid M.


Still getting the same thing.


 


Here is the profiler capture again:


 



---------- Client SQL ---------


SELECT child1_.FLGX_ACCOUNTSID as y0_, child1_.ACCOUNTNAME as y1_, child1_.ACCOUNTNUM as y2_, child1_.accounttype as y3_, child1_.TAXID as y4_ FROM CONTACT this_ inner join FLGX_ACCOUNTS child1_ on this_.CONTACTID=child1_.TAXID WHERE this_.CONTACTID = [DBTYPE_STR,"C6UJ9A0003MD"] 


---------- Executed SQL ----------


SELECT child1_.FLGX_ACCOUNTSID as y0_, child1_.ACCOUNTNAME as y1_, child1_.ACCOUNTNUM as y2_, child1_.accounttype as y3_, child1_.TAXID as y4_ FROM CONTACT this_ inner join FLGX_ACCOUNTS child1_ on this_.CONTACTID=child1_.TAXID  WHERE this_.CONTACTID = ?



 


Any more advice?


 


Thanks, Russ...

[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Relationship works but no records showYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 15 Mar 11 11:24 AM
fiogf49gjkf0d

When you create the Relationship, make sure that you choose the TAXID on both sides of the View.

[Reply][Quote]
Russell Hulsing
Posts: 16
 
Re: Relationship works but no records showYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 15 Mar 11 11:29 AM
fiogf49gjkf0d

I am certain that I chose TAXID and it is beings used on both sides of the relationship.

[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Relationship works but no records showYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Mar 11 7:17 AM
fiogf49gjkf0d

All I can think is that your TAXID property in App Architect is actually pointing to the ContactId database field. Thats what the profiler and your description is suggesting.


 


Thanks,


Nick

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 6/29/2025 5:01:28 AM