Problems with dynamic pagination link

Hi,
I have a dynmaic pagination link
<a href="#CGI.SCRIPT_NAME#?#QUERY_STRING#&startRow=#pageRow#">#thisPage#</a>
every time I click the link I get multiple startRow variable in the url which breaks the page
eventID=22&startRow=9&startRow=1&startRow=9
Any idea how I can fix this?

Remove startRow from the query string before creating the new link :
newQueryString = ReReplaceNoCase(CGI.QUERY_STRING, "startrow=\d+", "",
"ALL")
Mack

Similar Messages

  • Strange problems with Dynamic Partner Linking, how to reset conversation Id

    Hi,
    We have dyanamic partner linking with synchronous BPEL process. For testing this I have created an xml which is having 3 Dyanmic links for the same partener link. When I execute the first one gets executed but second one onwards it throws bpel fault exception When I am looping through the XML the first linking is working but when it tries to do the second call to the same end point it faults out saying
    <bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    <part name="code">
    <code>GenericError</code>
    </part>
    <part name="summary">
    <summary>null</summary>
    </part>
    </bindingFault>
    I tried several ways, bottom line this what I am getting in Do parter link assing in both loops. In my observation it generates some conversation Id which is null in the first iteration but from second one onwards.. it is generating some value which I am unable to reset. I belive if I can reset that converstationId to null probably I won't get this bepelFault.
    Please let me know if you need more information.
    First Scenario:
    <partnerLink name="PartnerLink_Campus_PIDS" partnerLinkType="{http://xmlns.oracle.com/PIDSUpdate_CHCS}PIDSUpdate_CHCS">
    <myRole name="null">
    <ServiceName>null</ServiceName>
    <PortType>null</PortType>
    <Address>null</Address>
    </myRole>
    <partnerRole name="PIDSUpdate_CHCSProvider">
    <ServiceName>{http://xmlns.oracle.com/PIDSUpdate_CHCS}PIDSUpdate_CHCS</ServiceName>
    <PortType>{http://xmlns.oracle.com/PIDSUpdate_CHCS}PIDSUpdate_CHCS</PortType>
    <Address>http://val-ossminc:9700/orabpel/default/PIDSUpdate_CHCS</Address>
    </partnerRole>
    <conversationId>null</conversationId>
    <properties>{}</properties>
    </partnerLink>
    Second Scenario:
    [2006/04/18 22:37:10] Updated variable "PartnerLink_Campus_PIDS" less
    <partnerLink name="PartnerLink_Campus_PIDS" partnerLinkType="{http://xmlns.oracle.com/PIDSUpdate_CHCS}PIDSUpdate_CHCS">
    <myRole name="null">
    <ServiceName>null</ServiceName>
    <PortType>null</PortType>
    <Address>null</Address>
    </myRole>
    <partnerRole name="PIDSUpdate_CHCSProvider">
    <ServiceName>{http://xmlns.oracle.com/PIDSUpdate_CHCS}PIDSUpdate_CHCS</ServiceName>
    <PortType>{http://xmlns.oracle.com/PIDSUpdate_CHCS}PIDSUpdate_CHCS</PortType>
    <Address>http://val-ossminc:9700/orabpel/default/PIDSUpdate_CHCS</Address>
    </partnerRole>
    <conversationId>bpel://localhost/default/iXPPIDSUpdateBroadCast~1.0/8909-BpInv0-BpSeq1.5-5</conversationId>
    <properties>{}</properties>
    </partnerLink>
    I clearing the end point the following way.
    <assign name="ClearEndpoint">
    <copy>
    <from>
    <EndpointReference xmlns="http://schemas.xmlsoap.org/ws/2003/03/addressing" xmlns:ns1="http://xmlns.oracle.com/PIDSUpdate_CHCS">
    <Address/>
    <ReferenceProperties/>
    <ServiceName/>
    </EndpointReference>
    </from>
    <to variable="partnerReference"/>
    </copy>
    </assign><!-- set the address in the endpoint variable
    Dynamic Links XML :
    <Dynamiclinks xmlns="http://ixp.mhs.dod.gov/DynamicLinksSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Dynamiclink>
    <address>http://val-ossminc:9700/orabpel/default/PIDSUpdate_CHCS
    </address>
    <service_name>ns1:PIDSUpdate_CHCS
    </service_name>
    </Dynamiclink>
    <Dynamiclink>
    <address>http://val-ossminc:9700/orabpel/default/PIDSUpdate_CHCS
    </address>
    <service_name>ns1:PIDSUpdate_CHCS
    </service_name>
    </Dynamiclink>
    </Dynamiclinks>
    Does any one how to reset the convesation Id, it will be a big help for me.
    Regards,
    Sridhar Dabbeeru

    Hi,
    We have dyanamic partner linking with synchronous BPEL process. For testing this I have created an xml which is having 3 Dyanmic links for the same partener link. When I execute the first one gets executed but second one onwards it throws bpel fault exception When I am looping through the XML the first linking is working but when it tries to do the second call to the same end point it faults out saying
    <bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    <part name="code">
    <code>GenericError</code>
    </part>
    <part name="summary">
    <summary>null</summary>
    </part>
    </bindingFault>
    I tried several ways, bottom line this what I am getting in Do parter link assing in both loops. In my observation it generates some conversation Id which is null in the first iteration but from second one onwards.. it is generating some value which I am unable to reset. I belive if I can reset that converstationId to null probably I won't get this bepelFault.
    Please let me know if you need more information.
    First Scenario:
    <partnerLink name="PartnerLink_Campus_PIDS" partnerLinkType="{http://xmlns.oracle.com/PIDSUpdate_CHCS}PIDSUpdate_CHCS">
    <myRole name="null">
    <ServiceName>null</ServiceName>
    <PortType>null</PortType>
    <Address>null</Address>
    </myRole>
    <partnerRole name="PIDSUpdate_CHCSProvider">
    <ServiceName>{http://xmlns.oracle.com/PIDSUpdate_CHCS}PIDSUpdate_CHCS</ServiceName>
    <PortType>{http://xmlns.oracle.com/PIDSUpdate_CHCS}PIDSUpdate_CHCS</PortType>
    <Address>http://val-ossminc:9700/orabpel/default/PIDSUpdate_CHCS</Address>
    </partnerRole>
    <conversationId>null</conversationId>
    <properties>{}</properties>
    </partnerLink>
    Second Scenario:
    [2006/04/18 22:37:10] Updated variable "PartnerLink_Campus_PIDS" less
    <partnerLink name="PartnerLink_Campus_PIDS" partnerLinkType="{http://xmlns.oracle.com/PIDSUpdate_CHCS}PIDSUpdate_CHCS">
    <myRole name="null">
    <ServiceName>null</ServiceName>
    <PortType>null</PortType>
    <Address>null</Address>
    </myRole>
    <partnerRole name="PIDSUpdate_CHCSProvider">
    <ServiceName>{http://xmlns.oracle.com/PIDSUpdate_CHCS}PIDSUpdate_CHCS</ServiceName>
    <PortType>{http://xmlns.oracle.com/PIDSUpdate_CHCS}PIDSUpdate_CHCS</PortType>
    <Address>http://val-ossminc:9700/orabpel/default/PIDSUpdate_CHCS</Address>
    </partnerRole>
    <conversationId>bpel://localhost/default/iXPPIDSUpdateBroadCast~1.0/8909-BpInv0-BpSeq1.5-5</conversationId>
    <properties>{}</properties>
    </partnerLink>
    I clearing the end point the following way.
    <assign name="ClearEndpoint">
    <copy>
    <from>
    <EndpointReference xmlns="http://schemas.xmlsoap.org/ws/2003/03/addressing" xmlns:ns1="http://xmlns.oracle.com/PIDSUpdate_CHCS">
    <Address/>
    <ReferenceProperties/>
    <ServiceName/>
    </EndpointReference>
    </from>
    <to variable="partnerReference"/>
    </copy>
    </assign><!-- set the address in the endpoint variable
    Dynamic Links XML :
    <Dynamiclinks xmlns="http://ixp.mhs.dod.gov/DynamicLinksSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Dynamiclink>
    <address>http://val-ossminc:9700/orabpel/default/PIDSUpdate_CHCS
    </address>
    <service_name>ns1:PIDSUpdate_CHCS
    </service_name>
    </Dynamiclink>
    <Dynamiclink>
    <address>http://val-ossminc:9700/orabpel/default/PIDSUpdate_CHCS
    </address>
    <service_name>ns1:PIDSUpdate_CHCS
    </service_name>
    </Dynamiclink>
    </Dynamiclinks>
    Does any one how to reset the convesation Id, it will be a big help for me.
    Regards,
    Sridhar Dabbeeru

  • After Effects won't close/Problems with dynamic links

    When I quit After Effects the icon still shows up and it says that it is still open, even force quit will not work. Also having problems with dynamically linked files between after effects and Premiere pro. Rendering in Premiere doesn't work unless I go to AE, save the project, then go back to Premiere. I have OSX Mavericks 10.9.2, a late 2012 mac pro, and AE CC 12.2.1.5

    Kevin: would appreciate further thoughts on this.
    I am using Pr2014, version 8.0.0 I am using AE2014, version 13.0.2.3. When I was on earlier versions of each, I had no problem importing AE comps into Pr. I'd choose import in Pr, then select the AE project, then select the comp. But with my new and improved versions of AE and Pr, I keep getting "importer reported a generic error."
    I also tried to go the other way. I selected in Pr the clips I wanted to work on in AE, and then tried "replace with AE comp" but got the "generic error" message again..
    Finally, I attempted to create a Dynamic Link from Pr via the File menu, but with each of the options from there, I got "failed to connect to AE Dynamic Link"
    Any advice you can share, would be most welcome.

  • I'm having problems with the hyper-links and footer

    I'm having problems with the hyper-links (they flicker and also highlight other text on the page) and also the footer space goes on forever in preview site mode, even though I have made it small in the master and homepage and subsequent pages.  This only happened after I loaded a MUSE file into the current version of Muse CC as it runs upgrades on the imported Muse file.  Please Help Me Adobe Community.

    Hi Brad,
    I'll do what you mentioned about republishing all files, what Adobe Muse seems to to is run and upgrade when you open an older version .muse file, optimising it.
    Hopefully republishing it rather than syncing with the new version might help.  I'll do this Tuesday evening when I am back from my client meeting.
    I was thinking, is there a way of me rolling back to a previous version of Adobe MUSE CC ?  I'm using build Adobe Muse CC (2014.3) but I wish to roll back to Adobe Muse CC (2014.1), as this was the version the site was working properly with.
    Thanks Brad.

  • Problem with dynamic LOV and function

    Hello all!
    I'm having a problem with a dynamic lov in APEX 3.0.1.00.08. Hope you can help me!
    I have Report and Form application. On the Form page i have a Page Item (Popup Key LOV (Displays description, returns key value)).
    When i submit the sql code in the 'List of vaules defention' box. I get the following message;
    1 error has occurred
    LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query.
    When i excecute the code below in TOAD or in the SQL Workshop it returns the values i want to see. But somehow APEX doesn't like the sql....
    SELECT REC_OMSCHRIJVING d, REC_DNS_ID r FROM
    TABLE(CAST(return_dns_lov_fn(:P2_DNS_ID) AS dns_table_type)) order by 1
    returns_dns_lov_fn is a function, code is below;
    CREATE OR REPLACE FUNCTION DRSSYS.return_dns_lov_fn (p2_dns_id number)
    RETURN dns_table_type
    AS
    v_data dns_table_type := dns_table_type ();
    BEGIN
    IF p2_dns_id = 2
    THEN
    FOR c IN (SELECT dns_id dns, omschrijving oms
    FROM d_status dst
    WHERE dst.dns_id IN (8, 10))
    LOOP
    v_data.EXTEND;
    v_data (v_data.COUNT) := dns_rectype (c.dns, c.oms);
    END LOOP;
    RETURN v_data;
    END IF;
    END;
    and the types;
    CREATE OR REPLACE TYPE DRSSYS.dns_rectype AS OBJECT (rec_dns_id NUMBER, rec_omschrijving VARCHAR2(255));
    CREATE OR REPLACE TYPE DRSSYS.dns_table_type AS TABLE OF dns_rectype;
    I tried some things i found on this forum, but they didn't work as well;
    SELECT REC_OMSCHRIJVING display_value, REC_DNS_ID result_display FROM
    TABLE(CAST(return_dns_lov_fn(:P2_DNS_ID) AS dns_table_type)) order by 1
    SELECT REC_OMSCHRIJVING display_value d, REC_DNS_ID result_display r FROM
    TABLE(CAST(return_dns_lov_fn(:P2_DNS_ID) AS dns_table_type)) order by 1
    SELECT a.REC_OMSCHRIJVING display_value, a.REC_DNS_ID result_display FROM
    TABLE(CAST(return_dns_lov_fn(:P2_DNS_ID) AS dns_table_type)) a order by 1
    Edited by: rajan.arkenbout on 8-mei-2009 14:41
    Edited by: rajan.arkenbout on 8-mei-2009 14:51

    I just had the same problem when I used a function in a where clause.
    I have a function that checks if the current user has acces or not (returning varchar 'Y' or 'N').
    In where clause I have this:
    where myFunction(:user, somePK) = 'Y'
    It seems that when APEX checked if my query was valid, my function triggered and exception.
    As Varad pointed out, check for exception that could be triggered by a null 'p2_dns_id'
    Hope that helped you out.
    Max

  • Problem with using database link from oracle 7 to oracle 9i

    Hi To Every One
    I have two oracle database oracle 7.3.4.0.1 and oracle 9i 9.2.0.1.0.
    and the tns alias to connect to oracle 9i database is oracle9i and tns
    alias to oracle 7 database is oracle7.I have no problem in connect to
    these database using these tns aliases from either database.The tns
    alias for oracle 7 is available in tnsnames.ora file of oracle9i and
    tns alias for oracle 9i is available in tnsnames.ora file of oracle 7.
    So there is no connection problem from each other.Connection is
    working fine for each other but the problem with database links is
    like this
    Problem:
    when i create database link from oracle9i user or public database link
    from oracle9i for oracle7 user like this
    SQL ORACLE9I >CREATE DATABASE LINK ORACLE7 CONNECT TO <ORACLE7USER>
    IDENTIFIED BY <PASSWORD> USING 'ORACLE7';
    OR
    SQL ORACLE9I >CREATE PUBLIC DATABASE LINK ORACLE7 CONNECT TO <ORACLE7USER>
    IDENTIFIED BY <PASSWORD> USING 'ORACLE7';
    The links get created sucessfully but when i write command like
    SQL ORACLE9I> DESC <ORACLE7USER_NAME>.<ORACLE7USER_TABLENAME>@ORACLE7
    I RECEIVE A ORACLE ERROR LIKE
    ORA-12663 SERVICE REQUIRED BY CLIENT IS NOT AVAILABLE ON THE SERVER.
    OR IF MY COMMAND IS LIKE
    SQL ORACLE9I> SELECT <FEILD_NAME> FROM
    <ORACLE7USER_NAME>.<ORACLE7USER_TABLENAME>@ORACLE7;
    I RECEIVE AN ORACLE ERROR LIKE
    ORA-01002 FETCH OUT OF SEQUENCE.
    ORA-02063: preceding line from ORACLE7
    BUT IF I CREATE A LINK FROM ORACLE7 USER FOR ORACLE9I USER
    IT WORKS FINE.
    PLZ HELP ME WHAT IS THE PROBLEM THAT THE LINK FOR ORACLE 7 IS NOT WORKING WHEN
    IT IS BEING CREATED FROM ORACLE9I.
    Thank u.

    Oracle 9.2.0 does not support connectivity to Oracle 7. The newest version that will support this is 9.0.1.

  • CS3 - Problem with dynamic text -

    Hello,
    I have a problems with my text, when i write a few ligne inside a dynamic text box, if i selec the text and by the way drag it down the first line goes up and disapear. Is there any way to solve this?

    This is the Flash Player forum; please post your question in the appropriate product forum.

  • How do I correct a problem with PDF Portfolio Links

    Problem with links.
    Converting a page from MSWord to PDF is presenting problems:
    I have changed preferences to deselect the Convert Word Bookmarks option;
    The straight conversion retains the links;
    Adding the file to PDF portfolio breaks the latest link;
    Using the link tool and go to page option tries to open the page (file) but I receive instruction to download Acrobat Reader 9 (I already have the latest reader installed (9.3), have checked it and repaired it);
    Attempting to download the Reader (I cannot move on – the page is full screen and will not be minimised) the download is blocked at the end.
    I have rebuilt the Portfolio from scratch but the problem persists.
    I have run a full (extended) bench test on all my hardware – no significant problems found.
    MSWord docx. saved in html and converted back to MSword
    New doc converted to PDF with minimum preferences
    Converted doc copied to portfolio
    No change
    Portfolio opened in PDF reader
    No Change
    Acrobat 9.3 uninstalled and replaced with original Acrobat 9
    No Change
    PDF Printer driver checked – OK
    Full virus scan run
    The Portfolio updating from MSWord is a procedure which I have repeated many times in the past without any problem.
    I cannot move forward, all attempts to solve the problem have failed.
    S Counsell
    31 January 2010

    I am sorry, but to get your issue more exposure, I would suggest posting it in the commercial forums, since this is a commercial product. You can click here for the link.
    HP 650 Notebook PC Support
    TwoPointOh
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Oracle 9i, Rel.2 - Problems with dynam statement and cursor

    Hello,
    I have the following problem with Oracle 9i, Release 2:
    I have a SQL-statement, which I create with the help of a configuration table. That means I don’t know how this statement looks at runtime. It could be look like this:
    SELECT Att1, Att2, Att3
    FROM Tab1
    or this…
    SELECT Att1, Att2
    FROM Tab1
    or this…
    SELECT Att1
    FROM Tab1
    etc.
    That means I don’t know in advance how many columns will be in the select-clause.
    Here my code snippet until here:
    v_query_str := 'SELECT ' || v_select_clause_str
    || ' FROM cb.' || v_table;
    ,,v_select_clause_str" willl be created dynamically
    ,,v_table" is as well from the config-table
    Now I want to iterate through the result of the query and do further processing.
    For this reason I wanted to use a cursor, iterate through the rows and save every value of each row in an own variable (but I don’t know the number of columns!!!).
    But how can I open a cursor and iterate through it without knowing the number of columns???
    The following code is NOT working:
    TYPE t_dataColumnComp IS TABLE OF VARCHAR2(200);
    a_dataColumnComp t_dataColumnComp;
    --here I create the query…
    v_query_str := 'SELECT ' || v_select_clause_str
    || ' FROM cb.' || v_table;
    OPEN c_tempAtt FOR v_query_str;
    LOOP
    FETCH c_tempAtt INTO a_dataColumnComp; --THIS DON’T WORK
    EXIT WHEN c_tempAtt%NOTFOUND;
    FOR i IN 1..a_dataColumnComp.COUNT
    LOOP
    DBMS_OUTPUT.PUT_LINE(a_dataColumnComp(i));
    END LOOP;
    END LOOP;
    CLOSE c_tempAtt; --close cursor variable
    Regards
    Homer

    You will need to use DBMS_SQL to handle this since the number of columns in the result set is not known until runtime.
    See here for an example of using DBMS_SQL:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:235814350980

  • DB2 problems with Dynamic SQL

    Does anyone out there use dynamic SQL with DB2? If so, are the sql statements causing a PreparedStatement to be executed on DB2. I posted this question similarly before, but never resolved it, and it is killing me. I have to resolve this ASAP!
    Here is the problem: My DB2 Admin says that EVERY TIME I access the database, my Java app is causing the database to create a PreparedStatement. However, I'm using Statement objects exclusively, with dynamic SQL. He says that DB2 needs an "access path" for the client, and that it converts the Statement to a PreparedStatement, as this is the only way to get this "access path". He says the only solution is either stored procedures or SQLJ, which will do the binding in advance, and increase performance tremendously. However, I am STRONGLY opposed to using SQLJ, and if we do stored procedures, we'd have to write one for every possible SQL statment! I KNOW there is a better solution.
    Is anyone out there having these problems with JDBC and DB2? Surely someone out there uses DB2 and JDBC and either has these problems or can confirm that something is incorrectly configured on the database side.
    Any help would be great. Thanks, Will

    Now I'm wondering if maybe the PreparedStatements are ONLY being called on the database when I call getConnection(), and not when I call executeQuery() or executeUpdate() from the Statement object. I just can't see why the database would have to make an access path for every SQL statement executed, but I could see it creating an access path for every connection requested. Any thoughts on that theory?

  • Chrome versions 21-26 show severe problems with flash deep links

    Dear Madam or Sir,
    New Chrome versions (at least versions 21-26) produce severe problems with Adobe Flash concerning deep links.
    You will find test cases and detailed information on this subject here:
    http://www.in-tanz.de/test-chrome/test.php
    Since August 2012 all new versions starting from version 21 to 26 (at least 32-bit Windows) do no longer support for example deep links into Flash. I.e. links like:
    poly-9.php#two
    It does not matter, what deep link you want to jump to (two, three, four etc.), Chrome always starts with „one“ / at the beginning of the Flash-animation.
    Like all other browsers (I successfully tested: Opera, Safari, Firefox, Internet-Explorer) Chrome should jump directly to the deep link #two, #three, etc.
    It does not matter which flash player I have been using over the last 9 months (at the time 11.6.602.180).
    This is a major problem as only my website contains more than 14,000 Flash files with over 100,000 deep links.
    In fact, I reported the bug (first noticed with Chrome 21) to Google beginning October 2012 (see bug reports on my page http://code.google.com/p/chromium/issues/detail?id=154494). But recently, I got the feeling, that there seems to be little interest in solving this problem. Actually, after I had informed Google about it, they even rolled out new versions of Chrome containing the bugs, instead of repairing it.
    Do you know any work around or can you offer any help?
    Kind regards,
    in-tanz

    Chrome uses a proprietary build of the plug-in called "PepperFlash" because it's a PPAPI plug-in where the ActiveX and standard plug-in are NPAPI. That may have something to do with it.

  • Procedure with dynamic DB links

    Hi Friends,
    I have been writing procedures to insert data into remote oracle apps instances using db links.
    The procedures are executed and run in the local instance. While using oracle apps tables I am suffixing them with a db link.
    I want it to be made dynamic, so that same procedures with a parameter as db link can be used for all the instances.
    The sample code is given below
    CREATE OR REPLACE PROCEDURE XXX_MAIN(p_db_link VARCHAR2)
    AS
    CURSOR C1 IS SELECT * FROM XXX_ACCTS;
    BEGIN
    FOR i IN C1
    LOOP
    BEGIN
    SELECT territory_code
    INTO l_country_code
    FROM APPS.FND_TERRITORIES_TL@SYSTEM_LINK_TEST --p_db_link
    WHERE TERRITORY_SHORT_NAME = i.COUNTRY;
    CNT:= 1;
    EXCEPTION
    WHEN OTHERS THEN
    CNT:= 0;
    END;
    APPS.IBY_EXT_BANKACCT_PUB.create_ext_bank_acct@SYSTEM_LINK_TEST --p_db_link
    p_api_version => 1.0,
    p_init_msg_list => 'T',--PPS.FND_API.G_TRUE@SYSTEM_LINK_TEST, --p_db_link
    p_ext_bank_acct_rec => p_ext_bank_acct_rec,
    x_acct_id => p_acct_id,
    x_return_status => p_return_status,
    x_msg_count => p_msg_count,
    x_msg_data => p_msg_data,
    x_response => p_response
    END LOOP;
    END;
    In the above procedure I would like to replace the db link SYSTEM_LINK_TEST with the parameter p_db_link
    Please advice...
    Thanks in advance.
    Srikanth
    Edited by: Srikanth on Apr 24, 2012 4:50 PM
    Edited by: Srikanth on Apr 24, 2012 4:51 PM

    Well, we agree that static SQL performs best :-) One of the reasons it performs well is that the parsing is already done at compile time, not runtime.
    For static SQL using db-links to parse at compile time, it needs to know the actual db-link. Consider this statement in your code:
    SELECT territory_code
    INTO l_country_code
    FROM APPS.FND_TERRITORIES_TL@SYSTEM_LINK_TEST
    WHERE TERRITORY_SHORT_NAME = i.COUNTRY;This is static SQL - at compile time the database will connect to the database at SYSTEM_LINK_TEST and check for example the datatype of the column territory_code in table APPS.FND_TERRITORIES (if it even exists.)
    If you wish the database link to be a parameter, then static SQL cannot be used - it will have to be parsed at runtime, otherwise how can the database know if the db-link that it was given as parameter references a database that has an APPS schema with a FND_TERRITORIES_TL table with a territory_code column? Static SQL just cannot do that - it has to be dynamic.
    A possible alternative I can think of might be to create a schema in your database for each of the remote databases. Each of those schemas has a private db-link that references the remote database for that schema but with the same name for the dblink in each schema.
    Then you would use your source control to create a copy of all the procedures in each of those schemas - each copy would compile and parse the static sql using the same db-link name, but as the db-link references differently in each schema, the static sql in the procedure in each schema would compile OK.
    Calling would then be a matter of calling SCHEMA_REMOTE01.PROCEDURE or SCHEMA_REMOTE02.PROCEDURE, etc. And if you needed to, then perhaps you could use dynamic SQL for the call to call the procedure in the correct schema.
    But it would require many identical copies of each procedure/function/packages and it would require discipline to make sure that when you change some code in a procedure, you need to deploy that change to all schemas. You would need a source control system at the very least ;-)

  • Strange problem with changing external links site-wide

    Hi, i'm having a problem that i just cant work out; i'll describe whats happening and would greatly apriciate any help anyone can give.
    when i type in an external/absolute link in dreamweaver sidewide change link function i keep getting a message saying it cant find any links with that name ("no links to.....found".
    i've tried creating a simple link in my index.html like http://google.com then searching for that so i know its there and dreamweaver still tells me that http://google.com, www.google.com, /google.com and every other variation i can think of doesnt exist. In addition to that when i search for broken links and click external links to try changing them there, the search function finds the links i'm looking for and lets me type in the new link i want but when i hit enter it reverts to the old link.
    at first i thought it was a problem with my copy of dreamweaver but i downloaded my site to a hard drive and tried on my uni computers copy of dw cs3 and cs4 with the same outcome.
    i have about 1000 of the particular link in my site that i need to change and really dont want to do this manually, if anyone could help i'd be extremely grateful.
    thanks, Andy

    note: although it seems straight forward i also followed youtube guides on defining my site and changing the links to make sure i hadnt missed something obvious.
    although it still maybe something obvious i just cant see it and i've been googling to find out if other people have had this problem but couldnt find anything

  • Problem with Dynamic Node & UI Elements

    Hi,
                                            The scenario is to create an Questioaire.Since the number questions which I get from R/3 may vary, I have created the Dynamic Node which is mapped with Dynamic set of Radio button Group by index for options & Dynamic text view for displaying Questions..  A New Dynamic Node will be created for each set of Questions .The Number of questions displayed per page is controlled by the Static Counter Variable....
                                              Now the issue is ,if i click back button the count will be initialized so again it needs to trigger the DoModifyView(). at that time It is arising an exception "Duplicate ID for view & Radio button ..." because while creating Dynamic node i used to have "i" value along the Creation of node name...
    for(i=Count;i<i<wdContext.nodeQuestions().size();i++)
                   customnod=<b>nodeinfo.getChild("Questionaire"+i);</b>
                        if(customnod==null)
    Its not possible to create a new node whenever i click the Back button.
    At the same time i am not able to fetch the elements which had already created Dynamically...
    How do i make the Next & back button work?
    If anyone  bring me the solution It would be more helpful to me.
    Thanks in advance..
    Regards,
    Malar

    Hi,
          We can Loop through the Node Elements but how can we do Option Button Creation for each set of question Options?. At design time we can not have the radio buttons,because we do not know how many set of questions are available at the Backend.

  • Problem with Dynamically accessing EJB Class objects in WL 7.0 SP1

    I am trying to build a component which has the ability to instantiate and execute
    an known EJB method on the fly.
    I have managed to build the component but when I try and execute it I get a ClassNotFoundException.
    I know that the EJB I am trying to invoke is deployed and available on the server,
    as I can see it in the console, I also seen to have been able to get the remote
    interface of the object, my problem occurs when I try and access the class object
    so I can perform a create on the object and then execute my method
    The code I have written is below:
    private Object getRemoteObject(Context pCtx, String pJNDIName, String pHomeBean)
    throws Exception {
         String homeCreate = "create";
         Class []homeCreateParam = { };
         Object []homeCreateParamValues = {};           
    try {  
    //This call seems to work and doesn't throw an exception     
    Object home = pCtx.lookup(pJNDIName);
    //However this call throws a java.lang.ClassNotFoundException
    Class homeBean = Class.forName(pHomeBean);
    Method homeCreateMethod = homeBean.getMethod(homeCreate,homeCreateParam);
    return homeCreateMethod.invoke(home, homeCreateParamValues);
    } catch (NamingException ne) {             
    logStandardErrorMessage("The client was unable to lookup the EJBHome.
    Please make sure ");
    logStandardErrorMessage("that you have deployed the ejb with the JNDI
    name "+pJNDIName+" on the WebLogic server ");
    throw ne;
    } catch (Exception e) {
    logStandardErrorMessage(e.toString());
    throw e;     
    Any advice would be really appreciated, I'm fast running out of ideas, I suspect
    it has something to do with the class loader but I'm not sure how to resolve it
    Regards
    Jo Corless

    Hello Joanne,
    Congratulations! I'm very happy that you've managed to fix your problem. It's
    always essential to understand how to package applications when deploying on BEA
    WebLogic. Usually, by throwing everything into an EAR file solves just about all
    the class loader problems. :-) Let us know if you have any further problems that
    we can assist you with.
    Best regards,
    Ryan LeCompte
    [email protected]
    http://www.louisiana.edu/~rml7669
    "Joanne Corless" <[email protected]> wrote:
    >
    >
    I've fixed it!!!!!!!!
    Thanks to everyone who gave me help!!!!
    The class loader was the culprit which is what I suspected all along.
    As soon
    as I put the 2 jar files I was using into an EAR file the problem went
    away!!!!!
    Thanks again
    Jo Corless
    "Ryan LeCompte" <[email protected]> wrote:
    Hello Joanne,
    As Mr. Woollen mentioned, I also believe it's a problem with the class
    loader.
    You need to be careful how you arrange your EJBs, because WebLogic has
    a specific
    method in which it loads classes in an EAR, JAR, and WAR file(s). Please
    refer
    to http://dev2dev.bea.com/articles/musser.jsp for more information about
    BEA WebLogic
    class loading mechanisms and caveats. Also, try printing out the various
    methods
    that are available on the object that was returned to you via reflection.
    For
    example, use the getMethods() method, which returns an array of Method
    objects
    that you can subsequently cycle through and print out the various method
    names.
    This way you can discover if the class found/returned to you is indeed
    the one
    you intend to locate.
    Hope this helps,
    Ryan LeCompte
    [email protected]
    http://www.louisiana.edu/~rml7669
    Rob Woollen <[email protected]> wrote:
    I believe the issue is the home interface class for this EJB is not
    available in the class loader which is doing the reflection.
    If you do:
    getClass().getClassLoader().loadClass(homeInterfaceClassName)
    I suspect it will fail. Reflection still requires that the class be
    loadable.
    -- Rob
    Joanne Corless wrote:
    Hi Slava,
    If I make my code look like you describe below I get a compliationerror telling
    me that
    home.getMethod() is not recognised (no such method)
    If I change it slightly and use
    Method homeCreateMethod =
    home.getClass().getMethod(homeCreate,homeCreateParam);
    The code will compile OK but when executed it still throws a NoSuchMethodException
    Any ideas ?
    Thanks for your help so far
    Regards
    Jo Corless
    Your code should look like
    Object home = pCtx.lookup(pJNDIName);
    Method homeCreateMethod =
    home.getMethod(homeCreate,homeCreateParam);
    return homeCreateMethod.invoke(home, homeCreateParamValues);
    Regards,
    Slava Imeshev
    "Joanne Corless" <[email protected]> wrote in message
    news:[email protected]...
    Hi Ryan,
    I also wanted to mention that if you do a "header search" in this
    particular
    newsgroup
    with the search query as "reflection", you will see many previousmessages
    regarding
    reflection and EJBs. I believe you could learn a lot from thedifficulties
    that
    others have faced and solved.I tried that and although there was a number of similar cases noneof them
    actually
    seem to fix my issue. Thanks for the suggestion though
    Are the EJBs that you are trying to access accessible via your
    system
    classpath?
    Try to avoid having them accessible via the main system classpath,and
    only bundle
    them in your appropriate EJB jar files (contained in an EAR file,for
    example).Maybe I should have laid the problem out a little clearer.
    I have a number of EJB's bundled up in a JAR file which is hot deployedto
    the
    server. Within this first JAR file is an EJB (SSB) component that
    needs
    to
    be
    able to invoke a known method on another EJB. This second EJB may
    or
    may
    not be
    within the first JAR file but it also will be hot deployed.
    The component trying to invoke the method on the 2nd EJB has to
    be
    able to
    create
    an instance of the 2nd EJB without actually knowing anything bar
    a
    JNDI
    Name which
    is passed in at runtime.
    I can get as far as doing the
    Object home = pCtx.lookup(pJNDIName);
    This returned a class with the name
    "com.csc.edc.projects.allders.httppostoffice.postman.PostmanBean_mp8qy2_Home
    Impl_WLStub"
    My problem seems to occur when I try and invoke the create method
    Method homeCreate = home.getClass().getMethod("create", new Class[0]);
    My code throws a java.lang.NoSuchMethodException at this point so
    I
    am
    unable
    to progress to the next step of :
    Object bean = homeCreate.invoke(home, null);
    So I can return the instantiated bean back to the calling client.
    Why am I getting the NoSuchMethodException, is is because I am gettinga
    stub
    back rather than the home interface and if so how do I get the truehome
    interface
    from the bean
    Thanks in advance
    Jo Corless

Maybe you are looking for

  • Error when scheduling WEBI report to FTP server

    Hi We are getting error "destination directory error. CrystalEnterprise.Ftp: 550 Requested action not taken" while scheduling WEBI report to FTP server. Any help would be appreciated Regards, Anisa

  • Pros and Cons of using JBDC Adapter with XI

    Hi Experts,     Can somebody help me understand pros and cons in using different JDBC adapters with XI?    I would be really greatful to you. Thanks & Regards Gopal

  • Making a Dynamic, Query-able  .swf

    Hello, I'll direct your attention to ID software's homepage, http://idsoftware.com. You can see by looking at the source that each blog entry headline is a reference to an .swf file with a query. For example: http://www.idsoftware.com/ie-header.swf?p

  • Help icon in the finder

    Hi I'm a newbie in the Mac world. I just bought a PB 15'' (Mac OS 10.4 Italian) I never used a Mac and I come from PC world. Well my problem is: after I installed Office 2004 for Mac, the "help" in Finder is not working properly. By clicking on the "

  • Delete from two tables in one statement

    Hi, Is there a way to delete from two tables in one statement? Actually I have two tables: 1. Base table (id, name, age) 2. Person table (id, city, street) The id in both tables is identical. I would like to delete using something like a join: Delete