Want to select link in query

Hello,
I want to select a link in a sql query.
I create a report with the following sql query
select ' '||'<a href=www.nu.nl /a>' link from dualwhen i run the page I do not get a link to the www address.
If I look at the source the sourve is like this:
<less than sign> a href=www.nu.nl /a<greater than sign>
what am I missing??
Regards

Try this:
select {single quote}{less than sign} a href="www.nu.nl">{single quote}||link||{single quote}</a {greater than sign}{singel quote} from dual
Edited by: Bob Richards on Nov 10, 2010 12:46 PM
Edited by: Bob Richards on Nov 10, 2010 2:26 PM

Similar Messages

  • Do not want key date in the selection screen in query

    Hi,
    I have made a query for Customer Ageing. I do not want a selection screen- however, i still get a prompt for the 'Key Date'.
    Can someone suggest me a workaround?
    Many Thanks,
    Deepinder

    Hi Deepinder,
    Though Key date is not there in the filter area, it is being used in any restrcited key figures in your report. Check all the RKFs used in your report. Also the ones indirectly involved in calculations. May be you are calculating diff between key date and posting date and then used this difference for further calculations.
    Either you remove those RKFs if not needed, or in the property of your formula variable uncheck ready for input.
    Best Wishes,
    Mayank

  • How do make link between query and UDF

    How do you link a query to your UDF after you created the query and the UDF?
    Also do you have to set the UDF as type "general", and "link"?
    Please take me thru step?

    oh good - a discussion about whether to use "link" or "image" when having an image connected to a product!!!
    Billy and Suda - We had fun with this one some time ago in a project collecting additional data and images for the customer's products on the market.  As we were ramping up the project, we tried both ways of connecting an image to a product and there was a few drawbacks we found with using the UDF type of "General" and "Image":
    1.  The image was placed directly on the UDF portion on the Item Master - they were working in large TIFF (?) formats and the picture just looked horrible.  The approving manager could not tell if the image should be approved for press or not.  When he double-clicked on the image in the UDF portion it brought up another SAP window that wasn't quite crystal clear.
    2.  The image took up so much room on the UDF portion of the Item Master that the data entry personnel had to constantly scroll down to enter the other data points (color, size, branded promo, mixture, etc - there were about 12 fields).  Talk about being ticked!
    3.  While using the "General" and "Link" it addressed those concerns BUT there was one extra enormous advantage with this General/Link method.  When the image was brought up, it opened up the image automatically in a standard picture editor/manager program.  If they liked what they saw, they continued foward with the approval of the image for press runs.  If they did not like the image, they were able to manipulate the image at the moment and then follow through with approval (time saver for sure!).
    I am sure it all boils down to what the customer requirements are, but some other clients I demoed this to wanted to switch immediately after seeing that!  But definitely something to think about if you are planning on connecting an image to a product...
    Oh and she really is correct, Billy - I have never heard of anyone linking a query to a "link" or "image" type...I don' t know how you would even do that as the "link" or "image" selection leads you directly into the attachment and/or storage path and location...
    take care - Zal

  • Linked server query using Dynamic SQL

    I have a Linked server query that takes forever to run. WHen I hardcode the acct# it runs fast. However I want these acct numbers int he where clause to be generated dynamically. For eg: below is what I need:
    --Get the 11 Loans from this Table A From the FIRST QUERY
    --- Plug those loans numbers in the second query  In the WHERE Clause eg should looks like  where  ACCT in (1,2,3,5)
    DECLARE
    @sSQL varChar(MAX)
    SET @sSQL
    =
    ' SELECT
    [Loan] FROM TableA D
    EXECUTE(@sSQL)
    --2ND QUERY 
    DECLARE
    @sSQL1 varChar(MAX)
    SET @sSQL1
    ='
    SELECT Field1, 
    Field2,
    Field3,
    Field4,
    Field5
       FROM LinkedServer.Dbaname.dbo.TableB a
    where ACCT in ''('''
    +(@sSQL)
    +
    ''')'''--- This needs to look like  where  ACCT in (1,2,3,5)
    select
    @sSQL1

    Ok, so use this.. instead of your first statement.
    DECLARE @sSQL NvarChar(MAX), @output NVARCHAR(100), @ParmDefinition nvarchar(500);
    SET @ParmDefinition = N'@sqlout NVARCHAR(100) OUTPUT'
    SET @sSQL = N'SELECT DISTINCT @sqlout = STUFF((SELECT '',''+CAST(S2.loan AS VARCHAR(100))
    FROM tableA S2
    FOR XML PATH('''')), 1, 1, '''')
    FROM tableA S1'
    EXECUTE sp_executesql @sSQL, @parmdefinition, @sqlout = @output OUTPUT
    and use @output instead of @sSQL in the second statement.
    You can read about STUFF command @
    http://sqlsaga.com/sql-server/how-to-concatenate-rows-into-one-row-using-stuff/.
    Good Luck :)
    Visit www.sqlsaga.com for more t-sql code snippets or BI related how to's.

  • How to use multi select in a query report

    I defined a lov. This lov retuns name and a id. I want to use the result of this multi select in my query.
    I always get invalid number when I choose two items of the select. When I debug I see that the return value of the multi select is 1:2. How can I change the seperator : in , I tried the following but this does't work.
    if :P26_PRODUCTTYPE IS NOT NULL then
    l_sql := l_sql ||' and producttype in
    (REPLACE(:p26_producttype,'':'','','' ))';
    end if;

    as you're finding, multiple values selected from html db multi-select list items (and checkboxes) are stored as a single, colon-delimited string. i explained an easy way to handle this via pl/sql in...
    Multiple select list
    ...that post shows you how to throw the selected values into a pl/sql table and step through them as needed. it also showed how to use an instr to parse through the string if you want to go that route. you could use that same instr logic right in your sql query. so let's say your lov for your multi-select item (P1_MY_MULTISELECT, we'll call it) was defined as...
    select ename, empno from emp order by 1
    ...and your user selected KING, FORD, and JONES. :P1_MY_MULTISELECT would store those values as...
    7839:7902:7566
    ...you could then write a query to return the selected enames with something like...
    select ename, job
    from emp
    where insrt (':'||:P1_MY_MULTISELECT||':',':'||empno||':') != 0
    ...hope this helps,
    raj

  • How to put variable selection and the query result the same screen

    Dear all,
       how can I put the variable selection and the query result in the same screen? Please advise. Thanks.
    Jin Ming

    Not sure if you are saying you want the prompts on the same page as the results... however in 7.0 with BEx Analyzer, you can insert a text object from the design toolbar and assign it to the variable.... this way, lets say you run query for period 6, then the text object will display "6" on the same area where the query results are.

  • Select a Dynamic Query

    Hello, I have a table with a serie of selects storage into a column, they are VARCHAR2 type and I have a package that retunrs in a function the result of any of this querys, but I want to select them in the SQL command line like
    SQL> Select * from (PKG.Function(Cod) )
    The result of the function is a query but in VARCHAR2.
    That's one, the another is, if there is not a way to do that, I can create a Function that returns a Cursor and them select it in the SQL command line like before.
    I now that I can do this with a Function call TABLE, but the problem is that I must create a object over the Data Base, It have the specification of the columns returned by the CURSOR. The problem is that I can't create that object every time I insert a new query and if any of the others querys changes then I must change the object I somenthing more Dynamic. Thank you for your answers.

    Hello, Alex...sorry I didn't answer before.
    1) I saw your suggestion but I need it in a Select setence.
    2) Well I was looking something like that, not exactly a Ref Cursor but something symilar.
    3) I have a table, and in this table I have differents selects, they are I kind of "services" used for reportes, etc., recently I need to do another query but using one of this queries in my "From" sentece, but I don't want to rewrite the query because if someone modify that query I need to modify mine too, so I was thinking may be Oracle have something that can execute that query, convert it into table and then used in my select. I now that a can use the function "TABLE", but I'll like something more dynamic, not just only for my select, for any of those selects or new ones.
    Thank you for your answer Alex and if you have any idea I appreciate.

  • Want to select expence acount?

    hi expert all.
    i  want to select  all  expence acount (this expence account is showing in Grid. ) for a one Item(like pipe) from  Item master data.
    where  set GL account  By Item level
    Edited by: john_kk on Jun 29, 2009 1:00 PM

    HI,
    SELECT T0.ItemCode,T1.[ExpensesAc] FROM OITM T0  INNER JOIN OITW T1 ON T0.ItemCode = T1.ItemCode WHERE T0.[DfltWH] = T1.[WhsCode]
    Take care, this query is not checking that the G/L Account determination set to by WareHouses.
    Regards,
    János
    Ps:
    as Vitor has been already written when G/L Method is set to  -
    - Item Group, the  OITB.ExpensesAc will be used for posting in this case G/L Method set to C
    - Warehouse the OWHS.ExpensesAc  will be used for posting n this case G/L Method set to W
    - Item Level, then OITW.ExpensAcct will be used.n this case G/L Method set to L
    Edited by: János Nagy on Jun 30, 2009 10:42 AM

  • I want to use the SQL query IF EXIST to update or insert data in a ms access table, but it doesn´t work

    Hi,
    I want to use the SQL query IF EXIST to update or insert data in a ms access table, but it doesn´t work
    (fault number -2147217900)
    I want to search for a value in a ms access table , if it exist i want to update it, if not i want to insert a new row.
    Working with LabView 7.1, database con. toolset.
    Who can HELP?
    Thanks a lot
    Marco

    Hello,
    I think that If exist is not a standar SQL command (I know it exists I think in Oracle and SQL server), MS access doesn't support it, so I think the best way to do it is first make a Select and then either an Update or an insert, sorry...
    Paulo

  • Selecting Randoms from Query of Queries

    I can create a query that selects random records
    <cfquery....>
    select top 10 * from table order by newid() <!--- SQL
    Server --->
    </cfquery>
    or
    <cfquery....>
    select top 10 * from table order by rand() limit 10 <!---
    MySQL--->
    </cfquery>
    However, is there a way to cache a query then select random
    records from it?
    I want to cache the overall query that retrieves all the
    records, then
    randomly pull
    from that cached query.
    If I use newid() or rand(), the query bombs on the
    parentheses.
    Any suggestions?
    Tami

    well, it's not really a query of queries... more like a query
    of a cached
    query :)
    "DixieGal" <[email protected]> wrote
    in message
    news:ffsn1b$***$[email protected]..
    |I can create a query that selects random records
    | <cfquery....>
    | select top 10 * from table order by newid() <!--- SQL
    Server --->
    | </cfquery>
    |
    | or
    | <cfquery....>
    | select top 10 * from table order by rand() limit 10
    <!--- MySQL--->
    | </cfquery>
    |
    | However, is there a way to cache a query then select random
    records from
    it?
    | I want to cache the overall query that retrieves all the
    records, then
    | randomly pull
    | from that cached query.
    |
    | If I use newid() or rand(), the query bombs on the
    parentheses.
    |
    | Any suggestions?
    |
    | --
    |
    | Tami
    |
    |

  • Enable fiscal year/quarter selection in a query

    Hello all,
    I want to have an characteristic fiscal year/quarter similar to fiscal year/period (0FISCPER) in my query. Unfortunately I can not find such a characteristic in the time infoObjects in my cube and in the administrator workbench.
    Our Fiscal year starts in July. So the first quarter is July - September. The BW release is 3.5.
    How canI enable a fiscal yearquarter selection in my query?
    Any ideas would be great.
    Thanks upfront and Best regards,
    Stefanos from Munich/Bavaria/Germany

    Stefanos ...
    A couple of options for the same :
    1. Have 0FISCPER in your cube and map the same to the custom characteristic in the update rules.
    2. Have the custom characteristic in the cube in a separate dimension
    3. If you have the same in the cube - have a variable against that and execute your query...
    By doing the above you can get the same in the query.
    Arun
    Assign points if useful

  • Field selection in SAP query

    Hello Team,
    I have a query on SAP query. I have the field MSEG-KZEAR and RESB_KZEAR. Now the MSEG field is visible in sq01 and is selected as output but the table has no entries for this field. Also the entries are maintained in RESB field. But RESB table is not visible for selection in sq01; however I can see the table in sq02 but unable to select the said field as output.
    I want to select the RESB-KZEAR field for output but i am unable to do so in SQ01.
    SQ01
    SQ02
    Please help to do so.
    Thanks again for your time,
    Beryl

    Hi Beryl,
    Please move your RESB-KZEAR field into Group fields using drag and drop in SQ02.
    and activate your SAP Infoset aafter that you can use  infoset in Query.
    Then value will be moving from RESB table.
    Regards,
    Prasenjit Mishra

  • Copy list of selected links' filenames

    I want to be able to select several links on the Links panel and copy just those filenames to the clipboard. This is so after I do my magazine layout, I can email the photographers a list of their images I've used, so they can prep and send high-res versions. I know you can copy the names with res and colourspace and whatnot from the Links panel menu, but it seems it should be easy enough to just snag the names alone.
    Of course, a script is the answer. I've tried scripting it by chopping and pasting sort-of-almost-nearly scripts, but that's not worked out so far— and I'm afraid scripts are still Greek to me.
    Thanks if you can help!

    I think we have no access to the selected items in the Links Panel through scripting.
    However you can write your own links panel with ScriptUI showing all links. From that one you could get access to the selected links of your custom panel.
    More on ScriptUI and working with panels or windows here:
    ScriptUI for dummies | Peter Kahrel
    Uwe

  • SQL select group by Query

    Suppose a table T1 has 2 columns C1 and C2 and data as follows:
    C1 C2
    == ==
    1 A1
    1 A2
    2 B1
    2 B2
    2 B3
    3 C1
    4 D1
    4 D2
    I want to write a SQL query to select data and display as follows (i.e. grouped by C1, but C2 should display as single field with say '-' seperator):
    C1 C2-Details
    == ========
    1 A1-A2
    2 B1-B2-B3
    3 C1
    4 D1-D2
    Please help.
    Thanks in advance
    Goli

    Your query maybe like this
    SELECT c1,
    LTRIM(MAX(SYS_CONNECT_BY_PATH(c2,'-'))
    KEEP (DENSE_RANK LAST ORDER BY curr),'-') AS employees
    FROM (SELECT c1,
    c2,
    ROW_NUMBER() OVER (PARTITION BY c1 ORDER BY c2) AS curr,
    ROW_NUMBER() OVER (PARTITION BY c1 ORDER BY c2) -1 AS prev
    FROM t1)
    GROUP BY c1
    CONNECT BY prev = PRIOR curr AND c1 = PRIOR c1
    START WITH curr = 1;

  • Toplink issues select distinct type query before fetch

    When we have type classifiers identified by value, Toplink issues a 'SELECT DISTINCT TYPE' on the parent object and then queries the child records for that type, is there way to avoid the select distinct
    type query from Toplink in queries, this is slowing down the query performance. thanks

    More info
    This is the Report Query:
    Session session = PersistenceFactory.newSession();
    ExpressionBuilder eb = new ExpressionBuilder();
    ReportQuery query = new ReportQuery( eb );
    query.setReferenceClass( FXSingleLegDealC.class );
    query.useCollectionClass( ArrayList.class );
    query.setSelectionCriteria( eb.get( "objectID" ).equal( 249994 ) );
    query.addAttribute( "objectID", eb.get( "objectID" ) );
    query.addAttribute( "parentDealFXDealLegCurrency1Amount", eb.get( "dealFXSingleLegParent" ).get( "fxDealLeg" ).get( "currency1Amount" ) );
    query.addAttribute( "parentDealFXDealLegCurrency1Amount", eb.get( "dealFXSingleLegParent" ).get( "fxDealLeg" ).get( "currency2Amount" ) );
    query.addAttribute( "parentDealFXDealLegCurrency1Amount", eb.get( "dealFXSingleLegParent" ).get( "fxDealLeg" ).get( "currency1" ).get( NamedEntity.ShortName) );
    query.addAttribute( "parentDealFXDealLegCurrency1Amount", eb.get( "dealFXSingleLegParent" ).get( "counterpartyA" ).get( NamedEntity.ShortName) );
    ArrayList result = ( ArrayList ) session.executeQuery( query );
    This is the SQL Generated:
    SELECT t0.id, t1.ccy1Amt, t1.ccy2Amt, t2.shortName, t3.shortName FROM IdcCpty t3, IdcInstr t2, IdcDeal t1, IdcDeal t0
    WHERE (((t0.id = ?) AND (t0.type = ?)) AND ((((t1.id = t0.parentId) AND (t1.type = ?)) AND ((t2.id = t1.ccy1Id) AND (t2.type = ?))) AND ((t3.id = t1.cptyAId) AND (t3.type = ?))))
    bind => [249994, IdcFXSLegDealC, IdcFXSLegDealC, IdcCrncC, IdcLglEntC]
    Not sure why we need to query for type on t2 and t3 after we have made a join by id (t2.id = t1.ccy1Id,t3.id = t1.cptyAId), this is really breaking our performance, we do not want to add an index on
    the type column
    can someone please respond!?

Maybe you are looking for