logo

Warning: The forum is now for consultation only. Please use GitHub Discussions to post any questions or comments.


Welcome Guest ! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
alhadrusi  
#1 Posted : Tuesday, January 23, 2018 9:19:35 AM(UTC)
alhadrusi

Rank: Newbie

Groups: Registered
Joined: 1/23/2018(UTC)
Posts: 0
Jordan
Location: jordan

hello there ,

How I can pass data between two models , reason for that I want a model for totals and model for details so i can calculate the average as example ?

epf  
#2 Posted : Tuesday, January 23, 2018 9:45:59 AM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 206 time(s) in 199 post(s)
Well, if you have 2 models you can let the SQL do it for you: one SQL for the Details and one SQL for the Totals.

Otherwise you have to dive in C# coding to modify your result tables (Pre Load, Post Load, Final Scripts or your model),
or change you main view template to perform special operations...
Check the samples.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.