Journal Batch lookup doesn't work in RTC
rocatis
Member Posts: 163
Scenario: a simple table with two fields, "Journal Template Name" and "Journal Batch Name". The latter has a table relation depending on the first.
This works like a charm in the Classic Client - just as you would expect.
In RTC, however, the filter is not set correctly when looking up "Journal Batch Name". I have only found one way to work around this bug: using code to do the lookup. This annoys me no end!
Behold:
This works like a charm in the Classic Client - just as you would expect.
In RTC, however, the filter is not set correctly when looking up "Journal Batch Name". I have only found one way to work around this bug: using code to do the lookup. This annoys me no end!
Behold:
OBJECT Table 99999 Test
{
OBJECT-PROPERTIES
PROPERTIES
{
OnInsert=BEGIN
RESET;
IF NOT GET THEN BEGIN
INIT;
INSERT;
END;
END;
}
FIELDS
{
{ 1 ; ;Primary Key ;Code10 ;CaptionML=[DAN=Prim‘rn›gle;
ENU=Primary Key] }
{ 2 ; ;Template Name ;Code10 ;TableRelation="Gen. Journal Template" }
{ 3 ; ;Batch Name ;Code10 ;TableRelation="Gen. Journal Batch".Name WHERE (Journal Template Name=FIELD(Template Name)) }
}
KEYS
{
{ ;Primary Key ;Clustered=Yes }
}
CODE
{
BEGIN
END.
}
}
OBJECT Form 99999 Test
{
PROPERTIES
{
Width=7040;
Height=1870;
SourceTable=Table99999;
OnOpenForm=BEGIN
RESET;
IF NOT GET THEN BEGIN
INIT;
INSERT;
END;
END;
}
CONTROLS
{
{ 1 ;Frame ;220 ;220 ;6600 ;1430 ;HorzGlue=Both;
VertGlue=Both;
ShowCaption=No }
{ 4 ;TextBox ;3850 ;440 ;2750 ;440 ;ParentControl=1;
InFrame=Yes;
SourceExpr="Template Name" }
{ 5 ;Label ;440 ;440 ;3300 ;440 ;ParentControl=4 }
{ 6 ;TextBox ;3850 ;990 ;2750 ;440 ;ParentControl=1;
InFrame=Yes;
SourceExpr="Batch Name" }
{ 7 ;Label ;440 ;990 ;3300 ;440 ;ParentControl=6 }
}
CODE
{
BEGIN
END.
}
}
OBJECT Page 99999 Test
{
PROPERTIES
{
SourceTable=Table99999;
PageType=Card;
OnOpenPage=BEGIN
RESET;
IF NOT GET THEN BEGIN
INIT;
INSERT;
END;
END;
}
CONTROLS
{
{ 1000000000;0;Container;
ContainerType=ContentArea }
{ 1000000001;1;Group ;
Name=General;
GroupType=Group }
{ 1000000003;2;Field ;
SourceExpr="Template Name" }
{ 1000000004;2;Field ;
SourceExpr="Batch Name";
TableRelation="Gen. Journal Batch" }
}
CODE
{
BEGIN
END.
}
}
Brian Rocatis
Senior NAV Developer
Elbek & Vejrup
Senior NAV Developer
Elbek & Vejrup
0
Comments
-
I noticed that, on the page, you have a table relation? Did you add that? Did you try and remove it.0
-
Henrik Helgesen wrote:I noticed that, on the page, you have a table relation? Did you add that? Did you try and remove it.
It makes no difference whatsoever, neither on the form nor on the page.Brian Rocatis
Senior NAV Developer
Elbek & Vejrup0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 322 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
