Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
All users by their default group in Livelink?
Dragan_Jichici
I have a livereport that will show me all the users in Livelink and the groups they are a part of. However I need a query to find out every Livelink user's default group. Does anyone have such a report?SELECT A.Name as "Group", (Select Z.lastname from KUAF Z where z.id = B.childID) as "Name",(Select Z.firstname from KUAF Z where z.id = B.childID) as "Firstname",(Select Z.name from KUAF Z where z.id = B.childID) as "User" FROM KUAF A, KUAFChildren B Where A.id <> 1001 AND A.id = B.ID AND A.Type = 1 Order by 1,2Thank you,Dragan
Find more posts tagged with
Comments
Drane_Matthew
Message from Drane, Matt <
mdrane@hasbro.com
> via eLink
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">eLink
Try this:
select kuaf.name as userid,kuaf.lastname,kuaf.firstname,department.name as department,kuaf.mailaddress
from kuaf
inner join kuaf department on department.id = kuaf.groupid
where kuaf.deleted=0 and kuaf.type = 0
order by kuaf.lastname,kuaf.firstname
From:
eLink Discussion: Livelink LiveReports Discussion [mailto:livereportsdiscussion@elinkkc.opentext.com]
Sent:
Friday, April 07, 2006 11:39 AM
To:
eLink Recipient
Subject:
All users by their default group in Livelink?
All users by their default group in Livelink?
Posted by
draganjichici
(Jichici, Dragan) on 04/07/2006 11:36 AM
I have a livereport that will show me all the users in Livelink and the groups they are a part of. However I need a query to find out every Livelink user's default group. Does anyone have such a report?
SELECT A.Name as "Group", (Select Z.lastname from KUAF Z where z.id = B.childID) as "Name",(Select Z.firstname from KUAF Z where z.id = B.childID) as "Firstname",(Select Z.name from KUAF Z where z.id = B.childID) as "User" FROM KUAF A, KUAFChildren B Where A.id <> 1001 AND A.id = B.ID AND A.Type = 1 Order by 1,2
Thank you,
Dragan
Lindsay_Davies
Message from Lindsay Davies via eLinkHi Dragan,Sounds simple, unless I am missing something. select k.name, k1.name as MainGroup from kuaf k, kuaf k1 where k.type =0 and k.deleted = 0 and k.groupid = k1.id order by k.nameFeel free to add more columns for the user from kuaf k, likek.firstname,k.lastname.RegardsLindsay-----Original Message-----From: eLink Discussion: Livelink LiveReports Discussion[mailto:livereportsdiscussion@elinkkc.opentext.com] Sent: 07 April 2006 16:39To: eLink RecipientSubject: All users by their default group in Livelink?All users by their default group in Livelink?Posted by Jichici, Dragan on 04/07/2006 11:36 AMI have a livereport that will show me all the users in Livelink and thegroups they are a part of. However I need a query to find out everyLivelink user's default group. Does anyone have such a report?SELECT A.Name as "Group", (Select Z.lastname from KUAF Z where z.id =B.childID) as "Name",(Select Z.firstname from KUAF Z where z.id =B.childID) as "Firstname",(Select Z.name from KUAF Z where z.id =B.childID) as "User" FROM KUAF A, KUAFChildren B Where A.id <> 1001 ANDA.id = B.ID AND A.Type = 1 Order by 1,2Thank you,Dragan[To reply to this thread, use your normal E-mail reply function.]============================================================Discussion: Livelink LiveReports Discussion
https://knowledge.opentext.com/knowledge/livelink.exe/open/2249677Livelink
Server:
https://knowledge.opentext.com/knowledge/livelink.exeTo
Unsubscribe from this Discussion, send an e-mail tounsubscribe.livereportsdiscussion@elinkkc.opentext.com.
Dragan_Jichici
Message from <
Dragan.Jichici@agfa.com
> via eLink
Hi Matt,
I get the following error message:
Livelink Error: Error processing request.
[[Microsoft][ODBC SQL Server Driver][SQLServer]Incorrect syntax near the keyword 'inner'. - select kuaf.name asuserid,kuaf.lastname,kuaf.firstname,department.name as department,kuaf.mailaddressfromkuaf inner join kuaf department on department.id = kuaf.groupidwhere kuaf.deleted=0and kuaf.type = 0order by kuaf.lastname,kuaf.firstname]
Dragan_Jichici
Message from <
Dragan.Jichici@agfa.com
> via eLink
Hi Lindsay,
This works wonderful.
Thank you very much.
Regards,
Dragan
Drane_Matthew
Message from Drane, Matt <
mdrane@hasbro.com
> via eLink
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">eLink
Dragan,
If you cut and pasted the sql I sent into a Live Report, the line breaks were probably stripped out (unless you have the Live Report Extensions module installed)....
If you put in some spaces where the line breaks were, it will work. It's basically the same query that Lindsay sent.
From:
eLink Discussion: Livelink LiveReports Discussion [mailto:livereportsdiscussion@elinkkc.opentext.com]
Sent:
Friday, April 07, 2006 12:03 PM
To:
eLink Recipient
Subject:
Re RE All users by their default group in Livelink?
Re RE All users by their default group in Livelink?
Posted by
draganjichici
(Jichici, Dragan) on 04/07/2006 12:02 PM
In reply to:
RE All users by their default group in Livelink?
Posted by
hasbro011
(Drane, Matthew) on 04/07/2006 11:45 AM
<I>Message from <<A HREF="
mailto:Dragan.Jichici@agfa.com
">Dragan.Jichici@agfa.com</A>> via eLink</I><BR><BR>
<br><font size=2 face="sans-serif">Hi Matt,</font>
<br>
<br><font size=2 face="sans-serif">I get the following error message:</font>
<br>
<br><font size=2 face="sans-serif">Livelink Error: Error processing request.
</font>
<br><font size=2 face="sans-serif">[[Microsoft][ODBC SQL Server Driver][SQL
Server]Incorrect syntax near the keyword 'inner'. - select kuaf.name as
userid,kuaf.lastname,kuaf.firstname,department.name as department,kuaf.mailaddressfrom
kuaf inner join kuaf department on department.id = kuaf.groupidwhere kuaf.deleted=0
and kuaf.type = 0order by kuaf.lastname,kuaf.firstname]</font>
<br>
<br>
Dragan_Jichici
Message from <
Dragan.Jichici@agfa.com
> via eLink
Thank you Dave.
Thank you everyone for your assistance.
Regards,
Dragan