Custom Filters Not Working

A

Ashok

Hi Friends,

I know it is for Front Page Portal, but since i saw one of replies to
this sort of problem from a Front Page Expert, so i am posting this
here. Hoping that some expert of Front Page know this issue.

My Problem is like below:-

I have a problem in creating custom filters. I have created a share
point page (.aspx) and in that i want to read the value of the
LOGON_USER using ServerVariables of Request object. Is this possible?

I tried all possible options below:-

Request.ServerVariables("LOGON_USER")
Request.ServerVariables(LOGON_USER)
Request.ServerVariables('LOGON_USER')
ServerVariables("LOGON_USER")

but no use.


I even tried like below

HttpContext.Current.Request.ServerVariables("LOGON_USER")

First of all Is this possible or i have to create a web part and call
that from my page (.aspx) to get the LOGON_USER Info?


My steps are like below:-
Created a site.
Creared a Data Sheet View
Opened the file in Front Page 2003 and Transformed it to XSLT by
clicking on XSLT Transform properity.

and then

I created a Custom parameter know as "CurrentUserAccount" in my Data
Sheet View of my Share point page (.aspx file)

like below

<ParameterBinding Name="CurrentUserAccount"
Location='HttpContext.Current.Request.ServerVariables("LOGON_USER")'
/>

Next once again i opened my .aspx file in Front Page 2003 and clicked
on the Data Sheet View Properties and then tried to set my Filter
condition.

But not working.


For Flow to simulate this follow the below steps:-

InfoPath 2003 ==> upload the custom meta data to create custom filters
To ==>
Share Point Protal Server 2003 ==> Created a Site ==> Created a Data
Sheet View ==> Transformed to XSLT ==> added the Custom Parameters ==>
Tried to set the Custom Filter condition (By cliking on the properties
of Data Sheet View is opened in Front Page 2003

Is it correct what i am doing or if not what is correct way of doing?

Does any one know what my problem may be? Also, has any one
experienced the these same problems?

Note:- I tried QueryString that worked for me, but i want it from
ServerVariables, cause i don't want somebody changing the querysting
and hacking the views.
 
J

Jim Buyens

-----Original Message-----
Hi Friends,
Howdy.

I know it is for Front Page Portal, but since i saw one
of replies to this sort of problem from a Front Page
Expert, so i am posting this here. Hoping that some
expert of Front Page know this issue.

My Problem is like below:-

I have a problem in creating custom filters. I have
created a share point page (.aspx) and in that i want to
read the value of the LOGON_USER using ServerVariables
of Request object. Is this possible?

I tried all possible options below:-

Request.ServerVariables("LOGON_USER")
Request.ServerVariables(LOGON_USER)
Request.ServerVariables('LOGON_USER')
ServerVariables("LOGON_USER")

but no use.

I even tried like below

HttpContext.Current.Request.ServerVariables("LOGON_USER")


Try one of these:

Page.User.Identity.Name
System.Environment.UserName

The HttpContext.Current.Request... gyration is usually
necessary only in .ascx files (that is, in Web User
Contols or Web Parts).

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top