Run Payment Journal Page

Question Status

Verified
Saravanan Ilango asked a question on 13 May 2018 8:36 PM

Hi All,

I'm working on a customization where I need to run the Payment Journal page filtering for a specific Journal Template Name and Journal Batch Name.

I'm unable the page like any other page. Is there any specific format to run it, irrespective of the triggering region like Table, Codeunit, Page.

Kindly seek your valuable inputs.

Thanks.

Reply
Verified Answer
Amol Salvi responded on 14 May 2018 1:43 AM

See how standard NAV does it when you different journal batch name.

Reply
Suggested Answer
RockWith NAV responded on 14 May 2018 6:41 AM

Yes as Amol Suggested please take help and try to understand how standard NAV does. This would be the best Approach!! 

Reply
Suggested Answer
Chris D'silva responded on 15 May 2018 7:09 AM

Hi,

Record.SETRANGE(Journal Temp Name,'your journal temp Name');

Record.SETRANGE(Journal Batch Name,'your journal batchName');

IF Record.FINDFIRST then BEGIN

//your code

END;

Reply
Saravanan Ilango responded on 16 May 2018 8:36 PM

Thanks Amol and all,

The Journal Page is filtered by the following Codeunit function from the General Journal Batch and it was able to do the selection and run the page.

GenJnlManagement.TemplateSelectionFromBatch(Rec);

Reply
Verified Answer
Amol Salvi responded on 14 May 2018 1:43 AM

See how standard NAV does it when you different journal batch name.

Reply
Suggested Answer
RockWith NAV responded on 14 May 2018 6:41 AM

Yes as Amol Suggested please take help and try to understand how standard NAV does. This would be the best Approach!! 

Reply
Suggested Answer
Chris D'silva responded on 15 May 2018 7:09 AM

Hi,

Record.SETRANGE(Journal Temp Name,'your journal temp Name');

Record.SETRANGE(Journal Batch Name,'your journal batchName');

IF Record.FINDFIRST then BEGIN

//your code

END;

Reply