Options

No Record exists in Table

rikkurikku Member Posts: 22
edited 2009-03-12 in Navision e-Commerce
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

Comments

  • Options
    Ravi_ThakkarRavi_Thakkar Member Posts: 392
    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.
    Ravi_Thakkar
    Ahmedabad, Gujarat, India
    E Mail : ravi.thakkar@hotmail.com
  • Options
    rikkurikku Member Posts: 22
    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,
    rikku
  • Options
    Ravi_ThakkarRavi_Thakkar Member Posts: 392
    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.
    :)
    Ravi_Thakkar
    Ahmedabad, Gujarat, India
    E Mail : ravi.thakkar@hotmail.com
  • Options
    rikkurikku Member Posts: 22
    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;


    ...
    ...
    ...
  • Options
    Ravi_ThakkarRavi_Thakkar Member Posts: 392
    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.
    Ravi_Thakkar
    Ahmedabad, Gujarat, India
    E Mail : ravi.thakkar@hotmail.com
Sign In or Register to comment.