CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.portal_starter_kit Tags:
Item Type: NewsGroup Date Entered: 10/30/2003 9:01:50 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 40 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
Laura D
Asp.Net User
kneebone connected to the thigh bone ???10/30/2003 9:01:50 PM

0/0


Hi,

Bit of help or pointers required with this interesting scenario .... for a sports related portal ...

I am currently on my last bit of my portal which is building a search interface to my announcements module. As I aim to have announcements on a daily basis going back over a long period I have added paging to the announcements module (so you don't have a 3 km page length!) but also want a search feature. Easy I thought .... and as I have learnt so much from this site I have quickly built a nice little search feature which runs through the announcements table and pulls out all those items that contain a user's search words in the description field or title.

Great ... well not so really because I now realise that I am not actually incorporating into this any user roles i.e. a search will bring out announcements from modules on tabs that the user does not have a view role for .... so my little search feature is actually bypassing the roles security feature. Here is my query ... the search keywords are passed to the procedure and a simple select statement runs.



CREATE Procedure AnnouncementSearch
(
@Search nvarchar(255)
)
AS

SELECT
CreatedDate,
Title,
MoreLink,
Description

FROM
Announcements

WHERE
Title LIKE '%' + @Search + '%'
OR
Description LIKE '%' + @Search + '%'

ORDER BY
CreatedDate DESC
GO


Now the kneebone is definitely connected to the thigh bone so ... and here comes the hard part ... can anyone explain to me how I modify this to pull out records from the table which appear in modules ... that appear on tabs ... for which the current user has the view role ....

And I have tried very hard with this ..... books out till midnite, error messages and despair, pulling myself together and fighting it again. Have now reached the point where my boyfriend thinks I am now more interested in the portal than him (which is true !) ....

Any pointers gratefully received ..

Laura D
melidosian
Asp.Net User
Re: kneebone connected to the thigh bone ???10/31/2003 2:22:12 AM

0/0

You may want to check out the free search module on Snowcovered.com for ideas:

http://www.snowcovered.com/Snowcovered2/DesktopModules/UserDocuments/UserDocuments_ViewDocument.aspx?DocumentID=41

"Provides search capability to the IBS Portal. Content is limited to what the user is allowed to see "
Laura D
Asp.Net User
Re: kneebone connected to the thigh bone ???10/31/2003 8:18:20 AM

0/0

Yep ... have been looking at that but I just can't seem to get my head around the query and how it is working ...

Laura D
wunderkinder
Asp.Net User
Re: kneebone connected to the thigh bone ???11/2/2003 3:27:55 PM

0/0

See if this sproc does what you need. You'll need to modify it so that it includes your where clause and accepts the criteria parameters. If you are using a more recent version of the Portal, the GetRolesByUser sproc returns the RoleID as well as the RoleName, so you will have to adjust your #TempRolesTable accordingly.


CREATE PROCEDURE SearchAnnouncements
(
@Email VarChar(50)
)
AS

CREATE TABLE #TempRolesTable
(
RoleName varchar(50)
)
INSERT INTO #TempRolesTable
EXEC GetRolesByUser @Email

SELECT DISTINCT
Announcements.*
FROM Modules Modules
INNER JOIN
Tabs On Tabs.TabID = Modules.TabID
INNER JOIN
Announcements ON Modules.ModuleID = Announcements.ModuleID
INNER JOIN
#TempRolesTable TempRoles ON (TempRoles.RoleName LIKE Tabs.AuthorizedRoles) OR (Tabs.AuthorizedRoles LIKE '%All Users%')

DROP TABLE #TempRolesTable

Jared Livingston
MrLivingston.com - Livingston Family Website

Test/Demo site - moonmark.com
Laura D
Asp.Net User
Re: kneebone connected to the thigh bone ???11/3/2003 10:43:34 AM

0/0

Gosh .... I will play around with that and see what comes of it ....

Thanks for the pointer!

Laura D
5 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Strength and Compassion in Kidney Failure: Writings of Mildred (Barry) Friedman Professional Kidney Patient Authors: Mildred Barry Friedman, Eli A. Friedman, Belding H. Scribner, Pages: 248, Published: 1998
Library Instruction Revisited: Bibliographic Instruction Comes of Age Authors: Lynne M. Martin, Pages: 482, Published: 1995
500 Best-Loved Song Lyrics Authors: Ronald Herder, Pages: 208, Published: 1998
The Best Alternative Medicine: What Works? What Does Not? Authors: Kenneth R. Pelletier, Pages: 449, Published: -1
The Gift of Wisdom: The Books of Prophets and Writings Authors: Steven E. Steinbock, S. David Sperling, Pages: 240, Published: 2001
Building Fluency Through Practice and Performance, Grade 2 Authors: Timothy Rasinski, Lorraine Griffith, Pages: 128, Published: 2008
From My People: 400 Years of African American Folklore Authors: Daryl Cumber Dance, Pages: 736, Published: 2003
Golf My Way: The Instructional Classic, Revised and Updated Authors: Jack Nicklaus, Ken Bowden, Jim McQueen, Pages: 304, Published: 2005
The Yale Book of Quotations Authors: Fred R. Shapiro, Joseph Epstein, Pages: 1067, Published: 2006
Profiling Shakespeare Authors: Marjorie Garber, Pages: 349, Published: 2008

Web:
Dry Bones Song lyrics from KIDiddles The foot bone connected to the leg bone, The leg bone connected to the knee bone , The knee bone connected to the thigh bone, The thigh bone connected to the ...
Lyrics and Music the neck-bone connected to the back-bone The backbone connected to the thigh- bone the thighbone connected to the kee-bone the kneebone connected to the leg ...
one TN: "The knee bone's connected to the thigh bone..." "The knee bone's connected to the thigh bone..." It seems that I was right about my reputation within the group as a train breaker sticking. ...
Environmental Economics: The knee bone's connected to the thigh ... Apr 2, 2007 ... From AP via ENN.com:Overfishing of powerful sharks -- a top predator in the ocean -- may endanger bay scallops, a gourmet delicacy.
The knee-bone is connected to the thigh bone : Postmodernism ... Titre du document / Document title. The knee-bone is connected to the thigh bone : Postmodernism, critical pedagogy, and logic in the CD-ROM workshop ...
Traditional Children's Songs & Nursery Rhymes - Dry Bones (or ... With the leg bone connected to the knee bone, and the knee bone connected to the thigh bone, and the thigh bone connected to the hip bone. ...
Real Estate Blog - The Knee Bone's Connected to the Thigh Bone... I had a most interesting conversation this morning about the state of our local economy. This conversation would not normally have stuck with me as strongly ...
The Thigh Bone's Connected To The Knee Bone, And... - Bleed Cubbie ... The Thigh Bone's Connected To The Knee Bone, And... Yelloncard_tiny by Al on May 17, 2008 3:53 PM CDT in Recaps. Hey Z! Next time you're pissed at yourself ...
"Quincy M.E." ...The Thigh Bone's Connected to the Knee Bone... (1977) Directed by Alex March. With Jack Klugman, Lynette Mettey, Garry Walberg. Visit IMDb for Photos, Showtimes, Cast, Crew, Reviews, Plot Summary, Comments, ...
The Leg Bone Connected to the Knee Bone -- Dem Bones, Dem Dry Bones! The knee bone connected to the (') thigh bone, The thigh bone connected ... the thighbone connected to the kee-bone the kneebone connected to the leg bone ...

Videos:
School House Rock - Them Not-So-Dry Bones Them bones, them bones, them dry bones, Now they're the working of the Lord. Bones are heard of, but seldom seen, 'Cept each year 'round Hallowe'en....
Amira - Nose, Ear etc. Knee bone connected to the thigh bone...
Organic Drycleaning by frank and I Uh Huh rock punk jazz
Snoop Dogg feat. Soopafly, E. White, Mr. Kane & LaToiya Dogg House America Lyrics: It ain't shit like ridin' wit my niggas, watchin the world time Down to spend every last dollar I earn It ain't nothin'...




Search This Site:










add new site settings

moving login to new page

dim _portalsettings as portalsettings

module tab order numbers

ms access and ispybuy

classifieds module

what's new professional 1.5 - ibs

sql

migrating from dev to production machine

cached portal module control

errors with starter kit documentation and sample app

who to add a new field to the register.aspx page?

error msg: [control] could not be located to raise a postback event.

whether there is book for asp.net portal starter kit

modifying the userdb class

sql error..

windows 2003

aspkey sub menu to work with asp.net portal starter kit

forms using the html module

little lost, need help.

new to ibuyspy portal design

family tree module

browse configuration error

problems with default.aspx after reinstall

the portal source file not working 100%, how to complete manually?

modifying portal code

showing modules(within tabs) based on role

context.items.add question

signin page not flipping the request.isauthenticated flag??

how can i restore portal database?

  Privacy | Contact Us
All Times Are GMT