How to clear the value of af: inputFile

Hello

12.1.3 Jdev

I have a page that has fields based on a QueryBased VO and an af:inputFile field. This input file has a valueChangeListener which will set the selected file and the name of the attribute to display.

Once I click on send in the page, I'll take the values in the row of VO and using the values that I have created folders in 3 tables using 3 EO according to your.

After that I reset the VO based query as below, so that the screen is refreshed to go into the details of the next:

1 is a recommended approach (everything works fine)? If this is not the case, what is the recommended approach. ?

this.getDBTransaction().commit();

        IbisAccountantRegVOImpl accountantRegVO = this.getIbisAccountantRegVO1();
        accountantRegVO.clearCache();
        accountantRegVO.setWhereClause("1=2");
        accountantRegVO.executeQuery();
        IbisAccountantRegVORowImpl accountantRegVORow = (IbisAccountantRegVORowImpl) accountantRegVO.createRow();
        accountantRegVORow.setNewRowState(Row.STATUS_INITIALIZED);
        accountantRegVO.insertRow(accountantRegVORow);

Note: Another option that I think is just set to null for all VO plate instead of create a new line.

2. the component of af: inputFile still has the selected file. How to delete this value?

See you soon

AJ

If you don't want any line in your VO, so instead of

accountantRegVO.clearCache ();

accountantRegVO.setWhereClause ("1 = 2");

accountantRegVO.executeQuery ();

You should probably use: accountantRegVO.executeEmptyRowSet)

But I don't know if you still need to do this (you have probably just to set up a new line in the current, with accountantRegVO.setCurrentRow (accountantRegVORow) or something like that)

And for inputFile reset, see: https://blogs.oracle.com/jdevotnharvest/entry/how_to_reset_adf_faces

Dario

Tags: Java

