UIX validation in editable table without refreshing

I have an editable table in a UIX page and I want to validate some fields against the DB (when the focus of each textInput is lost) without refreshing the table (to keep in the textInputs the data previously introduced by de user). To obtain that I pass the value that I want to validate to a second form (using javascript) which is submitted using the javascript function submitForm.
How can I do to keep the table without refreshing?
Here is the code:
<?xml version = '1.0' encoding = 'windows-1252'?>
<document>
<metaContainer>
<!-- Set the page title -->
<head title="Maestro Ficheros"/>
</metaContainer>
<contents>
<script>
<contents>
<![CDATA[function foco(){
     var n = document.form0.nombrefi.value;
     document.form1.param1.value = n;
     submitForm(document.forms[1],0,{'event':'Validar'});
} ]]>
</contents>
</script>
<body>
<contents>
<form name="form0">
<contents>
<table model="${bindings.Gccintt001View1}"
id="Gccintt001View11"
partialRenderMode="multiple"
partialTargets="_uixState"
nameTransformed="false">
<contents>
<column>
<columnHeader>
<sortableHeadermodel=
"${ctrl:createSortableHeaderModel (bindings.Gccintt001View1, 'Nombrefi')}"/>
</columnHeader>
<contents>
<switcher childName=
"${uix.current.Nombrefi.inputValue==
bindings.Nombrefi.inputValue ?
'selected' : 'notselected'}">
<case name="selected">
<textInput id="nombrefi"
model="${bindings.Nombrefi}"
readOnly="false" columns="15"
styleClass="OraBGAccentLight"
onChange="javascript:foco()"/>
</case>
<case name="notselected">
<textInput model="${uix.current.Nombrefi}"
columns="15" readOnly="true"/>
</case>
</switcher>
</contents>
</column>
<column>
<columnHeader>
<sortableHeader model=
"${ctrl:createSortableHeaderModel (bindings.Gccintt001View1,'Descfichero')}"/>
</columnHeader>
<contents>
<switcher childName=
"${uix.current.Nombrefi.inputValue== bindings.Nombrefi.inputValue ?
'selected' : 'notselected'}">
<case name="selected">
<textInput id="descfichero"
model="${bindings.Descfichero}"
readOnly="false" columns="15"
styleClass="OraBGAccentLight"/>
</case>
<case name="notselected">
<textInput model=
"${uix.current.Descfichero}"
columns="15" readOnly="true"/>
</case>
</switcher>
</contents>
</column>
</contents>
</form>
<form name="form1" method="post">
<contents>
<formValue name="param1" value="vacio"/>
</contents>
</form>
</contents>
</body>
</contents>
</document>
<handlers>
<!-- Add EventHandlers (<event> elements) here -->
<event name="Validar">
<method class="view.EventHandler" method="pruebaEventHandler"/>
</event>
</handlers>
</page>
Thanks Gari.

I found a solution. Using a hidden form inside a iFarame and passing the values between forms with javascript, I can post the hidden form maintaining the changes in the table.
Gari

