DB package using in Forms

Hello!
We have migrate out application to other language.
To avoid hard coded sting using in Forms we move all the strings (from trigger, PU...) to package functions.
We estimate that it will be about 7000 functions in the package.
Does it can be some damage on application performance?
Thanks!

Oooooh! NOW I understand. By "other language", I was thinking another "computer" language, rather than spoken language.
I would create a table with maybe three columns: Message_ID, Language_code, and Message_Text. (Make sure you have unique key on Message_id, Language_Code.) And maybe a database package to go along. When the user logs in, you could determine what language to use, and store Language_code in a global variable, or in the database package (From Forms, you have to call a procedure in the package to set a package variable). The db package could also contain a Message_lookup function:
Function Msg_Lookup(Msg_id in varchar2) Return varchar2 is
  Msg  Varchar2(4000);
Begin
  Begin
    Select Message_Text into Msg
      From Messages
      Where Message_id = Msg_id
      And Language_code = Pkg_Language_code;
    Exception when no_data_found then
      Msg := 'Not found:  Msg_id='|| Msg_id ||', Lang='|| Pkg_Language_code;
  End;
  Return Msg;
End Msg_Lookup;Whenever any form needs to display a message, all you need to do is call the Msg_Lookup function:
Message( Language_Pkg.Msg_Lookup('ABC123') );With such a lookup table, you would not notice any slowness in your forms. You could even use the language table to set each item's Prompt_Text property when the form starts up.

Similar Messages

  • Can I use then Forms 6i DDE build-in package to generate 2010 EXCEL  File?

    Hi All,
    My company' application is used Oracle FORMS 6i Solution,Client /Server environment to generated EXCEL file
    I coding the PL/SQL in the Oracle FORM , it's succeed generated EXCEL file in MS office Excel 2007/2003/2000.
    Now I have problem in MS office Excel 2010 , It's just open the Excel file but no data can write into excel file,
    It's always raise the error exception "dde.dmlerr_no_conv_established"
    some one can help me,thanks !!
    my pl/sql code wrote in Button Item's trigger WHEN-BUTTON-PRESSED
    declare
    obj ole2.obj_type;
    path varchar2(256);
    p_excel_path varchar2(255);
    appid pls_integer;
    convid pls_integer;
    begin
    begin
    obj := ole2.create_obj('excel.application');
    path := ole2.get_char_property(obj,'path');
    ole2.release_obj(obj);
    ole2.invoke(obj,'quit');
    exception
    when others then
    message('office excel not found!');
    return;
    end;
    p_excel_path := path||'\excel.exe';
    synchronize;
    appid := dde.app_begin(p_excel_path, dde.app_mode_normal);
    dde.app_focus(appid);
    convid := dde.initiate('excel','book1');
    dde.poke(convid,'r1c1','abc',dde.cf_text,100000);
    dde.poke(convid,'r2c2','abc',dde.cf_text,100000);
    exception
    when dde.dmlerr_no_conv_established then
    message('dmlerr_no_conv_established');
    raise form_trigger_failure;
    when others then
    null;
    end;
    帖子经 Ronald Wang编辑过

    Hi all,
    I can understand what you say, and I know the Forms version is very old ,but I don't know how to explained to my boss,
    My boos always say : Delphi can export data to Excel until now!...
    I always say : I will upgrade my Forms version......
    Because my company use Oracle EBS r12 ,the technical based on Oracle FORM/Report 10g
    I tried to install the OAS 10g ,but the 10g server is unstable....
    Then I thinking to upgrade the Form 6i to Form 11g.....,what are you think it's feasibility??
    My OS version is windows XP.....
    BTW...some Oracle Rport 6i can't not preview in Windows 7 's platform,but not all........Orz
    In XP platform ,all Report preview is well...
    Edited by: Ronald Wang on 2011/5/26 下午 6:23

  • Package -  using procedure names and variables

    I know that having created a package I can call the procedures using the form PACKAGE_NAME.PROCEDURE_NAME --
    However, for speed and clarity of code is there a way to 'open' the package once and then simply refer to the PROCEDURE_NAME ???
    This would be a sort of temporary synonym.
    Thanks

    You do not need to refer to qualify a procedure with the package name within the package, otherwise you must use the full package.prodedure name. So if package :pkg1 contains procedures A & B, then A can simply refer to B and vice versa, but from another package you would have to call pkg1.B.

  • Accessing database package variables from Forms

    I have a database package that populates a table of values, i.e.
    type t_route_list is table of rt_route.RTR_ID%type;
    route_list t_route_list
    route_list gets populated by a package function and I want to access route_list in the Form.
    While I can access other package variables by writing a function that returns the variable, Forms doesnt seem to like functions that return a user defined datatype as above. I have also tried using a procedure with an OUT param instead of a function but it also fails with same error.
    i.e.
    declare
    v_route_list pkg_bulk_route_replace.t_route_list;
    begin
    pkg_bulk_route_replace.init;
    pkg_bulk_route_replace.get_route_list(v_route_list);
    message(v_route_list(1));
    end;
    This will not compile, but removing the index (1) from the last line makes it compile but crash with ORA-0600.
    The code above with message replaced with dbms_out.put_line works fine on TOAD.
    So my question is......
    Can my database package return a plsql table to a form and if so, how?!

    Actually I've got this to work now!
    Thde main culprit appears to be a difference in the version of sql or pl/sql used on forms (version 5) and the database (8.1.7).
    I had defined my table as a nested table. By redefining this as a indexed table, simply by adding on 'index by binary_integer' on my server package, I am suddenly able to access the elements of the table on my form. Fortunately this did not break the server code either - the table was populated using bulk collect and that still works.
    Still got a bit of coding to do, but things are looking up now.

  • Retrieve and Read XML Files using Oracle6i Forms

    Dear all .. i have some problem here: How can i retrieve and read a XML files using Oracle6i Forms? What should i do? Thanks - ASAP -

    Several ways - Pick up a copy of the Oracle XDK off of OTN. This provides Java and PL/SQL toolkits for dealing with XML files.
    The PL/SQL one would be in the Database, so you might have to use the Java one of you need to do it on the Forms machine.
    You can use the Java Importer in 6i to create PL/SQL wrappers that you can call from forms into the Java XDK APIs.
    Or of course you can just use the TEXT_IO package to read the XML as a text stream and parse it in your own PL/SQL code...

  • To view package variables in Forms 6i debugger

    Can anyone tell me how to view the value of the variables declared in the package spec(from forms side)? i can see only the local variables and global variables(declared using :GLOBAL) in the debugger window.

    In the 6i Debugger the visible Package variables are restricted to the Variables defined in the package body and these are only visible whilst you are instanciating the package for the first time - e.g. running through the anonymous block that you can have at the bottom of the package Definition.
    Otherwise they are invisble. Variables defined within Program units inside the Package are of course visble.
    The new Debugger in Forms 9i has fixed this problem and you can always view (and watch!) Variables defined both in the package Spec and Body.

  • Find package using program name/FM name.

    Hi,
    I want to find package using program name/FM name.
    Thanks,
    Amol

    open se38
    give program name and GOTO -> Attributes
    or  for forms
    open se71 and give formname and goto-> attributes
    u can findout package name.
    Regards,
    Ajay

  • Package inside oracle form

    Hello all,
    Is there any query which can be built to find the packages used in our custom forms? We are upgrading to R12 and in our list of packages, we want to see which of those are used in our custom forms.
    Thanks in advance.
    KK

    Hi,
    I think you'll get better results if you ask in the Forms rather than here.
    I've never heard of anything like that in the back end, and I doubt there is anything like that. There may be some utility in Form Developer that tells which database objects are referenced. (I don't write Forms, so I don't know.)

  • Want to use Adobe forms departmentally.  How many users per license?

    How many people can use Adobe Forms per license/how many computers can we download software to?

    Adobe FormsCentral is a web-based app so there is nothing to download - you access from the web browser.
    Each users who creates forms needs a license of FormsCentral. In a month or so you'll be able to by a team pack (5,10,25) at reduces prices for a larger group who wants to create forms.
    Randy

  • Adding data to multiple tables using one form in Access 2010?

    Hi All,
    I have a access database with two tables and I want to create a single form to enter data into that tables.
    How to adding data to multiple tables using one form in Access 2010?
    I don't have to much knowledge of access database?
    Please help me
    Thanks
    Balaji

    You really don't enter identical data into 2 tables.  You enter dat into one single table, and then you have an unique identifier that maps to another table (you have a unique relationship between two tables). 
    Maybe you need to read this.
    http://office.microsoft.com/en-001/access-help/database-design-basics-HA001224247.aspx
    Think about it this way...  What is you update data in 2 tables, and then the data in one of those tables changes, but the data in the other table does NOT change.  WHOOPS!!  Now, you've got a BIG problem.  For instance, you have a customer
    named Bill Gates.  In one Table you update Bill's address to 1835 73rd Ave NE, Medina, WA 98039 and in the other table you accidentally update Bill's address to 183 73rd Ave NE, Medina, WA 98039.  Now you have 2 addresses for Bill.  Why would
    you want that???  Which is right?  No one knows.  If you have one address, you just have to update one address and if there is a mistake, you just have to update one address, but you don't have to waste time trying to figure out which is right
    and which is wong...and then update the one that is wrong.
    Post back with specific questions.
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • How can i get all java class names from a package using reflection?

    hi,
    can i get all classes name from a package using reflection or any other way?
    If possible plz give the code with example.

    You can't, because the package doesn't have to be on the local machine. It could be ANYWHERE.
    For example, via a URLClassLoader (ie from the internet) I could load a class called:
    com.paperstack.NobodyExpectsTheSpanishInquisitionI haven't written it yet. But I might tomorrow. How are you going to determine if that class is in the package?
    This subject comes up a lot. If you want to do something a bit like what you're asking for (but not quite) there are plenty of threads on the subject. Use google and/or the forum search facility to find them.
    But the answer to your question, as you asked it, is "you can't do that".

  • Execute procedure in a package using the caller privileges?

    Is it possible to execute a procedure within a package using the privileges of the caller rather than the privileges of the package owner? So if we have a procedure that does a select, one that does an insert, and another for update and a 4th for delete, then we just want to grant execute to user X on the select procedure in the package. This is a developer request. I think I just need to tell the requestor to copy or move the procedure out of the package and into it's own procedure so that it's safe to run by user X and not grant execute on the package since I don't believe it is possible to specify what procedures in a package are granted execute since that command is a blanket for the whole package right?
    Example - fails due to specifying the proc:
    grant execute on scmemaname.pkgname.procname to usr;
    There's no other command to do that is there?
    Thanks,
    Dave
    Edited by: Gib on Jan 19, 2010 8:42 AM

    AUTHID is at the package level ... not the individual function or procedure.
    Create a second package.

  • How to use Adobe forms with F150 Dunning Run

    Hi,
    I want to use Adobe forms with the transaction F150 Dunning Run.
    How do I get the adobe form in customizing? I have put the FM 'FI_PRINT_DUNNING_NOTICE_PDF' in business transaction Event, BF31 - P/S modules of SAP app - 00001720, Fi-FI. But it is still not recognizing the ADOBE form.
    Any help is greatly appreciated.

    Hi,
    I am also working for calling custom adobe form instead of sapscript.
    While configuring BTE 1720, i noticed that configuring BTE only FI-FI application does not solve the purpose. You need to assign function module FI_PRINT_DUNNING_NOTICE_PDF for all Application Area Indicator.
    Adding to IS-PS will allow to print for customer.
    This solved my problem. But this setting is global so you need to take care of it.

  • How can I add check boxes without using the form widget?

    I would like to use check boxes for our facets for our search engine.  You can see an example below.  Is there anyway to do this without using the form widget?
    PJM - Site Updates

    It is not possible to accomplish this with the Muse's Form Widgets. You may need to look for other online solutions and fetch the source code and add to the Muse page using the Insert HTML feature.
    Cheers,
    Vikas

  • How many times can I use a form?

    Hi Everyone,
    Can anyone explain what this means? (text below) If I make a form in LiveCycle Designer and then I extend it so that other users can fill it out...Does that mean that only 500 people can use the form?
    If so, then...I am dumbfounded and disappointed.
    What must be purchased in order to allow more than 500 people to use an extended form?
    Thanks All.
    "15.12.3. For any unique Extended Document, you may only either (a) Deploy such Extended Document to an unlimited number of unique recipients but shall not extract information from more than five hundred (500) unique instances of such Extended Document or any hardcopy representation of such Extended Document containing filled form fields; or (b) Deploy such extended Document to no more than five hundred (500) unique recipients without limits on the number of times you may extract information from such Extended Document returned to you filled-in by such Recipients. Notwithstanding anything herein to the contrary, obtaining additional licenses to use Acrobat Pro or Acrobat Pro Extended shall no increase the foregoing limits (that is, the foregoing limits are the aggregate total limits regardless of how many additional licenses to use Acrobat Pro or Acrobat Pro Extended you may have obtained).

    There are two parts to your question, even though one is implicit.
    Question 1 (implicit): Can I have an unlimited number of people fill in and submit the data for a form?
    Answer 1: Yes.  Reader has always allowed an unlimited number of people fill in a form as part of a web transaction and submit the results.  And, there have always been an unlimited number of times that someone can store the form (with no data filled in) on local systems or media or print the form.
    Question 2: Then what is the 500 user limit referred to with the reader extensions talking about?
    Answer 2: Reader Extensions is a capability enabled by the LiveCycle Reader Extensions server, or Acrobat (in the limited cases you quote from the EULA) to let a user save a form on a local system with data filled into it.  You can read more about it on the product page; the number of forms or recipients are part of the terms of the server license. Acrobat Pro can reader-extend a subset of the capabilities of the server product (only local form data save, signatures and commenting; not pdf spawn pages, web services or ODBC data access) and it only allows the 500 users in the two cases in the EULA for form data save.
    To make this more clear, consider two cases... a form that is not reader-extended (RE) and one that is.
    Not RE: You can get a form from a website, fill it in, and then submit the data by HTTP or email. However, if you save the form on your local system, the form that is saved is the blank form without the data.
    RE:You can get a form from a website, fill it in, and then submit the data by HTTP or email. But also, the user can save a copy of his form with the data filled in for his archival purposes. They can also start filling out the form, save it locally, come back and work on the data later, save again, and then finally submit.  The submit can be done by the same HTTP or email methods as above or the user can even choose to send the entire form back and have the werver process extract the data. (If you choose to reader extend through Acrobat, this use case is subject to the EULA limitations).
    I hope that helps.

Maybe you are looking for

  • Validation for PO text in the material master.

    Hi experts, I am trying to do a validation on the Purchase Order Text (long text) which must always be filled in Language EN and DE. Thus if a user tries to edit a material in MM02 or creates a new one in MM01 - this box of long text (PO text) must b

  • CS6 CS5  "operation can not complete because there isn't enough memory (RAM) available"

    Hi, I told the client (rather foolishly it seems) that I could open a DXF in Illustrator CS6.  I get the message shown even though I have 8g of ram any ideas?? It refuses to open in cs5 as well file is 4.2mb thanks G iMac 27" 2.88 i5 OSX 10.6.8 8g ra

  • Union all for 3 tables on repository

    Hello, could anybody help me to find best way for my case? i have 3 physical tables - Objects, Facts and Calendar table. On repository, i make this scheme: OBJECTS left join FACTS right join DATES I creating analysis based on pivot table, i need all

  • Substitution  rule  & validation rule

    Hi Please  tell me what steps should be followed in substitution  rule  & validation rule Thank You Deepika

  • XML validation against XSD Schema in ABAP

    Hi colleagues, I'm looking for a way to validate a XML against a XSD schema in ABAP, without using java or command line or something like that. Is there any way to do this only with ABAP? Thanks in advance. Regards, Guenter