Tag value into tag as a parameter error

It works here :
<lib:tablanotas registroID="1" bimestreID="1" />
but when I do this
<lib:tablanotas registroID="<%=reg%>" bimestreID="<%=bim%>" />
it doesn`t work
neither
<lib:tablanotas
registroID="<c:out value="${sessionScope.reg}"/>"
bimestreID="<c:out value="${sessionScope.bim}"/>" />
Does anybody know the aolution
just in case I do receive the values from the request
which are 1 in every case
but they don't work
WHat Am I I doing wrong?�
PLZ

it's the exact posting from your last post. Please don't duplicate the postings, so that we can help you in one thread and not so many different threads

Similar Messages

  • How to pass src value into img tag in ADF

    Hi,
    My Dev : 11.1.2.3.0
    How to pass row values into <img> tag.,I used the below code but it's taking empty.,
    I tried both ways like #{row.CdFilePath}   and   ${row.CdFilePath}
    <af:iterator var="row"
                      value="#{bindings.xxx.collectionModel}"
                     id="i2">
         <img src='/ShowImage?src=#{row.CdFilePath}' border='0' style="width:100px; height:100px; margin:5px;"/>
    </af:iterator>
    Please tell me any other option is there..
    Thanks

    This works if you use a normal table so I guess it should work here too.
    Are you sure the el #{row.CdFilePath} return something?
    Why don't you use the adf image tag <af:image source="/ShowImage?src=#{row.CdFilePath}".../> instead of the html img tag?
    Should the src property not be enclosed with " instead of your '?
    Timo

  • APPLET tag missing CODE parameter

    We are planning to use WebStart for our swing_apps deployment. At the moment we use applets with Plug-In 1.3.1_04
    I changed the html as follows:
    <OBJECT CODEBASE="http://java.sun.com/update/1.3.1/jinstall-1_3_1_04-win.cab"
    classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="0" height="0">
    <PARAM NAME="app" VALUE="myServer/myWebApp/wsapps.jnlp">
         <PARAM NAME="back" VALUE="true">
         <!-- Alternate HTML for browsers which cannot instantiate the object -->
         Download Java Web Start
    </OBJECT>
    When loading the page from the server we get following error:
    "APPLET tag missing CODE parameter"
    When I load "myServer/myWebApp/wsapps.jnlp" directly from the browser, the application runs fine.
    any idea's?

    To have web start run your application, it just needs to open the JNLP file in the browser.
    You do not need the OBJECT tag since your are pointing it to a JNLP file and not an applet.
    just use an HREF to your JNLP file
    Run Application
    Dan

  • How to insert parameter value into multiple columns and rows

    Hi All,
    I have one procedure insert_tab and I am passing
    100~101~102:103~104~105:106~107~108 as a parameter to that procedure. I wanted to insert each numeric value into one column. The output of the table should contain
    Table:
    Col1 Col2 Col3
    100 101 102
    103 104 105
    106 107 108
    Awaiting for your reply..

    That's not more clear for me...
    Anyway, if you really want a procedure for that, try :
    SQL> create table tblstr (col1 number,col2 number,col3 number);
    Table created.
    SQL>
    SQL> create or replace procedure insert_fct (p_string IN varchar2)
      2  as
      3  v_string     varchar2(4000):=p_string||':';
      4  v_substring  varchar2(4000);
      5 
      6  begin
      7      while instr(v_string,':') > 0 loop
      8            v_substring := substr(v_string,1,instr(v_string,':')-1)||'~';
      9            insert into tblstr(col1,col2,col3)
    10            values (substr(v_substring,1,instr(v_substring,'~',1,1)-1),
    11                    substr(v_substring,instr(v_substring,'~',1,1)+1,instr(v_substring,'~',1,2)-instr(v_substring,'~',1,1)-1),
    12                    substr(v_substring,instr(v_substring,'~',1,2)+1,instr(v_substring,'~',1,3)-instr(v_substring,'~',1,2)-1));
    13            v_string:=substr(v_string,instr(v_string,':')+1);
    14      end loop;
    15  end;
    16  /
    Procedure created.
    SQL>
    SQL> show err
    No errors.
    SQL>
    SQL> select * from tblstr;
    no rows selected
    SQL> exec insert_fct('100~101~102:103~104~105:106~107~108')
    PL/SQL procedure successfully completed.
    SQL> select * from tblstr;
          COL1       COL2       COL3
           100        101        102
           103        104        105
           106        107        108
    SQL> exec insert_fct('109~~')
    PL/SQL procedure successfully completed.
    SQL> exec insert_fct('~110~')
    PL/SQL procedure successfully completed.
    SQL> exec insert_fct('~~111')
    PL/SQL procedure successfully completed.
    SQL> select * from tblstr;
          COL1       COL2       COL3
           100        101        102
           103        104        105
           106        107        108
           109
                      110
                                 111
    6 rows selected.
    SQL> Nicolas.

  • REP-1425 report formula DO_SQL error putting value into column

    Hi all
    I have opened a report 2.5 in Oracle9i Reports Developer and, it converted ok. However, when I run the report (paper layout), the message
    rep-1425 report formula DO_SQL error putting value
    into column. Column may not be referenced by parameter
    triggers
    appears. There are several report level formula columns and corresponding placeholder columns that are the cause of this error. The formula has the following :
    SRW.DO_SQL('SELECT RPAD(''DAILY TABLE AUDIT REPORT'',60,''.'')||TO_CHAR(SYSDATE,''DD-MON-YYYY'') INTO :REPORT_TIT FROM DUAL');
    COMMIT;
    RETURN('');
    I can't work out what this error message really means as the column, report_tit is a placeholder column and, the formula column is not a parameter trigger!! The report_tit placeholder is used as a source for a layout field. I noticed that the layout field is defined as a placeholder column in the converted report but in the reports 2.5 version, it is defined as a layout field.
    I can do a work around by replacing the SRW.DO_SQL statement with a normal PL/SQL SELECT statement. However, I wonder if anyone else has had the same problem and, if anyone can help provide an answer as to what this error really means and, also, how I can retain the SRW.DO_SQL statement and/or an alternative work around to the one that I have described.
    Thanks.
    Therese Hughes
    Forest Products Commision

    Hi again
    The firewall proved to be the problem after all! The firewall set in Reports config-files is not used for WebServices, it has to be set within the stub:
    Properties prop = System.getProperties();
    prop.put("http.proxyHost","yourProxyServer");
    prop.put("http.proxyPort","youProxyServerPort");
    I inserted this in my java-code and after some problems (see below), restarting Report Builder turned the trick, the report works now.
    Cheers
    Tino
    Here there mail I set up before I found that restarting Report Builder helped:
    Thanks for your answer, putting in the proxy-settings actually helped some - the same error message is
    popping up, but instantly and not after 10 seconds like before:
    My proxy lines look like this, I also tried "http://proxy.ch.oracle.com", but "proxy.ch.oracle.com" proved to
    be the correct syntax:
    public Float getRate(String country1, String country2) throws Exception
    Float returnVal = null;
    Properties prop = System.getProperties();
    prop.put("http.proxyHost","proxy.ch.oracle.com");
    prop.put("http.proxyPort","8080");
    URL endpointURL = new URL(endpoint);
    Call call = new Call();
    I tested the new proxy-entries by disabling the proxy preference in JDeveloper, so I could verify the added
    proxy-lines in the code work - they do. If I change the proxy to some incorrect value like
    "proxyy.ch.oracle.com", they fail.
    After unsuccessfully trying recompile and re-import of Java classes, I rebuild the report from scratch and
    stumbled over the same problem. Now the question is, whether I'm still doing something wrong with the
    proxy or whether there is another problem after passing the firewall....
    -------------------------------------------------------------------------------------------------------------

  • 'Unallowed tags or dynamic code' error on a page without these...

    Hi,
    I've been using InContext Editing for a few sites now and my clients have been very happy with it, but I have a new site that's having problems on just one page.
    http://www.windhampilates.com/index.php
    I've enabled ICE on the text areas below the main photo and nav bar, as I have on other pages. There are a few scripts running on this page, but the only difference on this page from the rest of the site is the rotating image at the top of the page.
    Ironically, I've used this same script on previous sites where I've used ICE and they've worked without any problems. Am I missing something?
    Really and truly appreciate  your help!
    - MaryAnn

    I can login, and try to edit, but the system won't save my changes and gives me the 'unallowed tags or dynamic code' error as the reason why it can't save the changes.
    I tried removing the jquery in the header, but that didn't seem to work:
    http://www.windhampilates.com/index-testjqueryerror.php
    I still can't get the edits to save and it's still giving me the same message.
    The only other non-static elements on the page are the newsletter subscription script and the Facebook link, but I have these on other pages and we can edit those pages without issue.
    Any other ideas?
    Thanks for your help!

  • "Invalid access code (Bad parameter)" error encountered when trying to import VSS DB into TFS 2012

    I'm trying to import a VSS DB into TFS 2012 using the VSS Upgrade Wizard.
    However, I'm getting an "Invalid access code (Bad parameter)" error when I click the "List Available Projects" link button.
    I have been able to get the wizard going with a different VSS DB, but not this one.
    How can I fix this and get the import going?

    Hi,
    Thank you for your post.
    Do you use OLE Automation objects when you log on VSS? Please refer to this
    FIX: VSS OLE Automation Error Message "Bad Access Parameter"
    Regards,
    Lily Wu
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Quick Tag Editor Dropdown  Application Error

    I just installed Adobe Dreamweaver CS 5 and this thing has been crashing like crazy with error "Quick Tag Editor Dropdown - Application error." What is this Quick Tag Editor Dropdown and how do I get rid of this error? Any one experiencing same?
    Do I need to go back to cfeclipse?

    I can't really imagine many people on here use DreamWeaver to be honest, personally I'd take Eclipse any day. As it's a non-CF-specific question, I suspect you'd have more luck on the DreamWeaver forums.

  • Error Thrown while assinging the value into OBJECT TYPE

    Hi Oracle Experts:
    i was create one Oracle OBJECT, that object contain only one variable, and i created one function which is return the object(system date), but while i complied that procedure i was thrown the error message like ORA-06530: Reference to uninitilized composite .
    can any one tell me how can i use the object variable in the select statement into clause .
    Below i pasted my code.
    CREATE OR REPLACE TYPE str_batch IS OBJECT
    sys_date DATE
    CREATE OR REPLACE FUNCTION F_Ln_Getodperd
    p_s_actype VARCHAR2,
    p_s_acno VARCHAR2,
    p_n_bal NUMBER,
    p_d_prodt DATE
    )RETURN str_batch
    IS
    lstr_od str_batch ;
    BEGIN
    SELECT SYSDATE  INTO lstr_od.sys_date FROM dual; -- Error(Error message shown in below)
    dbms_output.put_line('');
    RETURN lstr_od;
    END;
    Error:
    ORA-06530: Reference to uninitilized composite
    Thanks in advance
    Arun M M

    Hi Mr. Saubhik
    Below i Paste my original source code. Still am facing the same problem while i execute the function. can you please tell me the solution for this.
    OBJECT :
    CREATE OR REPLACE TYPE str_batch IS OBJECT
    batchno NUMBER,
    batchslno NUMBER,
    act_type VARCHAR2(20),
    act_no VARCHAR2(20),
    curr_code VARCHAR2(10),
    amount NUMBER(23,5),
    MOD VARCHAR2(10),
    drcr VARCHAR2(2),
    cheqno VARCHAR2(20),
    cheqdt DATE,
    sts VARCHAR2(4),
    operid NUMBER,
    narr VARCHAR2(300),
    srno VARCHAR2(10),
    rem_type VARCHAR2(10)
    Function :
    CREATE OR REPLACE FUNCTION F_Ln_Getodperd
    p_s_actype IN VARCHAR2,
    p_s_acno IN VARCHAR2,
    p_n_bal IN NUMBER,
    p_d_prodt IN DATE
    )RETURN str_batch
    IS
    lstr_od str_batch ;
    -- Variable Declaration
         v_n_perd     NUMBER;     
         v_n_lnperd     NUMBER;     
         v_n_mon NUMBER;
         v_n_effmon NUMBER;
         v_n_instno NUMBER;
         v_n_odno NUMBER;
         v_n_actual NUMBER(23,5);
         v_n_diff     NUMBER(23,5);
         v_n_inst     NUMBER(23,5);
         v_d_first     DATE;
         v_d_exp DATE;
         v_d_oddt     DATE;
         v_d_lastprod DATE;
         v_s_instmode VARCHAR2(10);
         v_s_inst     VARCHAR2(10);
         v_s_branch VARCHAR2(10);
         v_s_errm VARCHAR2(20000);
    BEGIN
    SELECT F_Get_Brcode INTO v_s_branch FROM dual;
         SELECT pay_c_final,lon_d_expiry, lon_d_lastprod
         INTO     v_s_inst,v_d_exp, v_d_lastprod
         FROM      LOAN_MAST
         WHERE branch_c_code = v_s_branch AND
              act_c_type      = p_s_actype AND
              act_c_no      = p_s_acno;
         IF (p_d_prodt > v_d_exp) THEN
              SELECT CEIL(MONTHS_BETWEEN(p_d_prodt,v_d_exp)) INTO lstr_od.batchslno FROM dual;
              lstr_od.cheqdt := v_d_exp;
              SELECT v_d_lastprod - p_d_prodt INTO lstr_od.batchslno FROM dual;
              --lstr_od.batchslno = DaysAfter(DATE(ldt_lastprod), DATE(adt_prodt))
         ELSE
              IF (v_s_inst = 'N') THEN
                   IF p_d_prodt > v_d_exp THEN
                        SELECT CEIL(MONTHS_BETWEEN(p_d_prodt,v_d_exp)) INTO lstr_od.batchslno FROM dual;
                        lstr_od.cheqdt := v_d_exp;
                   ELSE
                        lstr_od.batchslno := 1;
                   END IF;     
              ELSIF (v_s_inst = 'Y') THEN
                   SELECT first_d_due,lon_c_instperd,lon_n_perd
                   INTO v_d_first,v_s_instmode,v_n_lnperd
                   FROM LOAN_MAST
                   WHERE branch_c_code = v_s_branch AND
                        act_c_type      = p_s_actype AND
                        act_c_no          = p_s_acno;     
              SELECT CEIL(MONTHS_BETWEEN(p_d_prodt,v_d_first)) INTO v_n_mon FROM dual;          
                   IF v_n_mon > 0 THEN
                        SELECT NVL(ln_n_balance,0),NVL(ln_n_instlamt,0),NVL(ln_n_instlno,0)
                        INTO v_n_actual,v_n_inst,v_n_instno
                        FROM LOAN_INST_SCH
                        WHERE act_c_type = p_s_actype AND
                             act_c_no     = p_s_acno AND
                             ln_d_effdate = (SELECT MAX(ln_d_effdate)
                                                           FROM     LOAN_INST_SCH
                                                           WHERE act_c_type = p_s_actype AND
                                                                     act_c_no = p_s_acno AND
                                                                     ln_d_effdate < p_d_prodt);
                        IF (p_n_bal > v_n_actual) THEN
                             IF v_n_inst > 0 THEN
                             lstr_od.batchslno := (p_n_bal - v_n_actual) / v_n_inst;
                             END IF;
                        ELSE
                             lstr_od.batchslno := 1;
                        END IF;
                        IF lstr_od.batchslno = 0 THEN
                        lstr_od.batchslno := 1;
                        END IF;
                        --FOR FULL OD
                        IF (v_n_mon > v_n_lnperd) THEN
                        lstr_od.batchslno := (v_n_mon - v_n_lnperd) + lstr_od.batchslno;
                        END IF;
                        IF v_s_instmode = 'Q' THEN
                        lstr_od.batchslno := lstr_od.batchslno * 3;
                        ELSIF v_s_instmode = 'H' THEN
                        lstr_od.batchslno := lstr_od.batchslno * 6;
                        ELSIF v_s_instmode = 'Y' THEN
                        lstr_od.batchslno := lstr_od.batchslno * 12;
                        END IF;
                        SELECT p_d_prodt - lstr_od.batchslno INTO lstr_od.cheqdt FROM dual;
                        IF v_s_instmode = 'M' THEN
                        v_n_odno := v_n_instno - lstr_od.batchslno; -- TO get OD DATE
                             SELECT ln_d_effdate
                             INTO lstr_od.cheqdt
                             FROM LOAN_INST_SCH
                             WHERE act_c_type = p_s_actype AND
                                  act_c_no     = p_s_acno AND
                                  ln_n_instlno = v_n_odno;
                             IF SQLCODE = -1 THEN
                             lstr_od.batchslno := -1;
                             RETURN lstr_od;
                             END IF;
                        END IF;
                        ELSE
                        lstr_od.batchslno := 1;
                        END IF;                                             
              END IF;                                             
              END IF;     
    RETURN lstr_od;
    EXCEPTION
    WHEN OTHERS THEN
    v_s_errm := SQLERRM;
    dbms_output.put_line(SQLERRM);
    lstr_od.batchslno := -1;
    RETURN lstr_od;
    END;
    /

  • Converted MS Word 2007 to Adobe Acrobat 9 random "Bad Parameter" Error

    Question: I Converted MS Word 2007 file which contained 892 pages into Adobe Acrobat 9 Standard afterwards and while needing to update only certain pages I receive the "Bad Parameter" Error. My process is using drop down Document/Extract pages(make my updates)/Replace pages into complete PDF file/ usually with no problem then towards the last pages of the PDF the Error showed up! I believe that it’s possible, the conversion initially may have allowed many tags to be written correctly but some are corrupted. It could be a buffer-overflow failsafe that is having an adverse effect against the two programs because of the file’s size? I have seen some good advice come from many people on this site like "Bill@VT" and "CtDave" and others so I am humbly requesting assistance? Some additional background information is I have to keep the file size the same and I cannot print to PDF file from Word due to a specific format I must keep and most of the PDF is not corrupt: meaning receiving the "Error". I would like to know if the error that seems to be due to the conversion process can be corrected. I have provided some additional similar post below from other customers that may be useful as reference material?  R/ Thanks in advance! 
    “Like 10 others, I get a "bad parameter" pop-up window when I try to delete 1 or more pages from a PDF created from Adobe 8 Pro from Microsoft Word 2007.  Of the 3 computers we have tried to delete the pages, we are running Windows XP and Office 2007 on all.  But 1 computer has Adobe 7 Pro, one has Adobe 8 Pro, and the 3rd has Adobe 9 Pro.  None are able to delete or extract the pages -- we get the bad parameter error each time we try. The PDF has 260 pages and occupies 5.7 MB memory.  What additional information can I provide to get a resolution to this problem?  Thanks!” “Civilengr10” (posted Aug 17, 2010)
    “I am taking adobe files from a database, saving them, and then making changes to them by inserting (from other adobe files from the same database) or deleting pages.  Very basic stuff! However, sometimes when I want to insert pages, it will insert them but then say "bad parameter".  After that point, I cannot delete any pages.  It will give me the "bad parameter" error again and not delete. I have reduced the file size, ran "Examine Document" and removed whatever it wanted me to, and whenever I save a file, I do Save As...instead of Save! Also, under preferences > security I have the "Verify signatures when the document is opened" unchecked. None of these recommendations that I have read elsewhere work.  Can someone offer me some guidance? I am working on the files locally.  I save the files from the database unto my own folder on the computer. The thing is, some of the files I download from the database are fine and do not give me any error, but others do.  Do you know how I can fix the files that are corrupted from the database?” “hoda64” (posted July 22, 2009)
    “Problem converting Word 2007 DOC to PDF 9
    I have a Word 2007 DOC (not docx) file with pictures and text which converted perfectly with Distiller 8. I installed CS4 Distiller 9, and now the same DOC file flows over onto several extra pages. I am using the default settings. Any idea what has changed? Thanks in advance.  “Petrula” (posted Nov 29, 2002) “First, select the Adobe PDF printer in WORD. Then go through the document to check for the flow of the document. It should print the same as you see in the document after the printer has been selected.”

    For the replace and delete pages, I can only guess that you are messing up some of the bookmarks or links in the page from what I think you have based on the description. I would work on copies between each stage so that you can at least go back to the last success stage. If possible, you are better to go back and do the modifications in the original page and the recreate the PDF. If that is not possible, then maybe a better explanation of how you are creating the PDF would help folks understand your process fully and suggest a solution.
    On the latter, I would do a repair on Acrobat. However, it may be in the process you are using in the conversion from WORD. How are you creating the PDF from WORD? Have you updated AA9 and not simply have 9.0? The confusing point is that you talk about Distiller for getting the PDF from WORD. Distiller is often involved, but only behind the scenes and normally you either print to the Adobe PDF printer, use PDF Maker, or use the MS plugin for PDF creation. So when stating Distiller, it is unclear what process you are using since none of the methods I mention state the use of Distiller even if it is used in the background.

  • Inserting a Value into otherTable using an App. Proc. from a Date Picker

    I'm trying to call an Application Process that will insert an Attribute of a Row, into another table, after selecting a date from a Date Picker cell.
    I don't know why this shouldn't be possible. I think I've got all of my "Ducks in a Row", so to speak,
    but the Value that is being inserted into the other table is this:.. [object HTMLTableCellElement]
    (Ultimately, I'd like my Application Process to include Page element values with the insert as well, but I'm trying to handle one problem at a time)
    Here's a list of all the steps I've covered:
    1. I've Created an Application Process, (popDevices). The Process Point is "On-Demand". The Type is "PL/SQL Anonymous Block".
    The Process is defined as such:
    BEGIN
    Insert into P_DEVICES
    NAME,
    IP_ADDRESS,
    MODEL
    ) values
    'Unassigned',
    'Unassigned',
    :P153_MODEL
    COMMIT;
    END;
    2. I've Included the Javascript in the Page HTML Header.
    The Javascript is written as such: (minus the tags)
    function popDevices(PART_NO)
    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=popDevices',0);
    get.add('P153_MODEL',PART_NO);
    gReturn = get.get();
    get = null;
    3. I've included the following in the "Element Attributes" field of the Date-Picker Item (Date_Delivered).
    The Region Type is "SQL Query (Updatable Report)"
    onChange="javascript:popDevices(PART_NO);"
    THE RESULTS
    A. A row does get inserted into the other (P_Devices) table,
    But the value of the Attribute from the Page Region is not valid.
    The Inserted value is this: [object HTMLTableCellElement]
    B. I have tried Every conceivable combination of characters in the "Element Attributes" field, such as:
    ...(PART_NO), (#PART_NO#), (||PART_NO||), (+PART_NO+)
    C. The Javascript in the Page HTML Header appears to be correct, since I have written it this same way for other applications without any problems.
    D. If this simply cannot be done by referencing the "onChange" Javascript from the "Element Attributes" field,
    Then can you help me to write the code into the Select statement of the region.
    Thanks for any help you can give me.
    -Gary

    This may not be the most direct approach to the solution. But, none the less, it is a solution.
    For those other novices, like myself, I hope this can be useful at some point in your development:
    MY DESIRED RESULT:
    A. To Insert into another tablle values derived from both; Page Item (i.e. P153_x) and Attributes of a Row in an Updatable Report from which I have selected the Date-Picker.
    B. I want the insert to occur automatically after the user Selects the date from the Date-Picker.
    SOLUTIONS:
    1. I usea Javascript prompt window to prompt for information and store the information in Pre-Created Page Items.
    This is the Javascript as I've entered it into the Page HTML Header region: (Minus the Tags)
    function received_javaprompt () {
    var Serial_Number = prompt("Enter the Serial Number");
    var Bldg_Id = prompt("Enter the Bldg_Id");
    var Clst_Id = prompt("Enter the Clst_Id");
    $x('P153_SERIAL_NO').value = Serial_Number;
    $x('P153_BLDG_ID').value = Bldg_Id;
    $x('P153_CLST_ID').value = Clst_Id;
    2. I needed to identify the (Manufacturer and Part_No) Column Attribute in the Row from which I selected the Date-Picker.
    A. To do this, I enumerated the Columns in the order they were listed in the Select Statement of the region (Click on the Region Definition Tab).
    B. Then (Click on the Report Attributes Tab). Count, In the numerical order which these columns are selected, ONLY the columns that are Editable.
    C. When I counted down as far as the Column I wanted to capture the value of, Then I made a mental note of that number and used it in the following (2) Javascripts (findMaker and findModel).
    3. findMaker (Minus the tags)
    function findMaker (pThis) {
    var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
    var Maker = html_GetElement('f15_'+vRow).value
    $x('P153_MAKER').value = Maker;
    4. findModel (Minus the tags)
    function findModel (pThis) {
    var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
    var Model = html_GetElement('f16_'+vRow).value
    $x('P153_MODEL').value = Model;
    5. I added one more Javascript, to the Page HTML Header, that references the Application Process which will Insert the values into the "Other" table:
    function popDevices(P153_SERIAL_NO,P153_BLDG_ID,P153_CLST_ID,P153_MAKER,P153_MODEL)
    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=popDevices',0);
    get.add('P153_SERIAL_NO',P153_SERIAL_NO);
    get.add('P153_BLDG_ID',P153_BLDG_ID);
    get.add('P153_CLST_ID',P153_CLST_ID);
    get.add('P153_MAKER',P153_MAKER);
    get.add('P153_MODEL',P153_MODEL);
    gReturn = get.get();
    get = null;
    6. I added the "onChange" process to the Element Attributes field of the Table item which utilizes the Date-Picker:
    A. Click on the Report Attributes Tab of the Region.
    B. Click on the Edit icon of the column which utilized the Date-Picker
    C. I added this "onChange" reference to the Element Attributes field, which is found in the Tabular Form section.
    onChange="javascript:received_javaprompt();findModel(this);findMaker(this);popDevices((P153_SERIAL_NO).value,(P153_BLDG_ID).value,(P153_CLST_ID).value,(P153_MAKER).value,(P153_MODEL).value);"
    7. The Application Process which inserts the collected data into the table is as follows:
    (Name= popDevices: Process Point= On-Demand: Type= PL/SQL Anonymous Block)
    BEGIN
    Insert into P_DEVICES
    BLDG_ID,
    CLST_ID,
    NAME,
    IP_ADDRESS,
    SERIAL_NO,
    MAKER,
    MODEL
    ) values
    :P153_BLDG_ID,
    :P153_CLST_ID,
    'Unassigned',
    'Unassigned',
    :P153_SERIAL_NO,
    :P153_MAKER,
    :P153_MODEL
    COMMIT;
    END;
    Well, I hope this may help someone else like me.
    I usually arrive at my solutions by getting help here on the Discussion Forum and also Google. Google inevitably points me to a previous Apex Discussion Forum session.
    Edited by: garyNboston on Mar 15, 2010 10:55 AM

  • Parameter error

    Hi folks,
    Slight problem here, i have a form in a HTML page linking to a servlet. The servlet's checking the parameters and using the requestDispatcher to redirect to a JSP page. The servlet is compiling fine, but when after i enter details into the form and click on the submit button, i'm getting a Parameter error. I'll show u the e-mail address i'm adding, then the error checking method (which is compling ok) and then the error it returns, and see if you can shed light on the prob.
    e-mail................
    [email protected]
    checking the parameter..............................
    public void doPost(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException
    // Check e-mail parameter parameter
    String[] values = req.getParameterValues("emailAddress");
    if (values == null || values.length != 1 || values[0].trim().length() == 0)
    this.parameterError1(res);
    return;
    String par_email = values[0].trim();
    the error it returns............................................
    private void parameterError1(HttpServletResponse res) throws IOException
    res.setContentType("text/plain");
    PrintWriter writer = res.getWriter();
    writer.print("Parameter error 1.\n");
    writer.close();
    Any help would be appreciated, thank you!

    It is returning "Parameter error 1"?
    My guess would be the parameter isn't getting through.
    On your HTML page, you have an input with name "emailAddress" (exact match including case) ?
    Is your form submitted with method="post" ?
    If that doesn't work try the following in your servlet to print out the values.
    String[] values = req.getParameterValues("emailAddress");
    PrintWriter writer = res.getWriter();
    if (values == null){
      out.println("Values is null:  no parameter was found<BR>");
    else{
      out.println(values.length "values of emailAddress: <BR>");
      for (int i=0; i<values.length; i++){
        out.println( i + " = " + values[i] + "<BR>");
    }

  • Write blob value into a file

    Hi, all
    I'm looking for the correct method of writing an internal blob value into a file. I know that the best way is using some external language. I.e. Java or C. But also I met a number of solutions of doing within pl/SQL block. All of them look like this:
    CREATE OR REPLACE PROCEDURE Write_Binary_file
       PC$Directory IN VARCHAR2
      ,PC$File_Name IN VARCHAR2
      ,PC$SQL_Order IN VARCHAR2
      ,PB$Raise     IN BOOLEAN DEFAULT FALSE
    -- Procedure to dump a BLOB column onto a file
    -- parameters:
    -- PC$Directory : name of an existing Oracle Directory
    -- PC$File_Name : name of the expected output file
    -- PC$SQL_Order : SQL order to select the BLOB column
    -- PB$Raise     : boolean to indicate if the process
    --                would be stopped after an error
    IS
      src_lob    BLOB;
      buffer     RAW(16384);
      amt        BINARY_INTEGER := 16384;
      pos        INTEGER := 1;
      LF$FicOUT  UTL_FILE.FILE_TYPE ;
      LC$Msg     VARCHAR2(2000) ;
    BEGIN
    -- get the BLOB column --
    BEGIN
      EXECUTE IMMEDIATE PC$SQL_Order INTO src_lob ;
    EXCEPTION
      WHEN NO_DATA_FOUND THEN
        LC$Msg := 'Write_Binary_File(): NO_DATA_FOUND' ;
        IF PB$Raise THEN
          RAISE_APPLICATION_ERROR( -20100, LC$Msg ) ;
        END IF ;
        Dbms_Output.Put_Line(LC$Msg) ;
      RETURN ;
    END ;
    -- open the output file --
    LF$FicOUT := UTL_FILE.FOPEN( PC$Directory, PC$File_Name, 'W', 32764 ) ;
    -- write the file --
    LOOP
      -- read the chunks --
      Dbms_Lob.READ (src_lob, amt, pos, buffer);
      -- write the chunks --
      Utl_File.Put_Raw(LF$FicOut, buffer);
      pos := pos + amt;
    END LOOP;
    -- close the file --
    Utl_File.Fclose(LF$FicOut);
    EXCEPTION
      WHEN NO_DATA_FOUND THEN
        utl_file.fclose(LF$FicOut);
      WHEN OTHERS THEN
        LC$Msg := 'Write_Binary_File() Error : ' || TO_CHAR( SQLCODE ) || ' while managing file ('
    || PC$Directory || ') ' || PC$File_Name ;
        IF PB$Raise THEN
          RAISE_APPLICATION_ERROR( -20100, LC$Msg ) ;
        END IF ;
        Dbms_Output.Put_Line(LC$Msg);
    END Write_Binary_file;
    But this code seems not working. The problem is it always creates a file with a bit bigger size than initial one. So jpg copy will be never be opened with any viewer.
    Can anybody explain this issue and give any workaround?
    Thanks

    You need a code block like this:
    DECLARE
       l_file       UTL_FILE.FILE_TYPE;
       l_buffer     RAW (32767);
       l_amount     BINARY_INTEGER     := 32767;
       l_pos        INTEGER            := 1;
       l_blob       BLOB;
       l_blob_len   INTEGER;
    BEGIN
    -- Open the destination file. Note the third parameter "wb"
       l_file := UTL_FILE.FOPEN ('TEST_DIR', 'extract3.jpg', 'wb');
    -- Get LOB locator
    FOR rec IN (
    SELECT blob_col  l_blob
          FROM test_my_blob
       --AND ROWNUM =1
    LOOP
       l_blob_len := DBMS_LOB.getlength (rec.l_blob);
    -- Read chunks of the BLOB and write them to the file
    -- until complete.
       WHILE l_pos < l_blob_len
       LOOP
          DBMS_LOB.READ (rec.l_blob, l_amount, l_pos, l_buffer);
          UTL_FILE.put_raw (l_file, l_buffer, FALSE);
          l_pos := l_pos + l_amount;
       END LOOP;
      commit;
    END LOOP;
    -- Close the file.
       UTL_FILE.FCLOSE (l_file);
    EXCEPTION
       WHEN OTHERS
       THEN
    -- Close the file if something goes wrong.
          IF UTL_FILE.IS_OPEN (l_file)
          THEN
             UTL_FILE.FCLOSE (l_file);
          END IF;
          RAISE;
    END;

  • How can we include the property value into the News RSS?

    We have defined object property u201CDepartmentu201D that is used in News XML creating form. How can we include the property value into the News RSS (set value of the particular RSS XML tag)?

    We have solved the issue with NWDS

  • (inserting values into a database using a Checkbox) HELP!!!!!!!!!!!!!!!

    Can anyone help me out ???
    I am getting some trouble with using multiple check boxes to store the information in a database (MS ACESS)
    Each checkBox has multiple values in them.(3).
    1)Should they have similar names for each one?
    I am also getting an error saying cannot resolve symbol stating about pnumber,itemname,price
    Can you also tell me that if my query statements are correct??
    I want to insert into the database multiple values of each checkboxes which are checked.
    Thanks!!!!!!!
    <!---------------------------------------------html PART--------------------------------------------------------------------------------------->
         <form method="POST" action="http://localhost:8080/cvc/jsp/addCart.jsp">
              <table align = "center" border="2" width="50%">
              <TBODY>
    <%               
                   getProducts.next();
                   pnumber = getProducts.getInt(1); //this part works since I am seeing it displayed in a table
                   itemname = getProducts.getString(2);                         
                   price = getProducts.getFloat(3);
    %>               
                   <tr>               
                   <td><img align= "centre" border=0 src="http://localhost:8080/cvc/ASA Technologies\mp3.jpg" /></td><td><%=itemname%></td><td align="right"><%=price%></td>
                   <td align="center"><input type="checkbox" name="items" value="<%=pnumber+":"+itemname+":"+price+":"%>" </input></td> //????????????
    <!--------------------------------------JSP PART-------------------------------------------------------------------------------------------------------------------->
    <%@ page import="java.util.*, java.io.*, java.sql.*" %>
    <%
    String insert;
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String sourceURL = new String("jdbc:odbc:ASA");
    Connection con = null;
    con = DriverManager.getConnection(sourceURL,"","");
    java.sql.Statement statement = con.createStatement();
    while ( request.getParameter("pnumber+itemname+price") !=null)
    insert = "insert into Cart VALUES( ' "+pnumber+" ' ," + " '"+itemname+ " ' ,"+ " ' "+price+ " ' )"; //getting the error here :cannot resolve symbols
    statement.executeUpdate(insert);
    %>

    Syntax of insert was wrong..
    while ( request.getParameter("pnumber+itemname+price") !=null)
    insert = "insert into Cart VALUES( ' "+pnumber+" ' ," + " '"+itemname+ " ' ,"+ " ' "+price+ " ' )"; //getting the error here :cannot resolve symbols
    statement.executeUpdate(insert);
    try this........
    Column1, Column2, Column3 are the field names of your table Cart....
    ..changed it to your original fieldnames...
    insert = "insert into Cart (Column1,Column2,Column3) VALUES( ' "+pnumber+" ' ," + " '"+itemname+ " ' ,"+ " ' "+price+ " ' )";

Maybe you are looking for