This commit is contained in:
@@ -3,15 +3,17 @@
|
|||||||
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
|
|
||||||
|
|
||||||
todo: need to be able to have a link system whereby a user can directly open a report from an object via one link after login
|
todo: Need client to accept an open object url which directly opens a report
|
||||||
just like how you can open a specific widget from a url link, but to extend that there is also a report parameter and it triggers
|
This is becuase Notification will send a link to a Customer with a workorder or quote to be rendered for them
|
||||||
the ui to first open the object then populate it from the report
|
There will be an object type, object id and report id
|
||||||
Maybe a report viewer page after all or phantom link with no page that just opens the report directly as if the user had gone through the objects edit form
|
object type will initially only ever be a workorder or a quote to support customer notification
|
||||||
Maybe even a report viewer URL that is based off the server and they never actually use the full client software?
|
(And a Widget for testing)
|
||||||
meh
|
However, there is likely no reason not to support any report and any type of object in the client code in case it is useful to support a feature down the road
|
||||||
AyOpenObject type,recordid,reportid
|
since there would be little difference between supporting this for wo and quote and any other object
|
||||||
|
This should be sent to the server directly to render the report in the current user's Client browser context
|
||||||
idlist,datalist,filter?
|
So they would click on a link in an email and be taken to login and then directly to previewing the report
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
todo: export from grid to xls, csv etc.
|
todo: export from grid to xls, csv etc.
|
||||||
|
|||||||
@@ -350,13 +350,14 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
showLinkReportId() {
|
showLinkReportId() {
|
||||||
//TODO: Many others as well, but for now until those objects exist
|
//NOTE: Currently projected: Only Quotes and Workorders are involved in sending as attached reports
|
||||||
|
//And only to customers and only single items, not lists so it's doable to indicate a report id
|
||||||
|
//and send a link from notification to open the report
|
||||||
switch (this.obj.eventType) {
|
switch (this.obj.eventType) {
|
||||||
case 27: //General notification
|
case 999: //to be filled in later
|
||||||
case 20: //backup status
|
|
||||||
return false;
|
|
||||||
default:
|
|
||||||
return true;
|
return true;
|
||||||
|
default:
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
showTags() {
|
showTags() {
|
||||||
|
|||||||
Reference in New Issue
Block a user