Luke Zechariah

Ranch Hand
+ Follow
since Sep 27, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Luke Zechariah


Hello I got a similar question in case I want all the elements escrowItems[].disbAmount in an array, how do I access it in javaScript? I have been searching for this answer since long, please help.

4 years ago
I have the following JSP code which renders the HTML page as follows.  In Javascript or JQuery, I want to perform certain manipulations on the checkboxes that are indexed and it is not working. Please help.


JSP Code:


The following Html is rendered.


I want to perform operations on "examCheckResult [ ]"  array, how to call it in javascript to perform the below operations. It is working on certain local machines and not on the WebSphere server.



4 years ago

I have a JSP page, I am trying access the examCheckResult.rowChecked array of values in my Javascript, how do I access them? None of these trials seems to work, my goal is to check the property="examinerAvailabilityCheckbox"  when the property="availability" = "Yes" on loading the page






Here is the JavaScript function


4 years ago
JSP

Norm, I did not get any errors. Nothing on the logs the excel file does not open on client PC? Not sure the deal, the folder has all the sharing permissions on the server.
6 years ago

What I am trying to achieve is the server saves a file on the windows server machine in the "\\serv123\Reports\report_feb_2_timestamp.xlsx"

On the client machine when the user clicks the button "Export to Excel", it will create this file and have open on the client's machine.

This program works fine if I run the code and server runs on localhost although the file saves on the remote server. The file opens fine on my pc using the default application that is Excel.

But does not work if the code is run on the remote server and file saves on the same machine.

6 years ago

Thanks Norm and Paul for your replies.

Ok sure my problem is when I am assigning the workload let's say the first caseClaim, it iterates through the list of examiners and assigns them to the last one. But I want to assign it to the first examiner and break. I could add a break statement in the inside for-loop.

But then when the second caseClaim comes again it gets assigned to the first examiner and breaks instead of the second one. Is there a way to fix this.

Here is DTO for CaseClaim



Here is the DTO for Examiners
6 years ago

I am asking if it could be coded using Hashmap or any such way to fix my problem.
6 years ago

I want to assign Cases to a list of Adjudicators. I have three lists:

Cases List
Adjudicators List
Empty list to which assigned cases would be added. This list would be used at other places in the program.

Requirements: Each CaseClaim list is assigned to each Adjudicator.   Each CaseClaim list can contain one claim or multiple claims for the same person.
Scenario 1:
If there are 7 CaseClaims and 3 adjudicators
First caseClaim list will be assigned to the first adjudicator
Second caseClaim list will be assigned to the Second adjudicator
Third caseClaim list will be assigned to the third adjudicator

Now the Fourth caseClaim list will be assigned to the first adjudicator
Fifth caseClaim list will be assigned to the Second adjudicator
Sixth caseClaim list will be assigned to the third adjudicator

Seventh caseClaim list will be assigned to the first adjudicator

Scenario 2:
If there are 2 CaseClaims and 5 adjudicators
First caseClaim list will be assigned to the first adjudicator
Second caseClaim list will be assigned to the Second adjudicator


Here is the code:



Thank you.
6 years ago

I got another question suppose I have list of case types. I want to rearrange the items in the Arraylist, Here are the rules:

C1 is processed first
then A1,
then B1,
then D1.

But the current order stored in the list is as follows: A1, B1, C1, D1.



Output prints [C1, A1, B1, D1] as desired.    Is there a better way than this using Hasp Map instead of this recursive thing.


6 years ago
There was typo in my previous posting for Item#3:  

3. I cannot assign all cases to one examiner who workload is below average but assign one at a time and  then come back give them again.
6 years ago
Thank you Carey and Stephan.  I have another question, I am trying to assign examiners to the list of Cases.

Requirements:
1. I have to assign each case to each examiner whose workload is below average workload, one case at a time.
2. If two cases have the same SSN then both cases should be assigned to the same examiner.
3. I cannot assign all cases to one case who workload is below average but assign one at a time and  then come back give them again.


For eg: lets say we have 10 cases with different SSNs and three examiners.
Case 1, 2, 3 should be given to Ex 1, 2, 3 respectively
Case 4, 5, 6 should be given to Ex 1, 2, 3 respectively
Case 7, 8, 9 should be given to Ex 1, 2, 3 respectively
Case 10 to Ex 1.

Here is the code





CaseAllocation.java







6 years ago

Thank you Carey, just a thought since there are 2 for loops so my time complexity is O(n*N), but is there way we could decrease it?

And Tobias thank you for your suggestion. I tried your code, I am not using Java 8, so "s ->" is showing compile time error? If I had Java 8, it would not right?

6 years ago

Thank you Carey, glad that you are understanding better than what I really want.

It worked !!  One more question how to iterate a map. Is this right?



6 years ago

Thank you Carey, but that still does not fix my problem. Because

1. If I use SSN as the Key then since I will be having more the 2 objects with the same key SSN, the first object will replaced by the second object when we put the second object using the same key.
2. Ok I can make up a SSN+something unique as the key, still how can I get the Cases with the same SSN



6 years ago
Thank you Carey, I understand the setXXX part and the coding. But that does not answer my problem of how to get the Case objects having the same SSN or am I missing something?
6 years ago