mibuso.com

Microsoft Business Solutions online community
It is currently Sun May 19, 2013 9:13 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 22 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: [Solved] Serial No. increnment issue in report (i.e Classic / RTC)
PostPosted: Fri Apr 20, 2012 7:37 pm 
Offline
Site Supporter

Joined: Mon Oct 06, 2008 2:05 pm
Posts: 241
Country: India (in)
I am trying to use the same, but the problem is the sr no. are not displayed correctly.

If there is one gap in the purchase line then the sr no. is not displayed correctly.

1 1001 Manual for Loudspeakers,Manual for Loudspeakers with

1 Stand for Loudspeakers LS-150

2 1002 Spike for LS-100

3 1003 Base speaker unit 15" 100W

I have tried many workarounds, but it does not work.

In india database there is a report id. 16593 which is an example of this issue..


Top
 Profile  
 
 Post subject: Re: Serial No. increnment issue in report (i.e Classic / RTC
PostPosted: Sat Apr 21, 2012 10:53 am 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Thu Sep 04, 2008 8:34 pm
Posts: 310
Location: Copenhagen
Country: Denmark (dk)
Love to help, but I don't have access to the India Database.

So you need to be more specific on what the issue is for us to help you.

/Claus Lundstrøm

_________________
Claus Lundstrøm | Senior Product Manager | Abakion.com
I'm blogging here:http://mibuso.com/blogs/clausl and used to blog here: http://blogs.msdn.com/nav


Top
 Profile  
 
 Post subject: Re: Serial No. increnment issue in report (i.e Classic / RTC
PostPosted: Sat Apr 21, 2012 6:46 pm 
Offline
Site Supporter

Joined: Mon Oct 06, 2008 2:05 pm
Posts: 241
Country: India (in)
The sr no. are not displayed correctly in a purchase order report, below is the example of how the report is displayed.

Sr No. Item Code Item Desc
1 1001 Manual for Loudspeakers,Manual for Loudspeakers with
1 Stand for Loudspeakers LS-150
2 1002 Spike for LS-100
3 1003 Base speaker unit 15" 100W
with extened warranty.

If there we enter description in second line of the purchase order then there is issue of displaying the serial no.

I have tried many workarounds, but it does not work (i.e. Check Item Code for blank in 2nd line,try to hide the 2nd sr no. RTC)


Top
 Profile  
 
 Post subject: Re: Serial No. increnment issue in report (i.e Classic / RTC
PostPosted: Sat Apr 21, 2012 6:57 pm 
Offline

Joined: Mon May 18, 2009 6:36 am
Posts: 792
Location: India
Country: India (in)
You need to increment serial no. when SalesInvoiceLine."No." is not equal to blank.(this is as per report no.16593 on integer1 dataitem where serial no. have been increment).
Hope this help you..

_________________
Vijay Gupta
Changing the code is last step. Try to change processes first...


Top
 Profile E-mail  
 
 Post subject: Re: Serial No. increnment issue in report (i.e Classic / RTC
PostPosted: Mon Apr 23, 2012 7:59 am 
Offline
Site Supporter

Joined: Mon Oct 06, 2008 2:05 pm
Posts: 241
Country: India (in)
Here is an good example of the excise invoice.
In the Posted Sales Invoice you can see that only 2 item are there & for 1st item the desc. is entered in line no. 10000,20000,30000 & 40000.
Where as for 2nd item there is only single desc.

In report the Sr No. is shown as 1,2,3,4,5 where as it should be shown as 1 & 2 only, cause the invoice is having only 2 items.


Attachments:
Excise Invoice.bmp
Excise Invoice.bmp [ 837.18 KiB | Viewed 902 times ]
Posted Sales Invoce..bmp
Posted Sales Invoce..bmp [ 839.02 KiB | Viewed 902 times ]
Top
 Profile  
 
 Post subject: Re: Serial No. increnment issue in report (i.e Classic / RTC
PostPosted: Mon Apr 23, 2012 8:30 am 
Offline
MVP Microsoft Dynamics NAV

Joined: Tue Sep 02, 2008 8:37 am
Posts: 4224
Location: New Delhi
Country: India (in)
Try
Code: Select all
IF SalesInvoiceLine."No." <> '' THEN
  SNo := SNo + 1;

_________________
-Mohana
http://mibuso.com/blogs/mohana
http://mohana-dynamicsnav.blogspot.in/


Top
 Profile  
 
 Post subject: Re: Serial No. increnment issue in report (i.e Classic / RTC
PostPosted: Mon Apr 23, 2012 9:57 am 
Offline
MVP Microsoft Dynamics NAV

Joined: Mon Dec 11, 2006 10:34 am
Posts: 2863
Location: Bergamo
Country: Italy (it)
mohana_cse06 wrote:
Try
Code: Select all
IF SalesInvoiceLine."No." <> '' THEN
  SNo := SNo + 1;

I don't know that report, but with this code, he will probably get something like

1
1
1
1
2

Isn't it? manish, IF this is not what you want, you can do:
a. use another variable to show the serial no. and clear the variable while looping the rows

Code: Select all
clear(SNoToShow);
IF (SalesInvoiceLine."No." <> '') AND (SalesInvoiceLine.type <> SalesInvoiceLine.type::" ") THEN BEGIN
  //I would add the condition on "type", too...in case they use extended texts.
  SNo := SNo + 1;
  SNoToShow := SNo;
END;


or (this is more funny), use the "hideduplicates" property of the rdlc report, on the textbox of serial no. (this must be done after applying mohana's code, obviously)...otherwise you won't have duplicates to remove :wink:

_________________
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog


Top
 Profile  
 
 Post subject: Re: Serial No. increnment issue in report (i.e Classic / RTC
PostPosted: Mon Apr 23, 2012 12:31 pm 
Offline

Joined: Mon Jul 28, 2008 2:37 pm
Posts: 673
Location: AT
Country: Austria (at)
manisharma31 wrote:
I am trying to use the same, but the problem is the sr no. are not displayed correctly.

If there is one gap in the purchase line then the sr no. is not displayed correctly.

1 1001 Manual for Loudspeakers,Manual for Loudspeakers with

1 Stand for Loudspeakers LS-150

2 1002 Spike for LS-100

3 1003 Base speaker unit 15" 100W

I have tried many workarounds, but it does not work.

In india database there is a report id. 16593 which is an example of this issue..


Considering all your passed exams under your signature I'm amazed that this represents such a problem that you are forced to post it on this forum. Next time do please stick to NAV naming rules and write "Line No.".


Top
 Profile  
 
 Post subject: Re: Serial No. increnment issue in report (i.e Classic / RTC
PostPosted: Mon Apr 23, 2012 2:17 pm 
Offline
Site Supporter

Joined: Mon Oct 06, 2008 2:05 pm
Posts: 241
Country: India (in)
This forum is not to test anyone of what he has achived, rather than to help others of their problems.

Looks you have not read all the reply posted here.


Top
 Profile  
 
 Post subject: Re: Serial No. increnment issue in report (i.e Classic / RTC
PostPosted: Mon Apr 23, 2012 3:32 pm 
Offline

Joined: Mon Jul 28, 2008 2:37 pm
Posts: 673
Location: AT
Country: Austria (at)
manisharma31 wrote:
This forum is not to test anyone of what he has achived, rather than to help others of their problems.
I agree, untill you don't expect others (even MVP's) to do basic programming tasks for you!
manisharma31 wrote:
Looks you have not read all the reply posted here.
I read enough to know how you managed to pass those exams...


Top
 Profile  
 
 Post subject: Re: Serial No. increnment issue in report (i.e Classic / RTC
PostPosted: Mon Apr 23, 2012 4:29 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Thu Jan 02, 2003 6:37 pm
Posts: 7931
Location: Howell, MI
Country: United States (us)
Let's link these: http://dynamicsuser.net/forums/t/39704.aspx

_________________
Daniel Rimmelzwaan
MVP - Dynamics NAV


Top
 Profile  
 
 Post subject: Re: Serial No. increnment issue in report (i.e Classic / RTC
PostPosted: Mon Apr 23, 2012 4:46 pm 
Offline

Joined: Mon May 18, 2009 6:36 am
Posts: 792
Location: India
Country: India (in)
#-o
:mrgreen:
\:D/

_________________
Vijay Gupta
Changing the code is last step. Try to change processes first...


Top
 Profile E-mail  
 
 Post subject: Re: Serial No. increnment issue in report (i.e Classic / RTC
PostPosted: Mon Apr 23, 2012 6:49 pm 
Offline
Site Supporter

Joined: Mon Oct 06, 2008 2:05 pm
Posts: 241
Country: India (in)
So you can surely help me out of the basic problem rhpnt then.


Top
 Profile  
 
 Post subject: Re: Serial No. increnment issue in report (i.e Classic / RTC
PostPosted: Mon Apr 23, 2012 6:54 pm 
Offline
Site Supporter

Joined: Mon Oct 06, 2008 2:05 pm
Posts: 241
Country: India (in)
@Belias

Hideduplicates is also not working, also tried with the visibility property also but no luck.


Top
 Profile  
 
 Post subject: Re: Serial No. increnment issue in report (i.e Classic / RTC
PostPosted: Tue Apr 24, 2012 7:28 am 
Offline
MVP Microsoft Dynamics NAV

Joined: Tue Sep 02, 2008 8:37 am
Posts: 4224
Location: New Delhi
Country: India (in)
You can try something like

Code: Select all
SNoTxt := '';
IF SalesInvoiceLine."No." <> '' THEN BEGIN
  IF SNoTxt <> FORMAT(SNo) THEN BEGIN
    SNo := SNo + 1;
    SNoTxt := FORMAT(SNo);
  END;
END;


Where SNoTxt is a text type variable
Assign SNoTxt in SourceExp

_________________
-Mohana
http://mibuso.com/blogs/mohana
http://mohana-dynamicsnav.blogspot.in/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Majestic-12 [Bot] and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to:  
cron