Apex 4.02 BUG. Form on SQL wizard

One of the last pages of the form on SQL wizard lets you specify what pages to go to after cancel and submit.
You can not enter something like &P7_PAGE_ID. here. Because when you finish the wizard you get an invalid number message. You must enter a number here and then when the form is generated go back and change this number back to &P7_PAGE_ID.

Yes, I guess this is a Bug.
1. When you speciify a WHERE clause in the Wozard it adds extra quotes when appending the WHERE into the Report SELECT.
I think thats the root cause, all others just follow as a consequence.
a. Because the query cannot be parse ( two single quotes) the Use Generic Column Names (parse query at runtime only) is automtacillay set
b. This leads to COL01 to COL60
c. Which is turn leads to the link not working.
I could easily recreate the scenario.
To fix it I did the following
1. Removed the extra quotes from the query
2. Selected Use Query-Specific Column Names and Validate Query and Saved
It started working correct.
I suggest you edit your Thred name add BUG at the begining so that it gets spotted by Oracle folks on the forum.
Regards

Similar Messages

  • How can I make my own form without a wizard

    Hello,
    I already created Tabular Forms using the wizard and everything worked. But now I have different requirements on my from. I need some radio buttons and some option buttons (which values come from different tables) and some normal number fields. So I can't no longer use the tabular forms.
    I created a table which can save all the information I want to provide by the form. This table has a primary key populated by a sequence I created too. Then I created a page which looks like a questionnaire I got before to design this form.
    I added another hidden item (*ID*), which should be filled by my sequence and a button which should do the insert statement.
    But I couldn't find out how to do. I looked a the processes which a made when I use the wizard but I'm not sure what they do actually.
    My question is, how is it possible to have the hidden item filled with the next primary key of my table and then how do put all the item values of the form in an insert statement? I there maybe a better way to acchieve my goals?
    Regards
    Felix

    If you created your sequence with a trigger (usually APEX creates these together for you) then there is no need to have the next ID number, when you do your insert it will automatically fill this in for you. The trigger will see that you're trying to insert null for the ID and instead replace it with the next number in the sequence.
    As for having all your items in an insert statement, you can do this in two ways. One being to create up a DML page process to handle the insert/update/delete statements. You will also need an on load row fetch process to load data onto your form. Make sure your page items are set to Source Type Database Column with the column names in the Source Value field.
    The other option is to create custom page processes to do these for you - for example, one process for inserting, one for updating, one for deleting, one for displaying data, and then you can set the condition of each process to only run if a certain button is clicked. This is useful if you have more code to run with each button click.

  • Oracle forms to SQL SERVER

    Hi
    I have to connect oracle forms to sql server, as per documentation, I created a ODBC string for SQL SERVER, In connect dialog box for oracle forms I entered username, password and @ODBC_string:Database_Name in connect.
    I am not able to connect. Please help me.
    Avinash

    Perhaps your question is more suitable for the Forms forum:
    Forms
    There's APEX as well: http://www.oracle.com/technology/products/database/application_express/html/apex_for_forms.html

  • How to make column headers in table in PDF report appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp

    Hi my name is vishal
    For past 10 days i have been breaking my head on how to make column headers in table appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp.
    Given below is my code in c# on how i export datas from different tables in sql server to PDF report using iTextSharp:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Data.SqlClient;
    using iTextSharp.text;
    using iTextSharp.text.pdf;
    using System.Diagnostics;
    using System.IO;
    namespace DRRS_CSharp
    public partial class frmPDF : Form
    public frmPDF()
    InitializeComponent();
    private void button1_Click(object sender, EventArgs e)
    Document doc = new Document(PageSize.A4.Rotate());
    var writer = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
    doc.SetMargins(50, 50, 50, 50);
    doc.SetPageSize(new iTextSharp.text.Rectangle(iTextSharp.text.PageSize.LETTER.Width, iTextSharp.text.PageSize.LETTER.Height));
    doc.Open();
    PdfPTable table = new PdfPTable(6);
    table.TotalWidth =530f;
    table.LockedWidth = true;
    PdfPCell cell = new PdfPCell(new Phrase("Institute/Hospital:AIIMS,NEW DELHI", FontFactory.GetFont("Arial", 14, iTextSharp.text.Font.BOLD, BaseColor.BLACK)));
    cell.Colspan = 6;
    cell.HorizontalAlignment = 0;
    table.AddCell(cell);
    Paragraph para=new Paragraph("DCS Clinical Record-Assigned Dialyzer",FontFactory.GetFont("Arial",16,iTextSharp.text.Font.BOLD,BaseColor.BLACK));
    para.Alignment = Element.ALIGN_CENTER;
    iTextSharp.text.Image png = iTextSharp.text.Image.GetInstance("logo5.png");
    png.ScaleToFit(105f, 105f);
    png.Alignment = Element.ALIGN_RIGHT;
    SqlConnection conn = new SqlConnection("Data Source=NPD-4\\SQLEXPRESS;Initial Catalog=DRRS;Integrated Security=true");
    SqlCommand cmd = new SqlCommand("Select d.dialyserID,r.errorCode,r.dialysis_date,pn.patient_first_name,pn.patient_last_name,d.manufacturer,d.dialyzer_size,r.start_date,r.end_date,d.packed_volume,r.bundle_vol,r.disinfectant,t.Technician_first_name,t.Technician_last_name from dialyser d,patient_name pn,reprocessor r,Techniciandetail t where pn.patient_id=d.patient_id and r.dialyzer_id=d.dialyserID and t.technician_id=r.technician_id and d.deleted_status=0 and d.closed_status=0 and pn.status=1 and r.errorCode<106 and r.reprocessor_id in (Select max(reprocessor_id) from reprocessor where dialyzer_id=d.dialyserID) order by pn.patient_first_name,pn.patient_last_name", conn);
    conn.Open();
    SqlDataReader dr;
    dr = cmd.ExecuteReader();
    table.AddCell("Reprocessing Date");
    table.AddCell("Patient Name");
    table.AddCell("Dialyzer(Manufacturer,Size)");
    table.AddCell("No.of Reuse");
    table.AddCell("Verification");
    table.AddCell("DialyzerID");
    while (dr.Read())
    table.AddCell(dr[2].ToString());
    table.AddCell(dr[3].ToString() +"_"+ dr[4].ToString());
    table.AddCell(dr[5].ToString() + "-" + dr[6].ToString());
    table.AddCell("@count".ToString());
    table.AddCell(dr[12].ToString() + "-" + dr[13].ToString());
    table.AddCell(dr[0].ToString());
    dr.Close();
    table.SpacingBefore = 15f;
    doc.Add(para);
    doc.Add(png);
    doc.Add(table);
    doc.Close();
    System.Diagnostics.Process.Start("AssignedDialyzer.pdf");
    if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.Yes)
    var writer2 = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
    else if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.No)
    this.Close();
    The above code executes well with no problem at all!
    As you can see the file to which i create and save and open my pdf report is
    AssignedDialyzer.pdf.
    The column headers of table in pdf report from c# windows forms using iTextSharp are
    "Reprocessing Date","Patient Name","Dialyzer(Manufacturer,Size)","No.of Reuse","Verification" and
    "DialyzerID".
    However the problem i am facing is after execution and opening of document is my
    column headers in table in pdf report from
    c# and datas in it all appear in bold.
    I have browsed through net regarding to solve this problem but with no success.
    What i want is my pdf report from c# should be similar to following format which i was able to accomplish in vb6,adodb with MS access using iTextSharp.:
    Given below is report which i have achieved from vb6,adodb with MS access using iTextSharp
    I know that there has to be another way to solve my problem.I have browsed many articles in net regarding exporting sql datas to above format but with no success!
    Is there is any another way to solve to my problem on exporting sql datas from c# windows forms using iTextSharp to above format given in the picture/image above?!
    If so Then Can anyone tell me what modifications must i do in my c# code given above so that my pdf report from c# windows forms using iTextSharp will look similar to image/picture(pdf report) which i was able to accomplish from
    vb6,adodb with ms access using iTextSharp?
    I have approached Sound Forge.Net for help but with no success.
    I hope anyone/someone truly understands what i am trying to ask!
    I know i have to do lot of modifications in my c# code to achieve this level of perfection but i dont know how to do it.
    Can anyone help me please! Any help/guidance in solving this problem would be greatly appreciated.
    I hope i get a reply in terms of solving this problem.
    vishal

    Hi,
    About iTextSharp component issue , I think this case is off-topic in here.
    I suggest you consulting to compenent provider.
    http://sourceforge.net/projects/itextsharp/
    Regards,
    Marvin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Forms with SQL Server

    hi,
    Is it possible to connect forms with sql server? if yes, how?
    Any help will be highly appreciated

    Maybe. see:
    <Note:212382.1> How to Build Forms against Microsoft Sql Server
    also do a Metalink search on:
    'oracle client adaptor'
    Best of luck,
    ejs

  • BUG in Oracle SQL Developer 3.0.04 on the "generating DLL" with comments?

    I'm newbie on oracle, but I think that I found out a bug in Oracle SQL Developer version 3.0.04 on the "generating DLL" tool using "comments".
    I will describe the steps that I gave:
    I created a view, but after I test it I had to change my “where” condition, so I comment the old code and then I wrote the new “where” condition below. After I done that I tried to look at the sql code of my view using “generating DLL” tool, but oracle sql developer only shown me half of the code, a lot of code were missing. Then I began with some test trying to understand what happen and I notice that if I put an invalid sql code in my comment the generating DLL start working with no problems, for example(pseudo-code):
    (COMMENT WITH VALID SQL CODE the "Generating SQL" don't work:)
    CREATE OR REPLACE VIEW <user>.<view_name> ( <column1>,<column2> )
    AS
    SELECT column1, column2
    FROM table1
    INNER JOIN
    (SELECT
    FROM table2
    INNER JOIN .....
    INNER JOIN ....
    --where time_stamp = (select max(time_stamp) from .....)
    WHERE time_stamp >= TRUNC(sysdate)
    ) t1 ON t1.ID = ....
    AND ..... >= TRUNC(sysdate)
    ORDER BY ....
    Generating DLL returns this(when the error occurs):
    CREATE OR REPLACE VIEW <user>.<view_name> ( <column1>,<column2> )
    AS
    (COMMENT WITH VALID SQL CODE the "Generating SQL" work with no problems:)
    CREATE OR REPLACE VIEW <user>.<view_name> ( <column1>,<column2> )
    AS
    SELECT column1, column2
    FROM table1
    INNER JOIN
    (SELECT
    FROM table2
    INNER JOIN .....
    INNER JOIN ....
    --where
    WHERE time_stamp >= TRUNC(sysdate)
    ) t1 ON t1.ID = ....
    AND ..... >= TRUNC(sysdate)
    ORDER BY ....
    I believe that "Generating DLL" tool have some problem with the comments, I also used /*...*/ to comment but the problem is still active.
    I notice as well that if I started to add some more comments along the code, the conditions migth change, so I think the problem is related with "comments" code.
    Would you mind telling me if this is a real bug or if I'm doing anything wrong.
    Thank you in advance,
    Rodrigo Campos
    Edited by: 894886 on 3/Nov/2011 5:29

    Hi Rodrigo,
    Thank you for reporting this. The only bug I see currently logged on a comment affecting the generated View DDL involves ending the last line of the definition with a comment, which treats the ending semi-colon (even if on a different line) as part of the comment. That is actually related to a low-priority bug against an Oracle database API.
    Unfortunately, your pseudo-code is a bit complex. Trying a few quick, simpler tests against the standard HR schema did not reproduce the issue. I tried INNER JOIN, and nested SELECTs. It would help greatly if you could provide a test case compilable against one of the standard schema, like HR or SCOTT.
    Regards,
    Gary
    SQL Developer Team

  • Calling Apex page from Oracle Forms

    Hi,
    I haven't managed to find a similar thread anywhere.
    I would like to call an apex page from a form. The page is in an app that requires authetication.
    I can able to open the page by using web.show_document but that only takes me to the login page.
    How can I overpass the authentication by passing somehow the username and password?
    Is there any similar or easier way to do what I am after?
    Many thanks

    Hi,
    You could try the BRANCH_TO_PAGE_ACCEPT URL functionality. There are a few threads on this subject - for example: Re: authentication with credentials from another domain? I haven't used this myself, but if you do a search on the forum for this, you may find other threads that can help.
    Andy

  • How to be a Forms & PL/SQL Expert?

    Hi Experts, I am very new to Oracle Forms and PL/SQL. I have been doing development in Forms (mostly in 10g but I also in 6i) and PL/SQL for little over 2 years.
    My problem is, I don't know much about how to progress up the ladder to be an Oracle Forms & PL/SQL expert.
    My other big problem is trying to find out how to keep pace with the latest development in Forms and PL/SQL.
    For example, my manager asked me how to print a file in a client printer. I could not give him a solution at once. Only after couple of hours of searching did I find the solution using WebUtil.
    Another instance a manger asked me how to encrypt data in Oracle forms. Again I had to do an extensive search on the web.
    Can an "expert" give a solution at once, without going to the web?
    Another time I was asked to do a performance tuning and could not do it since I have not done before. I tried to follow the method found in this site using a personal DB in my machine but could not simulate a situation.
    How do you keep track of latest developments?
    Are their any sites to go to?
    Is there a routine you can follow?
    Do you have to do R&D regularly? How often?
    How many hours of reading web-sites (on Forms, PL/SQL stuff) should you do for a week?
    How do YOU experts do it?
    You advice would be greatly appreciated.

    First of all I don't consider myself an expert, so my advice here might be flawed as they are based on my experiences ;)
    Can an "expert" give a solution at once, without going to the web?Frankly I hardly know how to write a file using text_io or utl_file, or use some other somewhat regular-use supplied packages without looking them up in the documentation. Well I somehow know, but the code will most certainly throw compile errors. This is due to the fact that the entire oracle documentation is huge, and there are version dependend manuals, and I never liked memorizing things I could easily look up. It just doesn't make sense to memorize entire documentations when you can look them up. So even for basics I go to the web...
    For example, my manager asked me how to print a file in a client printer. I could not give him a solution at once. Only after couple of hours of searching did I find the solution using WebUtil. So in the end you found a solution yourself didn't you?
    Another instance a manger asked me how to encrypt data in Oracle forms. Again I had to do an extensive search on the web.I am around forms a few years, and I don't know an ad-hoc answer to that. I might have a clue, but for a advice I'd have to try and most certainly consult google.
    Another time I was asked to do a performance tuning and could not do it since I have not done before. I tried to follow the method found in this site using a personal DB in my machine but could not simulate a situation. And you know at least where to start now even if you didn't solve the problem, don't you?
    When I started programming C/C++ in school we had a teacher who I consider a C-Guru. Sometimes the answer to how would I implement X? was I don't know exactly yet, but let me do some research and I'll show you. Needless to say that we certainly got our answers. The same guy taught Java with the opening phrase I don't know much about Java, but it is Object-Oriented, the Syntax is C like,and the documentation is quite extensive. He explained things better to us then others who asserted knowing Java.
    IMHO curiosity and being keen to experiment are much more valuable then the ability to memorize manuals and APIs. You might solve your problems with your actual knowledge today, but tomorrow there are new challenges which require new knowledge to be accumulated.
    If you face a problem don't hesitate to get your hands dirty. If a program doesn't do what it's supposed to do fire up the debugger, look at diagnostic infos and see why it fails instead crying about that you don't know why. If you need to learn a new language install the compiler, and write code until it compiles and does what you want it to do. If you need to work with the new asdf server enterprise edition install it, turn it upside down, blow it's config into pieces until it stops working and maybe get it running after that.
    Everything else boils down to showing an active interest in the things you do. There is no formula saying "spend X hours a week on asktom and eventually become a database expert". I regularly (can't say how often) visit asktom because I like reading the questions there. I don't do it because I must or want to become an expert someday, it is simple curiosity.
    As for places to look this is answered easily: the key source for informations on new products is the vendors homepage. It's OTN for oracle, MSDN for microsoft, ubuntu.com for ubuntu, and what ever else. Technical articles etc. about the products are at least listed there.
    Of course in software development there is (at least) one rule which always applies:
    always write code as if the person who will maintain your code is a maniac serial killer that knows where you live
    cheers

  • Oracle Apex to Oracle Apps Forms migration

    Is it possible to migrate a form exsisting in Oracle Apex to Oracle apps forms?If so pl tell me how this could be achieved.

    Hey men!!
    In my opinio in not posible because in oracle Apex you have another kind of programming, and in Oracle forms you others type of tools for example: triggers, I said isn'tr posible because there isn't a tool or an application that can help you in convert from Apex to Form, it's very extrange circumstance.
    This is posible but... you have to program, typing and all of anything for converting to Oracle Form if you don't want to do anything you have to pay someone for developing that ,
    in others words you have/must (to) start from the beginning,
    from zero.
    Unfortunately today there is not application that can let you do that.
    I hope this helps,
    Best Regards my buddy.

  • Forms pl/sql in oracle adf

    hi how can i re use this oracle forms pl/sql
    {PROCEDURE perform_logon IS
    error_message varchar2(100);
    usr_id integer;
    fail_cnt integer;
    fail_limit integer;
    pwd sms_users.pwd%type;
    pwd_dt date;
    pwd_dt_period integer;
    sysdt date;
    msg_lvl varchar2(20) := :system.message_level;
    cursor usr is
      select id,pwd_change_dt,sysdate,pwd,login_failure_count
      from sms_users
      where user_id = :logon.usr_id
    --  and   pwd     = sms_secure.crypt('USR',id,:logon.pwd)
    BEGIN
    set_clnt_details;
      if :logon.usr_id is null then
            error_message := 'User id must be specified';
         sms_code.error_message('SMS-'||to_char(0000001)||': '||error_message,'', 'E', 'SMS');
      end if;
      if :logon.pwd is null then
            error_message := 'Password must be specified';
         sms_code.error_message('SMS-'||to_char(0000002)||': '||error_message,'', 'E', 'SMS');
      end if;
      pwd_dt_period := sms_global.ref_code('SMS','PWD_PERIOD',30,1);
      fail_limit    := sms_global.ref_code('SMS','PWD_FAIL_LIMIT',3,1);
      open usr;
      fetch usr into  usr_id,pwd_dt,sysdt,pwd,fail_cnt;
      if usr%NOTFOUND then
         close usr;
                 sms_alog.record(:global.clnt_user    
                         ,:global.clnt_host_name ||':'||:global.clnt_ip_addr
                         ,'Logon'
                         ,:logon.usr_id
                         ,'Not SMS User'
                         ,:logon.usr_id
                         ,'sms0000');
            error_message := 'Logon to SMS Denied';
         sms_code.error_message('SMS-'||to_char(0000003)||': '||error_message,'', 'E', 'SMS');
      end if;
      close usr;
      if fail_cnt > fail_limit then
                       sms_alog.record(:global.clnt_user    
                         ,:global.clnt_host_name ||':'||:global.clnt_ip_addr
                         ,'Logon - PWD'
                         ,:logon.usr_id ||':'||fail_cnt||':'||fail_limit
                         ,'Password retry limit exceeded'
                         ,:logon.usr_id
                         ,'sms0000');
            error_message := 'Password error limit have been exceeded contact the Administrator';
         sms_code.error_message('SMS-'||to_char(0000014)||': '||error_message,'', 'E', 'SMS');
      end if;       
      if pwd <> sms_secure.crypt('USR',usr_id,:logon.pwd) then
       sms_global.set_user_id(:logon.usr_id);
            update sms_users
              set login_failure_count = nvl(login_failure_count,0) + 1
              where id = usr_id
              :system.message_level := 15;
                          sms_alog.record(:global.clnt_user    
                         ,:global.clnt_host_name ||':'||:global.clnt_ip_addr
                         ,'Logon - PWD Error'
                         ,:logon.usr_id ||':'||:logon.pwd
                         ,'Wrong user Password'
                         ,:logon.usr_id
                         ,'sms0000');
              commit;
              :system.message_level := msg_lvl;
            error_message := 'Logon to SMS Denied';
         sms_code.error_message('SMS-'||to_char(0000003)||': '||error_message,'', 'E', 'SMS');
      else
           if fail_cnt > 0 then
            update sms_users
              set login_failure_count = 0
              where id = usr_id
                          sms_alog.record(:global.clnt_user    
                         ,:global.clnt_host_name ||':'||:global.clnt_ip_addr
                         ,'Logon - PWD Correct'
                         ,:logon.usr_id
                         ,'Reset Failed count'
                         ,:logon.usr_id
                         ,'sms0000');
              :system.message_level := 15;
              commit;
              :system.message_level := msg_lvl;
        end if;            
                          sms_alog.record(:global.clnt_user    
                         ,:global.clnt_host_name ||':'||:global.clnt_ip_addr
                         ,'Logon - PWD Correct'
                         ,:logon.usr_id
                         ,'Success'
                         ,:logon.usr_id
                         ,'sms0000');
      end if; 
      if trunc(pwd_dt + pwd_dt_period) < sysdt then
            login_pwd_title;
         hide_an_item('logon.new_pwd1',1);
         hide_an_item('logon.new_pwd2',1);
                               sms_alog.record(:global.clnt_user    
                         ,:global.clnt_host_name ||':'||:global.clnt_ip_addr
                         ,'Logon - PWD Expired'
                         ,:logon.usr_id
                         ,'Password use Expired'
                         ,:logon.usr_id
                         ,'sms0000');
            error_message := 'Password Expired. Please change password.';
         sms_code.error_message('SMS-'||to_char(0000004)||': '||error_message,'', 'E', 'SMS');
      end if;       
       sms_global.set_user_id(:logon.usr_id);
       :global.User := :logon.usr_id;
       validate_usr_profiles (:logon.usr_id);
    END;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi.
    you can call procedures or functions without problems, and thus reuse
    see the doc http://docs.oracle.com/cd/E24382_01/web.1112/e16182/bcadvgen.htm#sm0297

  • Dynamic function call in Forms PL/SQL [SOLVED]

    I have a 10G form, which has a dropdown list of values. Depending on the value selected, I look up a setup table which will tell me the name of the database package/function to call.
    I then want to call that function with a bind IN parameter and then retrieve the function return value (which is a varchar2 containing message(s) as a stream of text) to display to the user.
    I have searched high and low and cannot find a good example.
    (a) forms_ddl doesn't seem to have the ability
    (b) dbms_sql - some forums/blogs warn away from this due to db version dependencies
    (c) exec_sql seems to be very basic and more aimed at odbc calls, rather than calls to native oracle db functions.
    Here is example pseudo-code of what I am attempting to do on a WHEN-BUTTON-PRESSED trigger
    DECLARE
    v_Param1 VARCHAR2 := 'myInputValue';
    v_FunctionName VARCHAR2 := 'MYDBPKG.MYFUNCTION';
    v_DynamicSQL VARCHAR2;
    v_Result VARCHAR2;
    BEGIN
    v_DynamicSQL := 'BEGIN :v_result:='||v_FunctionName||'('||chr(39)||v_Param1||chr(39)||')'; END';
    Bind v_result variable;
    execute dynamic sql;
    message('the resulting text was <'||v_result||'>');
    END;
    Obviously, my code above has the function name hard-coded, but my real-life code would retrieve this function name from a database table, so I cannot call the function directly in the Forms PL/Sql.
    where the db package/function looks like this:
    create or replace package MYDBPKG as
    function myfunction(I_Param VARCHAR2) return VARCHAR2;
    end mydbpkg;
    Anybody got a good example ?
    Thanks
    Alan
    Edited by: Alan Lawlor on 11-May-2011 09:34

    Alan Lawlor wrote:
    (a) forms_ddl doesn't seem to have the ability
    (b) dbms_sql - some forums/blogs warn away from this due to db version dependencies
    (c) exec_sql seems to be very basic and more aimed at odbc calls, rather than calls to native oracle db functions.you forgot
    (d): don't use dynamic SQL
    As far as I am concerned (from the code I am exposed to) 99,9% of dynamic SQL code is at best used when there is no need for it and at worst it is impemented the most horrific way you can imagine. OK, this is not the entire truth: in 0,4% it is used when there is no need for it, and in the other 0,5% it is used wrong. And in the other 99% it is a combination of both: it is used when there is no need for it plus it is used wrong. So the very best thing you can do is to avoid dynamic SQL.
    but my real-life code would retrieve this function name from a database tablePlease don't do that. This is one of the worst things to do. Forget about the fact that it is a big security hole and most certainly will trash the shared pool of the database and bringing your server down. Most important to developers is that it is a hell of a nightmare to maintain and a lot worse to debug.
    So seriously think about if you want to go down the Dynamic SQL route.
    cheers

  • Conectar el Forms con SQL-SERVER

    Hola...
    Necesito informacisn de como conectar el forms con sql-server 7.0, ya que he logrado mediante sql-plus, dicha conexisn, pero el forms arroja una alerta con pura basura y no seconecta.
    Agradecerma cualquier uinformacisn al respecto.
    Gracias..

    Hola...
    Necesito informacisn de como conectar el forms con sql-server 7.0, ya que he logrado mediante sql-plus, dicha conexisn, pero el forms arroja una alerta con pura basura y no seconecta.
    Agradecerma cualquier uinformacisn al respecto.
    Gracias..

  • Form Rules SQL PCG

    Hi
    I have a client scenario in which we need to check the Header amount of a blanket PO to be compared with
    line amounts.
    If line amounts exceed header amount then an error must be thrown.
    I am trying to create a form rule SQL. for that i started with a small code just to check if we can loop in the lines block and retrieve the values of unit price.
    I am facing an issue when i go and check the results in PO form
    below is the sql code its on when-validate-record in form rule element
    l_item_price      number;
    l_curr_rec number;
    l_last_rec boolean ;
    BEGIN
    fnd_message.Clear;
    First_Record;
    l_curr_rec := name_in('SYSTEM.CURSOR_RECORD');
    l_item_price    := name_in('PO_LINES.UNIT_PRICE');
    Loop
    fnd_message.Clear;
    fnd_message.set_string(l_item_price);
    fnd_message.show;
    if name_in('SYSTEM.LAST_RECORD')= 'TRUE' then
    exit;
    else
    NEXT_RECORD;
    end if;
    end loop;
    END;
    The error says "Illegal Restricted COPY Procedure in WHEN-VALIDATE-RECORD"
    any suggestion would be of help
    Thanks

    Have a look at the PCG user guide (http://docs.oracle.com/cd/E25459_01/doc.730/e25384.pdf). Look at Chapter 6 "Creating Subscribers". Subscribers is how to define under which circumstance should the security rule fire. I hope that helps.

  • Bug in Apex 4.1 tabular form with rowid as PK

    Hi
    I think this is a bug in Apex 4.1. I tested it on apex.oracle.com. This is the simple scenario.
    Create a simple table:
    create table dropme (code number, description varchar2(200));
    Now use the wizard to create a tabular form.
    Select Allowed Operations insert and update for this table.
    Select ROWID as Primary key type.
    After finishing the wizard click on Run and you get:
    failed to parse SQL query:
    ORA-00904: "APEX$ROWID": invalid identifier
    Note: this does not happen when you select insert, update and delete.

    Hello,
    >> Select Allowed Operations insert and update for this table.
    >> Select ROWID as Primary key type.
    It seems that you are correct. I was able to reconstruct your scenario on my local system. Now we need the verification of the dev team.
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • BUG: Apex 4.0.1 form on table with report. Not passing ID correctly

    I'm trying to create a form on a table with report using the wizard. I opted for a classic report page.
    The edit link on the report page does not work. The link looks like this:
    http://ngdwpc3:7777/pls/apex/f?p=101:15:1800428764039812::::P15_ID:#ID#
    This is clearly wrong because one would expect a value to be passed and not a column name.
    Looking at the generated report page I get 60 columns. This seems to be a result of the setting:
    no-checked :Use Query-Specific Column Names and Validate Query
    checked :Use Generic Column Names (parse query at runtime only)
    The ID column in the table is mapped to COL01.
    Changing the value being passed in the link columns to #COL01# results in the correct behaviour.
    My guess is that the option "Use Query-Specific Column Names and Validate Query" is the correct setting for the generated report.
    Rene

    Yes, I guess this is a Bug.
    1. When you speciify a WHERE clause in the Wozard it adds extra quotes when appending the WHERE into the Report SELECT.
    I think thats the root cause, all others just follow as a consequence.
    a. Because the query cannot be parse ( two single quotes) the Use Generic Column Names (parse query at runtime only) is automtacillay set
    b. This leads to COL01 to COL60
    c. Which is turn leads to the link not working.
    I could easily recreate the scenario.
    To fix it I did the following
    1. Removed the extra quotes from the query
    2. Selected Use Query-Specific Column Names and Validate Query and Saved
    It started working correct.
    I suggest you edit your Thred name add BUG at the begining so that it gets spotted by Oracle folks on the forum.
    Regards

Maybe you are looking for

  • Cisco LMS 3.2 SYSLOG not storing after 10 days

    Hi , Im facing one issue with Cisco LMS 3.2 Issue : The logs is generating only for 10 days and post that im not able to see the logs. I have not done any config changes. The only change i have done is i have completely reinstalled the LMS. i did mul

  • Keys differ while decryption

    Hello plz help me to solve my problem My problem as above I am doing encrption and decryption data with priva/pub keys which are stored in diff files i am generating keys in one program & different program I am using these keys to encrypt/decrypt dat

  • Chart Help

    I was wondering if anyone know anything about charts? I want a real time chart like this example http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7c6f.html, but I want it to "run" from right to left and not keep all the dat

  • Oracle Form Builder and Form Runtime

    I don't know where to get additional help. I have a project to complete that I believe is relatively simple for a proficient Oracle developer. It is a database for an education store. I have the database set up, but I can't get the forms to work prop

  • Where can I download older Solaris 10 cd images (sol-10-u2-ga-sparc-v1.iso)

    Hello, I am trying to find older Solaris 10 cd images than the ones in download center. More specifically, I'd like to download the following iso to use them in Simics simulation. sol-10-u2-ga-sparc-v1.iso sol-10-u2-ga-sparc-v2.iso sol-10-u2-ga-sparc