Query in understanding of htf.anchor

Hi ,
Can someone help me in understanding the below piece if plsql code which is embedded in htf.anchor.
Is the following code will show the output like the one table will be formed
with one row where a link will be visible and if we click on that the plsql is executed
or the table will have the results returned with numerous set of rows from that called procedure
of empreport.
########Sample Code Snippet
HTP.CENTER (HTF.tableOpen ('BORDER=0'));
HTP.tableRowOpen;
HTP.PRINT ('<TD>');
HTP.ITALIC
HTF.ANCHOR
          (CURL       =>    Tree.URL_PATH
          || 'empreport.dept_wise?viewtype=BAR&begin_period='
                                || V_BEGIN_PERIOD
                              || '&end_period='
                            || V_END_PERIOD
                            || '&order_by='
                            || V_ORDER_BY,
                       CTEXT      =>    HTF.fontOpen (NULL, 'arial', 2)
                            || 'Bar Chart'
                   CATTRIBUTES      => 'WIDTH="50"'
HTP.PRINT ('</TD>');
HTP.tableRowClose;
HTP.tableClose;                      Regards,
Ajoy
Edited by: BluShadow on 17-Sep-2012 08:58
added {noformat}{noformat} tags as described in the forum FAQ: {message:id=9360002}.  Please learn to do this for yourself in future.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

I read your question twice and I do not understand what you are asking. A couple of thoughts:
1. What version number?
2. Read the FAQ and learn how to use tags to make your listing readable.
3. Provide examples of what you are trying to describe in words ... likely it is just a language barrier but the lack of clarity makes it very hard to respond.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Hyper links not working in SQL Query in Version 1.6 using htf.anchor

    hi All
    have written a sql query to generate a hyperlink with htf.anchor and not able to generate the links for the same
    following is the query:
    select HTF.ANCHOR('F?P=119:1:'||:APP_SESSION,'ADMIT =&gt;')
    ||COMPANY_NAME AS "AUTHORIZED VISITORS" from
    company_details
    any help is appreciated....
    thanks in advance
    Sukhmani

    Hi Scott
    The Hyperlinks are not getting generated...after using HTF.ANCHOR and was working fine with 1.5 after upgarding to 1.6 its just showing the <A href> as it is without the hyperlink.
    The first one i was trying in the SQL workshop and the second one is 'm using in the code itself.
    'm not able to c the hyperlinks at runtime
    its showing it as
    $ 0 Total Support
    after using the code
    select htf.anchor('f?p=119:8:'||:app_session,'$'||lpad(nvl(sum(apps_revenue+tech_revenue),0),10,' ')) ||lpad('Total Support',50,' ')
    from company_details
    where duns_no=:P3_DUNS_NO or
    duns_no in (select duns_no from company_details where upper(company_name) like upper(:P3_COMPANIES))

  • EJB 2 : Query in understanding Transaction Attribute NotSupported

    NotSupported
    The Container invokes an enterprise Bean method whose transaction attribute is set to NotSupported with an unspecified transaction context.
    I am having a query in understanding the above thing .Please let me know what does above mean and also what transaction context mean in the below :
    If a client calls with a transaction context, the container SUSPENDS the association of the transaction context with the current thread before invoking the enterprise bean's business method.
    Thanks in advance .
    Waiting for your replies .

    it means that the method must operate outside of an active transaction - in other words there will be no active transaction during its runtime. If there is an active transaction when the method is called, that transaction is "put on hold" until the "notsupported" EJB call finishes.

  • Set Column width in query (not using SQL*Plus)

    How can I Set Column width in query
    I understand you can set column width using
    column col1 FORMAT A5
    select col1 from table1;But this only works in SQL*Plus
    I want to be able to do this in a regular SQL query window (not in SQL*Plus), how can I do it.....
    I am using a 'SQL window' in PL/SQL Developer IDE
    and when I use this syntax it says:
    ORA-00900: Invalid SQL statement
    Any suggestions are appreciated...
    thanks,
    M.

    Did you try using RPAD or LPAD functions? They fill the unfilled part of a string with character you provide... either on right or left side depending on what function you use.
    e.g.
    SELECT RPAD('Smith', 10, ' ') Name FROM dual;http://www.adp-gmbh.ch/ora/sql/rpad.html
    Edited by: Zaafran Ahmed on Nov 10, 2010 11:50 AM

  • 4402 anchor in DMZ, how to configure the Firewall

    Hello,
    I am not sure if there is a document or thread on this topic aleady though I have been looking.
    We have a 5508 foreign controller
    We have a 4402 anchor controller
    We have a DMZ layer 2 only switch
    We have a ASA5520 firewall
    I have configured both WLC controllers for guest wireless to the DMZ. They see each other in the mobility group.
    I have added vlan800 (arbitrary vlan we chose) in the DMZ switch. Currently is does not have any ip address on it and we would prefer if it stays that way.
    We want the anchor to also provide the dhcp scope for all guest wireless which is why we created vlan800 on the DMZ switch as well as in the Anchor controller.
    The Anchor controller vlan800 has an ip address 172.18.1.2/24.
    The guest wireless network is 172.18.1.x/24 (again, provided by the anchor controller).
    My firewall has a DMZ address of 172.16.67.1/24
    Ok here is where I get more fuzzy, How do i configure my firewall to accept traffic from the new ip scope i created?
    The firewall does not have anymore free physical ports so I think I have to somehow make the existing physical DMZ interface a trunk or give it a secondary ip address of 172.18.1.1/24 to become the gateway for the guest wireless traffic. (besides setting up the allow/deny rules for internet access in the firewall).
    I have not been able to find a document that goes into the DMZ requirements for wireless so far.
    Thanks!

    Hi Dennis,
    Yes I have gotten the two controllers talking to one another and able to do both ping test eping and the other one (i forget the name).
    I do believe I have a working understanding of the anchor to foreign controller configuration.
    My question is specific in as much as it relates to the DMZ switch and firewall.
    The configuration of the DMZ switch and firewall is the documentation I am unable to locate with examples of this configuration.
    I cannot seem to get to any link that has the word "partner" in it even though I log into my cisco account.
    If there is a different link I would be happy to check it out.
    As for your question about trunking the port, can you clarify which device your speaking of?
    I have the DMZ switch port trunked that connects to the Anchor controller.
    Thanks

  • Understanding of MOD function

    Hi all,
    I'm not familiar with MOD function, could someone please explain how does it work.
    Actually, why
    select months_between(trunc(sysdate+125,'MM'),trunc(sysdate+125,'Q')) from dual and
    select mod(to_char(sysdate+125, 'mm') - 1, 3) from dual return the same value?

    Hi,
    MOD is a numeric function, which takes two numbers as input and returns reminder of the devision of number 1 by number 2.
    for example
    for, 10/3 , you will get reminder 1. So mod ( 10, 3) will return you 1.
    The two queries you have given are taking one date ( i.e. sysdate + 125 = 02-AUG-11 + 125 = 05-DEC-11 ),
    and returns the difference in months between the starting of current quater and that date.
    Both are doing same things but with different logic.
    select mod(to_char(sysdate+125, 'mm') - 1, 3) from dualMake the piece of this query to understand how its working:
    - Its taking the month of the date i.e. 12 and subtracting 1 from it (i.e 11).
    - its than using the mod funtion to get the reminder of 11 / 3. mod ( 11 / 3 ) = 2.
    HTH,
    Regards,
    Dipali.

  • I want to understand Explain Plan

    Dear Gurus,
    I want learn/understand Explain Plan for query so as to tune the query.
    OR I want to tune query by understanding their plan but how it help to tune query.
    Could anybody give me link or material on above.
    Thanking in advance
    Sanjeev

    If you don't want to read the Oracle documentation, then this book is excellent: Troubleshooting Oracle Performance - Christian Antognini
    It does a great job of explaining execution plans.

  • Sql Query on subqueries

    Suppose one table "T" is having single coloumn "ID" with the values like 1,2,3,4,5,6,8,9,10 (Note: there is no 7). Now I want to display only 3,5,7,8,9 with select statement. I can write like
    SQL> select ID from T where ID in (3,5,7,8,9);
    Now It will display only rows 3,5,8,9 but not 7.
    My question is, how to display the row which does not exist (In this case 7) in my list.
    Please help me on this.
    Raghu N.
    Edited by: user3270580 on May 3, 2010 3:00 AM

    Hi,
    user3270580 wrote:
    Ex:
    create table rag (nid number(2),sid number(3));
    insert into rag values (1,100);
    insert into rag values (2,100);
    insert into rag values (3,100);
    insert into rag values (5,100);
    insert into rag values (6,100);
    insert into rag values (8,100);
    insert into rag values (9,100);
    update rag set sid = 200 where nid in (2,3,4,5,7,8);
    ============
    In this case, update statement will update only 4 rows (NIDs 2,3,5, and 8). We want to tell the customer that, update operatoin was not done for the rows (nid= 4 and nid=7), since they does not exist. Like wise we want to list all the non existing NIDs from list given by my customer.
    In your early query I understand that, we should have a table which contains the list of rows(nids) for which we need to peroform update operation (correct me if i am wrong). But, as per my customer policy, I should not create any new table in the database.No. I said you need a table OR A RESULT SET . The two queries I posted used a result set generated in the query iteself. As you can see, no new table was created.
    The solutions I posted earlier will give you the right results. From your latest message, it appears that you want the results 4 and 7 not because they are the missing integers in the range of rag.id (1 to 9) but because they are missing from some arbitrary list (2, 3, 4, 5, 7, 8). In that case, if you can put the list into a comma-delimited string, you can do this:
    SELECT  TO_NUMBER (column_value)     FROM     XMLTABLE ('2, 3, 4, 5, 7, 8')
    MINUS     
    SELECT     nid                    FROM     rag
    ;

  • Query filter vs report filter

    Hi,
    when running queries in webi, on a universe that is based on a BW BEx query, we often see a problem when trying to at dimensions in to the query filter pane. This often lead to columns switching place and/or report just showing the technical ID, not text. If we do the same filtering in the report filter pane after the query has run, there is no issue.
    When running a query on a universe based on a BEx query, my understanding is that a filter on a dimension (blue object), will be applied after the BEx query has delivered it's result to BO, and then BO/Webi should only keep the records fitting the filter. Why would this obscure the report result? Anybody else had issues with this?
    The users are used to adding filters to the query, and not adding filters in the report afterwards, and they are expecting this to work...
    Regards,
    Øystein

    Hi,
    To apply filters at two levels:
    The query definition u2013 this is the data defined on the Query tab, retrieved from the data source, and returned to the  report.
    The data displayed in the report u2013 this is a subset of the query definition data that you want to display in a specific version of the report
    Filters you apply to the query definition are called query filters. You use query filters to reduce the amount of data retrieved from the data source. Query filters decrease the time it takes to run the report and ensure that only the data relevant to the report users is saved.
    Filters you apply to the data displayed in the report are called report filters. Once the report is generated, you or other users can apply report filters to restrict the values displayed in the report table or chart. The values hidden by the report filters are still saved with in  the microcube. You can modify the report filters to display different values in the report or remove the report filters to display all the values retrieved from the data source.
    Tip
    Filtering the query minimizes the size of reports, reduces the time it takes to refresh report data, and ensures that the data the documents contain is relevant to users consulting the reports. Individual users can then filter the displayed report values by applying the report filters relevant to their specific business focus.
    All the Best,
    Madhu...

  • Calling a Procedure and Variables with a : vs. a ?

    Sorry, this is a long one, but I'm trying to provide as much background as possible.
    The below code (from a procedure called view_ibba_for_maint) is a snippet of code from a much larger SQL package. The package is called from a web browser.
    htp.tableOpen('CELLSPACING=1 CELLPADDING=1 width="50%"
    bordercolor="#669966"', calign=>'center');
    htp.tableRowOpen;
    htp.tableData(fontx||htf.anchor(owa_util.get_owa_service_path||
    *'nfdw_budadmn.del_ibba_warn:2'||'fyear='||fyear||'&'||*
    *'budorg='||budorg||'&'||'appr_unit='||appr_unit||'&'||*
    *'obje_ocat='||obje_ocat||'&'||*
    *'bud_auth_amount='||bud_auth_amount||'&'||*
    *'appr_name='||appr_name||'&'||*
    *'fy_id='||fycode||'&'||*
    *'borg_id='||borg_id||'&'||*
    *'appr_id='||appr_id||'&'||*
    *'obje_id='||obje_id||*
    *'"onMouseOver=" window.status=''Click to Remove IBBA Budget Line.'';*
    return true','Remove Budget'),calign=>'CENTER');
    htp.tableData(fontx||htf.anchor(owa_util.get_owa_service_path||
    *'nfdw_budadmn.mod_ibba_inp'||*
    *'"onMouseOver=" window.status=''Click to Return to Query Form.'';*
    return true','Return To Query Form'),calign=>'CENTER');
    htp.tableRowClose;
    htp.tableClose;
    This portion of code calls a procedure called del_ibba_warn (in the nfdw_budadmn package). Both procedures are in the nfdw_budadmn package. view_ibba_for_maint calls del_ibba_warn a few times in the procedure. Anyway, when we were on Oracle 8i, the package and procedures worked fine. However, when we upgraded to 10g, it fails. (see the following web_browser link and error that is generated)
    Internet Explorer Address Bar:     http://orasrv2/fdotdwat/nfdw_budadmn.del_ibba_warn:2fyear=2008&budorg=B065&appr_unit=466026&obje_ocat=8130&bud_auth_amount=0&appr_name=INFORMATION%20SERVICES&fy_id=6497&borg_id=65775&appr_id=263566&obje_id=23968
    Error:
    Bad Request
    Your browser sent a request that this server could not understand.
    mod_plsql: /fdotdwat/nfdw_budadmn.del_ibba_warn:2fyear=2008&budorg=B065&appr_unit=466026&obje_ocat=8130&bud_auth_amount=0&appr_name=INFORMATION SERVICES&fy_id=6497&borg_id=65775&appr_id=263566&obje_id=23968 HTTP-400 Name "nfdw_budadmn.del_ibba_warn:2fyear=2008&budorg=B065&appr_unit=466026&obje_ocat=8130&bud_auth_amount=0&appr_name=INFORMATION SERVICES&fy_id=6497&borg_id=65775&appr_id=263566&obje_id=23968" is longer than 30 chars
    We believe it is a problem with the way del_ibba_warn is called. In the original code it is called like this: 'nfdw_budadmn.del_ibba_warn:2'. So I try to replace the :2 with a ? (like this: 'nfdw_budadmn.del_ibba_warn?' (also tried nfdw_budadmn.del_ibba_warn?2'), but it still fails. The program actually replaces the new ? that I put into the code with a :1 in the internet explorer address bar when I run it.. (Not sure why a :1 and not a :2.) But, if I go and substitute the :1 with a ? in the address bar that is generated after I attempt to call the procedure, it works. I change the address bar to this:
    http://orasrv2/fdotdwat/nfdw_budadmn.del_ibba_warn?fyear=2008&budorg=B065&appr_unit=466026&obje_ocat=8130&bud_auth_amount= 0&appr_name=INFORMATION%20SERVICES&fy_id=6497&borg_id=65775&appr_id=263566&obje_id=23968
    Hit enter, and the procedure goes forward like it should. So, the overall question is why is the IE address bar forcing the :2 or :1 to show up in the address bar? Why won't it take my ? I put in? Why was it necessary for the original programer to label the del_ibba_warn calls with a : or a :2 at all? (Again, del_ibba_warn is called a few times in the procedure). And, it used to work when we were on 8i.
    We have been trying to figure this out (on and off) for some time now. We feel like we're right there for figuring this out, but can't quite get it. Any ideas? Please let me know if I can provide any additional info. Thanks!

    Darn, didn't work. I still get the same error.......
    The address bar:
    http://orasrv2/fdotdwat/nfdw_budadmn.del_ibba_warn:2fyear=2008&budorg=B065&appr_unit=466026&obje_ocat=8130&bud_auth_amount=0&appr_name=INFORMATION%20SERVICES&fy_id=6497&borg_id=65775&appr_id=263566&obje_id=23968
    The Error:
    Bad Request
    Your browser sent a request that this server could not understand.
    mod_plsql: /fdotdwat/nfdw_budadmn.del_ibba_warn:2fyear=2008&budorg=B065&appr_unit=466026&obje_ocat=8130&bud_auth_amount=0&appr_name=INFORMATION SERVICES&fy_id=6497&borg_id=65775&appr_id=263566&obje_id=23968 HTTP-400 Name "nfdw_budadmn.del_ibba_warn:2fyear=2008&budorg=B065&appr_unit=466026&obje_ocat=8130&bud_auth_amount=0&appr_name=INFORMATION SERVICES&fy_id=6497&borg_id=65775&appr_id=263566&obje_id=23968" is longer than 30 chars
    Now, I pasted the changes you suggested and the package did compile. But notice how it forces the ":2" into the address bar and the error message? That, I just don't get. Would it help if I posted the two procedures involved? I'll avoid posting the whole package (it's way big).
    Here are the two procedures involved.
    view_ibba_for_maint (before I made your suggested changes) & del_ibba_warn
    procedure view_ibba_for_maint(
    fyear IN VARCHAR2,
    budorg IN VARCHAR2,
    appr_unit IN VARCHAR2,
    obje_ocat IN VARCHAR2,
    password IN VARCHAR2)
    IS
    CURSOR c1 (c1_fyr_id IN NUMBER,
    c1_borg_id IN NUMBER,
    c1_appr_id IN NUMBER,
    c1_obje_id IN NUMBER,
    c1_fmonth IN NUMBER) IS
    select appr_budget_account_code, appr_budget_account_category, appr_name,
    orga_organization, obje_object_code, ibba_budget_authorized_amount
    from internal_budget_balances, appropriations, organizations, objects
    where ibba_fiscal_year_code = c1_fyr_id
    and ibba_fiscal_month_code = c1_fmonth
    and ibba_organization_id = c1_borg_id
    and orga_organization_id = ibba_organization_id
    and ibba_appropriation_id = c1_appr_id
    and appr_appropriation_id = ibba_appropriation_id
    and ibba_object_id = c1_obje_id
    and obje_object_id = ibba_object_id
    order by orga_organization,
    appr_budget_account_code||appr_budget_account_category,
    obje_object_code;
    CURSOR c2 (c2_fyr_id IN NUMBER,
    c2_borg_id IN NUMBER,
    c2_appr_id IN NUMBER,
    c2_ocat IN VARCHAR2,
    c2_fmonth IN NUMBER) IS
    select appr_budget_account_code, appr_budget_account_category, appr_name,
    orga_organization, ibba_budget_authorized_amount,
    ibba_object_category
    from internal_budget_balances, appropriations, organizations
    where ibba_fiscal_year_code = c2_fyr_id
    and ibba_fiscal_month_code = c2_fmonth
    and ibba_organization_id = c2_borg_id
    and orga_organization_id = ibba_organization_id
    and ibba_appropriation_id = c2_appr_id
    and appr_appropriation_id = ibba_appropriation_id
    and ibba_object_category = c2_ocat
    order by orga_organization,
    appr_budget_account_code||appr_budget_account_category,
    ibba_object_category;
    p_app VARCHAR2(40) :='nfdw_budadmn.mod_ibba_inp';
    c1_rec c1%ROWTYPE;
    c2_rec c2%ROWTYPE;
    dh_aelg_rec application_error_log%ROWTYPE;
    its_an_obje VARCHAR2(1) := 'F';
    valid_combo number := 0;
    obje_id objects.obje_object_id%TYPE;
    obje_name objects.obje_name%TYPE;
    borg_id organizations.orga_organization_id%TYPE;
    appr_id appropriations.appr_appropriation_id%TYPE;
    appr_name appropriations.appr_name%TYPE;
    report_date VARCHAR2(35) := to_char(sysdate, 'Month DD, YYYY');
    bud_auth_amount internal_budget_balances.ibba_budget_authorized_amount%TYPE;
    password_upper VARCHAR2(10);
    v_budadmn_password VARCHAR2(10);
    fmcode time.time_time_code%TYPE;
    fycode time.time_time_code%TYPE;
    fonth     VARCHAR2(100) :=
    '<font face="Verdana, Arial, Helvetica, sans-serif" size=2>';
    fontx VARCHAR2(100) :=
    '<font face="Verdana, Arial, Helvetica, sans-serif" size=3>';
    NULL_EXCEPTION EXCEPTION;
    INVALID_DOC EXCEPTION;
    PASSWORD_FAIL EXCEPTION;
    BEGIN
    SELECT distinct budadmn_password
    INTO v_budadmn_password
    FROM budadmn_password;
    v_budadmn_password := upper(v_budadmn_password);
    v_budadmn_password := rtrim(v_budadmn_password);
    password_upper := upper(password);
    password_upper := rtrim(password_upper);
    IF password_upper = v_budadmn_password
    THEN
    NULL;
    ELSE
    RAISE PASSWORD_FAIL;
    END IF;
    dh_aelg_rec.app_marker := 'GFYD';
    nfdw_budadmn.get_fiscal_data('NONE', fyear, fmcode, fycode, dh_aelg_rec);
    IF dh_aelg_rec.app_error_mesg = 'FAIL'
    THEN
    RAISE NULL_EXCEPTION;
    END IF;
    -- get appr id
    dh_aelg_rec.app_marker := 'APPR';
    nbdm_web.g_appr_id(substr(appr_unit,1,4), substr(appr_unit,5,2), fyear,
    appr_id, dh_aelg_rec);
    IF dh_aelg_rec.app_error_mesg = 'FAIL'
    THEN
    RAISE NULL_EXCEPTION;
    END IF;
    -- get budget org id
    dh_aelg_rec.app_marker := 'ORGA';
    nbdm_web.g_orga_id(budorg, fyear, borg_id, dh_aelg_rec);
    IF dh_aelg_rec.app_error_mesg = 'FAIL'
    THEN
    RAISE NULL_EXCEPTION;
    END IF;
    -- determine id search is by obje or ocat.
    IF length(obje_ocat) > 2
    THEN
    its_an_obje := 'T';
    dh_aelg_rec.app_marker := 'OBJE';
    nbdm_web.g_obje_id(obje_ocat, fyear, obje_id, obje_name,
    substr(appr_unit,1,4), dh_aelg_rec);
    IF dh_aelg_rec.app_error_mesg = 'FAIL'
    THEN
    RAISE NULL_EXCEPTION;
    END IF;
    END IF;
    IF its_an_obje = 'T'
    THEN
    dh_aelg_rec.app_marker := 'CHK1';
    SELECT COUNT(1)
    INTO valid_combo
    FROM internal_budget_balances
    WHERE ibba_fiscal_year_code = fycode
    AND ibba_organization_id = borg_id
    AND ibba_appropriation_id = appr_id
    AND ibba_object_id = obje_id;
    ELSE
    dh_aelg_rec.app_marker := 'CHK2';
    SELECT COUNT(1)
    INTO valid_combo
    FROM internal_budget_balances
    WHERE ibba_fiscal_year_code = fycode
    AND ibba_organization_id = borg_id
    AND ibba_appropriation_id = appr_id
    AND ibba_object_category = obje_ocat;
    END IF;
    IF valid_combo < 1
    THEN
    RAISE INVALID_DOC;
    END IF;
    IF its_an_obje = 'T'
    THEN
    -- Get max(ibba_fiscal_month_code)
    dh_aelg_rec.app_marker := 'FMC1';
    select max(ibba_fiscal_month_code)
    into fmcode
    from internal_budget_balances
    where ibba_fiscal_year_code = fycode
    and ibba_organization_id = borg_id
    and ibba_appropriation_id = appr_id
    and ibba_object_id = obje_id;
    nfdw_budadmn.nfdw_budadmn_rep_head(
    'Budget Maintenance',
    'BMAINT02',
    fyear,
    'N',
    'B',
    'N',
    'N');
    htp.tableOpen('border cellspacing=1 cellpadding=1');
    htp.p('<tr bgcolor=lightblue>');
    htp.tableHeader(fonth||(htf.bold('Orgn')), cattributes=>'WIDTH="2%"',
    calign=>'center');
    htp.tableHeader(fonth||(htf.bold('Appr Unit')),cnowrap=>'nowrap',
    cattributes=>'WIDTH="4%"',calign=>'center');
    htp.tableHeader(fonth||(htf.bold('Appr Name')),cnowrap=>'nowrap',
    cattributes=>'WIDTH="4%"',calign=>'center');
    htp.tableHeader(fonth||(htf.bold('Obje/Cat')),cattributes=>'WIDTH="2%"',
    calign=>'center');
    htp.tableHeader(fonth||(htf.bold('Auth Budget Amount')),
    cattributes=>'WIDTH="2%"', calign=>'center');
    htp.tableRowClose;
    OPEN c1(fycode, borg_id, appr_id, obje_id, fmcode);
    LOOP
    FETCH c1 INTO c1_rec;
    EXIT WHEN c1%NOTFOUND;
    BEGIN
    -- Create HTP
    htp.tableRowOpen;
    htp.tableData(fonth||nvl(c1_rec.orga_organization,'-'),
    cnowrap=>'nowrap', calign=>'center');
    htp.tableData(fonth||nvl(c1_rec.appr_budget_account_code||
    c1_rec.appr_budget_account_category,'-'),
    cnowrap=>'nowrap', calign=>'center');
    htp.tableData(fonth||nvl(c1_rec.appr_name,'-'),
    cnowrap=>'nowrap', calign=>'center');
    appr_name := c1_rec.appr_name;
    htp.tableData(fonth||nvl(obje_ocat,'-'),
    cnowrap=>'nowrap', calign=>'center');
    htp.tableData(fonth||to_char(c1_rec.ibba_budget_authorized_amount,
    '9,999,999,999.99'), cnowrap=>'nowrap', calign=>'right');
    bud_auth_amount := c1_rec.ibba_budget_authorized_amount;
    htp.tableRowClose;
    htp.tableClose;
    END;
    END LOOP;
    CLOSE c1;
    ELSE
    -- Get max(ibba_fiscal_month_code)
    dh_aelg_rec.app_marker := 'FMC2';
    select max(ibba_fiscal_month_code)
    into fmcode
    from internal_budget_balances
    where ibba_fiscal_year_code = fycode
    and ibba_organization_id = borg_id
    and ibba_appropriation_id = appr_id
    and ibba_object_category = obje_ocat;
    nfdw_budadmn.nfdw_budadmn_rep_head(
    'Budget Maintenance',
    'BMAINT02',
    fyear,
    'N',
    'B',
    'N',
    'N');
    htp.tableOpen('border cellspacing=1 cellpadding=1');
    htp.p('<tr bgcolor=lightblue>');
    htp.tableHeader(fonth||(htf.bold('Orgn')), cattributes=>'WIDTH="2%"',
    calign=>'center');
    htp.tableHeader(fonth||(htf.bold('Appr Unit')),cnowrap=>'nowrap',
    cattributes=>'WIDTH="4%"',calign=>'center');
    htp.tableHeader(fonth||(htf.bold('Appr Name')),cnowrap=>'nowrap',
    cattributes=>'WIDTH="4%"',calign=>'center');
    htp.tableHeader(fonth||(htf.bold('Obje/Cat')),cattributes=>'WIDTH="2%"',
    calign=>'center');
    htp.tableHeader(fonth||(htf.bold('Auth Budget Amount')),
    cattributes=>'WIDTH="2%"', calign=>'center');
    htp.tableRowClose;
    OPEN c2(fycode, borg_id, appr_id, obje_ocat, fmcode);
    LOOP
    FETCH c2 INTO c2_rec;
    EXIT WHEN c2%NOTFOUND;
    BEGIN
    -- Create HTP
    htp.tableRowOpen;
    htp.tableData(fonth||nvl(c2_rec.orga_organization,'-'),
    cnowrap=>'nowrap', calign=>'center');
    htp.tableData(fonth||nvl(c2_rec.appr_budget_account_code||
    c2_rec.appr_budget_account_category,'-'),
    cnowrap=>'nowrap', calign=>'center');
    htp.tableData(fonth||nvl(c2_rec.appr_name,'-'),
    cnowrap=>'nowrap', calign=>'center');
    appr_name := c2_rec.appr_name;
    htp.tableData(fonth||nvl(c2_rec.ibba_object_category,'-'),
    cnowrap=>'nowrap', calign=>'center');
    htp.tableData(fonth||to_char(c2_rec.ibba_budget_authorized_amount,
    '9,999,999,999.99'), cnowrap=>'nowrap', calign=>'right');
    bud_auth_amount := c2_rec.ibba_budget_authorized_amount;
    htp.tableRowClose;
    htp.tableClose;
    END;
    END LOOP;
    CLOSE c2;
    END IF;
    -- Links
    htp.br;
    htp.br;
    htp.br;
    htp.line;
    htp.tableOpen('CELLSPACING=1 CELLPADDING=1 width="50%"
    bordercolor="#669966"', calign=>'center');
    htp.tableRowOpen;
    htp.tableData(fontx||htf.anchor(owa_util.get_owa_service_path||
    'nfdw_budadmn.del_ibba_warn:2'||'fyear='||fyear||'&'||
    'budorg='||budorg||'&'||'appr_unit='||appr_unit||'&'||
    'obje_ocat='||obje_ocat||'&'||
    'bud_auth_amount='||bud_auth_amount||'&'||
    'appr_name='||appr_name||'&'||
    'fy_id='||fycode||'&'||
    'borg_id='||borg_id||'&'||
    'appr_id='||appr_id||'&'||
    'obje_id='||obje_id||
    '"onMouseOver=" window.status=''Click to Remove IBBA Budget Line.'';
    return true','Remove Budget'),calign=>'CENTER');
    htp.tableData(fontx||htf.anchor(owa_util.get_owa_service_path||
    'nfdw_budadmn.mod_ibba_inp'||
    '"onMouseOver=" window.status=''Click to Return to Query Form.'';
    return true','Return To Query Form'),calign=>'CENTER');
    htp.tableRowClose;
    htp.tableClose;
    EXCEPTION
    WHEN NULL_EXCEPTION THEN
    dh_aelg_rec.app_error_mesg := 'FAIL';
    dh_aelg_rec.comments :=
    'Parameters are: fyear='||fyear||
    ', budorg='||budorg||
    ', appr_unit='||appr_unit||
    ', obje_ocat='||obje_ocat||
    ', password='||password;
    dh_aelg_rec.app_hierarchy := ' nfdw_budadmn.view_ibba_for_maint:';
    util_web.util_return_page
    ('An application error has occurred.',
    'Please contact the I.S. Helpdesk.',
    p_app);
    WHEN INVALID_DOC THEN
    util_web.util_return_page
    ('Requested Data Is Not Available.',
    'Check Request and Try Again.',
    p_app);
    WHEN PASSWORD_FAIL THEN
    util_web.util_return_page
    ('Invalid Password.',
    'Please Reenter.',
    p_app);
    WHEN OTHERS THEN
    dh_aelg_rec.app_error_mesg := 'FAIL';
    dh_aelg_rec.ora_error_number := SQLCODE;
    dh_aelg_rec.ora_error_mesg := substr(SQLERRM, 1, 100);
    dh_aelg_rec.comments :=
    'Parameters are: fyear='||fyear||
    ', budorg='||budorg||
    ', appr_unit='||appr_unit||
    ', obje_ocat='||obje_ocat||
    ', password='||password;
    dh_aelg_rec.app_hierarchy := ' nfdw_budadmn.view_ibba_for_maint:';
    util_web.util_log_app_error(dh_aelg_rec);
    util_web.util_return_page
    ('An application error has occurred.',
    'Please contact the I.S. Helpdesk.',
    p_app);
    END view_ibba_for_maint;
    procedure del_ibba_warn(
    fyear IN VARCHAR2,
    budorg IN VARCHAR2,
    appr_unit IN VARCHAR2,
    obje_ocat IN VARCHAR2,
    bud_auth_amount IN NUMBER,
    appr_name IN VARCHAR2,
    fy_id IN NUMBER,
    borg_id IN NUMBER,
    appr_id IN NUMBER,
    obje_id IN NUMBER)
    IS
    p_app          VARCHAR2(40) :='nfdw_budadmn.mod_ibba_inp';
    exp_ck     number := 0;
    dh_aelg_rec     application_error_log%ROWTYPE;
    fontx          VARCHAR2(100) :=
    '<font face="Verdana, Arial, Helvetica, sans-serif" size=3>';
    fonth          VARCHAR2(100) :=
    '<font face="Verdana, Arial, Helvetica, sans-serif" size=2>';
    BEGIN
    -- Check if budget line has expenditures in the NOEM.
    IF length(obje_ocat) > 2
    THEN
    dh_aelg_rec.app_marker := 'SEL1';
    SELECT count(1)
    INTO exp_ck
    FROM nbdm_object_expense_fmon
    WHERE fiscal_year = fyear
    AND fiscal_month = '12'
    AND budget_org = budorg
    AND budget_account = substr(appr_unit,1,4)
    AND budget_category = substr(appr_unit,5,2)
    AND object = obje_ocat
    AND fytd_expended_amount > 0;
    ELSE
    dh_aelg_rec.app_marker := 'SEL2';
    SELECT count(1)
    INTO exp_ck
    FROM nbdm_object_expense_fmon
    WHERE fiscal_year = fyear
    AND fiscal_month = '12'
    AND budget_org = budorg
    AND budget_account = substr(appr_unit,1,4)
    AND budget_category = substr(appr_unit,5,2)
    AND object_category = obje_ocat
    AND fytd_expended_amount > 0;
    END IF;
    htp.p('<BR>');
    htp.p('<BR>');
    htp.tableOpen('BORDER=0 BGCOLOR=WHITE', calign=>'center');
    htp.tableRowOpen;
    htp.tableData(fontx||htf.bold('WARNING!! WARNING!! WARNING'));
    htp.tableRowClose;
    htp.tableClose;
    htp.p('<BR>');
    IF exp_ck > 0
    THEN
    htp.tableOpen('BORDER=0 BGCOLOR=WHITE', calign=>'center');
    htp.tableRowOpen;
    htp.tableData(fontx||htf.bold('THE CHOSEN BUDGET HAS VALID EXPENDITURES '));
    htp.tableData(fontx||htf.bold('AND CANNOT BE REMOVED'));
    htp.tableRowClose;
    htp.tableClose;
    ELSE
    htp.tableOpen('BORDER=0 BGCOLOR=WHITE', calign=>'center');
    htp.tableRowOpen;
    htp.tableData(fontx||htf.bold('YOU ARE ABOUT TO PERMANANTLY REMOVE '));
    htp.tableData(fontx||htf.bold('THE FOLLOWING'));
    htp.tableRowClose;
    htp.tableClose;
    htp.tableOpen('BORDER=0 BGCOLOR=WHITE', calign=>'center');
    htp.tableRowOpen;
    htp.tableData(fontx||htf.bold('AUTHORIZED BUDGET FROM THE NDOT'));
    htp.tableData(fontx||htf.bold('FINANCIAL DATA WAREHOUSE'));
    htp.tableRowClose;
    htp.tableClose;
    htp.p('<BR>');
    END IF;
    htp.tableOpen('border cellspacing=1 cellpadding=1');
    htp.p('<tr bgcolor=lightblue>');
    htp.tableHeader(fonth||(htf.bold('Orgn')), cattributes=>'WIDTH="2%"',
    calign=>'center');
    htp.tableHeader(fonth||(htf.bold('Appr Unit')),cnowrap=>'nowrap',
    cattributes=>'WIDTH="4%"',calign=>'center');
    htp.tableHeader(fonth||(htf.bold('Appr Name')),cnowrap=>'nowrap',
    cattributes=>'WIDTH="4%"',calign=>'center');
    htp.tableHeader(fonth||(htf.bold('Obje/Cat')),cattributes=>'WIDTH="2%"',
    calign=>'center');
    htp.tableHeader(fonth||(htf.bold('Auth Budget Amount')),
    cattributes=>'WIDTH="2%"', calign=>'center');
    htp.tableRowClose;
    htp.tableRowOpen;
    htp.tableData(fonth||nvl(budorg,'-'),
    cnowrap=>'nowrap', calign=>'center');
    htp.tableData(fonth||nvl(appr_unit,'-'),
    cnowrap=>'nowrap', calign=>'center');
    htp.tableData(fonth||nvl(appr_name,'-'),
    cnowrap=>'nowrap', calign=>'center');
    htp.tableData(fonth||nvl(obje_ocat,'-'),
    cnowrap=>'nowrap', calign=>'center');
    htp.tableData(fonth||to_char(bud_auth_amount,
    '9,999,999,999.99'), cnowrap=>'nowrap', calign=>'right');
    htp.tableRowClose;
    htp.tableClose;
    htp.br;
    htp.br;
    htp.br;
    htp.line;
    IF exp_ck > 0
    THEN
    htp.tableOpen('CELLSPACING=1 CELLPADDING=1 width="50%"
    bordercolor="#669966"', calign=>'center');
    htp.tableRowOpen;
    htp.tableData(fontx||htf.anchor(owa_util.get_owa_service_path||
    'nfdw_budadmn.mod_ibba_inp'||
    '"onMouseOver=" window.status=''Click to Return to Query Form.'';
    return true','Return To Query Form'),calign=>'CENTER');
    htp.tableRowClose;
    ELSE
    htp.tableOpen('CELLSPACING=1 CELLPADDING=1 width="50%"
    bordercolor="#669966"', calign=>'center');
    htp.tableRowOpen;
    htp.tableData(fontx||htf.anchor(owa_util.get_owa_service_path||
    'nfdw_budadmn.del_ibba_line:1'||
    'fy_id='||fy_id||'&'||
    'borg_id='||borg_id||'&'||
    'appr_id='||appr_id||'&'||
    'obje_id='||obje_id||'&'||
    'obje_ocat='||obje_ocat||'&'||
    'fyear='||fyear||'&'||
    'budorg='||budorg||'&'||
    'appr_unit='||appr_unit||
    '"onMouseOver=" window.status=''Click to Remove IBBA Budget Line.'';
    return true','Remove Budget'),calign=>'CENTER');
    htp.tableData(fontx||htf.anchor(owa_util.get_owa_service_path||
    'nfdw_budadmn.mod_ibba_inp'||
    '"onMouseOver=" window.status=''Click to Return to Query Form.'';
    return true','Return To Query Form'),calign=>'CENTER');
    htp.tableRowClose;
    END IF;
    htp.tableClose;
    EXCEPTION
    WHEN OTHERS THEN
    dh_aelg_rec.app_error_mesg := 'FAIL';
    dh_aelg_rec.ora_error_number := SQLCODE;
    dh_aelg_rec.ora_error_mesg := substr(SQLERRM, 1, 100);
    dh_aelg_rec.app_hierarchy := ' nfdw_budadmn.del_ibba_warn:';
    dh_aelg_rec.comments :=
    'Parameters are: fyear='||fyear||
    ', budorg='||budorg||
    ', appr_unit='||appr_unit||
    ', obje_ocat='||obje_ocat||
    ', bud_auth_amount='||bud_auth_amount||
    ', appr_name='||appr_name||
    ', fy_id='||fy_id||
    ', borg_id='||borg_id||
    ', appr_id='||appr_id||
    ', obje_id='||obje_id;
    util_web.util_log_app_error(dh_aelg_rec);
    util_web.util_return_page
    ('An application error has occurred.',
    'Please contact the I.S. Helpdesk.',
    p_app);
    END del_ibba_warn;

  • Unable to pass the parameter to other portlet

    Hi,
    I am trying to pass the parameter from one portlet to other portlet using the convention below...
    Example say you have two reports on a page dept and employee. You want to refresh employee report by clicking on
    the dept in the department report in the same page.
    (1) Create the first report based on the query
    SELECT htf.anchor('http://domain/servlet/page?&_pageid=97&_dad=portal_dad&_schema=portal_schema&_mode=3&dept_code='||DEPTNO,DEPTNO) Department,
    dname FROM scott.dept;
    (2) Create a 2nd report
    select * from EMP where DEPTNO = :dept_code
    (3) In the the additional pl/sql code section before display page on the 2nd report do this
    portal30.wwv_name_value.replace_value(
    l_arg_names, l_arg_values,
    p_reference_path||'.dept_code',portal30.wwv_standard_util.string_to_table2(nvl(get_value('dept_code'),10)));
    (4) Created a page and added these reports as portlets.
    In point (4) I am not getting the value of selected deptno in 'dept_code'. It is always taking the default value as '10'...
    I like to have the quick solution for this so that I can show the demo to my client...
    Thanks in Advance
    Sudheer

    Hi Ali,
    We can add parameterized queries to any TableAdapter (and controls to accept parameter values and execute the query) using the
    Search Criteria Builder Dialog Box. 
    For detail information, please refer to the following article to create a Windows Form to Search Data:
    http://technet.microsoft.com/en-us/library/hbsty6z7.aspx
    In addition, this issue is more related to Windows Form. I would suggest open a new thread in Windows Form forum if you have any more qestions:
    http://social.msdn.microsoft.com/Forums/windows/en-US/home?forum=winforms
    Regards, 
    Elvis Long
    TechNet Community Support

  • Help on Delete Link

    Help on Link
    I have report with following query
    select htf.anchor('DELETE_empno?p_id='||id,empno) delete,
    id download ,
    from emp
    I get Link for Delete on empno
    when i press the Link My procedure is executing but page is not refreshing
    The page is shwoing the procedure name
    What i need is page refresh and execute the procedure and display the report
    Any help is appreciated

    when you click on your link, the procedure DELETE_empno is firing but because Apex has not submitted the page (you just execute the PL/SQL procedure from a url call), you will have to redirect the URL to the page you want to go to.
    This can be done using the OWA_UTIL.redirect_url api after your pl/sql successfully executes.
    owa_util.redirect_url ('f?p=&APP_PAGE_ID.:PAGE_NO:&SESSION.:::CC');
    where:
    PAGE_ID = the page number you want to redirect to
    CC = the page number to clear the cache of (if requierd)
    An alternative approach may be to change your anchor link to submit the page with a delete request and fire your process that way. By doing this, you could then assign it a page branch, cache clear etc in the normale way

  • Report Problem need to fix the code

    Hello Expert
    I am new to apex, I was given a task to interpret the code and fix the problem.
    This Apex application has a list of value where the user select the institution as a drop down list menu. After selecting the institution the main report below the drop down list will be populated based on the selection. The problem is that when the user insert record for standalone program, this insert don't appear on the report when the user select the instituion.
    can someone look at the code below and explain to me line by line what it does and how can I twick it to solve this problem? I am cloue less and I need expert help
    select dt.* 
             ,case when dt.delivery_location is null then null
                      else htf.anchor ('javascript:void(0);'
                                              ,'<img src=#APP_IMAGES#location.png
                                                title=''' ||dt.delivery_location || '''
                                                alt=''' ||dt.delivery_location || '''
                                                height=24 width=24/>'
              end dl_hover
      from (
    select
            CASE WHEN INDEP_DEGREE = 'Y' THEN
            CASE WHEN Dt.DEGREE_ACRONYM IN ('AACC','ASCC') then
              da.DESCRIPTION   || ' with an Emphasis Area of ' ||
                     NVL(Mt.DESCRIPTION,cC.DESCRIPTION)
                ELSE    
             nvl(dt.description, da.DESCRIPTION)
             END
             ELSE
                CASE WHEN Dt.DEGREE_LEVEL IN ('V','A') THEN
                     nvl(dt.description, da.DESCRIPTION )  || ' with an Option in ' ||
                     NVL(Mt.DESCRIPTION,Cc.DESCRIPTION)
                WHEN Dt.DEGREE_LEVEL IN ('E','C','Z','F')  THEN
                     nvl(dt.description, da.DESCRIPTION )  || ' in ' ||
                     NVL(Mt.DESCRIPTION,Cc.DESCRIPTION)
                ELSE    
                     nvl(dt.description, da.DESCRIPTION )  || ' with a Major in ' ||
                     NVL(Mt.DESCRIPTION,Cc.DESCRIPTION)
                END
        END
    degree_name
    --,'???' emphasis_area
    ,nvl(mt.cip_code,dt.cip_code) cip_code
    ,nvl(mt.hours, dt.hours) total_credit_hours
    -- ,dt.deactivated status
    ,case when nvl(mt.deactivated,dt.deactivated)  = 'A' then 'Active'
              when nvl(mt.deactivated,dt.deactivated) = 'D' then 'Deactivated'
              when nvl(mt.deactivated,dt.deactivated) = 'T' then 'Terminated'
          WHEN NVL(mt.deactivated,dt.deactivated) = 'I'
          THEN 'Inactive'
              else null
       end status
    --,dt.degree_level program_type
    ,dl.description program_type
    ,dt.coop_indicator coop_indicator
    ,nvl(mt.approval_date,dt.approval_date) approval_date
    ,nvl(mt.implemented,dt.implemented) implemented
    ,nvl(mt.implementation_date, dt.implementation_date) implementation_date
    ,nvl(mt.delivery_mode ,dt.delivery_mode) delivery_mode
    ,(select rtrim(replace(replace(xmlagg(xmlelement("C" ,c.cixxvext_name)).getclobval() ,'<C>' ,'') ,'</C>' ,'&#xD; ') ,'&#xD; ') C
      from degree_transaction_details dtd
             ,cixxvext c
      where (dtd.degree_transaction_id = case when INDEP_DEGREE= 'Y' then dt.degree_id else mt.major_id end )
          and c.cixxvext_ext_site_cd = dtd.detail_value
    and dtd.record_type= case when INDEP_DEGREE = 'Y' then 'DEGREE' else 'MAJOR' end ) delivery_location
    ,dt.degree_id degree_id
    ,'Comparison Report' comparison_report
    ,apex_util.prepare_url ('f?p=&APP_ID.:2:&SESSION.::&DEBUG.:2:P2_FICE_CODE,P2_DEGREE_ID:&P1_FICE_CODE.,'||dt.degree_id) edit_link
    ,apex_util.prepare_url ('f?p=&APP_ID.:4:&SESSION.::&DEBUG.:RP,4:P4_DEGREE_ID:'||dt.degree_id) cr_link
    ,dt.description
    ,mt.major_id major_id
    ,nvl(mt.online_percentage,dt.online_percentage) online_percent
    ,nvl(mt.last_inst_review,dt.last_inst_review) last_inst_review
    from degree_transactions dt,
        degree_acronyms da,
        major_transactions mt,
        degree_levels dl,
        cip_codes cc
    where dt.degree_id = mt.degree_id
      and mt.cip_code = cc.cip_code
      and dl.degree_level = nvl(mt.degree_level,dt.degree_level)
      and dt.degree_acronym = da.degree_acronym
      and dt.Fice_code = da.fice_code
      and dt.degree_level = da.degree_level
      and dt.deactivated in ('A','D')
      and mt.deactivated in ('A','D')
      and dt.fice_code = :P1_FICE_CODE
      and dt.show_inst = 'Y'
    ) dt
    order by dt.description nulls first

    You said:
    "I was able to debug the code in SQL Developer."  Does this mean that you:
    ran the code, got results
    then set indep_degree to 'Y' on a row in your database
    ran the code again and saw the results you are looking for?
    If true, your code is working and should operate the same in APEX.
    So if your code is working, we need to understand what processes are running on the form and when they are firing.
    Jeff

  • Master Detail module returns to Master page after Detail record saved

    Using Oracle Designer Editor version 10.1.2.0.2 I have generated a Web PL/SQL package
    set up as a Master/Detail where the Master and Detail records appear in separate windows.
    The Master window contains multi-records each with a link to the related Detail records.
    The user clicks on the Detail link and the window that appears will allow the user to insert
    a new Detail record. Once the user clicks the Save button I need the Detail window to disappear
    and the focus returned to the Master records preferably after a new query is performed.
    What are the steps I need to perform to navigate back to the Master page and close the Detail
    page?
    Thanks,
    Mark

    The simple answer is that to do exactly what you want would take some fundamental changes to the way the framework works. The actionInsert procedure does what it does - it saves the changes and redisplays the form. You can do post-generation changes to make it do something else, like return to the Master, but I'd advise against it.
    But if you want a way to return to the Master window, where the user clicks a button or link on the detail form after saving changes, that we can do. Just make a note of the URL that does the initial display of the Master page - probably my_module_name$.startup. Go into the detail module component, and click the User Text tab. Then at Text Location, "Bottom of View Form" (or Top if you want the link there) add for a link:
    htf.anchor('my_module_name$.startup','Return to Master')Or for a button:
    htf.formOpen('my_module_name$.startup','GET')||htf.formsubmit('Return to Master')||htf.formCloseYou may need to set the SECECS preference for this module to "No" to get this to work.
    An alternative to my method is to define an Action Item in the module that does a navigation. I often am linking directly to the View form for a master table, rather than a record list, as you are, and Action Items don't work well for that, but one might work fine for you.

  • Storing live hyperlinks instead of text in a table

    Hi
    I wanted to do the following.
    create an excel spreadsheet with the following columns and import it into xe
    to create a table called PRICING which looked like:
    item_id VARCHAR2(30)
    item_desc VARCHAR2(100)
    item_value NUMBER
    item_url VARCHAR2(30)
    this worked OK
    Then I made an application useing the xe application builder which showed the
    table in a report.
    The item_url column showed the url in text
    http:\\mydomain.com:8080\pics\somepic.jpg
    however it was text as it had been imported from a .csv file. The formatting
    in excel was lost.
    I would have liked it to show as a live url which could be clicked by the user. Ideally i may have liked to display some alternative text
    i.e Picture of Widget45 with the typical blue font colour and underline instead of the actual http:\\....\widget45.pc. Or perhaps a thumb nail pic may be even better
    Can I do this with xe and xe application builder or do i need to use some other tool.
    Perhaps this should be a feature for future to allow people to work in excel and
    publish to xe retaining hyperlinks etc.
    thanks
    mamuks

    Try to create a new report region using the following query:
    select item_id, htf.anchor(item_url, item_desc) item_link
      from PRICINGThis will generate a hyperlink using the item_url and the item_desc as the label.
    Thus you can create all html you like in a sql query and have Apex simply display it.
    You could even do it this way:
    select item_id, '&lt;A href="'|| item_url || '" >'|| item_desc ||'&lt;/A>' item_link from pricing~Dietmar.

Maybe you are looking for