Oracle Forms - "DEFAULT_WHERE" is lost when used an apostrophe

Hi all

I faced a problem with Oracle Forms for a long time and I have no idea of what is happening so far.

I have a block based on a stored table. I used the following statement to set the WHERE clause for this block:

set_block_property ('MTI', default_where, l_where);

Variable l_where has the following form:

l_where: = ' WHERE art_nr IN (')

|| "SELECT the md5 ma_nww_ww_dat art_nr."

|| 'WHERE trunc (sysdate) BETWEEN md5.gueltig_ab AND md5.gueltig_bis'

|| ' AND UPPER (md5.art_bez_altern) AS "' | : gi_intern.txt_match_name | '%''';

The problem arises when the user tries to search for an article, using the MATCH_NAME an apostrophe (for example, GRANT). In this case, the where conditions are lost and all records are returned as a result.

Could you help me understand what the problem is?

Thank you very much!

Raluca

I think you should put the link reference inside the clause, instead of its value.

I mean: If you set the where_clause ' like mycol. "' | : my_item |' % "'

you to hard-code the value of: my_item at the time of the set_block_property.

I could do this instead (simplifying):

l_where: = ' upper (md5.art_bez_altern) like: gi_intern.txt_match_name | » %'' ';

Thus, the: my_item value will be assessed at the moment execute_query, and I think that forms will address the apostrophe in the variable to better link if hardcode you just what you do in your example.

It is, forms will treat it in the same way it would if you were query mode enter and entering a filter: with variable binding.

In fact, I think that this kind of filter you can even enter at the time of the design (with single apostrophes)

In addition, liaison is supposed to be better for the performance of subsequent queries.

Tags: Oracle Development

