No Record exists in Table

rikku
Member Posts: 22
Hi,
I have created, a webpart in EP.
But if there is no record in the table,
i am unable to create a record through EP.
The message 'The filter that you applied did not find any matching records.'
is showing. Please help.
Thanks & Regards,
rikku
I have created, a webpart in EP.
But if there is no record in the table,
i am unable to create a record through EP.
The message 'The filter that you applied did not find any matching records.'
is showing. Please help.
Thanks & Regards,
rikku
0
Comments
-
Hi Rikku,
I think, If you have specified the Actions in NAV Emp web part then you will be able to create new records.
Because, if no any records in the table, then also, the action button will be present on the header in Sharepoint webpart. That will allow you to create new record.0 -
Hi,
I have provided Actions for the webpart.
When there is no records, the Actions are not showing.
Only the message 'The filter that you applied did not find any matching records.'
is showing.
Thanks in advance,
rikku0 -
Oh I am really very sorry. By mistake I send that reply.
I had also faced the same problem.
And I think that is the biggest Employee Portal Bug.
So many bugs in NAV Emp Portal.
If you are getting any sollution then please, post it on mibuso for knowledge sharing.0 -
This can be solved if we do some customization in
functions
GetLists
GetDetail
GetHeadLine
in the Codeunit 6816 (EP Read Data).
Comment the code for 'Check Number of Records'
in the above mentioned functions.
GetLists
...
...
...
// Check Number of Records
// IF NOT ErrorOccured THEN BEGIN
// IF RecordCount = 0 THEN BEGIN
// EncodeXML.AddErrors(XMLDocOutErrors,3,'','','');
// ErrorOccured := TRUE;
// END;
//END;
...
...
...
GetDetail
...
...
...
// Check Number of Records
//IF NOT ErrorOccured THEN BEGIN
// IF DetailRecordRef.COUNT = 0 THEN BEGIN
// EncodeXML.AddErrors(XMLDocOutErrors,3,'','','');
// ErrorOccured := TRUE;
// END;
//END;
...
...
...
GetHeadLine
...
...
...
// Check Number of Records
//IF NOT ErrorOccured THEN BEGIN
// IF HeadRecordRef.COUNT = 0 THEN BEGIN
// EncodeXML.AddErrors(XMLDocOutErrors,3,'','','');
// ErrorOccured := TRUE;
// END;
//END;
...
...
...0 -
Hi Rikku,
It's really a great sollution. =D> =D>
But, have you checked by providing the filters?
I mean if you comment that code then won't it effect to filtering process?
I think on filtering the data, it will not show the error even if it do not get any matching records.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