Job Journal Posting

Hello Expert ,

I have one query i have to certain condition for posting , i have made one Boolean field (approved) and i want posting according to this here the example ,

suppose there are 5 line in Job journal in which 3 line which are approved i want to post only these 3 three line and 2 line remain there can any one help me how to achieve this.

Regards,

Shailesh

What did you try?

Mohan Thanks for the reply.

I have try to put condition but its not working, thats why asking how to acheive this.

Regards,

Shailesh

Can you show us what condition did you write?

Codeunit 202
Code() Function

JobJnline2.setrange(JobJnLine2.Approved,Ture);
IF JobJnline2. Findfirst then
WITH JObJnlLine
{
code from base
}
else
WITH JObJnlLine
{
code from base
}

This is the code

Why dont you set filter on Form P&ost-onpush button and send the record set to codeunit…

Mohan can you give example to me how to set this.

Regards,

Shailesh

i have done this but it not working