Two dimensional Arrays in Java - multidimensional-array

Write a program for warehouse, which can store the following two types of data
• a unique number to identify an individual box
• the length, width and height of every individual box.
The box number which has been already assigned, should not be assigned again.
The programme should store the data for individual box while programme execution. It should store a maximum of 75 boxes.
The programme should offer undermentioned functions.
• Accepting new box through user input
• deleting the data of existing box
• change in the data of existing box
• display the data of the existing box
• one listing function, which should be able to display the data of all the existing boxes.
Deleting, changing and displaying of particular boxes could be done through the particular box number.
The following are the requirements for the implementation of code.
• Save the data in a 2-dimensional array. Create this array in the main method and no use of class variable for that array.
• Make sure while accessing the data of individual boxes, array length should be taken into account.
• Create a separate method for accepting new box through user input, deleting the data of existing box, change in the data of existing box, display the data of the existing box, and listing of all data of the boxes.
• Changing of data, deleting of data, and displaying of data should be possible only for assigned boxes.
• In the main method create an option to choose the individual function of the warehouse.

Related

Creating data source in Tableau

While creating data source in Tableau I want to choose 20 fields out of 100 fields from the table? How to select only 20 fields from the table?
Hide fields you don't want to use. That is the most efficient approach. Tableau will then leave those fields out of the select clause in any queries and exclude those fields from any extracts.
Here is one way to hide fields.
Connect to the data source and stay in the data connection pane
Switch to list view to see the fields listed one per row (for convenience) by clicking the icon to the left of the sort fields switch
Select the fields you don't wish to use, multiple selection is useful here
Right click or use the caret menu (little black triangle) to hide those fields
P.S. Tableau will always leave fields out of the select statement that you don't reference (i.e. don't put on a shelf). So if you are using a live connection instead of an extract, hiding fields can help reduce the number of fields you have to look at on the data pane, but isn't necessary to improve performance. For extracts, hiding fields can reduce the size of the extract and the time to refresh it.
You might think could help performance by writing custom SQL to only request a subset of the columns, but you would most likely be hurting performance instead by defeating the query optimization that Tableau performs.

Pentaho Report Grouping & Hide/Show Elements

I am using Pentaho Report Designer & BI server 5.0.1.
I'm having a report like,
I need to show insurance coverage details and risk details under that coverage for an insured( one insured can have many coverages and each coverage can have many risks).
We are having 20 different coverages and each having different elements and different risk details.
I thought of using three groups with
Insured at Group1
--> Coverage Details at Group2
--> Risk Details at Group3
my doubt is,
can we show different elements in Group2 based on coverage type?
can we done this using groups or do we need to use sub reports for each coverage type? not sure what will be suitable for my requirement?
I need to conditionally hide/show columns, but 'invisibleConsumesSpace' property is not working in PRD 5.0.1. need some alternative for that.
The invisible consumes space property must be set on the band that contains the element. It governs how the band interprets the visible flag of its clients.
If all your data is contained in one result-set, then the normal way of showing different record types is via using a conditional visibility function to show/hide the appropriate elements.
You can find an example of that in "Income statement" sample, but here is the general approach:
(1) Set your details- and other band that should display multiple record types to layout "block".
(2) Add a sub-band for each record type.
(3) On each subband, add a formula (green plus on the styles) to the "visible" style element that returns true if the record should be shown, and false otherwise.
Then simply fill in your elements for each band.
Note that this method does not easily allow you to change the grouping within this structure. If you need different group configuration based on the record type, you might find it easier to use subreport.

Table for all companies

I need my conversion table (we integrate data from other system where their values mean another thing in our AX instance) to be encompassing all companies.
When I deploy the project, I'll upload that table's data through an Excel import but I don't want to do it for all 5 of our companies.
I know when code runs as Admin, it fetches data from tables regardless of company (unless you specify so in the where clause) but I want standard users to see the table's data regardless of the company they are in when they run the code.
Is this possible ?
Thanks.
Yes, there s a property on tables called SaveDataPerCompany. The default is yes but if you change it to no, then essentially the DataAreaId field is no longer applicable and the same data will be seen in all companies. You change the property by finding the table in the AOT (e.g Data Dictionary > Tables) and right-clicking it and choosing Properties towards the bottom.

Random Colors populated for each box

I am working on a MVC 4 Project and my view renders a table with multiple rows and columns based on data passed my model. I want to populate each box with different color. It needs to be random, I do not want to keep an array of colors as number of fields in table may vary.

Flex: DataGrid with dynamic columns with data from multiple DB tables

Introduction: I'm using java, oracle, flex, blazeDS etc. The part of the DB that is relevant to the task i am trying to accomplish is illustrated in the image below:
The Task table will also have a field called enabled , which i forgot in the figure below :) This field is used to enable some of the tasks based on various criteria, when an admin user presses a "Generate task list" button in the GUI.
Based on this generation of the task list, the users in the system should see a grid as the one displayed in the figure below :
This task list should display all the enabled task as illustrated above. The first three columns are retrived from the Task table in the DB, while the next columns(Column_4....Column_N) are generated based on the number of users in the User table. These columns should display the users alias. Each user is part of a UserGroup(Group), which i will model in either a separate table or in the User table itself, as illustrated in figure 1. The Numbers in the grid are based on the Time field in the Task_User table, while the first row below the users shows the sum of the times for each user.
Question: Im still learning Flex, and looking for every help i can get on accomplishing my goal :) I figure i have to implement a datagrid with dynamic columns. But how will the dataprovider work in this scenario? For each enabled taskid the grid has to fill the right user columns with time values. Any tips/help would be much appreciated! It is also important that loading this grid doesnt take to long :)
Is it possible to get horizontal and vertical text in the grid(like shown above)?

Resources