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.
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
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


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
Answered 10/05/2010 by: GillySpy
Seventh Degree Black Belt

Please log in to comment
0
Perhaps you already know about this, but while your figuring out SQL this could be a interim solution..

Go to assets, all assets.

Advanced search..

User - Contains = "UserName"



Answered 02/22/2011 by: Tetravaal
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity

Share