How to link users to multiple assets
Hi,
I have setup some mobile assets such as Blackberry and 3G cards and a single user could have both of these assets plus others.
I require a report which shows all the assets associated to a certain user. Is this possible?
Thanks.
I have setup some mobile assets such as Blackberry and 3G cards and a single user could have both of these assets plus others.
I require a report which shows all the assets associated to a certain user. Is this possible?
Thanks.
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
GillySpy
14 years ago
you would probably have to write a custom query for this. How good is your SQL? Is there a field in each asset that relates to the user?
e.g. Let's pretend FIELD_1 is the column in the BB asset (asset type#10) that relates to the user. Let's pretend FIELD_2 (asset type #11) is the column in the 3G card asset that relates to the user. The query would be something like the following, but asset queries are unique on every kbox because the table data is like meta-data
e.g. Let's pretend FIELD_1 is the column in the BB asset (asset type#10) that relates to the user. Let's pretend FIELD_2 (asset type #11) is the column in the 3G card asset that relates to the user. The query would be something like the following, but asset queries are unique on every kbox because the table data is like meta-data
select blah
from
USER
LEFT JOIN ASSET_DATA_11 D11 ON FIELD_2=USER.ID
LEFT JOIN ASSET A11 ON A11.ASSET_TYPE_ID=11 and A11.ASSET_DATA_ID=D11.ID
LEFT JOIN ASSET_DATA_10 D10 ON FIELD_1=USER.ID
LEFT JOIN ASSET A10 ON A10.ASSET_TYPE_ID=10 and A10.ASSET_DATA_ID=D10.ID
Posted by:
Tetravaal
13 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.