Running Links Card from C/Side v5

Toddy_Boy
Member Posts: 232
Anyone know how I can run the Links card from within C/Side - the equivalent of clicking the paperclip icon on the toolbar?
The idea is that a guy on will scan a barcode on a new card, this will then get the item from the barcode and show the Links for that item. As Navision already has the Links card then there's no point reinventing the wheel.
I can't find this card anywhere, theres no link to it from the Record Links table and I've exported all the objects to text files and searched them but come up with nothing.
The idea is that a guy on will scan a barcode on a new card, this will then get the item from the barcode and show the Links for that item. As Navision already has the Links card then there's no point reinventing the wheel.
I can't find this card anywhere, theres no link to it from the Record Links table and I've exported all the objects to text files and searched them but come up with nothing.

Life is for enjoying ... if you find yourself frowning you're doing something wrong
0
Answers
-
This form is not part of NAV objects you can manage. I recommend to create own form and use it. You just needs to base it on the correct table and fill correctly the PK (or filter it correctly).0
-
Indeed.
Just create a new form on table 2000000068 (Record Links).
The link is going to be a problem.
You should use the field "Record ID", and that's rather generic. For a recordlink to customer table, the value looks something like "Customer: K04-00001", for an Item Variant: "Item Variant: IT001 ADV,TEST".
So, it starts with the table, followed by the values of the primary key.
So, to open your custom form, just concatenate the right values (table name + ": " + rec.Keyfield1 + rec.Keyfield2), and filter on this... .
Make any sense?0 -
Waldo wrote:Indeed.
Just create a new form on table 2000000068 (Record Links).
The link is going to be a problem.
You should use the field "Record ID", and that's rather generic. For a recordlink to customer table, the value looks something like "Customer: K04-00001", for an Item Variant: "Item Variant: IT001 ADV,TEST".
So, it starts with the table, followed by the values of the primary key.
So, to open your custom form, just concatenate the right values (table name + ": " + rec.Keyfield1 + rec.Keyfield2), and filter on this... .
Make any sense?
It is much easier:
You just needs recordref for the record...MyRecordRef.GETTABLE(MyRecord); RecordLink.SETRANGE("Record ID",MyRecordRef.RECORDID); MyRecordRef.Close;
0 -
Thanks for the advice, apparently it is impossible to call the new links feature from within c/side so I worked around it.Life is for enjoying ... if you find yourself frowning you're doing something wrong0
-
kine wrote:Waldo wrote:Indeed.
Just create a new form on table 2000000068 (Record Links).
The link is going to be a problem.
You should use the field "Record ID", and that's rather generic. For a recordlink to customer table, the value looks something like "Customer: K04-00001", for an Item Variant: "Item Variant: IT001 ADV,TEST".
So, it starts with the table, followed by the values of the primary key.
So, to open your custom form, just concatenate the right values (table name + ": " + rec.Keyfield1 + rec.Keyfield2), and filter on this... .
Make any sense?
It is much easier:
You just needs recordref for the record...MyRecordRef.GETTABLE(MyRecord); RecordLink.SETRANGE("Record ID",MyRecordRef.RECORDID); MyRecordRef.Close;
Thank you for the code, I had a similar problem but couldn't solve it with SETRANGE, I had to use SETFILTER to make it to work well.
I had to code:
MyRecordRef.GETTABLE(MyRecord);
RecordLink.SETFILTER("Record ID",FORMAT(MyRecordRef.RECORDID));
MyRecordRef.Close;
I don't know why, with setrange didn't filter the Recordlink table properly.0
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
- 320 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