PC Review


Reply
Thread Tools Rate Thread

FP and SQL Database values

 
 
Art
Guest
Posts: n/a
 
      20th Nov 2003
I am stumped.........

I am using FP to query a SQL table and return results.
That all works fine.

Two of my columns of data at about 50 characters in length
(actually a hyperlink). Since I have the values being
returned as a link, all I want to display on the table in
the last 10 characters of the link.

I have tried forcing the column width size, trying
different justifications and even setting the no wrap.

Anyone have any ideas on how to limit the display of the
large field return?

Thanks


 
Reply With Quote
 
 
 
 
John Jansen \(MSFT\)
Guest
Posts: n/a
 
      20th Nov 2003
Which version of FrontPage are you using?

--
Thanks!
John Jansen
Micosoft Office FrontPage
This posting is provided "AS IS" with no warranties, and confers no rights.
"Art" <(E-Mail Removed)> wrote in message
news:068101c3af81$9577e350$(E-Mail Removed)...
> I am stumped.........
>
> I am using FP to query a SQL table and return results.
> That all works fine.
>
> Two of my columns of data at about 50 characters in length
> (actually a hyperlink). Since I have the values being
> returned as a link, all I want to display on the table in
> the last 10 characters of the link.
>
> I have tried forcing the column width size, trying
> different justifications and even setting the no wrap.
>
> Anyone have any ideas on how to limit the display of the
> large field return?
>
> Thanks
>
>



 
Reply With Quote
 
Art
Guest
Posts: n/a
 
      20th Nov 2003
FP 2002


>-----Original Message-----
>Which version of FrontPage are you using?
>
>--
>Thanks!
>John Jansen
>Micosoft Office FrontPage
>This posting is provided "AS IS" with no warranties, and

confers no rights.
>"Art" <(E-Mail Removed)> wrote in

message
>news:068101c3af81$9577e350$(E-Mail Removed)...
>> I am stumped.........
>>
>> I am using FP to query a SQL table and return results.
>> That all works fine.
>>
>> Two of my columns of data at about 50 characters in

length
>> (actually a hyperlink). Since I have the values being
>> returned as a link, all I want to display on the table

in
>> the last 10 characters of the link.
>>
>> I have tried forcing the column width size, trying
>> different justifications and even setting the no wrap.
>>
>> Anyone have any ideas on how to limit the display of the
>> large field return?
>>
>> Thanks
>>
>>

>
>
>.
>

 
Reply With Quote
 
Thomas A. Rowe
Guest
Posts: n/a
 
      20th Nov 2003
Where you want to display the text insert the following into html view:

<%=Left(recordset("fieldname"),10)%>

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"Art" <(E-Mail Removed)> wrote in message
news:068101c3af81$9577e350$(E-Mail Removed)...
> I am stumped.........
>
> I am using FP to query a SQL table and return results.
> That all works fine.
>
> Two of my columns of data at about 50 characters in length
> (actually a hyperlink). Since I have the values being
> returned as a link, all I want to display on the table in
> the last 10 characters of the link.
>
> I have tried forcing the column width size, trying
> different justifications and even setting the no wrap.
>
> Anyone have any ideas on how to limit the display of the
> large field return?
>
> Thanks
>
>



 
Reply With Quote
 
Art
Guest
Posts: n/a
 
      20th Nov 2003
Since the query was generated by FP wizard, it does not
allow for changes to be made. It over-writes all changes
when the file is saved.


>-----Original Message-----
>Where you want to display the text insert the following

into html view:
>
><%=Left(recordset("fieldname"),10)%>
>
>--
>
>==============================================
>Thomas A. Rowe (Microsoft MVP - FrontPage)
>WEBMASTER Resources(tm)
>http://www.ycoln-resources.com
>FrontPage Resources, Forums, WebCircle,
>MS KB Quick Links, etc.
>==============================================
>To assist you in getting the best answers for FrontPage

support see:
>http://www.net-sites.com/sitebuilder/newsgroups.asp
>
>"Art" <(E-Mail Removed)> wrote in

message
>news:068101c3af81$9577e350$(E-Mail Removed)...
>> I am stumped.........
>>
>> I am using FP to query a SQL table and return results.
>> That all works fine.
>>
>> Two of my columns of data at about 50 characters in

length
>> (actually a hyperlink). Since I have the values being
>> returned as a link, all I want to display on the table

in
>> the last 10 characters of the link.
>>
>> I have tried forcing the column width size, trying
>> different justifications and even setting the no wrap.
>>
>> Anyone have any ideas on how to limit the display of the
>> large field return?
>>
>> Thanks
>>
>>

