Accessing LONG datatype in Dynamic page

I've been trying to access a LONG datatype in a cursor within a dynamic page. So far portal throws the following error:
ORA-00922: missing or invalid option (WWV-11230)
when I try the following code:
<HTML>
<HEAD>
<TITLE>Dynamic Page</TITLE>
</HEAD>
<ORACLE>
SET SERVEROUTPUT ON SIZE 100000;
SET LONG 100000;
declare
v_text long;
v_crn varchar2(10);
cursor result_detail is
select r.text, r.crn
from results@mydb r
where r.id = :p1;
begin
open result_detail;
fetch result_detail into v_text, v_crn;
htp.p etc ... display data ....
close result_detail;
end;
</ORACLE>
</BODY>
</HTML>
If I leave out the SET commands it can't find the page.
Any clues? Has someone worked out how to get a LONG datatype value into Portal?
Version 902.6.18 (win 2000 server)
Thanks for any help.
Philippe

The SWF file was developed to work in such a way as it would only look in the root directory for the XML file.  Once the developer changed it so that it could access it from the same directory (regardless of what directory it was in), and then had to add 'id' and 'src' to the JavaScript function call, it worked like a charm.
^_^

Similar Messages

  • Accessing Long datatypes using JDBC

    Can any body help me how to access long datatypes in JDBC. I need to store large data in String object arround 100000 length string in long. as of now with pstmt.setString(1,String ) i am able to insert 32700 length string only . how can i over come this. ?
    please provide me some code for my problem .
    thanks in advance.......

    Which DB?
    Which DB field type?
    Which JDBC driver?

  • How to grant group level access to a dynamic page?

    I'm trying to write some code which grants access to a Portal group on a dynamic page.
    I've tried using the wwsec_api.set_group_acl procedure like this:
    wwsec_api.set_group_acl(
    p_group_id => 0, -- Authenticated User
    p_object_type_name => wwsec_api.PORTLET_OBJ, -- ??????
    p_owner => 'MYPROVIDER',
    p_name => 'DYNAMIC_PAGE_NAME',
    p_privilege => wwsec_api.MANAGE_PRIV
    When I execute it I get an error message:
    ORA-01722: invalid number
    What object type is a Dynamic Page? Is PORTLET_OBJ correct?
    Any suggestions are welcome!

    This worked for me:
    wwsec_api.set_group_acl(
    p_group_id => 0, -- Authenticated User
    p_object_type_name => 'DYNAMIC',
    p_owner => 'MYPROVIDER',
    p_name => 'DYNAMIC_PAGE_NAME',
    p_privilege => wwsec_api.MANAGE_PRIV
    (Found the object_type_name in the table wwsec_sys_priv$)

  • Accessing the preference path in a dynamic page

    All,
    I would like to access the preference path
    so that I can use the get_names and get_value functions, in a dynamic page. When we create the dynamic page, we don't know what the preference path is. so, how do I get the preference path? e.g Add the dynamic page as a portlet into a content area page.
    Thanks
    Sanjay

    Currently the validation of the PL/SQL block of a dynamic page is not in the
    context of procedure show. So you can not directly refer to the parameters such as p_reference_path.
    There is a way to do it:
    1. use bind variable as the reference path
    <ORACLE>
    declare
    parm1 varchar2(30) :=
    portal30.wwpro_api_parameters.get_value('parm1', :path);
    begin
    htp.p('The value of Parameter 1 is ' &#0124; &#0124; parm1);
    end;
    </ORACLE>
    2. In the Parameter Form Setting, set the default value for the bind variable to #p_reference_path
    Before the PL/SQL block is executed, bind variable path will be bind with the value of procedure show's
    parameter p_reference_path.
    Hope this works.

  • Web Performance (Static vs Dynamic pages)?

    Hello all, I am building a web site like
    http://www.bizrate.com/buy/browse__cat_id--402,de_id--300.html
    and want to know if I use jsp to generate web pages(e.g. a user browse by Resolution), then each time the server would recompute and get the same result pages. (If my data doesn't change)
    So, should I generate theses pages statically, or use jsp to generate these pages dynamically? If static, my server load should be lower.
    Tomcat 4.1.24, Redhat 8.0, MySQL
    Thanks in advance.

    Realistically, how often do you expect your pages to be accessed? How long does the dynamic rendering of a page take to complete? How soon does new data need to appear online?
    If you have short rendering times and only a few hundred accesses a day, then there is no reason to worry about static generation of your pages, the dynamic generation of pages will suit your needs.
    If, however, you have long rendering times (a complex query returning tens of thousands of rows will do it) or if you are looking at a huge number of accesses (lottery sites can get millions per month) and you don't need new information to appear immediately, the once-daily dynamic generation of static pages (via a cron job or other means) will suit your needs.
    Check your needs, check your site with dynamic generation under load, and your question should answer itself.

  • Retrieve data from a dynamic page via loadURL

    Hello.
    I would like to ask you how it is possible to retrieve data
    from a dynamic page (asp classic in my case) using the loadURL
    method.
    I would like to create an html authentication form (with
    username and password fields). The loadURL method should call an
    asp page and then pass to the usual function 'DoIfSucceded' the
    results of the elaboration.
    Of course I'm going to have a switch in the function in order
    to make different actions depending from the results of the asp
    page (authentication succeded or failed).
    I had a look to the examples at this page:
    Adobe
    samples
    Is there anyone who can explain clearly how the results data
    must be written by the asp page and how the success function can
    retrieve them ?
    I thank you in advance for your help.

    loadURL() uses the the XMLHttpRequest Object so if the
    content you return is XML, you have 2 choices for accessing your
    data. You can either access it as a text string via the
    XMLHttpRequest object's responseText property, or as a DOM document
    via the XMLHttpRequest object's responseXML property:
    function MySuccessCallback(req)
    // If my data is XML, I can access the data that was sent
    from the server
    // as DOM elements via the XMLHttpRequest's responseXML
    property.
    var xmlDOM = req.xhRequest.responseXML;
    // OR, you can access the data sent back from the server as
    text via
    // the XMLHttpRequest object's responseText property.
    var xmlAsAString = req.xhRequest.responseText;
    var req = Spry.Utils.loadURL("GET",
    "/app/book.php?id=1&code=54321", true, MySuccessCallback);
    If your serverside script wants to use some other format as a
    response like JSON or plain text, then you can only access the data
    as text via the responseText property.
    --== Kin ==--

  • Error creating dynamic page in an application with a schema other than portal30

    Running 9iAS 1.0.2.2 on Solaris.
    Database 8.1.7.1
    I cannot seem to create a default dynamic page (select 'x' from dual) in an application that has a schema (e.g. test) other
    than portal30. The error seems to be when portal tries to compile the dynamic-page package, it references itself from
    within the package but prefixing the call with the other (test) schema. It never seems to compile? What seems to be the
    problem? Any ideas?

    If you are using any database object other than the applcation owned,then it has to be prefixed with the schema owner.
    For example,
    if the application schema is based on the schema "schema1" (say)
    and your query is based on one of the object on "schema2"
    and if you have necessary privilegves to access that object from schema2, then the compiler wont throw any error.
    Can u explain, what u problem you are experiencing in detail?
    (Also, if u give me the portal version, I can cross-verify that).

  • Dynamic page in region as a portlet not displaying in portal template

    As the title suggests I have a portal template that contains a region at the top . within this region i have included 2 portlets, first is a dynamic page (a simple banner title ) then a navigation page beneath them .
    when I am logged in as a specific user it displays correctly , when I log onto the page without logging in - the dynamic page does not display ,yet the navigation page does . I have clicked on every display to public check box , assigned public user with view privilege and everything else along those lines . Any ideas ??
    thanks in advance , Chris

    Hi Chris: Just to be specific, did you go to the providers tab in Navigator, the locally built providers link then the provider which contains your dynamic page and check the access set directly on that page? You can either set the dynamic page to have its own access (overriding that of the provider) or set the provider itself to be public.
    Rgds/Mark M.

  • Auto Query in Master Detail Form using dynamic page doesn't work

    I created a Master-Detail form, and implement AutoQuery using a dynamic page
    with the following code :
    <HTML>
    <BODY>
    <ORACLE>DECLARE
    nre_ VARCHAR2(100);
    BEGIN
    nre_ := emp_nre;
    if nre_ is not null then
    net_portal.Popula_Agregados(nre_);
    net_portal.Popula_Docs_Agregados (nre_);
    htp.p('<iframe id=myFrame name="myFrame" frameborder=0 width="250%"
    height="300"
    src="/pls/portal/PORTAL.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=
    3
    388118140&p_arg_names=_show_header&p_arg_values=NO&p_arg_names=_cad_nre_cond&p_a
    rg_values=%3D&p_arg_names=cad_nre&p_arg_values='||nre_||'">
    </iframe>');
    end if;
    EXCEPTION
    WHEN OTHERS THEN
    htp.p(SQLERRM);
    END;
    </ORACLE>
    </BODY>
    </HTML>
    It works fine when we access the first time to the page, but if i press the
    save button after inserting or updating a detail record, the header record is
    lost. How can i avoid this situation ?

    I changed query:
    select
    Replace(
    '<img src="#IMAGE_PREFIX#ed-item.gif" border="0" alt="EditMap" usemap="#editmap***id***"></img>
    <map name="editmap***id***">
    <area shape="rect" coords="0,0,16,16" href="http://apex.oracle.com/pls/otn/f?p=&APP_ID.:'
    || decode ( type, 'FOLDER', '33', '22' )
    || ':&APP_SESSION.::&DEBUG.::P'
    || decode ( type, 'FOLDER', '33', '22' )
    || '_ID,P'
    || decode ( type, 'FOLDER', '33', '22' )
    || '_CALLING_PAGE:' || id || ',&APP_PAGE_ID." ></area></map>' ,
    '***id***', id
    ) Edit,
    id,
    type,
    name,
    decode ( type, 'FOLDER', 33, 22 ) target
    from tThe idea is - each img uses its own map.
    It works now.
    Check:
    http://apex.oracle.com/pls/otn/f?p=20980:13
    Lev
    Edited by: le on Nov 3, 2010 11:11 AM

  • Dynamic pages with WebCenter Sites CSElements

    We are using the benefits of WebCenter Sites 11g regarding the possibilities of create the templates and the final user be able to compose the the pages. By the other hand, we have the necessity to create dynamic pages with business logic and interaction with database or web-services with WebCenter Sites templates. We expect to be able to embed these dynamic pages inside CSElements. With all of this in mind, what is the best approach? I'd like to know if our solution to use the Spring 2.5 + JPA 2 is a good a approach to reach our necessity/requirement or WebCenter Sites 11g has another better way to do that.

    You can add your own business logic to CSElements, or create your own tag libraries and add your logic there. If you're using a framework like the GSF you can call an action from your element as well. In all cases, you are free to use whatever tools you like to help you implement your business logic (provided that it is compatible, which you've already learned about. :-). Just be careful that you don't use the same database connection pool that Sites uses or you may run out of connections. Also, pay attention to how you are caching your pages and pagelets when you are calling external services or accessing external resources.
    Regards
    Tony

  • How to hide folder region in a dynamic page application

    I am using a dynamic page with the following code to render a published portlet in a dynamic page. I can then control how the portlet displays when added the portlet to a custom page by an end user. I wanted to know if there is way to hide some of the portlet regions in the code. (example) Hide news and sub-folders.
    <ORACLE>DECLARE
    l_portlet_record portal30.wwpro_api_provider.portlet_runtime_record;
    BEGIN
    l_portlet_record.provider_id := 41325216;
    l_portlet_record.portlet_id := 56937;
    l_portlet_record.exec_mode := 1;
    l_portlet_record.has_title_region := FALSE;
    l_portlet_record.has_border := FALSE;
    portal30.wwpro_api_provider.show_portlet(l_portlet_record);
    END;
    </ORACLE>

    Moderator advice: Please don't post in threads that are long dead and don't hijack another poster's thread. When you have a question, start your own topic. Feel free to provide a link to an old post that may be relevant to your problem.
    Moderator action: Locking this thread.
    Moreover, your question is answered in this thread. Didn't you at least read it before resurrecting it?
    db

  • Read parameters in a dynamic page portlet?

    Hi,
    Is it possible to read input parameters in a dynamic page portlet?
    Am I missing something if I want to read the input_parameter?
    <oracle>
    ftp.p(:input_paramter)
    </oracle>
    Thanks a lot.

    Hi,
    It is not possible to read the input parameters in the <oracle> tag. You can read it in the additional plsql code. If you have
    to access the parameter deptno then do this in the additional plsql code section.
    for i in 1..p_arg_names.count loop
    if p_arg_names(i) = 'deptno' then
    htp.p(p_arg_names(i));
    end if;
    end loop;
    Thanks,
    Sharmila

  • Passing multipe vairable to a Dynamic Page

    Hi
    I creating a dynamic page that will display a list of values based on what the user input into the parameters. It works find as long as they only input a single value in (ex. Create User) but when attempting to input multiple values (ex. Create User, Delete User) no information is brought back. Is there a way that I can fix this so that the user can input multiple values? Any help with this would be greatly appreciated, thanks.
    select i.folder_id pageid
    ,i.display_name title
    from items i
    ,item_types ity
    where i.caid = :p_sitecode
    and i.subtype = ity.id
    and i.display_name in (:p_formname)

    Hi,
    A quick and dirty method is to create separate form objects for each selection, i.e. :p_formname1, :p_formname2. Then your query would be something like display_name in (:p_formname1,:p_formname2). Otherwise you may need to parse your :p_forename into multiple name value pairs.

  • Cannot create dynamic page with cursor based on linked table

    I get the following error when i try to create a dynamic portal page that uses a pl/sql cursor:
    ORA-06550: line 1, column 24:
    PL/SQL: ORA-00980: synonym translation is no longer valid
    ORA-06550: line 1, column 24:
    PL/SQL: SQL Statement ignored (WWV-11230)
    Failed to parse as REPORTS - DECLARE CURSOR C1 IS SELECT * FROM
    [email protected]; BEGIN FOR R1 IN C1 LOOP HTP.P(','||'<BR>');
    END LOOP; END; (WWV-08300)
    Dynamic page:
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <H2>Example of A Dynamic Page</H2>
    <ORACLE>
    declare
    cursor c1 is
    select * from [email protected];
    begin
    for r1 in c1 loop
    htp.p('hello<br>');
    end loop;
    end;
    </ORACLE>
    </BODY>
    </HTML>
    When i use the sql query from the cursor in the page below, i get no errors:
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <H2>Example of A Dynamic Page</H2>
    <ORACLE>select * from [email protected]</ORACLE>
    </BODY>
    </HTML>
    I tried a dynamic page with a cursor on session_roles and had no problems. I assume that there is an issue with the database link or the privileges. The queries seem to get executed under portal_public;
    Oracle Portal Version: 9.0.4.0.99

    I get the following error when i try to create a dynamic portal page that uses a pl/sql cursor:
    ORA-06550: line 1, column 24:
    PL/SQL: ORA-00980: synonym translation is no longer valid
    ORA-06550: line 1, column 24:
    PL/SQL: SQL Statement ignored (WWV-11230)
    Failed to parse as REPORTS - DECLARE CURSOR C1 IS SELECT * FROM
    [email protected]; BEGIN FOR R1 IN C1 LOOP HTP.P(','||'<BR>');
    END LOOP; END; (WWV-08300)
    Dynamic page:
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <H2>Example of A Dynamic Page</H2>
    <ORACLE>
    declare
    cursor c1 is
    select * from [email protected];
    begin
    for r1 in c1 loop
    htp.p('hello<br>');
    end loop;
    end;
    </ORACLE>
    </BODY>
    </HTML>
    When i use the sql query from the cursor in the page below, i get no errors:
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <H2>Example of A Dynamic Page</H2>
    <ORACLE>select * from [email protected]</ORACLE>
    </BODY>
    </HTML>
    I tried a dynamic page with a cursor on session_roles and had no problems. I assume that there is an issue with the database link or the privileges. The queries seem to get executed under portal_public;
    Oracle Portal Version: 9.0.4.0.99

  • Is there a limit to the number of records a dynamic page query can return

    I am using a dynamic page in portal. In between the <ORACLE></ORACLE> tags I have a query that should return 4032 records. All I get on my portal page is the first 1000.
    Any ideas appreciated.

    Hi ,
    Please follow below links for your query :
    http://www.utteraccess.com/forum/lofiversion/index.php/t1991312.html
    http://answers.microsoft.com/en-us/office/forum/office_2010-access/combo-box-limitation-of-500-records-in-access-web/355c33f0-8a32-447e-ae93-ea9e040a0d5f
    http://social.technet.microsoft.com/Forums/office/en-US/baaf8988-3ead-4fd5-8ef0-880552e1f8b3/listbox-dropdown-limit-in-access-2010-form-in-sharepoint?forum=officeitproprevious
    Hope it helps . :)
    Whenever you see a reply and if you think is helpful, click &quot;Vote As Helpful&quot;! And whenever you see a reply being an answer to the question of the thread, click &quot;Mark As Answer

Maybe you are looking for