SBX - Search With Button

SBX - Forum Post Title

Run Payment Journal Page

Microsoft Dynamics NAV Forum

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

Question Status

Verified

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
Amol Salvi responded on 14 May 2018 1:43 AM
My Badges
Verified Answer

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

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

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

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

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
My Badges

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
Amol Salvi responded on 14 May 2018 1:43 AM
My Badges
Verified Answer

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

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

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

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

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

SBX - Two Col Forum

SBX - Migrated JS