Emipro Technologies Pvt. Ltd.

Jul 31, 2017 11:58
I hope you will fix your issue soon.
Jul 31, 2017 11:57
Yes...
Jul 31, 2017 11:57
I hope you are clear now.
Jul 31, 2017 11:55
So first of all you need learn Javascript and jQuery .
Jul 31, 2017 11:55
Ohhh then it's harder...
Jul 31, 2017 11:54
Check this link
Jul 31, 2017 11:54
So you know about the jquery ?
Jul 31, 2017 11:54
Because i don't know how access in .net because i am only knows MVC 3 & MVC 4 arch.
Jul 31, 2017 11:52
If this thing is not possible then create one server controller/server method and call this thing using $.ajax.
Jul 31, 2017 11:51
Just do one thing create session variable if it's possible and then retrieve the value of the session variables.
Jul 31, 2017 11:50
ohhh
Jul 31, 2017 11:49
public ActionResult Create()
{
ViewBag.Message = "From GET";
return View();
}
[HttpPost]
public ActionResult Create(string someParamName)
{
ViewBag.Message = ViewBag.Message + "- Totally new value";
return View();
}
Jul 31, 2017 11:49
Server side code :
Jul 31, 2017 11:49
-1
Q: Maintaining ViewBag values while posting data

mmushtaqI have a logical question that needs to be answered!! Here is a scenario.. -In controller ViewBag.Name = "aaaa"; -In View @ViewBag.Name "In my controller, i have set value for ViewBag and retrieved value from ViewBag in VIew. Now in View, i have a button, which is posting some data to a ...

Jul 31, 2017 11:49
Please check this link & answer
Jul 31, 2017 11:46
Some issues in line : var latitudeDB = parseFloat(document.getElementById("<%= HF_Latitude.ClientID %>").value); i mean in this code <%= HF_Latitude.ClientID %> i think wrong way that you retrieving the values.
Jul 31, 2017 11:46
That's the issue from the server side just create viewBar object and in cshtml page get value like this way var temp_lat = '@ViewBag.lat';.
Jul 31, 2017 11:46
Ok so you are creating 2 hidden variables in 1 page and then after are you able to getting this variables value or not?
Jul 31, 2017 11:46
First of all i am not sure that how to get server side variable value in js file.I think you are using .net framework.So please can you store this value and just put those 2 variables in alert/console so you will get better idea. If you are getting values of lat & lng then are you getting any error in console ?
 
Jul 26, 2017 05:42
Then first of all you need to store each and every data into array and then you need to <name_of_array>.sort() Here is the link : w3schools.com/jsref/tryit.asp?filename=tryjsref_sort4
Jul 26, 2017 04:45
And then you just need to compare both of the dates like.
if(startDate1 == startDate2 ) // will return you true or false.
Jul 26, 2017 04:44
Using this code get last six month from current date.
var now = new Date();
var sixMonthsFromNow = new Date(now.setMonth(now.getMonth() - 6));
Jul 26, 2017 04:37
For that you need to use javascript date object.Here you just need to increment is_active_user if date is <= 6 months.
Jul 26, 2017 04:37
You just need to this thing in <body> part <div class="div-output"></div> and in jQuery you just need to use (".div-output").html("number_of_user ==> "+number_of_user +" number_of_active_user ==> "+ number_of_active_user +" number_of_active_men ==> "+ number_of_active_men +" number_of_active_women ==> "+ number_of_active_women). So it will set all the console.log data in div and one more thing is html() will clear your previous result. So instead of the html() you also used append() both will work. Append add data without clearing old one.
Jul 26, 2017 04:37
This link is not working well in jsfiddle because in fiddle we need to use https instead of the http.And i did only jQuery/javascript code nothing else.
 
Jul 21, 2017 14:34
By the way you have asked good question.
Jul 21, 2017 14:30
12
Q: Python Dictionary DataStructure which method d[] or d.get()?

Jedi ShadowWhile Using Python Dictionary DataStructure (which contains key-value pair) if i want to retrieve some value from my Dictionary i have two options d[''] and g.get('key') so i am confused now which is better and Why ?? I understand both some way but when it comes to memory consumption and evaluati...

Jul 21, 2017 14:29
it's pure python dictionary, vals is just a name of dictionary
Jul 21, 2017 14:28
great (y)
Jul 21, 2017 14:24
use vals.get method instead of vals[]
Jul 21, 2017 14:23
Ok now just replace this line in write method vals['Amount_entered'] to vals.get('Amount_entered',False)
Jul 21, 2017 14:21
because you can not access that field in vals['Amount_entered'] because that key won't be there
Jul 21, 2017 14:21
comment out write method first I said already :)
Jul 21, 2017 14:17
it might works
Jul 21, 2017 14:17
Comment out write method and try by just set field readonly.
Jul 21, 2017 14:17
Add write method code or you can do one thing set that field readonly, be default it will excluded from the vals so it won't called write method.
Jul 21, 2017 14:17
You need to override write method and need to add your custom logic to skip process if the field gets updated.
Jul 21, 2017 14:17
Then it's not possible because if you will update any field's value then it must call write method.
 
Jul 17, 2017 14:31
Okay so finally can you please conclude what's missing things you want from my side? Reason and solution in view ?
Jul 17, 2017 14:29
I mean the view for which you have asked that question
Jul 17, 2017 14:28
Okay so that's new view is your report ?
Jul 17, 2017 14:22
Actually I am really not getting your workflow, so suggest me what should I update ?
Jul 17, 2017 14:18
Might be I am wrong because I am not totally aware with your business workflow process
Jul 17, 2017 14:17
State might be fields.selection (same as like sales order)
Jul 17, 2017 14:17
while user set Draft to confirm then reason and solution should be specify
Jul 17, 2017 14:16
Just to put state (raft, Confirmed, Done)
Jul 17, 2017 14:15
pending accounts that you have created new one ? I think you can manage it from order's state
Jul 17, 2017 14:11
what's actually pending accounts ?