Similar Messages

  • Data fetch from table without Refresh and without using tab key.

    hi Friends,
    I have a problem i want to extract data from table without Refresh into text field without using Tab key. when i'll enter any value in a text field then corressponding value should come in to corressponding textfield without using Tab Key.
    eg. when i enter emp_id 101 in a text field then the first_name and last_name ,adress should come in to corressponding text fields without refresh and without using Tab key.
    How Can I do this.
    Thanks
    Manoj

    Hi Manoj,
    I assume that this is similar to: Data fetch without Refresh rather than Re: Value of one textfield should come into another textfield Without Using TAB ?
    If so, the only change you need to make on the first one is to use "onkeyup" instead of "onchange" in the item's "HTML Form Element Attributes" setting.
    Note, however, that the user must move away from the item at some point (for example, to click a button), so the onchange will be triggered anyway.
    Andy

  • Data fetch from two table without refresh

    hi Friends,
    I have a problem i want to extract data from two table without refresh into text field when i'll enter any value in a text field then corressponding value should come in to corressponding textfield.
    eg. there two table A and B.
    Table A has Colunm
    s_id Number;
    c_id Varchar2(30);
    sec varchar2(4);
    Second Table B Colunm Name
    s_id Number;
    f_name varchar(30);
    l_name varchar(20);
    when i enter s_id 101 in a text field then the c_id ,sec,first_name and last_name should come in to corressponding text fields without refresh.
    How Can I do this.
    Thanks
    Manoj

    Hi Manoj,
    You have to make an Ajax call to display data without refreshing the page. Search this forum for Ajax and you can find lots of related posts. This link might help too. http://www.dba-oracle.com/t_html_db_apex_ajax_application_express.htm
    Thanks,
    Manish.

  • UIX XML & BC4J Editable Tables

    How to process the changes on a bc4j table with editable columns (in UIX XML)?
    We can read the values, but when we try to update the view object, it occurs an error saying that the read value is not serializable.

    I think the problem is that you are not getting at the viewObject correctly in your eventHandler.
    First, in the uiXML file, the handler should be something like:
                <ctrl:handlers>
                  <ctrl:event name="..." >
                    <bc4j:findRootAppModule name="EmpAppModuleLocal" >
                      <bc4j:findViewObject name="AllEmpsVO" >
                        <ctrl:method class="yourClass"
                                     method="applyChanges"/>
                        <bc4j:commit/>
                      </bc4j:findViewObject>
                    </bc4j:findRootAppModule>
                  </ctrl:event>
                </ctrl:handlers>Then you can write your applyChanges method like this:
    public static EventResult applyChanges(BajaContext context,
                                           Page page,PageEvent event)
      ViewObject view = (ViewObject) context.getProperty(
                JboConstants.BC4J_NAMESPACE,
                JboConstants.VIEW_OBJECT_PROPERTY);
      view.getCurrentRow().setAttribute("Ename","Smith");
      return null;
    }Please see:
    http://otn.oracle.com/jdeveloper/help/topic?inOHW=true&file=jar%3Afile%3A/u01/webapps/OHW/ohw-app/jdeveloper/helpsets/jdeveloper/uix_devguide_ohj.jar!/bc4j.html&linkHelp=false#HandlingEvents
    http://otn.oracle.com/jdeveloper/help/topic?inOHW=true&file=jar%3Afile%3A/u01/webapps/OHW/ohw-app/jdeveloper/helpsets/jdeveloper/uixref.jar!/bc4j/findViewObject.html&linkHelp=false

  • Focus on next navigatble item in ADF Table after refresh

    Hi,
    How to set the focus in the ADF table to next navigable item after Table Refresh.
    I have valueChangeListner set to one of the columns in the table. Once the Value is changed in the Column we perform calculations based on the value and update the RowIterator.
    To get the updated values I refresh the Table. It shows the updated values correctly.
    After refresh the contorl/focus moves to the Table header.
    Instead We would like to have the focus on the next navigable Item in the Table.
    Or is there a way to change the values in the Table without refreshing by Partial trigger on the Table.
    Thanks,
    Satya

    Hi Arun,
    I did that but it doesn't seems to be working as it need to refresh its own column.
    eg:
    Row COL1 COL2
    R1: Rxxxx Val1
    R2: Lxxxx Val2
    R3: Exxxx Val3
    R4: Fxxxx Val4
    When I modify Val1 Val4 need to be calculated using val1-val3/val2
    I'm doing this in ValueChangeListener. and setting attribute values by finding the correct row using RowsetIterator.
    When I refresh the Table Iterator in Row R4 Val4 is showing the correct values.
    But If I refresh the COL2 it doesn't change the value in row R4
    I have tried by setting IterartorBinding Refresh to always / ifneeded. Tried both declarative and Dynamically. There is no effect.
    Thanks,
    Satya

  • Data fetch without Refresh

    hi Friends,
    I have a problem i want to extract data from table without refresh into text field when i'll enter any value in a text field then corressponding value should come in to corressponding textfield.
    eg. when i enter emp_id 101 in a text field then the first_name and last_name ,adress should come in to corressponding text fields without refresh.
    How Can I do this.
    Thanks
    Manoj

    Hi,
    Firstly, you would find it easier not to use x.something in the tag names in your process (I'm not sure if they are allowed, but I would avoid the dots anyway!). So:
    DECLARE
    vCLASSID VARCHAR2(100);
    vSECTION VARCHAR2(100);
    vFNAME VARCHAR2(100);
    vLNAME VARCHAR2(100);
    BEGIN
    owa_util.mime_header('text/xml', FALSE );
    htp.p('Cache-Control: no-cache');
    htp.p('Pragma: no-cache');
    owa_util.http_header_close;
    SELECT C.CLASS_ID,C.SECTION,S.F_NAME INTO vCLASSID, vSECTION, vFNAME,vLNAME FROM CLASS_RECORD C INNER JOIN STUDENT_PERSONAL_DETAILS S ON
    C.STUDENT_ID = S.STUDENT_ID WHERE C.STUDENT_ID = :STUDENTID
    htp.prn('&lt;DATA&gt;');
    htp.prn('&lt;CLASS_ID VALUE="' || vCLASSID || '"&gt;&lt;/CLASS_ID&gt;');
    htp.prn('&lt;SECTION VALUE="' || vSECTION || '"&gt;&lt;/SECTION&gt;');
    htp.prn('&lt;F_NAME VALUE="' || vFNAME || '"&gt;&lt;/F_NAME&gt;');
    htp.prn('&lt;L_NAME VALUE="' || vLNAME || '"&gt;&lt;/L_NAME&gt;');
    EXCEPTION WHEN OTHERS THEN
    htp.prn('&lt;DATA&gt;');
    htp.prn('&lt;CLASS_ID VALUE="No such CLASS NAME!"&gt;&lt;/CLASS_ID&gt;');
    htp.prn('&lt;SECTION VALUE="No such SECTION!"&gt;&lt;/SECTION&gt;');
    htp.prn('&lt;F_NAME VALUE="No such First Name!"&gt;&lt;/F_NAME&gt;');
    htp.prn('&lt;L_NAME VALUE="No such First Name!"&gt;&lt;/L_NAME&gt;');
    htp.prn('&lt;/DATA&gt;');
    END;I've also completed the EXCEPTION output as well so that both possibilities use DATA and /DATA
    This does assume that you have an Application Item called STUDENTID and that your Application Process is called SCS and is an "On Demand" process
    Now, the javascript... Firstly, you can't include dots in the var names as this identifies a property or attribute or function of an item (for example, document.location.href). Secondly, you should use the same upper/lower case text for the XML tag names as you used in the process - if you stick with uppercase throughout it is easy to remember. So, I've removed the dots and made the XML tag references uppercase:
    &lt;script type="text/javascript"&gt;
    function getEmployeeInfo(filter)
      var xml = null;
      var get = new htmldb_Get(null, $v('pFlowId'), 'APPLICATION_PROCESS=SCS', 0);
      get.add('STUDENTID', filter.value);
      ret = get.get('XML');
      if(ret)
        var class_idItems = ret.getElementsByTagName("CLASS_ID");
        if (class_idItems)
          var class_id = document.getElementById("P314_CLASS_ID");
          class_id.value = class_idItems[0].getAttribute("VALUE");
        var sectionItems = ret.getElementsByTagName("SECTION");
        if (sectionItems)
          var section = document.getElementById("P314_SECTION");
          section.value = sectionItems[0].getAttribute("VALUE");
        var f_nameItems = ret.getElementsByTagName("F_NAME");
        if (f_nameItems)
          var f_name = document.getElementById("P314_STUDENT_NAME");
          f_name.value = f_nameItems[0].getAttribute("VALUE");
        var l_nameItems = ret.getElementsByTagName("L_NAME");
        if (l_nameItems)
          var l_name = document.getElementById("P314_STUDENT_NAME");
          l_name.value = l_nameItems[0].getAttribute("VALUE");
      get = null;
    &lt;/script&gt;If you try those, does it now work?
    Andy

  • Disabling validations if the first column is empty in an editable table

    Hi ,
    I'd want to disable validations if the first column in an editable table is empty - coz we'd assume that the user does not want to enter any data in the new row. How can this be done ?

    Hi Viren,
    It is correct that the first line for every Master Data is an empty row, if I am not wrong it derives from SEM settings.
    1.If you have some rows with 0CUST_SALES without any attribute it is because you are uploading this MAster Data with a source that does not consider compound objects: it is surely a Transactional DataSource (you do not upload Attributes). So for every Transactional record for which you do not upload also compound objects the system creates a record in your Master Data that is not correct.
    2. If you do not have Distr Channel update in Inventory Cube I think you must re-upload all your request starting from PSA. If you have deleted your PSA you can create a DataSource on your cube and feed once again your cube with its same data (built Update Rules that start from Cube and end in the same Cube). Make an upload of all your request and the delete all previous request.
    Ciao.
    Riccardo.

  • Unable to uncheck checkbox in UIX editable table

    It seams that in editable table is unable to uncheck checked checkbox. After submit checkbox is stays checked. To check it works fine. To uncheck it in imput form also works fine. Problem is only in editable table. version jdev10.1.2. Thank you. Jara

    this is the UIX code
    <switcher childName="${uix.current.Iid.inputValue == bindings.Iid.inputValue ? 'edit' : 'noEdit'}">
    <case name="edit">
    <checkBox model="${bindings.IsDefault}" readOnly="false"/>
    </case>
    <case name="noEdit">
    <checkBox model="${uix.current.IsDefault}" readOnly="true"/>
    </case>
    </switcher>

  • Help!! UIX Editable Table and RowID

    I Have UIX with Editable Table:
    <switcher childName="${uix.current.PatrRowID.inputValue == bindings.PatrRowID.inputValue ? 'selected' : 'notselected'}">
    <case name="selected">
    <textInput model="${bindings.PatrCode}" columns="10" readOnly="false"/>
    </case>
    <case name="notselected">
    <textInput model="${uix.current.PatrCode}" columns="10" readOnly="true"/>
    </case>
    </switcher>
    whenn i update colum , i have error
    ORA-00904: "PATR_ROW_ID"
    i have EO with RowID column..

    The new "Create" has also another issues - I am not able to use getCurrentRow in ViewObject. Workaround is to use old 40 behaviour but I think that such big change should be much more documented and because developer sometimes needs to use the 40 behaviour it should be shown in the DataControl. Any comments?

  • UIX Editable Table: Unselected Textinput Empty

    I created a editable Table like described in the How-To (I did this in Jdev 9.0.5.2). Now after Converting to 10.1.2 I had to add a new coloumn to the table.
    In this coloumn theres a choice on select and a readonly textinput on unselect.
    The choice works fine, but the Textinput is always empty.
    There are two bindings in the UI-model. one for the choice and one for the textinput.
    Has anybody got an idea?
    Thanks for your help,
    Sebastian

    The new "Create" has also another issues - I am not able to use getCurrentRow in ViewObject. Workaround is to use old 40 behaviour but I think that such big change should be much more documented and because developer sometimes needs to use the 40 behaviour it should be shown in the DataControl. Any comments?

  • Validate Planning form Drop Downs against combo edit tables

    I've got a requirement on the last 2 hyperion planning implementations to validate drop down menus on planning data forms against peoplesoft combo edit tables. Is there any possible way to do this without concatenating dimensions?
    For example if a user picks fund 5432 and in peoplesoft's combo edit table that fund only has 5 associated projects the project drop down should only show 5 projects out of 1000. The same exact validation would also apply to smartlists replicating dimensions in public sector planning and budgeting.
    Thanks in advance!
    Mark

    Don't expect any answers as to what Adobe is planning on doing. The people posting here are 99% users, just like you, not Adobe employees. And those who do know will probably not say so, anyway...
    1) That's possible using a script. But you can always add a single space as the default value...
    2) Also possible with a script, but very buggy and not recommended.
    3) Also possible with a script.
    4) That one's easy. Use a blank PDF file where you create those menus, and then you could simply copy them over to your other files from there.
    5) There are currently two date pickers available for Acrobat forms: The one by FormRouter and a newer one by Max Wyss, which is not free but is quite good and uses a dialog object instead of form fields.
    You can request new features here, by the way:
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • 1.5PROD/EA3/EA2 - Issues removing indexed column through Edit Table dialog

    The Edit Table dialog does not cope well with removing a column which is used in indexes.
    If you simply remove the column and hit OK, you get a Validation Failed error saying that "Column <column> is not a column of table <table>". Given that you are trying to remove the column, this is confusing.
    Most times, you can navigate to the indexes but the column no longer shows in the index which contained (and all other columns in the index appear to be removed as well). At least you can remove the index and then accept the change. However, some times (couldn't reproduce consistently), the index didn't display properly (no name displayed) and I couldn't leave the record without entering a dummy name before removing it.
    Shouldn't the behaviour be equivalent to the "corresponding" alter table drop column command which automatically drops the indexes referring to the dropped column? I know that it isn't always nice to "silently" remove an index or indexes, but couldn't we display a dialog that indicates which indexes we are going to drop to warn the user?
    theFurryOne

    No response to this, but it is still a problem in EA3.
    I assume it is not intended that you cannot drop an indexed column through the Edit Table dialog, without having to first drop the index - it is certainly not required in direct SQL and the Drop Column via the Table context menu works as well (as that simply generates the SQL).
    theFurryOne

  • Without refresh value in Check box

    hi,
    i have one select list class name .now i want the value into check box without refresh .
    when i select class name then corresponding subject name should come in to check box item.
    How can i do this.
    Thanks
    Manoj
    Edited by: Manoj Kaushik on Oct 11, 2009 3:45 AM

    hi,
    i have a select list class_name with value 1,2,3,4,5 .i have a subject table .
    CLASS_SUBJECT_DETAILS
    SUBJECT_CODE SUBJECT_NAME CLASS_NAME
    ENG ---------     ENGLISH------------------------     1     
    EORL-------     ENGLISH ORAL---------------     1     
    HIN---------     HINDI----------------------------     2     
    M.E----------     MORAL EDUCATION-----------     2     
    MAT---------     MATH-----------------------------     3     
    MAT---------     MATH-----------------------------     4     
    PED----------     PHYSICAL EDUCATION     --------4     
    SS------------     SOCIAL STUDY------------------     4     
    SCI-----------     SCIENCE---------------------------     4     
    PHY----------     PHYSICS--------------------------     6     
    CPRC---------CHEMISTRY PRECTICAL-------     7     
    ENG---------     ENGLISH--------------------------     8     
    HORL---------HINDI ORAL---------------------     1     
    HIN----------     HINDI------------------------------     6     
    ENG     ENGLISH----------------------------------     6     
    Now here when i select class_name '1' in select list then      subject name ENGLISH,ENGLISH ORAL,HINDI ORAL corresponding to class_name '1' should be come in to check box item.(without refresh)
    How can i do this.

  • Count the Records in  an internal table without a loop.

    How do i count the number of records in an internal table without using the loop  statement.
    The Describe statement give the total no. of records in the internal table.But i want the count of the key fields in the internal table
    For eg
    Row Field
    1       A
    2       A
    3       A
    4       B
    5       B
    6       C
    Count of A = 3
    Count of B = 2
    Count of C = 1

    Dilip,
      I think isn't posible. Only 3 ideas:
    1ª, make other table "table2", similar to your actual table.
         table2[] = yourtable[].
         delete table2 where key <> 'A'.
         describe table table2 lines contA.
        But depending the amount of data, you may have problems in performance or memory consumption...
    2ª, make other table, only with the keys fields and a count field,
        data begin table2
           key_field1,
           cont type i.
        end data.
       when you append lines to yourdata, make a collect to this table:
        table2-keys = yourtable-keys.
        table2-cont = 1.
       collect table2.
       But only works if you can modify the program where data is appended, and you may be carefull when data is deleted :-(...
    3ª if your data if filled in a select, you may fill the table2 of point 2ª, making a similar select but:
       select keyfields count( * ) into table table2
      from ...
      where (the same you have to fill your original table...)
       group by keys.
    But you have the same problem is data is deleted later...
    I hope that any of the three is useful for you...
    Edited by: Diego Alvarez on Jan 5, 2010 5:09 PM

  • Error: itab is a table without a header....

    Hi everybody,
    i get the following error after activation:
    "ITAB" is a table without a header line and therefore has no component called "NUM"..
    How can i solve this problem?
      TYPES: BEGIN OF i_itab,
               NUM TYPE I,
             END OF i_itab.
      DATA: itab TYPE TABLE OF i_tab.
      LOOP AT myTable INTO ls_mytable.
        itab-num = ls_mytable-nr.
        APPEND itab.
      ENDLOOP.
    regards,
    Sid
    Edited by: Sid on Jul 7, 2009 7:39 PM

    Sid wrote:>
    > Hi everybody,
    >
    > i get the following error after activation:
    >
    >  "ITAB" is a table without a header line and therefore has no component called "NUM"..
    >
    > How can i solve this problem?
    >
    >
    >   TYPES: BEGIN OF i_itab,
    >            NUM TYPE I,
    >          END OF i_itab.
    >         
    >   DATA: itab TYPE TABLE OF i_tab.

    >   LOOP AT myTable INTO ls_mytable.
    >
    >     itab-num = ls_mytable-nr.
    >     APPEND itab.
    >
    >   ENDLOOP.
    >
    Have a work area for the internal table itab. Code modified below :
       TYPES: BEGIN OF i_itab,
                NUM TYPE I,
              END OF i_itab.
       DATA: itab TYPE TABLE OF i_tab,
                  wa TYPE i_tab.
       LOOP AT myTable INTO ls_mytable.
         wa-num = ls_mytable-nr.
         APPEND wa to itab.
       ENDLOOP.
    Hope this helps.
    Regards,
    Anand Patil

Maybe you are looking for