Problem in table relation in customised tables
vyanku
Member Posts: 791
I create two tables.
1st table Student contains
student no. code 20
2nd table Book contains
book no. code 20
studentno code 20
Now when I am trying corelate these two tables by table relation property ,save the table.when I run that table .When I click on lookup button nothing is happend.
I am not able to understand where is the problem? ](*,)
What may be the problem? ](*,)
1st table Student contains
student no. code 20
2nd table Book contains
book no. code 20
studentno code 20
Now when I am trying corelate these two tables by table relation property ,save the table.when I run that table .When I click on lookup button nothing is happend.
I am not able to understand where is the problem? ](*,)
What may be the problem? ](*,)
0
Answers
-
vyanku wrote:I create two tables.
Now when I am trying corelate these two tables by table relation property ,save the table.when I run that table .When I click on lookup button nothing is happend.
I am not able to understand where is the problem? ](*,)
What may be the problem? ](*,)
Do you have lookup form for table student? And have this form declared as lookup in table student?
bles0 -
I have form for student and book also.Do you have lookup form for table student? And have this form declared as lookup in table student?
Why I should decleared this form as lookup in table student.?
Why I am not able to get the lookup in table instead of form?0 -
vyanku wrote:
I have form for student and book also.Do you have lookup form for table student? And have this form declared as lookup in table student?
Why I should decleared this form as lookup in table student.?
Why I am not able to get the lookup in table instead of form?
Having a form is not suficient. In table there is property LookupFormID. There you can set which form is used for lookup. Set this property,
bles0 -
You generally dont run the table to edit/ enter the data. You should use form instead of running table directly.0
-
You generally dont run the table to edit/ enter the data. You should use form instead of running table directly.
Yes ur right. But suppose when I insert a one field of vendorno in table and relate it by table relation.and when I run the table it suscessfully run and we can get the vendor no by lookup of vendorno. field in table
If it is applicable with vendor field in the table then it should be applicable with another customised table field.
Is it problem of customised table?0 -
What tablerelation does on lookup is running the looupform that is in the looupformid property on the table it is related to, like Bostjanl stated. Your last post makes no sense to me at all.0
-
vyanku wrote:Do you have lookup form for table student?
Why I should decleared this form as lookup in table student.?
Why I am not able to get the lookup in table instead of form?
If you see navision standard, E.g. Vendor Table and Currency Field lookup. when you run the table and lookup from currency, it will open form and not table . So, it means navision standard does not allow to lookup to another table directly. You need to create form for that.0 -
Thanks
It works for field having datatype code.
But now when there is field called
Account type having datatype option
In option property :-option strings :-customer,vendor,book
Now When i select customer the next field shows me customer no. on lookup button just like in payment journal form.
When I select vendor option the nest field shows me vendor no. on lookup button.
But when I select Book option I dont get the book no. on lookup button as book is new customised table. :-k
Now what can I do? Why I dont get the view by clicking lookup button?
I cant change the property lookup in the form of that table as its datatype is option not code. :-k
Is it means that it is problem of customised table? :-k0 -
When using option fields like that you need to change the tablerelation to the right table. Look in table 37 on the field No. You will see there is an IF statement ragerding tablerelations.0
-
I also write a case statement like
Account type::book THEN BEGIN book.get("Book no."); END;
But nothing happend.0 -
Nay one got this type of problem???? ](*,) ](*,) :-k0
-
As Mbad said
When using option fields like that you need to change the tablerelation to the right table. Look in table 37 on the field No. You will see there is an IF statement ragerding tablerelations.
This means that you must design your table select field account type view properties and drill down on the table relation and set your conditions there. :idea:0 -
Will u please explain breafly?0
-
Go to design the table that has the Account No. field in it
Click view properties and scroll down to TableRelation
Drill down on Value field and you should get
Condition Table Field Table Filter
Type=CONST(Customer) Customer
Type=CONST(Vendor) Vendor
Type=CONST(Book) Book
the last line here you should add ensur that on you Book table you have defined a LookupFormId
There should be no need to write code as you in your CASE statement
remove it.0 -
#-o
Thanks
Thats work
\:D/0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions