Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
Another User/Deparment SQL question
SBS_Admins_(ultrasbsadmin_-_(deleted))
I've got a problem that I can't seem to get my LiveReport to run properly and give me back a list of Username, FirstName, Lastname and Department (Primary Group).I can get the SQL to run locally and return the correct list.So far I have tried my own SQL statements and the following from this site: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.firstnameselect k.ID, k.Name, k2.Name from KUAF k, KUAF k2 where k.Type=0 and k.GroupID = k2.IDselect k1.id,k1.name,k1.groupid,k2.name "GroupName" from kuaf k1, kuaf k2 where k1.id=1000 and k1.groupid = k2.idselect a.name, a.lastname, a.firstname, b.name "Department", a.userprivileges from kuaf a, kuaf b where a.type=0 and a.groupid=b.idThe problem still being that I get either duplicate fields shown or fields with "An unknown feature was specified" shown.Can anyone tell me if there are other fields on the LiveReport screen that should have information entered into them or am I alright just entering the SQL field?I'm using Livelink 9.5.1 with an MS SQL backend.
Find more posts tagged with
Comments
Lindsay_Davies
Message from Lindsay Davies via eLinkHi,You will be doing this as an AutoLivereport (as you are not selectingDTree objects).My guess is you need to specify explicitly the output fields at thebottom of the Livereport edit page, using the table alias names to avoidambiguous references.For example, using the statement I prefixed with ">>>" .... k.Name Login k2.Name Department Not sure if you need to list all the columns you are selecting in thiscase.Try it and see.RegardsLindsayUK-Support Open Text-----Original Message-----From: eLink Discussion: Livelink LiveReports Discussion[mailto:livereportsdiscussion@elinkkc.opentext.com] Sent: 12 March 2007 15:41To: eLink RecipientSubject: Another User/Deparment SQL questionAnother User/Deparment SQL questionPosted by Admins, SBS C on 03/12/2007 11:37 AMI've got a problem that I can't seem to get my LiveReport to runproperly and give me back a list of Username, FirstName, Lastname andDepartment (Primary Group).I can get the SQL to run locally and return the correct list.So far I have tried my own SQL statements and the following from thissite:select kuaf.name as userid,kuaf.lastname,kuaf.firstname,department.nameas department,kuaf.mailaddress from kuaf inner join kuaf department ondepartment.id = kuaf.groupid where kuaf.deleted=0 and kuaf.type = 0order by kuaf.lastname,kuaf.firstname>>> select k.ID, k.Name, k2.Name from KUAF k, KUAF k2 where k.Type=0and k.GroupID = k2.IDselect k1.id,k1.name,k1.groupid,k2.name "GroupName" from kuaf k1, kuafk2 where k1.id=1000 and k1.groupid = k2.idselect a.name, a.lastname, a.firstname, b.name "Department",a.userprivileges from kuaf a, kuaf b where a.type=0 and a.groupid=b.idThe problem still being that I get either duplicate fields shown orfields with "An unknown feature was specified" shown.Can anyone tell me if there are other fields on the LiveReport screenthat should have information entered into them or am I alright justentering the SQL field?I'm using Livelink 9.5.1 with an MS SQL backend.[To reply to this thread, use your normal E-mail reply function.]============================================================Discussion: Livelink LiveReports Discussion
https://knowledge.opentext.com/knowledge/llisapi.dll/open/2249677Livelink
Server:
https://knowledge.opentext.com/knowledge/llisapi.dllTo
Unsubscribe from this Discussion, send an e-mail tounsubscribe.livereportsdiscussion@elinkkc.opentext.com.
SBS_Admins_(ultrasbsadmin_-_(deleted))
I've just given it a go and am still getting a similar problem to before. I'm now getting both columns populated by the Department Name rather than one with the Username.I think that the Auto LiveReport bit was a step forwards though.Any further ideas? It seems odd that it works fine in SQL Query Analyzer on the SQL box but doesn't work the same through LiveReports.
Bhupinder_Singh
Message from Bhupinder Singh <
bsingh@opentext.com
> via eLink
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">eLink
Try introducing a column alias for a.name to see if that makes a difference; for example:
select a.name "Name_1", a.lastname, a.firstname, b.name "Department", a.userprivileges from kuaf a, kuaf b where a.type=0 and a.groupid=b.id
- Bhupinder
From:
eLink Discussion: Livelink LiveReports Discussion [mailto:livereportsdiscussion@elinkkc.opentext.com]
Sent:
Monday, March 12, 2007 12:47 PM
To:
eLink Recipient
Subject:
RE RE Another User/Deparment SQL question
RE RE Another User/Deparment SQL question
Posted by
ultrasbsadmin
(Admins, SBS C) on 03/12/2007 12:42 PM
In reply to:
RE Another User/Deparment SQL question
Posted by
ldavies
(Davies, Lindsay) on 03/12/2007 12:09 PM
I've just given it a go and am still getting a similar problem to before. I'm now getting both columns populated by the Department Name rather than one with the Username.
I think that the Auto LiveReport bit was a step forwards though.
Any further ideas? It seems odd that it works fine in SQL Query Analyzer on the SQL box but doesn't work the same through LiveReports.
SBS_Admins_(ultrasbsadmin_-_(deleted))
Thanks... that has worked this now.I've added in the column alias and entered the k.Name into the display columns field to define it twice and it works!Thanks for you help.