I have orders that are optionally linked to other orders in a 1 to 1 relationship. That seems to work fine. Looking at the SQL tables, all is good. The problem is, that I have a process that is called from a query (which uses OrderLines as input). Here is the code:
FIND OrderLines WHERE OrderLines = OrderLines.ps_LinkToContractorOrderLine
DISPLAY MESSAGE SEARCH_COUNT
I always get a ZERO. Nothing is found. Am I doing something wrong?
Thanks
Bruce
Is there a problem with a Per Relationship to the same BO?
-
- Posts: 1460
- Joined: Tue Jan 24, 2017 5:51 am
- Location: 'Stralya
Re: Is there a problem with a Per Relationship to the same B
My first impression is that this will not return anything because there’s no differentiator between what you are looking for and what you are comparing against.BLOMASKY wrote:I have orders that are optionally linked to other orders in a 1 to 1 relationship. That seems to work fine. Looking at the SQL tables, all is good. The problem is, that I have a process that is called from a query (which uses OrderLines as input). Here is the code:
FIND OrderLines WHERE OrderLines = OrderLines.ps_LinkToContractorOrderLine
DISPLAY MESSAGE SEARCH_COUNT
I always get a ZERO. Nothing is found. Am I doing something wrong?
Thanks
Bruce
How does the query get initiated? Can you differentiate ThisOrderLines.
Re: Is there a problem with a Per Relationship to the same B
PointsWell wrote:My first impression is that this will not return anything because there’s no differentiator between what you are looking for and what you are comparing against.BLOMASKY wrote:I have orders that are optionally linked to other orders in a 1 to 1 relationship. That seems to work fine. Looking at the SQL tables, all is good. The problem is, that I have a process that is called from a query (which uses OrderLines as input). Here is the code:
FIND OrderLines WHERE OrderLines = OrderLines.ps_LinkToContractorOrderLine
DISPLAY MESSAGE SEARCH_COUNT
I always get a ZERO. Nothing is found. Am I doing something wrong?
Thanks
Bruce
How does the query get initiated? Can you differentiate ThisOrderLines.
-
- Posts: 1460
- Joined: Tue Jan 24, 2017 5:51 am
- Location: 'Stralya
Re: Is there a problem with a Per Relationship to the same B
Did you mean to post? There was no new content.
Re: Is there a problem with a Per Relationship to the same B
Humm, the forum hates, me, after I try to post a msg, it tells me to LOG IN again and throw out what I posted.
Jaymer gave me the correct answer...
FIND OrderLines WHERE ... = ThisOrderLines.....
Bruce
Jaymer gave me the correct answer...
FIND OrderLines WHERE ... = ThisOrderLines.....
Bruce
-
- Posts: 2405
- Joined: Mon Jul 02, 2012 12:24 am
- Location: Ulaanbaatar, Mongolia
Re: Is there a problem with a Per Relationship to the same B
Did you try....BLOMASKY wrote:I have orders that are optionally linked to other orders in a 1 to 1 relationship. That seems to work fine. Looking at the SQL tables, all is good. The problem is, that I have a process that is called from a query (which uses OrderLines as input). Here is the code:
FIND OrderLines WHERE OrderLines = OrderLines.ps_LinkToContractorOrderLine
DISPLAY MESSAGE SEARCH_COUNT
I always get a ZERO. Nothing is found. Am I doing something wrong?
Thanks
Bruce
FIND OrderLines WHERE OrderLines = ThisOrderLines.ps_LinkToContractorOrderLine
DISPLAY MESSAGE SEARCH_COUNT
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....