Resource capacity

NavDev
Member Posts: 21
hi experts,
I have to make Navision's resource capacity form (#213) a bit more informative by not only showing the quantity of possible capacity but also the planned job(s) for the particular date. It should look somewhat like this:
Resource.........01.01.2005.........02.01.2005.........03.05.2005 ...
res. A...............0 of 8....................job A................0 of 8
res. B............... job B...................0 of 8................job c
...
(where '0 of 8' - for example - means 0 hours of possible 8 projected)
the job has to be retrieved from table #211 job budget entry.
since I am an absolute rookie in FlowFields, I need basic help to get things started. is there anyone out there who has an idea? how can I integrate such a textual information in the rightmost half of a matrix box?
any help would be very much appreciated. thanks in advance.
Michael
I have to make Navision's resource capacity form (#213) a bit more informative by not only showing the quantity of possible capacity but also the planned job(s) for the particular date. It should look somewhat like this:
Resource.........01.01.2005.........02.01.2005.........03.05.2005 ...
res. A...............0 of 8....................job A................0 of 8
res. B............... job B...................0 of 8................job c
...
(where '0 of 8' - for example - means 0 hours of possible 8 projected)
the job has to be retrieved from table #211 job budget entry.
since I am an absolute rookie in FlowFields, I need basic help to get things started. is there anyone out there who has an idea? how can I integrate such a textual information in the rightmost half of a matrix box?
any help would be very much appreciated. thanks in advance.
Michael
0
Comments
-
Create a function with input parameters the record of the row and the record of the column and as return-value a text.
Put this function in the SourceExpr of the right part of the matrix-box.
In the function you have in the parameters the cross of the 2 records on which it has to create a return-value. So you can calculate your return-value and exit the function. This value will be shown in the right part of the matrix-box.
It is also possible to use multiple lines in a cell. In this case you need to set property "MultiLine" to Yes in the properties of the right part of the matrix.
In the function you have to create a variable that has a backslash (= \ ) to use the multiLine.
In case you need to change the values in the cells. The function-method does not work.
In this case (you can use this system also for show-only), you must create a global variable.
Put this global variable in the SourceExpr of the right part of the matrix-box.
In the "OnAfterGetRecord()"-trigger (or better in the "OnFormat"-trigger of the cell to avoid an Navision-refresh bug (something like : Text := 'my value')) of the tablebox, you must calculate your textvariable.
-In the "OnValidate"-trigger you can validate the user-input and write it to the DB. Better not use "OnAfterValidate"-trigger, because if an error happens in this, the form is closed.
PS : to acces the record of the column : CurrForm."MatrixBox Name".MatrixRec."Field name" (you have to give a name to the matrix-box)Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions