Binding to the LINK field in ASP

Hi,
I've set up an ASP page that binds to a table containing
image location, ALT text and URL link fields. I have inserted an
image into a page and binded the link, alt and image location
attributes to the above fields. I have then inserted a 'random
record' server extension. This shows a random image with a random
alt text every time the page is refreshed.
The only trouble is, the URL link is always the same. I can't
seem to get this binded correctly to show the correct link.
Any suggestions or methods of how I can get this done?
Any help would be greatly appreciated :o)

kliq316 wrote:
> Here you go, the first part is the server extension that
allows a random record
> to be displayed every time the page is refreshed. After
that is the code for
> the image.
>
> <%
> ' Moving to random record - Steven Jones' Extension
> If Not(rsSplashImage.bof and rsSplashImage.eof) Then
> ' reset the cursor to the beginning
> If (rsSplashImage.CursorType > 0) Then
> rsSplashImage.MoveFirst
> Else
> rsSplashImage.Requery
> End If
>
> rsSplashImage_totalrn = -1
> rsSplashImage_totalrn = rsSplashImage.RecordCount ' ony
works on some
> recordsets, but much faster
> If (rsSplashImage_totalrn = -1) Then ' and if it didn't
work, we still have
> to count the records.
>
> ' count the total records by iterating through the
recordset
> rsSplashImage_totalrn=0
> While (Not rsSplashImage.EOF)
> rsSplashImage_totalrn = rsSplashImage_totalrn + 1
> rsSplashImage.MoveNext
> Wend
>
> ' reset the cursor to the beginning
> If (rsSplashImage.CursorType > 0) Then
> rsSplashImage.MoveFirst
> Else
> rsSplashImage.Requery
> End If
>
> End If
>
> ' now do final adjustments, and move to the random
record
> rsSplashImage_totalrn = rsSplashImage_totalrn - 1
> If rsSplashImage_totalrn > 0 Then
> Randomize
> rsSplashImage.Move Int((rsSplashImage_totalrn + 1) *
Rnd)
> End If
> End If
> ' all done; you should always check for an empty
recordset before displaying
> data
> %>
> <a
href="<%=(rsSplashImage.Fields.Item("link").Value)%>"><img
>
src="<%=(rsSplashImage.Fields.Item("imagesplash").Value)%>"
>
longdesc="<%=(rsSplashImage.Fields.Item("alttext").Value)%>"
/></a>
>
Is the page live? Do you have a link?
Dooza

Similar Messages

  • How to set a list form field data value that is linked to another document library's data when the link gets broken!!??

    In summary, I have created 3 document libraries and one issues list in a site collection.
    The issues list has a form that has mainly been created in SharePoint 2010 but tweaked in InfoPath 2007 and one of the fields links to the title of a document in the first document library (so an issue can be linked/referenced to a particular document).
    This all works great until I want to move a document (using the workflow that I built) from document library 1, to document library 2 or 3 as this is what I've set up to move documents through the business process we are taking it through.
    When this happens, the link between the issue that was raised originally against the document is broken and therefore you can no longer tell which document the issue is linked with.
    Does anyone know a way of 'setting' the field that is linked to data in another document library on original selection/creation of the issue, so that when the link is broken the original data remains.
    Any ideas welcome as I am stomped!!! 
    Cheers!!
    Louis Maxwell

    
    Hi  Louis,
    According to your description, my understanding is that you want to keep the link field of the issue list working after moving the linked document.
    Whether the link field  is a lookup column or not ?
    If so, due to the information source of  lookup column cannot be changed, you need to add other lookup fields for document library 2 and document library 3. Just one lookup column corresponds one document
    library. Then you can update the lookup column in the workflow when move the linked document. Such as when a document is moved to document library 2, you need to clear the lookup1 field (corresponding document library 1) and update the lookup2 field (corresponding
    document library 2).
    For updating the lookup column, you can refer to the following actions:
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Link field in a grid.

    Hi,
    I created a user table and one of the fields is to hold a path.  I created this field as a link type field expecting that, when I double click it, I will see the browse control that will facilitate selecting a file.   However, when I use a grid I can see the hand but double-clicking it doesnu2019t cause the browse control to appear.  Is it that the link doesnu2019t function in a grid?  Do I need to use a matrix instead of a grid?
    Thanks,
    Mike

    Hi,
    I created the matrix and did the data binding but now the link field doesn't work at all.  The hand doesn't appear for the field and double-clicks are ignored.  Is there something else I need to do?  should the tdalr represent if a UDO>?
    Code:
    oForm.DataSources.DBDataSources.Add("@NBS_TABLE")
    mxColumn.DataBind.SetBound(True, "@NBS_TABLE", "U_Field")
    The function that sets up the field - it is good - it is a common function we all use here and it works in system table matrices.
        Public Shared Function CreateLinkTypeField(ByVal TableName As String, _
                                                ByVal FieldName As String, ByVal Description As String, _
                                                Optional ByVal CharCount As Integer = 254, _
                                                Optional ByVal Required As Boolean = False) As Boolean
            Log("Create field " & FieldName & " in table " & TableName & ".")
            If FieldExists(TableName, FieldName) Then
                Log("Field already exists.")
                Return True
            End If
            Dim oUserTablesMD As SAPbobsCOM.UserTablesMD
            Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
            Dim oUserObjectMD As SAPbobsCOM.UserObjectsMD
            Dim oItemGroupMD As SAPbobsCOM.ItemGroups
            Dim lRetCode As Long
            Dim lErrCode As Long = 0
            Dim sErrMsg As String = ""
            oUserFieldsMD = oUtilCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
            With oUserFieldsMD
                .TableName = TableName
                .Name = FieldName
                .Description = Description
                .Type = SAPbobsCOM.BoFieldTypes.db_Memo
                .SubType = SAPbobsCOM.BoFldSubTypes.st_Link
                .EditSize = CharCount
                If Required Then .Mandatory = SAPbobsCOM.BoYesNoEnum.tYES
                lRetCode = .Add
            End With
            If lRetCode <> 0 Then
                oUtilCompany.GetLastError(lErrCode, sErrMsg)
                If lErrCode = -2035 Then
                    '// Column already exists to just don't do anything
                ElseIf lErrCode = -2004 Then
                    oUtilApplication.MessageBox(TableName & ": " & sErrMsg)
                    Return False
                Else
                    oUtilApplication.MessageBox(FieldName & ": " & sErrMsg)
                    Return False
                End If
            End If
            KillObject(oUserFieldsMD)
            Return True
        End Function
    Any ideas?
    Thanks,
    Mike
    Edited by: Mike Angelastro on Nov 17, 2009 11:01 PM

  • Where is the link between Sales Invoice and Downpayment Invoices

    We made a downpayment invoice. And processed incoming payment for such invoice.
    Then proceed to Sales Invoice, which was applied to the Downpayment invoice. Everyting went well.
    We tried to use crystal report to extract the Sales Invoice (OINV, INV1) and link to the downpayment table (ODPI) to print the breakdown in the invoice form. We could not find the relationship in this table.
    Can someone help ?
    KC

    Could it be helpful for you to use view in enterprise manager ? I just see the docentry field as the link field among OINV, INV1 and OPDI.
    If you use down payment request, I think you could not since it is a note and must be reconciled after invoice created
    Rgds,

  • Join two table using two link field

    hi all
    i need to left join two table, and to link two table need to match two field
    ex: the link field is store_name and id
    i use below sql statement
    SELECT A1.store_name, A1.id, A1.card, A2.sale, A2.history
    FROM Georgraphy A1, Store_Information A2
    WHERE A1.store_name = A2.store_name(+)
    AND A1.id = A2.id(+)
    but it's wrong
    please tell me how to left join A1 and A2, thx!

    Whats your aim?
    Any error message?
    SQL> select * from geography;
            ID STORE_NAME
             1 a
             1 b
             2 a
             2 b
    SQL> select * from store_information;
            ID STORE_NAME
             1 a
             3 d
    SQL> SELECT *
      2  FROM Geography A1, Store_Information A2
      3  WHERE A1.store_name = A2.store_name(+)
      4  AND A1.id = A2.id(+);
            ID STORE_NAME         ID STORE_NAME
             1 a                   1 a
             2 a
             2 b
             1 b                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Link field in Properties bar "sticks"?

    I'm using Dreamweaver CS6 on Mac OS X 10.8.2. I've been trying to select some text in Design view that has a link; then copy the text of the link from the Link field in the Properties bar; then select another bit of text and paste the url into the link field. (Thus giving two bits of text the same link.)
    However, the contents of the Link box seems to be "Sticking", and not relating to anything that I'm actually clicking on.
    Who has gone screwy: me, or DW?
    Thanks

    Well even CS6 wil show you the Build number - in the About box - like this:
    Anyway, glad your issue got resolved! Please do post back if you have any further questions.
    Happy to help

  • Selecting the link in local files

    Hi, I have cs5 and before  had mx2004,
    when I work I always used to click on the name of the page (the link) on the local file list,
    then automatically it was higlighted and I just clicked on copy,
    with cs5 when I click on the link its higlighted but leaves the extension out, that makes me
    past the link without the extension, this is very irritating and I dont see the reason to do so.
    Is there a way I can configure this?
    Thanks in advance

    I'm not sure I understand your question.  To add a hyperlink to your web page:
    1. Highlight some text or select an image on your page.
    2. Click inside the Link Field on the HTML properties panel (Ctrl+F3).
    3. Click on the folder (browse) icon next to the Link Field.
    4. Select a file from your local site.  Hit OK.
    Does this help?
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • What is the link between the tables DRAW and MARA

    Hi,
    Can you tell What is the link field between the tables DRAW and MARA
    Nagesh

    Hi,
    There is no direct relationship. But you can find the materials attached as object liink to the document in table DRAD.
    Hope it helps,
    Rajat

  • Binding an image to the Image Field

    Greetings,
         We are in the process of converting Adobe Central documents over to Adobe LiveCycle. Our forms contain the company logo which is currently stored in Adobe Central and our legacy system sends over the name of the logo to use. For LiveCycle, we don't want to "hard-code" the image to the form as our company logo changes and we don't want to change each form when this happens. Can we store the logo in the application and send XML data over telling it which logo to use in the Image Field?
    Thanks,
    Wendy

    Geet,
    Just bind the URL field you have in the WSDl to the Image Field and I belive it should display the image.
    Alternatively these links should give you some hints:-
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/wdjava%20archive/dynamic%20non-interactive%20pdf%20form.pdf
    How to insert a dynamic link in an image
    Chintan

  • Link between storage location and batch number to retrive the salk3 field

    HI,
    In my report i need to give the output as follows
    For each lgort with related batch number we need to get the salk3.So i need to get a link between lgort , batch number to retrive the salk3.can any one give the tables from which i can get the link and retrive the data.
    note: My report output should look like the fields lgort batch  and unrestriced value of stock in tcode mb52.
    subhashini.
    Edited by: subhashinikb on Apr 1, 2011 9:38 PM

    Hi,
    In 2 steps, u can get the unrestricted stock value.
    step1: Get material no (MATNR), plant (WERKS), batch (CHARG) and unrestricted stock (CLABS) from table MCHB by sending Storage location and batch number.
    Step2: Get standard price STPRS from table MBEW based on condition where MATNR = MCHB-MATNR, BWKEY = MCHB-WERKS and BWTAR = MCHB-CHARG.
             unrestricted value in MB52 will be (MCHB-STPRS) * (MCHB-CLABS).

  • Displaying an error message with a link to the error field

    By default, ADF validation usually displays an alert with an error message and a link to the error field.
    I have some custom validations where I finally display the error message with this:
      public static void MessageError(String messageText){
        //String messageText="No se han encontrado estos datos";
        FacesMessage fm = new FacesMessage(messageText);
         * set the type of the message.
         * Valid types: error, fatal,info,warning
        fm.setSeverity(FacesMessage.SEVERITY_ERROR);
        FacesContext context = FacesContext.getCurrentInstance();
        context.addMessage(null, fm);
    My customer is asking for displaying a link to the error field in this kind of error alerts as standard errors do.
    Is there any way to get this ?

    Can't you include this in your message?
    You may want to check Duncan's blog https://blogs.oracle.com/groundside/entry/get_more_from_your_messages whichgives more inside on what you can do
    Timo

  • Values are generating in the prepopulated fields from the XML data sourece I binded to the fields

    Hello,
    Fairly new here.
    I am trying to insert the payrate and name values in a pdf document on LiveCycle.  I created the XML file from our access database (about 1100 names), created the text fields using the same field names in the XML file, connected the XML file in liveCycle, binded  the fields but when I convert to PDF nothing is there.  I think my issue is the script in the XML file.  Has anyone else come across this issue. Please help me with what I am doing incorrectly.
    I am hoping to just hit a button and 1100 documents will generate with the two fields prefilled. Am I dreaming?
    Thank you in advance for your time.

    Are the data values wildy different? i.e. Completely wrong, or are they off due to rounding?
    I would start with member formulas and make sure that any in the BSO cube have been re-created in the ASO cube.
    I guess, also double check that the level 0 export loaded, with no rejects.

  • Global binding text disappears once you move to the next field

    I have created this pdf form using Acrobat 7 Professional. now I have ver.8. I also have Adobe Desinger 8.0. I wanted two field to have the same data, so I used global binding. In the preview mode, it works fine. I have add reader extension rights and security to the document. Now when I open it in Adobe Reader 8 and fill the form, it will let me type in and shows up in both the fields, once I move to the next field, the name in the field disappears from both the fields. Any idea?
    Thanks in advance.

    I'm having the same issue. Fields are named independently (my one and only global field is set on the master page, named "Beryllium"). Other fields function as they should and binding is set to normal.
    When I type into my Beryllium global field, then move into another text field below, the typing I entered into "Beryllium" disappears and does not carry over to subsequent pages.
    Anyone help with this frustrating issue?

  • When I share a link (URL) only Apple computers receive the link. Others such as PCs and Blackberries get the message, but the field which should have the link is blank. Is this normal?  Why can I only send to Apple machines?

    when I "share a link" (URL) using the pulldown menu in Safari, the email goes to all addresses I indicate, but only Apple computers receive the link. Others such as PCs and Blackberries get the message, but the field which should have the link is blank. Is this normal?  Why can I only send to Apple machines?

    I have had a similar problem with my system. I just recently (within a week of this post) built a brand new desktop. I installed Windows 7 64-bit Home and had a clean install, no problems. Using IE downloaded an anti-virus program, and then, because it was the latest version, downloaded and installed Firefox 4.0. As I began to search the internet for other programs to install after about maybe 10-15 minutes my computer crashes. Blank screen (yet monitor was still receiving a signal from computer) and completely frozen (couldn't even change the caps and num lock on keyboard). I thought I perhaps forgot to reboot after an update so I did a manual reboot and it started up fine.
    When ever I got on the internet (still using firefox) it would crash after anywhere between 5-15 minutes. Since I've had good experience with FF in the past I thought it must be either the drivers or a hardware problem. So in-between crashes I updated all the drivers. Still had the same problem. Took the computer to a friend who knows more about computers than I do, made sure all the drivers were updated, same problem. We thought that it might be a hardware problem (bad video card, chipset, overheating issues, etc.), but after my friend played around with my computer for a day he found that when he didn't start FF at all it worked fine, even after watching a movie, or going through a playlist on Youtube.
    At the time of this posting I'm going to try to uninstall FF 4.0 and download and install FF 3.6.16 which is currently on my laptop and works like a dream. Hopefully that will do the trick, because I love using FF and would hate to have to switch to another browser. Hopefully Mozilla will work out the kinks with FF 4 so I can continue to use it.
    I apologize for the lengthy post. Any feedback would be appreciated, but is not necessary. I will try and post back after I try FF 3.16.6.

  • How to remove link content from the link structure field

    Hi,
    I created a UDF as Link struture in marketing document title to link external file. After file has been linked to the UDF and saved, how do I remove it to empty the field? I tried to point to the field and right click, but couldn't find any function to remove the link.
    KC

    Press ALT + Double Click to remove the Link content from the UDF

Maybe you are looking for

  • FMLE won't detect audio devices

    FMLE won't detect any of my audio devices even when I set them to default device. It only detects my microphone, and I've searched online for many fixes and to no avail.

  • SOA OSB Deployment best practices in Production environment.

    Hi All I just wanted to know the best practices followed in production environment for deploying OSB and SOA Code. As you are aware that both require libraries from either (Jdev or SOA Suite) and (OEPE and OSB)? Should one rip the libraries and packa

  • Error during open project CJ20N

    Hi In my project user have create two WBS on Level 1 when i try to open it on project level system gave me massage "Not All Object were lock" in SM12 their was no lock entries & when i run report in SE38 system gave error massage " Right neightbor do

  • Scheduling WEBI reports with formulas for parameters

    Post Author: David Gordon CA Forum: WebIntelligence Reporting Hi, I am new to this environment. I would like to try and schedule a report monthly with dates (that will change from month to month). ie first and last day of previous month. Is there an

  • How to change the Slection text of Standard  Program RFVEPBOOK

    Hello, I copied the standard program RFVEPBOOK , now I want to change the selection text as per the requirement. But in that three fields are inactive where we define the selection text so that I am not able to change the text for that field  and two