15,900,108 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 12974741 (Top 28 by date)
Member 12974741
11-Sep-19 9:15am
View
Sorry i am not getting. May i know what is your recommendation. i tried in google fu... tried few didnt work with jsp. thats why raised a question here thinking i can get some insights. Thanks
Member 12974741
19-Jun-17 10:53am
View
Thanks for the reply !
I did checked those....it didnt help, i somehow added the certification manually and ignored that error....but still it has 404 error when accessing the url thought its active..... do you have any idea
java.io.PrintWriter@28b4bb51|
: java.io.PrintWriter@28b4bb51|
httpURLConnection string 3: 404|
#java.io.FileNotFoundException: testurl(active)|
Member 12974741
17-Feb-17 23:55pm
View
This seems to be cool solution.... it makes things easier.. Appreciated Peter!!
Member 12974741
17-Feb-17 23:53pm
View
ah...got it...I think i missed previous time.. Thanks for that..Hope you are doing great!
Member 12974741
17-Feb-17 23:39pm
View
It helps...Thanks alot!!
Member 12974741
17-Feb-17 21:35pm
View
I did... the question part has same code... you were not able to see?
Member 12974741
5-Feb-17 1:36am
View
ohhh ok ok :)
Member 12974741
5-Feb-17 1:09am
View
(Hope no sarcasm :\ ) and magizhchi :) :) again..Thanks....you're master in coding !!
Member 12974741
5-Feb-17 1:03am
View
oh okay...bdb how did you guess tat i might be tamilian...(thinkingggg)
Member 12974741
5-Feb-17 0:58am
View
Deleted
ya... :)
Member 12974741
5-Feb-17 0:55am
View
Awesome.... you are amazing...!! This works.. Thanks a ton for all your help...
Member 12974741
5-Feb-17 0:29am
View
I hope you got wat i mean and didn't confuse you.. :)
Member 12974741
5-Feb-17 0:18am
View
if you see the output;data wed3 should come under column3(day3 header) and sat1 should be under day 6 header... If you see the results it works different....
Ideally, "day": 1, --> data should go under day1 header...
"day": 2--> day2 header....
Member 12974741
5-Feb-17 0:16am
View
Deleted
wed3 should come under coln 3(day3) and sat1 should be under day 6... If you see the results it works different....
Ideally, "day": 1, --> data should go under day1 header...
"day": 2--> day2 header....
Member 12974741
4-Feb-17 10:54am
View
ok sure...!!
Member 12974741
4-Feb-17 10:51am
View
I have webex... will that work?
Member 12974741
4-Feb-17 10:50am
View
Nope.I dont have....
Member 12974741
4-Feb-17 10:43am
View
Hi Karthik.... yes its different code i tried...but it fetches data to only coln1.
here is your code....https://jsfiddle.net/Thea123/oeevhh30/
To my understanding....it passes array[i] in loop and if record has to be placed in 3rd row in coln 3... instead... it checks in order coln1,coln2,coln3... and if coln1 row3 is empty it passes data to coln1 instead of coln3.....
Member 12974741
3-Feb-17 20:59pm
View
Hey Karthik... I was trying to modify your code....as I am in startup phase..I couldnt debug or proceed further...
I did tried different way...But I got stuck how to add data based on condition..can you please kindly check and see if you can provide me any suggestion?? Much Appreciate your help!!
http://jsfiddle.net/Thea123/x8uvxxjx/
Member 12974741
1-Feb-17 10:56am
View
ok Thanks for that !!
Member 12974741
1-Feb-17 0:39am
View
Thanks Karthik.... I still see the same output :( with above code...just run this code... Monday column fetching tuesday/saturday records also :(
https://gist.github.com/mahakT/7d62541a633f1e1464a4fa7e5ed4a5aa
Member 12974741
31-Jan-17 23:51pm
View
Array :https://gist.github.com/mahakT/df9632be8b8929197041460efd335ac8
1.(we can ignore "seq" field if not required)
2. I need to sort the Array.. and data should be fetched based on the start and end date sequence.... for your better understanding i have given in screenshot...https://snag.gy/wsjgTb.jpg
3.Expected output in table format from Array :https://snag.gy/S7YZD9.jpg
Please let me know if you need any more details..... Thanks
Member 12974741
31-Jan-17 23:42pm
View
Hi.... How to send a screenshot... as i couldnt paste in the question/comment section...
Member 12974741
31-Jan-17 23:41pm
View
Hi.... How to send a screenshot... as i couldnt paste in the question/comment section...
Member 12974741
31-Jan-17 22:29pm
View
Deleted
Thanks Karthik!
Member 12974741
31-Jan-17 22:04pm
View
I did nothing... Just added one more entry to array to the abive given code... your can see the output.... just sharing details for your reference...... var array = [{ "day": 1, "summary": "proge1" },
{ "day": 1, "summary": "proge2" },
{ "day": 1, "summary": "proge3" },
{ "day": 2, "summary": "Tues1" },
{ "day": 2, "summary": "Tues2" },
{ "day": 2, "summary": "Tues3" },
{ "day": 3, "summary": "Wed1" },
{ "day": 3, "summary": "Wed2" },
{ "day": 3, "summary": "Wed3 " },
{ "day": 4, "summary": "Thur1" },
{ "day": 4, "summary": "Thur2" },
{ "day": 5, "summary": "Fri1" },
{ "day": 6, "summary": "Sat1" },
{"day": 6, "summary": "Sat1" }];
$(function () {
var temp = array;
var uniqdays = [];
for (var i = 0; i < array.length; i++)
if (uniqdays.indexOf(array[i].day) == -1) uniqdays.push(array[i].day);
var maxAry = [];
for (var i = 0; i < uniqdays.length; i++) {
var tempary = [];
for (var j = 0; j < array.length; j++) {
if(array[j].day == uniqdays[i])
tempary.push(array[j].summary)
}
maxAry.push(tempary.length);
}
var maxValue = maxAry.sort().pop();
var $tbl = $('#tbl');
var $trhead = $('').appendTo($tbl);
for (var i = 0; i < uniqdays.length; i++) {
var day = uniqdays[i];
var $td = $('').appendTo($trhead);
$td.text('day' + day);
}
for (var i = 0; i < maxValue; i++) {
var $tr = $('').appendTo($tbl);
for (var j = 0; j < uniqdays.length; j++) {
var day = uniqdays[j];
for (var k = 0; k < temp.length; k++) {
if (temp[k].day == day && temp[k].summary != '') {
var $td = $('').appendTo($tr);
$td.text(temp[k].summary);
temp[k].summary = '';
break;
}
}
}
}
});
Member 12974741
31-Jan-17 21:41pm
View
please view this url in IE.....https://firstappth.mybluemix.net/
I used the above code... and just updated my array and you can see the output in above url.... Am i missing something here?
Member 12974741
31-Jan-17 14:01pm
View
you are awsm!! Thanks for that Karthik....I am trying to enhance the code with real data... but when i execute it shows some incorrect o/p... I think its based on td value passed....??? please suggest on this..
For more reference:
here is real array data :
Real Array : https://gist.github.com/mahakT/df9632be8b8929197041460efd335ac8
get : the sequecnce of data based on timing
Display in table format: this link shows data as per the code suggested by you.....https://firstappth.mybluemix.net/ ( but if you view.. column 1 has fetched colum 6 data as well.... not sure if that bec of td?)
This is the expected output in table....
Monday |Tuesday | Wednesday.....
-----------------------------------
Summary | Summary | Summary
4.00-4.45| 4.00-4.45 |4.00-4.45
---------------------------------
Summary | Summary |Summary
4.45-5.30 | 4.00-4.45 |4.00-4.45
table should show exact data as ics events(you can view the ics in calendar to see how exactly the output should luk like)... Array has the data from this ics....
https://calendar.google.com/calendar/ical/o8mfhn5drq7t875vosh3b5kdao%40group.calendar.google.com/public/basic.ics
Appreciate if you could provide your suggestion/thoughts...Thanks!!
Show More