mibuso.com

Microsoft Business Solutions online community
It is currently Wed May 22, 2013 11:17 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: How to group a report from a variable value in navision
PostPosted: Tue Feb 14, 2012 7:41 am 
Offline

Joined: Tue Dec 13, 2011 6:22 am
Posts: 24
Country: Sri Lanka (lk)
Hi!
I want to group a report from variable value. Is there anyone who knows how to do it.

This is my task.
I have created a report using the Prod. Order Line table and I have extracted the Volume field from the Item using GET, this I have assigned it to a variable GTextVolume. These volume values contains volumes of the specified items (750,350,150 etc...).
Now when the report is running I want to group the reports records from this field, GTextVolume.
Ex:
150
    ProdOr1
    ProdOr2
    ProdOr3
    ProdOr4
    ProdOr5
750
    ProdOr6
    ProdOr7
    ProdOr8
    ProdOr9
    ProdOr10

Is this possible? How do I specify a key?

_________________
Have a Nice Day!


Top
 Profile  
 
 Post subject: Re: How to group a report from a variable value in navision
PostPosted: Tue Feb 14, 2012 8:01 am 
Offline

Joined: Mon Oct 24, 2011 2:58 am
Posts: 142
Location: Tokyo
Country: Japan (jp)
Hint : Use the integer dataitem.

_________________
Microsoft Certified IT Professional for Microsoft Dynamics NAV

Just a happy frood who knows where his towel is


Top
 Profile E-mail  
 
 Post subject: Re: How to group a report from a variable value in navision
PostPosted: Tue Feb 14, 2012 8:53 am 
Offline

Joined: Sat Sep 05, 2009 11:10 am
Posts: 51
Country: Sri Lanka (lk)
Take a Temporary Record variable and using Integer DataItem and group the data.

Check the report 113.


Top
 Profile E-mail  
 
 Post subject: Re: How to group a report from a variable value in navision
PostPosted: Tue Feb 14, 2012 10:28 am 
Offline

Joined: Tue Dec 13, 2011 6:22 am
Posts: 24
Country: Sri Lanka (lk)
dans wrote:
Hint : Use the integer dataitem.


Thanks.. I have googled a lot and have not found any way to figure out how to use the integer table. I read once that it is used for looping. But at this instance how do you make use of it.
Do you tie the Volume variable to the Integer data item and loop?
I cannot understand how I should go with this. I started working with Navision only in January. :)

_________________
Have a Nice Day!


Top
 Profile  
 
 Post subject: Re: How to group a report from a variable value in navision
PostPosted: Tue Feb 14, 2012 10:34 am 
Offline

Joined: Sat Sep 05, 2009 11:10 am
Posts: 51
Country: Sri Lanka (lk)
Check the 113 Report - DataItem Integer - Code on OnPreDataItem() and OnAfterGetRecord().

See Below.

Integer - OnPreDataItem()

ValueEntryBuffer.RESET;
SETRANGE(Number, 1, ValueEntryBuffer.COUNT);

Integer - OnAfterGetRecord()
IF Number = 1 THEN
ValueEntryBuffer.FIND('-')
ELSE
ValueEntryBuffer.NEXT;


Top
 Profile E-mail  
 
 Post subject: Re: How to group a report from a variable value in navision
PostPosted: Tue Feb 14, 2012 10:35 am 
Offline

Joined: Tue Dec 13, 2011 6:22 am
Posts: 24
Country: Sri Lanka (lk)
sameerar wrote:
Take a Temporary Record variable and using Integer DataItem and group the data.

Check the report 113.



Thanks how do you do this? How do you group with the Integer Data item.?

_________________
Have a Nice Day!


Top
 Profile  
 
 Post subject: Re: How to group a report from a variable value in navision
PostPosted: Tue Feb 14, 2012 10:49 am 
Offline

Joined: Tue Dec 13, 2011 6:22 am
Posts: 24
Country: Sri Lanka (lk)
sameerar wrote:
Check the 113 Report - DataItem Integer - Code on OnPreDataItem() and OnAfterGetRecord().

See Below.


Ok :)


Quote:
Integer - OnPreDataItem()

ValueEntryBuffer.RESET;
SETRANGE(Number, 1, ValueEntryBuffer.COUNT);


We reset the VE variable and create a filter. What does this do? OK :)Sets the Number's range from 1 to the amount of records in VE.


Quote:
Integer - OnAfterGetRecord()
IF Number = 1 THEN
ValueEntryBuffer.FIND('-')
ELSE
ValueEntryBuffer.NEXT;


What do we do here? How do we do the calculation?

_________________
Have a Nice Day!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 8 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: