10g Forms decode - [solved]

A block in a 6i form is built on multiple tables joined in the where clause. An item Column Name property has a decode function. This works fine in 6i, however the 10g tool compiles but crashes upon build.
Is this a bug or a wonderful Oracle "undocumented feature"?

Ok, found the problem. ...Apparently, size matters. ;-)
Using my test form above, I plugged your long statement into my form. I first had to remove the Carriage Returns, but otherwise, it compiled just fine at 6i, and failed in 10g.
Taking out the spaces shortened the statement to 133 characters -- 10g still failed.
By abbreviating 'criminal', I was able to get both versions to compile at length 123 or less.
But as soon as I add a single character (even a space someplace), the 10g compiler fails at length 124.
So it is a length problem, and not a decode problem.
To fix the problem, make your problem column a non-base-table item, select l.criminal_level and s.criminal_sub_level into two hidden columns in the block, then in the post-query trigger, use pl/sql to display your column:
  If :Block1.criminal_level  = :Block1.criminal_sub_level then
     :Block1.derived_column := :Block1.criminal_level;
  Elsif :Block1.criminal_sub_level = '*' then
     :Block1.derived_column := :Block1.criminal_level || ' - ANY';
  Else
     :Block1.derived_column := :Block1.criminal_level || ' - ' || :Block1.criminal_sub_level;
  End if;

Similar Messages

  • Ctrl+Z fuctianlity is not working in oracle 10g Form

    Hi
    I am using oracle 10g form and using
    Edit_TextItem to invoke Text Editor
    When i using CTRL+Z to undo things in editor it is not working but it works when i used Form6i.
    Please help me to solve this issue. i need to this functinality to be work.
    BR,
    SPS

    This works for me in 10.2.0.2
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> select * from tab;
    TNAME                          TABTYPE            CLUSTERID
    LOAN_DETAIL                    TABLE
    PLAN_TABLE                     TABLE
    ...

  • Menu in Oracle 10g form Builder

    I Build so many forms in ORACLE 10g form builder.
    Now I want to create a Menu form then i want to run it in Internet Explorer at my own PC at which i have build these forms.
    I also want to run seprate forms in internet explorer; as I can run form in Form builder but can't run then in Internet Explorer manually.
    Please help me to solve this problem

    Try the Forms forum @ Forms

  • Migrating Forms 61 to 10g - Forms Builder Crashing

    We are migrating from Forms 6i to 10g. The application works on a HP-UX box, and since we do not have the necessary setup done in the Unix box yet, we are trying to compile the forms in Windows before-hand to see if we can pre-empt some errors.
    I have written a batch command to compile the 6i forms in windows (Windows XP) by invoking the 10g Forms Builder.
    While it works like a charm for most of the forms (we have around 500 forms), there are a few forms for which the compiler/builder simply crashes. The .err file created for this form has absolutely nothing, it is a 0KB file.
    When I try opening such forms in Forms Dev 10g, and then compile them, the Dev crashes. It gives no indication of the error.
    By crashing I mean that windows throws the error message saying "Application has to be closed. Send error report: yes/no"
    Can someone please tell me if you faced such a problem, and how you went about solving it?

    Try a Compile All ( Ctrl - K ), then Ctrl - T.
    Not sure about XP, but in Vista, the 10g Builder and batch compiler will crash if a PLL Library is not available when the form is compiled.
    Make sure the PLL Library is available, and all its objects compile in the 10g setup.
    If that does not help, then try a semicolon-to-semicolon replace all, then save the fmb. Then restart the Forms Builder, and open the fmb again, and try compiling.
    Here is an old link describing the issue:
        Re: FMB size shrinks dramatically

  • Invalid Objects - Converting 9i & 10g forms to Apex

    I'm trying to convert my 9i & 10g forms to an Apex form. After converting the 9i form to HTML and creating the Project, I then try to generate the application and get errors. I get 'Invalid Objects' with the invalid table and column name listed. Upon checking out the invalid objects, every one is a "PUSH BUTTON' on the 9i form. Looking further into the Apex items, they have a 'Yes' value under the 'Database Item' heading. First off, push buttons are not database items and I think this is the problem.
    Has anyone else encountered this problem? If so, how did you resolve. Thanks!

    When you have look in the xml file, you will see that the button is included in the block as an Item element.
    In the same Block element there is no corresponding DataSourceColumn element.
    But APEX doesn't take this into account when it uploads the xml file.
    Further on when you want to create the application, it will fail due to APEX thinking the button is a database column.
    Sadly enough we are not able to customize the query or to exclude the item (don't know why).
    Hopefully this will be solved in APEX 4.0 until then moving the button to a dummy block in Forms is a workaround.
    Regards,
    Mathieu

  • Which browser support for Oracle 10g forms (using window7 ultimate 32bit)

    sir my 10g forms show pluginn error using any BROWSER .. also netscape navigator 9.0 for window 7 ultimate 32bit
    PLZ solve my problem anyone..
    i shall b very thankfullllll

    plz solve my problem any one an which browser i will use for for window 7 32bit ????>
    Please take a look at the Client Certification. It lists all of the browsers that are certified for the Java version you are using. Also, you will need to modify your configuration to correctly list the Java Plug-in version you have installed. For information on how to configure the JPI, take a look at Oracle 10gR2 Forms Services – Using Sun's Java Plug-in.
    Craig...

  • PDE- Per001 Internal Error deplu 3 - Oracle 10g Forms

    Hi all..
    When I'm trying to execute a form in Oracle 10g forms developer I'm getting this error... PDE- PER001-Internal Error deplu 3
    Please help me to correct this
    Thanks in advance,
    Nycy

    Hi Arniko,
    Thanks .. It worked...
    But I have one more doubt ...
    I saw in a forum that this happens due to :
    The error is a procedure builder error often seen while compilation when multiple forms are opened in a form builder and can be solved by reopening the form builder or open one form at a time and compile... ( This also works )
    Is that something related to any inbuilt procedure with Oracle 10g Forms builder...??Is there any way to correct that?
    Pls help me...
    Thanks in advance,
    Nycy

  • From a 10g Form, Launch a Form Connected to Different Instance

    We are migrating a Forms 6i application to 10g. From within a form I need to launch a different form with the new form being connected to a different Oracle database instance.
    In 6i client/server we did the following:
    p_string := ' ifrun60.EXE module=AR100 userid=uname/pwd@'||v_acctg_connect||' p_cust_no='||v_cust_id||' p_ord_no='||v_order_no;
    host(p_string,no_screen);
    This obviously will not work for 10g.
    Any ideas?
    I solved a similar need for launching a report connected to a different instance by using Frank Nimphius' frmrwinteg.jar which sets an encrypted cookie for the userid(pwd@connect string) and web_show_document. This works very well for reports.
    Is there a similar solution for forms?
    Thanks,
    James

    Thanks, Jan!
    I've seen another promising thread
    Re: Launch multiple 10g forms
    that touts success utilizing web_show_document. I am now working to try that.

  • How to run a report from oracle 10g form in .csv format

    dear all,
    how to run a report from oracle 10g form in .csv format? i've already run in pdf & excel format.
    i'm using
    SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'PDF'); --for pdf
    SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'SPREADSHEET'); ---for excel
    Please Help..

    i have already tried.
    but the report show in htm or html format. that file will not save into csv. please help.

  • Calling a web service from Oracle 10g forms

    Hi Everybody
    I want to send SMS from my 10g forms.... I searched for the topic and I got the following link
    "http://www.oracle.com/technology/products/forms/htdocs/10gr2/howto/webservicefromforms/ws_10_1_3_from_forms.html"
    Now I have downloaded "wsclient_extended_101320.zip"
    1. extracted the jar file,
    2. copied the jar file in "c:\ids10\WSclient"
    3. Specified jar file name in "default.env" "formsweb.cfg"
    4. Also specified the jar file name in "CLASSPATH" environment variable
    5. restarted OC4J instance
    6. Restarted Fotm Builder
    But I couldn't see the "webServiceProxy.proxy.SendServiceSoapClient" in Form Builder "JAVA CLASS iMPORTER"
    Can anyone plz help.....
    Wat may be the problem??
    Do I hav to follow the steps to create service as specified in demo page....or is it sufficient to download the jar file ??
    Or is there any other setting that I m missing???
    Thanx in advance....

    I created a new folder "WSclient" in "c:\ids10\forms"
    and added full path name in CLASSPATH......

  • Iconic file in oracle 10g forms

    hii,,
    i am a new user in oracle 10g form,,,here i am running a form & placing all the icons in a folder,after that i changed the iconic file path in the default.env file,the path is same where the icons are kept,,but still i am unable to see the icons at the run time,,,,,
    do i need to modify some other file or the icons will be kept at some particaular place????
    plzzzz help.....

    hi
    1 How to Display Iconic Images Using Forms 9.0.x/ 10.x?
    When running an Oracle Forms 9i/10g application the icon files used must be in a web enabled
    format such as JPG or GIF (GIF is the default format) (This is unlike older versions of forms running in client-server mode when the file format is .ico.)
    Icon image files can either be retrieved by Forms as individual files on the filesystem or from a Java Archive (JAR file).
    If an application uses lots of icon images it is recommended that they are stored in a JAR file to reduce the number of HTTP round trips.
    Reference:Note 232413.1 How to Deploy Iconic Images via a JAR File in Forms 9i/10g?
    The example below details steps to configure iconic images as individual gif or jpeg files.
    It is a first approach recommended for initial testing and understanding.
    Example:
    ========
    This document has been written for use with both Windows and UNIX operating systems: Windows will use the "\" character to delimit directories and UNIX uses the "/" character. Any other differences are noted in the document.
    1) Determine the physical location of the icons on your web server. For this example, assume that the icons are stored in D:\Myfiles\icons.
    2) Create the virtual directory in the forms90.conf file that point to the location of your Forms 9i/10g icons. This file is located in:
    $ORACLE_HOME\forms90\server\forms90.conf
    To define a virtual directory forms90/icons, use the following syntax:
    # Virtual path for ICONS (used to show icons in a form ) AliasMatch ^/forms90/icons/(..*) "D:\Myfiles/icons/$1"
    Below is an example of the forms90.conf after it has been modified to include the /forms90/icons virtual directory.
    # Virtual path mapping for Forms Java jar and class files (codebase) AliasMatch ^/forms90/java/(..*) "E:\IASR2\APP/forms90/java/$1" # Virtual path for JInitiator downloadable executable and download page AliasMatch ^/forms90/jinitiator/(..*) "E:\IASR2\APP/jinit/$1" # Virtual path for runform.htm (used to run a form for testing purposes) AliasMatch ^/forms90/html/(..*) "E:\IASR2\APP/tools/web90/html/$1"
    # Virtual path for ICONS (used to show icons in a form ) AliasMatch ^/forms90/icons/(..*) "D:\Myfiles/icons/$1"
    ( For 10g use instead of "forms90" -> "forms")
    3) Direct forms to use the /forms90/icons or /forms/icons virtual directory when running on the web by modifying the Registry.dat file in the $ORACLE_HOME\forms90\java\oracle\forms\registry or $ORACLE_HOME\forms\java\oracle\forms\registry
    directory. Note that for UNIX, both the path name and file name are case sensitive. You must specify "Registry.dat".
    Modify the default.icons.iconpath entry as follows: default.icons.iconpath=http:///forms90/icons/ or default.icons.iconpath=http:///forms/icons/
    If the URL used to bring up forms on the web is: http://abc.oracle.com:7778/forms90/f90servlet or http://abc.oracle.com:7778/forms/frmservlet
    Then the entry required for the Registry.dat will be: default.icons.iconpath=http://abc.oracle.com:7778/forms90/icons or default.icons.iconpath=http://abc.oracle.com:7778/forms/icons default.icons.iconextension=gif
    4) Now use EM Website to: a) Restart the OC4J-BI-Forms Instance b) Restart the BI-FORMS HTTP Server Instance.
    5) Verify that the virtual directory has been defined properly and that the icons can be viewed in a browser.
    Assuming that exeqry.gif exists in the D:\Myfiles\icons directory, the following URL should show the icon:
    http://abc.oracle.com:7778/forms90/icons/exeqry.gif or http://abc.oracle.com:7778/forms/icons/exeqry.gif
    6) Check the form : http://abc.oracle.com:7778/forms90/f90servlet?form=D:\Testcases\F90\ICON_CHECK_IASR2.fmx or http://abc.oracle.com:7778/forms/frmservlet?form=D:\Testcases\F10g\ICON_CHECK_IASR2.fmx
    CHECKLISTS
    =============
    Icons do not appear in the browser using the URL:
    o Verify that you are using the correct machine name and port for the OC4J_BI_Forms object.
    o Check the virtual directory name to make sure that there are no typographical errors. o Check for typographical errors in the forms90.conf or forms.
    conf for the virtual directory. o Check the name of the icon on the file system. If the file is saved as Exeqry.gif, then it will not be found using the URL http://abc.oracle.com:7778/forms90/ Close all your browser sessions and open a new browser window.
    Execute the URL to bring up from the Form Builder runtime or from the browser.
    ( For 10G use "forms" instead of "forms90")USEFUL REFERENCES:==================
    [PDF] Oracle9iAS Forms Services Deployment Guide (P/N B10170-01)Configuring Oracle9iAS Forms Services ->
    Deploying Icons and Images Used by Oracle9iAS Forms Services http://otn.oracle.com/products/forms/pdf/B10170_01.pdf
    [PDF] Oracle9iForms Services - How to Deploy Iconshttp://otn.oracle.com/products/forms/pdf/webicons.pdf
    sarah

  • Can not configure Oracle 10g form  on oracle 11g client

    Hi
    I need to install oracle 10g form in my system .
    Here is my system
    1. OS --XP
    2. 32 Bit
    4. Already oracle 11g release client installed ( I think that create the problem )
    I tried to install oracle 10g form , it installed but can cont configure net manager for it , Always it point to 11g client and hence I could not configure .
    Also I tried install Oracle Forms first then 11g client , But  I got same issue .
    I think if  I created multiplr home one for 11g client and other for forms , it may work out .
    Please  help me
    Debashis

    While deploying the example 'VacationRequest' in the oracle complete guide for 11g, i got an exception like this
    "12:08:15 PM] Deploying Application...
    [12:11:16 PM] [Deployer:149191]Operation 'deploy' on application 'VacationRequestTaskFlow' is initializing on 'soa_server1'
    [12:11:24 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application VacationRequestTaskFlow on soa_server1.: [Deployer:149145]Unable to contact 'bam_server1'. Deployment is deferred until 'bam_server1' becomes available.; nested exception is:
         java.rmi.UnknownHostException: Could not discover administration URL for server 'bam_server1'.
    [12:11:24 PM] [Deployer:149193]Operation 'deploy' on application 'VacationRequestTaskFlow' has failed on 'soa_server1'
    [12:11:24 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application VacationRequestTaskFlow on soa_server1.: Failed to load webapp: 'VacationRequestTaskFlow.war'.
    [12:11:24 PM] Weblogic Server Exception: weblogic.application.ModuleException: Failed to load webapp: 'VacationRequestTaskFlow.war'
    [12:11:24 PM] Caused by: java.lang.ClassNotFoundException: oracle.adf.library.webapp.ResourceServlet
    [12:11:24 PM] See server logs or server console for more details.
    [12:11:24 PM] weblogic.application.ModuleException: Failed to load webapp: 'VacationRequestTaskFlow.war'
    [12:11:24 PM] #### Deployment incomplete. ####
    [12:11:24 PM] Deployment Failed"
    Can anyone help in this.

  • Load balancing 10g forms - Connection from new browser window not supported

    Load balancing 10g forms - Connection from new browser window not supported
    We're experimenting with using webcache to load balance between multiple applications servers running OC4J forms processes.
    We currently have one machine with infrastructure and mid-tier (BI & Forms) installed, which is being used for the webcache functionality, this is load balancing between 2 other servers each of which just have the mid-tier (BI & Forms) installation
    In order to get this to work, I had to follow the instructions in the Forms deployment guide : http://download-uk.oracle.com/docs/cd/B14099_11/web.1012/b14032/tuning.htm#sthref707
    The main gist of this is that you need to set the following in the orion-web.xml file in order that the sessions are maintained:
    <session-tracking
    cookies="enabled">
    </session-tracking>
    This all works fine in most cases.
    The problem I am having is if I do one of the following on the client machine:
    1) From IE6 / IE7 run a copy of a forms application. Then open a new window using the "New Window" menu option, and attempt to run another forms application.
    2) In IE7 or Firefox 2.0 open a copy of the forms application, and then open a new tab and try and open another forms application.
    If I try either of these I get a FRM-92101 error, and the following is displayed in the java console:
    oracle.forms.net.ConnectionException: Connection from new browser window not supported
    From trawling various forums (including metalink and otn) it looks like a problem with the way coockies are handled.
    Unfortunately the usual workaround is to ensure that the session tracking option in the orion-web.xml file is disabled.
    The problem is that I need this enabled in order for the load balancing to work.
    Does anyone know of any other workarounds or patches that might help resolve this?
    We're using Application server 10.1.2.0.2 running on windows 2003 servers.

    You were right. Carriage returns were stopping it from working (the document is laid out over separate lines, so I assumed it would make no difference...).
    I've now managed to get it so the forms at least run, but they are all being run in the forms OC4J instance on the same machine as the OHS.
    Has anyone actually managed to get this to work, or am I doing something wrong?
    I did wonder if using an OHS instance on a machine with no forms installation would make any difference?
    I had raised a support call via metalink on this subject, but they eventually came to the conclusion that the only way to do this is with a hardware load balancer (Despite several documents suggesting that webcache is the way to go (including the forms deployment manual)).
    I'm at the point now of giving up and writing some custom scripts to do the job instead...

  • How do I acquire LiveCycle Barcoded Forms Decoder?

    I have seen in various areas of the Adobe website that this is available for purchase as a seperate Enterprise product, but cannot see how to do this. Even downloading a trial at this stage would be very useful to make progress on a project.
    This comment from: http://help.adobe.com/en_US/Acrobat/9.0/Standard/WSB6B0B0A6-FD16-4d4b-A729-815994F689BF.ht ml
    "Note: Acrobat Capture and LiveCycle Barcoded Forms Decoder are standalone products appropriate for enterprise workflows and are sold separately from Acrobat."
    As background, we are not developing the barcoded form, we will just receive a form which we will scan, extract the data and save it in an XML file.
    Any rapid help would be greatly appreciated!
    Regards
    JOHN

    Adobe® LiveCycle® Reader® Extensions ES2 now includes the Barcoded Forms right and you are licensed to install and use the decoder service is part of that purchase. When you install LiveCycle just be sure to select the Barcoded Forms piece which will include the decoder service.
    http://www.adobe.com/products/livecycle/readerextensions/
    If you'd like to learn more about when it does need to be licensed, take a look at this blog entry: http://blogs.adobe.com/asktheexperts/2009/06/adobe_livecycle_barcoded_forms.html.

  • 10G-form: How to do MULTIPLE WORD OR SINGLE WORD SEARCH at ITEM?

    I am using 10G DB + 10G Form Builder.
    I've 'database_item' where I am storing multiline text data.
    I want to do MULTIPLE WORD OR SINGLE WORD SEARCH at this item through FORM.
    I've tried by creating the following NON Database Items on the form:
    - multiline_search_text_item, and
    - multiline_result__text_item
    And then writing execute_query in KEY-NEXT-ITEM trigger.
    I've also tried using this in the POST-TEXT-ITEM at multiline_search_text_item:
    select table.database_item into :multiline_result__text_item from table where multiline_search_text_item = :multiline_search_text_item;
    Pl help me asap.
    Gaurav

    What you want to do is not clear.
    The query you wrote will select records where the table contains exactly what has been written in the search item. You can use LIKE and a wildcard search to find records which contain the search text:
    select table.database_item into :multiline_result__text_item
    from table
    where multiline_search_text_item LIKE '%'||:multiline_search_text_item||'%';
    You can use UPPER to make this case insensitive:
    select table.database_item into :multiline_result__text_item
    from table
    where Upper(multiline_search_text_item) LIKE Upper('%'||:multiline_search_text_item||'%');
    But I suspect you want either to match the individual words in the search text to individual words in the database multiline field, or find records where the search words appear (not necessarily as whole words). In that case, check out the following:
    -- set up a table (multiline and various whitespaces)
    DROP TABLE t;
    CREATE TABLE t AS
    SELECT
      ROWNUM rn,
      owner||Chr(9)||object_name||Chr(160)||subobject_name||'    '||object_id||' '||
      data_object_id||Chr(10)||object_type||' '||created||' '||last_ddl_time||' '||
      timestamp||' '||status||' '||temporary||' '||generated||' '||secondary AS col
    FROM all_objects;
    -- check the format of the multiline text item (col)
    SELECT * FROM t WHERE ROWNUM < 4;
    -- a type for the function below
    CREATE TYPE string_tab AS TABLE OF VARCHAR2(255);
    -- this function takes a string and cuts out each word, idetifying words
    -- as being separated by any whitespace.  it returns a collection
    CREATE OR REPLACE FUNCTION string_to_tab(
      p_string IN VARCHAR2) RETURN string_tab IS
      l_string LONG DEFAULT
        RTrim(regexp_replace(p_string,'[[:space:]]+',' ')) || ' ';
      l_data string_tab := string_tab();
      n NUMBER;
    BEGIN
      LOOP
        EXIT WHEN l_string IS NULL;
        n := InStr(l_string, ' ');
        l_data.extend;
        l_data(l_data.Count) := LTrim(RTrim(SubStr(l_string, 1, n - 1)));
        l_string := SubStr(l_string, n + 1);
      END LOOP;
      RETURN l_data;
    END string_to_tab;
    -- selecting from t where ANY of the words in the search text has
    -- a match in the multiline field (as a word or part of a word), so SYS
    -- matches to MDSYS and SYSTEM
    SELECT DISTINCT
      t.rn, t.col
    FROM
      t,
      (SELECT column_value
       FROM TABLE(CAST(string_to_tab('SYS   INDEX') AS string_tab))) x
    WHERE InStr(t.col,x.column_value) > 0;
    -- selecting from t where ALL of the words in the search text has
    -- a match in the multiline field (as a word or part of a word), so SYS
    -- matches to MDSYS and SYSTEM
    SELECT rn, col FROM(
    SELECT
      t.rn, t.col, cnt_x, Count(*) cnt
    FROM
      t,
      (SELECT column_value , Count(1) over(PARTITION BY 1)cnt_x
       FROM TABLE(CAST(string_to_tab('SYS   INDEX') AS string_tab))) x
    WHERE InStr(t.col,x.column_value) > 0
    GROUP BY t.rn, t.col, cnt_x
    WHERE cnt = cnt_x;
    -- selecting from t where ANY of the words in the search text
    -- match a word in the multiline field, so SYS matches only to SYS
    SELECT DISTINCT
      t.rn, t.col
    FROM
      t,
      (TABLE(CAST(string_to_tab(t.col) AS string_tab))) t2,
      (SELECT column_value
       FROM TABLE(CAST(string_to_tab('SYS   INDEX') AS string_tab))) x
    WHERE t2.column_value = x.column_value;
    -- selecting from t where ALL of the words in the search text
    -- match a word in the multiline field, so SYS matches only to SYS
    SELECT rn, col FROM(
    SELECT
      t.rn, t.col, cnt_x, Count(*) cnt
    FROM
      t,
      (TABLE(CAST(string_to_tab(t.col) AS string_tab))) t2,
      (SELECT column_value , Count(1) over(PARTITION BY 1)cnt_x
       FROM TABLE(CAST(string_to_tab('SYS   INDEX') AS string_tab))) x
    WHERE t2.column_value = x.column_value
    GROUP BY t.rn, t.col, cnt_x
    WHERE cnt = cnt_x;For your application you would replace 'SYS INDEX' with a variable (the search field). You can use upper() and wildcards for case insensitive & 'fuzzy' searches. You might need to modify the function so it removes other delimiters such as commas and colons.

Maybe you are looking for