>
>
>.
>

 
Reply With Quote
 
Thomas A. Rowe
Guest
Posts: n/a
 
      20th Nov 2003
Then add another field to your database and use that for the description of
the link or consider learning to hand code your ASP.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"Art" <(E-Mail Removed)> wrote in message
news:2b1d01c3afaf$f6886f60$(E-Mail Removed)...
> Since the query was generated by FP wizard, it does not
> allow for changes to be made. It over-writes all changes
> when the file is saved.
>
>
> >-----Original Message-----
> >Where you want to display the text insert the following

> into html view:
> >
> ><%=Left(recordset("fieldname"),10)%>
> >
> >--
> >
> >==============================================
> >Thomas A. Rowe (Microsoft MVP - FrontPage)
> >WEBMASTER Resources(tm)
> >http://www.ycoln-resources.com
> >FrontPage Resources, Forums, WebCircle,
> >MS KB Quick Links, etc.
> >==============================================
> >To assist you in getting the best answers for FrontPage

> support see:
> >http://www.net-sites.com/sitebuilder/newsgroups.asp
> >
> >"Art" <(E-Mail Removed)> wrote in

> message
> >news:068101c3af81$9577e350$(E-Mail Removed)...
> >> I am stumped.........
> >>
> >> I am using FP to query a SQL table and return results.
> >> That all works fine.
> >>
> >> Two of my columns of data at about 50 characters in

> length
> >> (actually a hyperlink). Since I have the values being
> >> returned as a link, all I want to display on the table

> in
> >> the last 10 characters of the link.
> >>
> >> I have tried forcing the column width size, trying
> >> different justifications and even setting the no wrap.
> >>
> >> Anyone have any ideas on how to limit the display of the
> >> large field return?
> >>
> >> Thanks
> >>
> >>

> >
> >
> >.
> >



 
Reply With Quote
 
John Clark
Guest
Posts: n/a
 
      20th Nov 2003
You can delete the webbot code that surrounds the current data value and
paste in something like this instead:

<%=Right((FP_FieldVal(fp_rs,"ProductName")),2)%>

which would select the first two digits starting from the end of the
ProductName in the Products table of the Northwind database.

Once you start messing with that code, though, you are on a slippery slope.

"Art" <(E-Mail Removed)> wrote in message
news:2b1d01c3afaf$f6886f60$(E-Mail Removed)...
> Since the query was generated by FP wizard, it does not
> allow for changes to be made. It over-writes all changes
> when the file is saved.
>
>
> >-----Original Message-----
> >Where you want to display the text insert the following

> into html view:
> >
> ><%=Left(recordset("fieldname"),10)%>
> >
> >--
> >
> >==============================================
> >Thomas A. Rowe (Microsoft MVP - FrontPage)
> >WEBMASTER Resources(tm)
> >http://www.ycoln-resources.com
> >FrontPage Resources, Forums, WebCircle,
> >MS KB Quick Links, etc.
> >==============================================
> >To assist you in getting the best answers for FrontPage

> support see:
> >http://www.net-sites.com/sitebuilder/newsgroups.asp
> >
> >"Art" <(E-Mail Removed)> wrote in

> message
> >news:068101c3af81$9577e350$(E-Mail Removed)...
> >> I am stumped.........
> >>
> >> I am using FP to query a SQL table and return results.
> >> That all works fine.
> >>
> >> Two of my columns of data at about 50 characters in

> length
> >> (actually a hyperlink). Since I have the values being
> >> returned as a link, all I want to display on the table

> in
> >> the last 10 characters of the link.
> >>
> >> I have tried forcing the column width size, trying
> >> different justifications and even setting the no wrap.
> >>
> >> Anyone have any ideas on how to limit the display of the
> >> large field return?
> >>
> >> Thanks
> >>
> >>

> >
> >
> >.
> >



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Database Values leonaisse Microsoft ASP .NET 1 17th Jul 2009 08:54 PM
score object property values against a decision rule created from from database table record values? hazz Microsoft VB .NET 3 3rd Jul 2005 07:52 PM
How to Add an All Values Item to a Database Query by Using the FrontPage 2003 Database Results Wizard =?Utf-8?B?RGFuaWVs?= Microsoft Frontpage 4 2nd Feb 2004 06:36 PM
Database values.... atif Microsoft ASP .NET 0 16th Jan 2004 11:18 AM
Re: Adding custom values and database values to DropDwonList William F. Robertson, Jr. Microsoft ASP .NET 0 1st Jul 2003 08:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:17 PM.