Similar Questions

  • forms of mutiple detected when using inputFile in af:form

    version: ADF 11.1.4

    I am trying to get component inputFile working and struggling.

    JSF related:
    < af:form id = "f1" usesUpload = "true" >
    < af:inputFile label = "Upload File" id = "if1.
    value="#{backingBeanScope.FileUpld.uploadedFile}"/ >
    < af:commandButton text = "Begin" id = "cb4".
    action="#{backingBeanScope.FileUpld.doUpLoad}"/ >
    < / af:form >


    af: form above is enclosed in the following hierarchical structure (from the bottom):

    < af:showDetailItem >
    < af:panelGroupLayout >
    < af:panelBox >
    < af:popup >
    < af:dialog >
    < af:form >


    Backing bean:
    Import org.apache.myfaces.trinidad.model.UploadedFile;
    public class FileUpld {}
    private UploadedFile-uploadedFile.

    public FileUpld() {}
    }

    public String doUpLoad() {}
    System.out.println("***Start***");
    File UploadedFile = getUploadedFile();
    System.out.println ("file name is:"+file.getFilename()); ")
    System.out.println("***End***");
    Return ' ';
    }

    {} public void setUploadedFile (upldedFile UploadedFile)
    this.uploadedFile = upldedFile;
    }

    public getUploadedFile() {} UploadedFile
    Return this.uploadedFile;
    }


    StackTrace:
    < FormRenderer > < encodeAll > detected multiple forms on viewId: index.jspx. Rich client currently has some limitations to deal with multiple forms.
    < LifecycleImpl > < _handleException > ADF_FACES - 60098:Faces life cycle receives exceptions that are unhandled in phase 6 RENDER_RESPONSE
    java.lang.NullPointerException
    at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:233)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:415)
    at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1181)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
    at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:777)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:293)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:213)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:111)
    at java.security.AccessController.doPrivileged (Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)


    Thank you
    VJ

    Published by: VJ on May 2, 2011 22:41

    You must ensure that there is only a single af:form (at least right now). Just as the af: form of the parent page has the usesUpload = "true". I remember a discussion if you can set it to true for all pages with no impact on performance, but I don't remember the outcome.

    Timo

  • Effect of color in the properties lost when used to break apart.

    Flash CS5

    How does one change graph then have the possibility to choose in the properties of color effects options such as alpha or luminosity or hue in properties?

    Integrate a file .ai library and then creating a MovieClip of it, I can change alpha of the color or brightness or hue etc. in properties through the option of color effect. Use break hand to remove a simple box of a part of the work and just applied aspects of the color disappear, back to its original appearance. Try the work but still not grouping options now. It is even if I just place the image on stage or open the graphic in the library.

    Try it out bring it a different way and to break, then alter the work group then to see if the properties has color effect option for this but still no joy.

    Try to convert graphic after editing and giving it a new name, he Faints, nothing visible even if I select this chart in the library.

    It seems that the only way to apply color effect in the properties of a chart or a MovieClip is NOT to change its content when placed on the stage. I can't do without needing to modify the program making the AI. In fact adds a box that I don't need, border of the page in this program.

    Envirographics

    Color effects can be applied to an instance of a movieClip or button or graphic symbol. When you separate an instance of movieClip, you actually spend this movieClip into its different parts, similar to the edition of the original symbol in the library. These parts, lines, and fills, no longer a movieClip, and so any changes applied to the movieClip will no longer apply.

    You can select all the individual parts after your installation of these parts and then using the Edit menu, the value of this new group of lines and fills as a movieClip and reapply the color effect.

    Alternatively, if you double-click on the movieClip on the stage, you will be in the editor. Any changes you make in the editor will be displayed in the movieClip when you return to the scene. The effect color will remain.

  • Itineraries other nets will be lost when using the vpn client?

    I have a very general question. I intend to implement a security solution for the extranet partners to connect to our intranet using VPN client. IPSec will close on the external interface of the Cisco PIX firewall v6.3.

    Now, my consirn is, I downloaded the vpn client to test but I saw no advance settings to define what network traffic will pass through the IPSec tunnel and which will be routed normally. Is it by default all traffic passing through VPN? Is that what it means if there are other networks using their default route, they will not be able to achieve? (i.e. the Internet).

    Thank you.

    That would depend on how you set up the PIX. You can allow the VPN to your site and access to the Internet at the same time. This is called the split tunneling. It is configurable on the PIX, not the customer.

    This link might help you get started, but I'm sure that there stronger links.

    http://www.Cisco.com/en/us/customer/products/sw/secursw/ps2120/products_command_reference_chapter09186a00800ec9ec.html

  • Selection multiple-oracle forms 6

    The power of groups Record - Oracle Developer forms Techniques

    as Figure 2.7. Selection of several departments.

    Which can provide type Demo.FMB me?


    thx.......................

    Take a look at this URL: forms: how to select multiple records in a block by using the folder groups. This demo was written in Oracle Forms 10 g, but when I created the original REC_GROUP package I was using Forms 6i and this demo does not work in Forms 6i.  You will not be able to use the included CRAIG.pll so just to create the REC_GROUP package in your form instead.

    I hope this helps.

    Craig...

  • Automatic go next field without press keyboard key in oracle form 6i

    How do to have a next field go automatically without press keyboard key in oracle form 6i.
    Download
    When I enter a value in the field of my classes, I would like to have a go then filed without pressing ENTER key
    (this is the case even when I enter the value via the barcode reader, so without any touch of preesing I need to have a next field to go)
    If I use a barcode reader to enter my data in this element, it will be automatically validated?
    any ideas please?

    In general you can configure the barcode readers to add a TAB or a CR after you "type" bar code.

  • write an update statement in oracle forms 9i

    Hello

    I have a problematic situation in which

    I get values of a slider and a record group in the drop-down list and text elements block box area two data respectively.
    Both data are read in different tables.

    Now based on the selection of the drop-down list box, I need to update the value selected in another table by writing a statemet update.

    I created a button and the triggering event of when you press the button, I wrote a simple update statement, but it doesn't work like that.

    Kindly help me how to write manual update instructions in oracle forms 9i

    I can't used the buil update in forms that I want to date in a table that is not mentioned in the ownership of the block of data palette

    Help, please

    There is a syntax error in your statement.

    You must write:

    PROCEDURE update_current IS

    BEGIN

    update abc set xculumn= :block_name.item_name2 where ycolumn = :block_name.item_name1 ;

    commit;

    Hope it helps you,

    Fabrizio

    If this answer is useful or appropriate, please mark. Thank you.

    Published by: Fabrizio Delli Priscoli on 23 / ott/2008 14:30

  • SSO ADF and Oracle Forms?

    Hello

    Is there a recommended way to share authentication between ADF and Oracle forms?

    We currently use Oracle 11 g 2 forms and we have our forms developed in-house running on this.  I would like to start working on some applications of the ADF, but I do not know how to ensure that the username and passwords are the same for our existing forms applications and any new request to ADF we add.

    I would use JDeveloper 12 c.

    We have < 100 users, so this isn't a large installation, and most users are (same office).

    Thanks for ideas or advice.

    Check out this blog https://blogs.oracle.com/olaf/entry/ofm_11g_oam_sso_for_forms_and because it describes how using OAM.

    Timo

  • How can we replace Oracle form when you used by another user

    Hi Experts,

    Is it possible to replace Oracle form while in use by another user?

    Some time need deliver urgent fixes on the production environment, but it must wait for downtime, and the form does not use.

    I searched the Forum, but able to get the answer to this topic, I will be grateful if you could provide no alternative to do this.

    Env:

    Windows Server 2008 R2

    WebLogic Server 10.3.5

    Oracle form & report 11.1.2

    Hello

    For Production environment, it will be handled with tactics that led to minor maintenance work as well.

    You must have two physical directories (real and temporary) including the same fmx/plx/pll/mmx, files etc.

    and a file reference of in the FORMS_PATH in default.env, who have the latest version of the source.

    Copy the last source file into a temporary directory, when the user take the new session, it will access the new version of the source of the temporary path and who obviously last source version.

    Meanwhile, once the actual source published by the user version, you can copy the latest version of the source to the real directory and reset the FORMS_PATH with the actual path.

    In this way, you can solve your problem.

  • Take the backup of the user database using oracle forms 6i

    I need backup user database using oracle forms 6i. Is this possible?

    Yes.

    Try

    When press the button trigger

    DECLARE
        un                VARCHAR2(30);
        pw                VARCHAR2(30);
        db                VARCHAR2(30);
        con_str        VARCHAR2(100);
        --
        data_file    VARCHAR2(100);
        log_file    VARCHAR2(100);
        cmd_line    VARCHAR2(200);
        ALT NUMBER;
    BEGIN
        IF :CONTROL.file_name IS NULL THEN --- take a file location
            IF SHOW_ALERT('FILE_NAME') = ALERT_BUTTON1 THEN
                RAISE FORM_TRIGGER_FAILURE;
            END IF;
        END IF;
        --
        un    := GET_APPLICATION_PROPERTY(USERNAME);
        pw    := GET_APPLICATION_PROPERTY(PASSWORD);
        db    := GET_APPLICATION_PROPERTY(CONNECT_STRING);
        con_str    := un||'/'||pw||'@'||db;
        --
        data_file    := :CONTROL.file_name||'\'||un||
                                 TO_CHAR(SYSDATE, 'DDMMYYYY')||'.dmp';
    
        cmd_line    := 'exp userid='||con_str||' file='||data_file;
        HOST(cmd_line);
        --
    
        ALT:=SHOW_ALERT('MULTI_BACKUP');
        IF ALT=ALERT_BUTTON1 THEN
            RAISE FORM_TRIGGER_FAILURE;
        ELSE
            EXIT_FORM;
        END IF;
    
    END;
    
  • Forms crashing when running Oracle Forms script functional in OTM

    Hello

    We try to run Oracle Ebiz forms related to scripts of functional test developed in Open Script in Oracle Test Manager.

    Exactly when the forms starts, the JRE is get crashed, and the script fails. What could be the reason.

    I added the path class in Control Panel for the JRE Java that comes with OATS and active 1.6.33 version that works quite well even when script is run using OpenScript, and not through OTM.

    Also, in windows services we have provided valid admin credentials to the execution of the service, instead of the user of the local computer.

    Any help and insight into this problem would be a great help.

    Kind regards
    Nishant

    Published by: 958623 on October 29, 2012 05:09

    Please try "-formsft.startup_timeout 120" and let me know.

    Thank you
    Rajesh.

  • Use of the JRE instead of JInitiator causes problems of development of mouse for Oracle Forms

    Hi all

    We run Oracle Forms application based using JRE instead of JInititor.

    (1) the application is run on an individual laptop with Windows XP SP3 as an operating system.
    (2) with the help of oc4j of Oracle Developer Suite 10.2.0.1.0 to run the application
    (3) JInititor is more used and JRE version 1.6.0_26 or JRE version 1.6.0_27 used to launch the application. It works very well.
    (4) the browsers used to access the applicarion are IE8 and Mozilla Firefox 8.0.1

    Questions:
    (1) cannot have the focus of the mouse on an item. Even when the cursor seems to be in another element, for example after ctrl + E, point B article content watch editor has (which is the first on the form).
    (2) the LOV on any item shows what brings the LOV on section (first one on the form).
    (3) we are forced to use the keyboard to access the respective item all the time.

    Can anyone suggest a solution to this problem?

    Kind regards
    Aparna

    HELO,

    You, normally I think shoud upgrate to the version of forms 10.1.2.3,.

    François

  • Form data lost when refreshing the page

    That this has something to do with the settings of IE7? or Flash? I have a file that contains a form. I use < cfform > tags with the format of the "flash" value attribute The action attribute of the form is set so that the file is called. However, when I submit the form the screen refreshes, but the form data is lost. I used the technique of the "file of the form itself call" a lot in the past, but this is the first time I used flash forms. Any idea what's going on?

    Thank you!

    Thank you!!

  • Oracle Forms Builder 12 c, crashing when generating a big mmx

    Hello

    I installed Oracle Forms Builder on Windows x 64 8 12 c. When I compile my menu I have no problem, but when I try to generate the file mmx, forms crash and close. Can someone tell me if I need a group of hotfixes or the value of any configuration on my Forms Builder?

    Best regards

    It's a bug I can reproduce it. It has nothing to do with the language or the size of the file, but the length of a Menu name here how it worked for me...

    The work around:

    Change the menu with 12cFormsbuilder.

    Open the file .mmb with Formsbuilder. Open the Menu tree. Look for the Menu titles that are more than 30 characters. Change the name< 31="" characters="" by="" clickiung="" on="" the="">

    If you click on it it will be automatically reduced to 30 characters. Save the file, generate

    The example which worked for me:

    MENU:

    ANDERE_STAMMDATEN_UND_VERKNUPF_MENU-> ANDERE_STAMMDATEN_UND_VERKNUPF

  • When possible in Oracle Forms to insert a second line based on 1st row, so why not in the ADF?

    Mr President

    When possible in Oracle Forms to insert a second line based on 1st row, so why not in the ADF?

    The user just enter data in the Module of sales in one line of a Bill as below

    and it is displayed in two rows in financial Module.like below how to proceed in the ADF.

    You can see that invoice line contains the sales tax and the gross sales amounts, then it is posted to the financial Module above two lines.

    How to make ADF

    Respect of

    What I realized, this is:

    -You have a table in you screen.

    -You call CreateInsert 2 times to create 2 rows at the same time.

    -You will enter value in a specific column (c1) line1

    Looking for the value that you entered in row1 can be completely copied in the same column (c1), but in line2. is this correct?

    If so try to do the following:

    1. in the table inputText (c1) column set autoSubmit = true and setValueChangeListener to a method in backbean

    
           
    
    

    2. in the inputTextValueChangeListener method to write this code

      public void inputTextValueChangeListener(ValueChangeEvent valueChangeEvent)
      {
        DCIteratorBinding tableIter = (DCIteratorBinding) BindingContext.getCurrent().getCurrentBindingsEntry().get("tableIteratorName");// write table iterator name from pageDef.
        for (int i = 0; i < tableIter.getViewObject().getEstimatedRowCount(); i++)
        {
          ViewRowImpl myRow = (ViewRowImpl) tableIter.getRowAtRangeIndex(i);
          EntityImpl entityImpl = myRow.getEntity(0);
          if (EntityImpl.STATUS_NEW == entityImpl.getEntityState())
          {
            System.out.println("New row found");
            myRow.setAttribute("AttributeName", valueChangeEvent.getNewValue());// write attribute name
          }
        }
      }
    

    3 - Add inputText id in the partialTrigger table

    
    

    4 - pageDef. Set of table iterator rangeSize = "-1".

Maybe you are looking for

  • for all programs, I want a keyboard shortcut for the Greek letter delta.

    I use a variety of text programs... Word. OpenOffice; CaseMap; electronic mail; and others. I want to be able to type alt + something (for example) to create a symbol - like Greek letters pi delta. It just seems to me that he needs to (or should) be

  • Implement

    WHRE I can find, fool proof simple instructions to set up ePrint so that I can print from my iPad. Note, I want instructions that don't make any assumptions. I want they assume I am weak of mind and seven years! MaddoxRod

  • Cannot download Windows store - error code 0 x 80070585

    When I tried to download Hill Climb Racing to the store, he has given an error code - 0 x 80070585 cancelled that download and again tried to download it and had the same problem. This happened to me foor the third time also. Please help me with this

  • Resizing of Image CS6 problems

    I tried to resize these images, I bought on shutterstock for a book cover, and every time that I go to image > image size and put in smaller dimensions, it is resized my canvas together and not only the image! Can someone help me? This seems like an

  • How to uninstall the game development kit?

    For reasons, I want to completely uninstall the SDK of the game. I see there is a file in my program files named "Adobe Gaming SDK 1.4. This just delete? I just thought to ask this question and has put much effort in writing it, but can someone help