I have created new LeaveMaster table in Axapta. please let me know how can i create number sequence of LeaveID. please help me. Thank you.
There's an article on MSDN that explains how to create your own custom number sequence. If you want to use an existing number sequence, use the NumberSeq class by calling NumberSeq::newGetNum() or NumberSeq::newGetNumFromCode().
Related
I'm working on a report that I need to put row number in records but it must be reset on each GroupHeaderBand.
I've checked Demo designer, but in those report has been used nested Business Objects. I should say I have just one Business Object which has been grouped by one column.
I put {Line Through} but it doesnt reset per GroupHeaderBand.
Is there anyone who wants help me??
You should use the {Line} system variable. It will reset the numbering for each group.
Use GroupLine in System Variables
Can anyone tell me which method to put a Query Range into for a class which is batchable?
I have a sample batch class, which runs fine. It retrieves all the records in the Sales Table. I know that I need to add a QueryBuildRange object somewhere, then set the value of the range to a particular value (e.g. Sales ID = 00123456), but I'm not sure what method to put it in (main? Run? QueryRun? InitQuery?)
Thanks for your help!
It depends on what you're wanting to do, but in AX 2009 for batch, you can look at InventCountCreate_Base for an example of how Microsoft does it.
Specifically these two methods:
\Classes\InventCountCreate_Base\new
\Classes\InventCountCreate_Base\initQueryRun
Microsoft does it several different ways. You can see an alternative method in WMSShipmentReservationBatch in these two methods:
\Classes\WMSShipmentReservationBatch\main
\Classes\WMSShipmentReservationBatch\buildQueryRun
I need to count gender column using conditions like state ,male,female, prefercources. how to write query in spring?I know to fetch data from data base using mapper class but here i only need to count .please help me. thanks in advance.
DataSet is said to be a collection of one or more DataTable objects.
Is it possible to use an array of DataTable objects?
If yes, then why use a DataSet? Are there any advantages?
Please help!
A DataSet has some extra properties rather than a simple Array of DataTable. For instance, it is serializable.
You should always stick to existing .NET classes rather than inventing new ones.
In an object oriented language, people preferred to use an object rather than an array. It's more intuitive for anyone reading your code if you use DataSet.Datatable(TheTableName). You can briefly describe what's inside of that table with the table name. By contrast, creating an array of tables is not a good idea. Take a look at this code: DataTableArray(0) = MyDataTable . The next time if you tried to find MyDataTable, it's not possible for anyone who's reading your code to remember that MyDataTable is restored in DataTableArray with an index of 0. This concept is also applied in the concept of LINQ.
Please take a look at this page. MSDN helps.
https://msdn.microsoft.com/zh-tw/library/bb397897.aspx
Is it possible to customize the row group header in a datagrid ?
This might help you:
http://leeontech.wordpress.com/2010/02/01/summary-row-in-datagrid/
Even if you're not looking for the summary information, having the ability to set a custom value for the group name is helpful in a number of situations.