0 Replies - 5239 Views - Last Post: 20 October 2011 - 04:54 AM

#1 suunker  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 15-September 11

MVC 2, Client side alternatives

Posted 20 October 2011 - 04:54 AM

Hey,

I'm new to MVC 2, and I've gotten this problem. The user should be able to choose a report from a dropdownlist. Depending on what report was selected, different inputboxes are going to be generated on the page(all reports needs different parameters). The table in the database looks like this:

ReportName ReportPeriod PM FromShopMandatory FromShopOptional Duplicate store Y N N N
Invalid currency Y N N N
All other data errors Y N N N N N N
Manual notas per pm Y Y N N N N N
Manual notas per shop Y Y N N N N N
Store in wrong country Y N N N N N N
Audit ECSO Y Y N N N N N
Audit ICSO Y Y N N N N N

So right now, what I pass from the controller to the view is this model(the table). I dont want to go back to the server to get the parameters
attached to the report. Could I do all this on the clientside? Is there some way to convert the model passed from the server to a javascript
dataset(or something like that, not really used to javascript) on page load?

Thank you in advance
Suunker

The database again:

ReportName Period PN FromShopMandatory
Duplicate store Y N N
Invalid currency Y N N
All other data errors Y N N
Manual notas per pm Y Y N
Manual notas per shop Y Y N
Store in wrong country Y N N

Is This A Good Question/Topic? 0
  • +

Page 1 of 1