Similar Questions

  • How to clear the values of the APEX

    Hi team,

    In our application, I had implemented these changes listed below.

    1. we have two tabs, one for delete records & other one to restore the records that have been deleted.

    2. tab delete, I'll be if you select date & click the button remove.

    3. click on Remove button a pop-up window will be opened where we needed fields and click on submit button.

    4. for the first time, when popup window open required fields will be empty and once provided and click on submit these values will be removed from the rear end and store in the table.

    5 now, I went to tab to restore, where I had provide date and click Restore, so the records which had been deleted got restored back.

    6. After restoring back, I returned to Delete tab and once again chosen the date and click on the button Delete, click clear said previous window will be open, but this time in the pop-up screen, we can see values already exist which have been entered previously.

    -If the problem is how we can clear the values in the popup screen when comes to remove the tab and process. Any help much appreciated.

    Kind regards

    Sruthitamiri

    Sruthi Tamiri wrote:

    Thank you for the quick turn around, little confuse how to delete in URL, here's what we used. Could you please help me were to make changes.

    The element is P3_Requested, P3_Who, P3_Why

    1. URL = ' f? p = & APP_ID.: 3: & APP_SESSION. : 3::P3_TRADE_DATE, P3_DAILY, P3_MONTHLY: "+ $x("P1_START_DATE").value + ',' + $x("P1_DAILY_0").value + ',' + $x("P1_MONTHLY_0").value;
    2. w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600");

    You have '3' in the position of debug in the URL, not the ClearCache position:

    f?p=App:Page:Session:Request:Debug:ClearCache:itemNames:itemValues:PrinterFriendly

    It's basic stuff that should be easily resolved by referring to the documentation...

  • How to clear the value quickly adopted by the last navigation between pages.

    Hello

    I have 3 pages (A, B, C) under the same dashboard, and they come from the same domain.

    A and B are summary pages, say they have columns in their analysis and prompt as below has a column named A - Col; B a column named B - Col.

    C is the detail of the page. He has two columns, that is A - Col, Col - B in its analysis and invites.

    That is the problem.

    When I browse from A to C, the C got the value of the parameter A and keeps. For example, the A - pass in guest page C was set at 'A' now

    And I switch to the B page by clicking the page tab and go to the C page by clicking on the column B - Col. The C will get the value of B and keep it. For example the B - pass online of the C page now has the value 'B '.

    But the problem is the value of A - collar is not clearly. It is still 'A' who went from page one last time. It caused the C analysis incorrect result page.

    I was expecting to see the info in detail on page C B - Col = 'B' when you navigate from page B. But I got the result that A - Col = 'A' and B - Col = 'B '.

    Any way to solve?

    Thank you very much in advance.

    Kind regards

    Alex

    Alex,

    Please, add the tag in instancexonfig.xml under tags and restart the presentation server.

    fake

    This will force the server to use the scope of the dashboard page.

    Thank you

    Vineeth

  • How to clear the Jquery Autocomplete text.

    Hi all


    I've implemented a text using jquery AutoComplete element. Every thing seems fine, but when we have a clear of the country which State should be cleared.
    Here is the code, can any body hep me where and how to clear the values.
    --
    <script type="text/javascript">
    $( function() {
        
        $("#P16_ENG_CTRY").autocomplete({
            source : function( request , response) { 
                            data = getCountry(request.term);
                            response( data );
                     } ,
            focus  : function(event , ui){
                        event.preventDefault();
                     }
     
        });
    });
     
    function getCountry(key)
    { 
       document.getElementById('P16_ENG_CTRY')==''; 
       var ajaxRequest = new htmldb_Get( null , '&APP_ID.' , 'APPLICATION_PROCESS=GET_COUNTRY' , 0);
       ajaxRequest.add( 'G_MX01' , key);
       ajaxResult = ajaxRequest.get(); 
       
       return ((ajaxResult.length>0)? ajaxResult.split( '~' ):null);
     
    }
    
    
    $( function() {
        
        $("#P16_ENG_STATE").autocomplete({
            source : function( request , response) { 
                            data = getStateJ(request.term);
                            response( data );
                     } ,
            focus  : function(event , ui){
                        event.preventDefault();
                     }
     
        });
    });
     
    function getStateJ(key)
    { 
    
      
    document.getElementById('P16_ENG_STATE')=='';
          var ajaxRequest = new htmldb_Get( null , '&APP_ID.' , 'APPLICATION_PROCESS=GET_JSTATE' , 0);
    
              ajaxRequest.add('G_MX01',document.getElementById('P16_ENG_CTRY').value);        
              ajaxRequest.add( 'G_MX03' , key);
              ajaxResult = ajaxRequest.get(); 
       
       return ((ajaxResult.length>0)? ajaxResult.split( '~' ):null);
     
    }
    
    
    $( function() {
        
        $("#P16_ENG_CITY").autocomplete({
            source : function( request , response) { 
                            data = getCityJ(request.term);
                            response( data );
                     } ,
            focus  : function(event , ui){
                        event.preventDefault();
                     }
     
        });
    });
    Thank you
    David...

    Try this then and you can replace the blur with an event of jquery as you like

    $("#P16_ENG_CTRY").blur(function() {
    //clear the value
      if ($(this).val()==null || $(this).val()=="") {
         $("#P16_ENG_STATE").val('');
      }
     }
    });
    
  • Need help | How to clear the filter of af values: table on table linen

    Hello

    JDeveloper version 11.1.1.7

    I have af:table inside a taskflow to which has been added to several pages as a region.

    The problem I'm facing is if I enter any value in current input for the data in the column filtering and if I navigate to another page that has even added taskflow as a region filter values is still visible.

    How can I clear the values entered in the input of the filter text.

    code fragment:

    < af:table value = "#{bindings." BulletinDataVO21.collectionModel}.

    Binding = "#{pageFlowScope.bulletinArchieveBean.bulletinTable} '"

    var = "row".

    lines = ' #{bindings. " BulletinDataVO21.rangeSize}.

    emptyText = "#{bindings." BulletinDataVO21.viewable? "{customtaskflowsBundle ['table.no.data.to.display']: customtaskflowsBundle ['table.access.denied']}."

    fetchSize = "#{bindings." BulletinDataVO21.rangeSize}.

    filterModel = "#{bindings." BulletinDataVO21Query.queryDescriptor}.

    queryListener = "#{pageFlowScope.bulletinArchieveBean.onQuery} '"

    filterVisible = "true" varStatus = "vs."

    rowBandingInterval = "0" id = "t1".

    styleClass = "datatable_inside_wrapper."

    autoHeightRows = "25" width = "700" >

    the queryListener at the bean code:

    {} public void onQuery (QueryEvent queryEvent)

    QPF FilterableQueryDescriptor =

    (FilterableQueryDescriptor) queryEvent.getDescriptor ();

    Map map < String, Object > = fqd.getFilterCriteria ();

    If (log.isDebugEnabled ()) {}

    {for (String key: {map.keySet ())}

    log. Debug ("touch of filter criteria:" + key + ", value:" +)

    Map.get('zoom') (Key));

    }

    }

    final String publishingFromKey = "Publishingfromdate";

    final String publishingToKey = "Publishingtodate";

    Object publishingFrom = map.get('zoom') (publishingFromKey);

    Object publicationdans = map.get('zoom') (publishingToKey);

    String titleValue = (String) map.get('zoom') ("Value");

    If (StringUtils.isNotEmpty (titleValue)) {}

    Map.put ("Value", "%" + titleValue + '%');

    }

    String targetDepts = (String) map.get('zoom') ("Targetdepts");

    If (StringUtils.isNotEmpty (targetDepts)) {}

    Map.put ("Targetdepts", '%' + targetDepts + '%');

    }

    Category String = (String) map.get('zoom') ("Category");

    If (StringUtils.isNotEmpty (category)) {}

    Map.put ("Category", "%" + category + '%');

    }

    DCBindingContainer links =

    (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();

    OperationBinding = setPublishingFromDateStartOperationBinding

    bindings.getOperationBinding ("setPublishingFromDateStart");

    OperationBinding = setPublishingToDateEndOperationBinding

    bindings.getOperationBinding ("setPublishingToDateEnd");

    setPublishingFromDateStartOperationBinding.getParamsMap () .put ("value",

    publishingFrom);

    setPublishingToDateEndOperationBinding.getParamsMap () .put ("value",

    Publicationdans);

    Map.Remove (publishingFromKey);

    Map.Remove (publishingToKey);

    setPublishingFromDateStartOperationBinding.execute ();

    setPublishingToDateEndOperationBinding.execute ();

    DcIteratorBinding = DCIteratorBinding

    bindings.findIteratorBinding ("BulletinDataVO2Iterator");

    ViewObjectImpl = bulletinVO

    (ViewObjectImpl) dcIteratorBinding.getViewObject ();

    final String publishingFromCriteria = "QueryByPublishingFromDate";

    final String publishingToCriteria = "QueryByPublishingToDate";

    If (publishingFrom! = null) {}

    bulletinVO.setApplyViewCriteriaName (publishingFromCriteria, true);

    } else {}

    bulletinVO.removeApplyViewCriteriaName (publishingFromCriteria);

    }

    If (publicationdans! = null) {}

    bulletinVO.setApplyViewCriteriaName (publishingToCriteria, true);

    } else {}

    bulletinVO.removeApplyViewCriteriaName (publishingToCriteria);

    }

    JSFUtils.invokeMethodExpression ("#{bindings.") BulletinDataVO21Query.processQuery} «»

    Object.Class, QueryEvent.class,

    queryEvent);

    Map.put ("Value", titleValue);

    Map.put ("Targetdepts", targetDepts);

    Map.put ("Category", category);

    Map.put (publishingFromKey, publishingFrom);

    Map.put (publishingToKey, publicationdans);

    }

    Please let me know we can clear the values entered in input boxes of text for filtering on whenever the load table.

    Thank you

    Madhukar

    Hi all

    I could solve the problem.

    Clear the fault and implicit criteria VO display!

    Here's the code to do the same.

    Hope it will be useful for others as well, also let me know if this can be done in the best way.

    Bean code:

    DCBindingContainer links =

    (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();

    DCIteratorBinding data binding =.

    bindings.findIteratorBinding ("TestDataView1Iterator");

    If (dataBinding! = null) {}

    ViewObjectImpl = testDataVO

    (ViewObjectImpl) dataBinding.getViewObject ();

    testDataVO.reset ();

    The below two lines code clears the default and display implicit criteris

    which gets set in ViewCriteriaManager when we filter the data in the table to help

    This table filter text box in the column af:table headings

    NOTE: It will not erase the other criteria of which are defined by users in VO

    testDataVO.getViewCriteriaManager () .removeViewCriteria (ViewCriteriaManager.DFLT_VIEW_CRITERIA_NAME);

    testDataVO.getViewCriteriaManager () .removeViewCriteria (ViewCriteriaManager.IMPLICIT_VIEW_CRITERIA_NAME);

    If (param.equalsIgnoreCase ("home")) {}

    testDataVO.setWhereClause ("attachment = 'Y'");

    } else {}

    testDataVO.setWhereClause ("attachment = ' n '");

    }

    testDataVO.executeQuery ();

    }

    Thank you all for the suggestions.

    Thank you

    Madhukar

  • How to retrieve the values of character without using single quotes

    Hi all

    How to retrieve the values of character without the use of single quotes. Its Possible in Oracle SQL

    Please answer me...

    For example

    Is actual query-> Select * from employees where name like in("SCOTT", "JAMES", "ALBERT",...);

    I want to--> Select * from employees where name like(SCOTT, JAMES, ALBERT...); -without the use of single quotes.

    Why I need this application, I need to retrieve the records more than 200 employees in a select statement by using name in where clause.

    shagarmahabubjan wrote:

    Hi all

    How to retrieve the values of character without the use of single quotes. Its Possible in Oracle SQL

    Please answer me...

    For example

    Actual query is---> Select * from employees where name like in("SCOTT", "JAMES", "ALBERT",...);

    I want to---> Select * from employees where name like(SCOTT, JAMES, ALBERT...); -without the use of single quotes.

    Why I need this application, I need to retrieve the records more than 200 employees in a select statement by using name in where clause.

    In short... you can't.  The channels are channels, and SQL and PL languages dictate that the string literals are provided within single quotes.

    I don't see how trying to retrieve more than 200 records of employees in the select statement means that you must get rid of the quotes.

    Be clear in what you ask: Re: 2. How can I ask a question on the forums?

    and take note of the FAQ link davidp provided the solution "variable IN the list.

  • How to get the value of a * Global * Application point of JS

    If we declare an element of the request, which is NOT a level of the page in question, how we get the value of this element in an Action dynamic JavaScript on a page?

    For example, we declare a "global" variable as an Application named DEFAULT_AJAX_SEPERATOR and set its value with a calculation of the claim "on the new Instance" a moment later, on a page of the application, we would like to get the value of DEFAULT_AJAX_SEPERATOR via JavaScript.

    Page* level syntax element...
    $v( 'DEFAULT_AJAX_SEPERATOR' );
    .. How does not work. I don't understand why it's like $v can only access the elements on the page. However, the APEX is clearly able to get these global values since, for example, they are available in PL/SQL blocks. Also, I know that it is on the session object, because I can see it when viewing the session.

    So... What is sauce secret for obtaining this value?

    Thank you

    -Joe

    Hello
    Use something like this in your javascript code.

    var appItemVal = "& DEFAULT_AJAX_SEPERATOR.";

    Thank you
    Naidu789.

    If you think, I responded to your question, please mark as answer.

  • How to clear the form after the error

    Hi friends

    Use oracle 10 g forms in windows xp sp2, I'm doing a form accepting the user input to the editor only for practice because it is a first time I use the editor and all that just for the test and I need your help. to display the editor when the press operator in the text element, that I use (integrated Show_Editor) then the value entered in the editor will display in the text element, and there is a problem of query by this value. so far it's very well.

    If the operator to enter a wrong value the request that I made the alert for this message and I pulled the trigger of the error alert, but after the user press the button in the alert in the event of failure message incorrect value even in the text element.


    This is the first screen, now I insist in the EMP is
    http://i48.Tinypic.com/28us1l4.jpg

    It is the second screen. Here, you need to clear the message and enter a valid value, but assume that you enter
    an invalid value.
    http://i46.Tinypic.com/29pup07.jpg

    you get this message if you have entered an invalid value
    http://i50.Tinypic.com/2wg6gj6.jpg

    After, I press (OK) in the alert message. How can I delete an incorrect value in the text element
    I tried the clear_form in the trigger for the error, but I get the error
    http://i50.Tinypic.com/1znue1l.jpg

    Please show me how I can delete the text without error element

    any help or advice, that I enjoyed

    Thank you

    Hello

    Just use the following to clear the value of a text element:

     :block_name.field_name := NULL; 
    

    I hope this helps.

    Best regards

    Arif Khadas

  • even if the margins and clear the values defined divs, overlaping

    For this site, the text in the DIV called "thumbnailshere" overlaps the div below, even if the margins and clear the values have been set.

    http://tfproperty.co.UK/checkthisout/about.html

    How can I fix it?
    Thank you

    jdldn wrote:
    > For this site, the text in the DIV called "thumbnailshere" overlaps the div
    > below him, even if the margins and clear the values have been set.
    >
    > http://tfproperty.co.uk/checkthisout/about.html
    >
    > How to fix this?
    > Thank you
    >

    This is because you have set the height on your 'thumbnailshere '.

    . Never
    the value height unless you know how high the content is going to be.
    Remove the height.

    {.thumbnailshere}
    height: 400px; / * remove the height * /.
    margin-top:-10px;
    }

  • How to clear the children containers?

    My little app is coming along, has managed to get this well with the excellent advice of those here. My last problem is that when I leave the area of detail and select a new (master1) I don't know how to clear the details of the previous selections (master 2). When I select of (master1) DataGrid (master 2) is poplulated, but the Image on the canvas is still the Image previously selected until I select a new on in (master 2). Is there anyway to dump on a new event (master1)? My attempt to define my layout is less. If it is not enough just let me know and I'll post everything that is necessary. Thanks again for all the previous Help and in advance for this one.

    Presentation of the step:

    mxDataGrid (master1)
    /mxDataGrid

    tabNavigator
    MX:canvas
    dataProvider {master1} MX:image
    /MX:canvas

    MX:canvas
    dataProvider {master1} MX:DataGrid
    MX:columns (master 2)
    /MX:DataGrid
    dataProvider {master2} MX:image
    /MX:canvas

    /MX:tabNavigator

    I just changed the 'visible' attribute instead of compensation on the value, and all is good. Thank you.

  • How to clear the hard drive on my old iMac of 2008?

    I have a 2008 iMac I want to recycle. How to clear the hard drive?

    (What is PPC?)

    PPC stands for Power PC. Is the name used to refer to the old Macs that uses a Motorola processor instead of Intel chips used today. To clear your old Mac follow the advice in this document from Apple... What to do before you sell or give away your Mac - Apple Support

  • How to clear the cache of firefox

    How to clear the cache of firefox

    Settings-Advanced below 'Network' and clear here

    https://support.Mozilla.org/ru/KB/Kak-ochistit-KESH-Firefox?redirectlocale=ru & redirectslug = Kak-ochistit-Kesh

  • How to clear the history?

    How to clear the history?

    https://support.Mozilla.org/en-us/KB/how-do-i-clear-private-data-Firefox-Android

  • Portege Z930 - how to clear the memory of the fingerprint sensor?

    Hello

    Tell me how to clear the memory of the fingerprint sensor?
    Reinstall the operating system and now I can not add your impressions.

    They have their No....

    > Reinstall the operating system and now I can not add your impressions.
    Stand by. You have reinstalled OS using original recovery image?

  • Re: How to clear the model of Toshiba satellite PS271L - 6K 906 CMOS PASSWORD?

    In: Toshiba

    How to clear the model Toshiba Satellite PS271L - 6K 906 CMOS PASSWORD?
    Please respond to my E-mail [email protected]
    Thank you

    To: King

    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?MessageID=127837
    Read this thread very carefully!

Maybe you are looking for

  • Anyone else completely baffled by the invisible icon of the 'pocket '?

    Just updated to 38.0.5. On handheld, but the icon is not found. I tried to customize, no icon. Bookmarks has 'Pocket display list', but I can never add anything to the list, because there is the icon or the action to do!

  • After upgrade shows OS 2.2, wrist detection fails and watch locks

    2.2 OS update shows this morning since then wrist detection fails, and I constantly have to unlock the watch manually. Unlock iPhone (more than 6) also fails unlock watch. Look at and communicate the iPhone. Tried toggling and re-pairing Bluetooth, n

  • Cleaning TFT screen

    Dear Sir.now a rather odd question: anyone know how to clean a TFT (tecra m2), after a while gets dusty and thus ofThanks in advanceDr. weekx

  • OfficeJet pro 8610: print labels avery

    just started using my officejet pro 8610.  love it but I can't seem to aline sheets of labels when I print multiples.  When I print 3 copies it will make good on the 2 / 3. I have the tray loaded with about 50 sheets of paper of reg and then ask my s

  • Color LaserJet CM1312nfi MFP that gives the message 'unexpected paper size ".

    In recent months, when I print a set of envelopes, after EACH envelope my printer gives me a message "unexpected paper size".  This forces me to press the 'OK' button to continue to the next task.  After that, the printer goes into a long routine of