How to keep values in text items.

Hi,
I have created a tabular form with report.out of this form Two items are converted to LOV'S(TEAM_LOV,TYPE_LOV) i.e TEAM_LOV for P4_TEAM item and TYPE_LOV for P4_TYPE item.
TEAM_LOV := select team d, team_id r from teams;
TYPE_LOV := select type d , type_id r from types where team_id=:P4_TEAM;
1. For P4_TEAM item is select list with redirect .
2. For P4_TYPE item is select list.
Problem:=
When i create a new record and enter new values in the text items above the P4_TEAM item and then selects the list of values from P4_TEAM then the values from the above text items gets clears . How to prevent the clearing the item values.
If i use select list with submit. then i have validation on two items so i gives validation errors.
Help !
Thanks,
Ramesh

Hi Ramesh,
I had the same problems and solved it with AJAX. then only the second list is updated and no submit or redirect is needed.
Otherwise you could set a condition for your validation, i.e. only if item is not null.
chrissy

Similar Messages

  • How can i back to Text Item ???

    i have TextItem
    . in Post_Item Trigger i am Checking the value in Text Item
    With Value in DataBase and Get Other Data Related by this value into another Text Item.
    if value not Found in dataBase how can i came back to Text_item to change the value .
    like text item contain code and return Name into another TextItem
    if code not found do not leave TextItem.

    First of all, do NOT do validation like that in a post-text-item trigger. You are needlessly running validation every time the user tabs through the field.
    You should be putting validation ONLY in a when-validate-item or when-validate-record trigger. They only run if the value has been changed.
    And any time you issue an error message, it must always be followed by RAISE FORM_TRIGGER_FAILURE;

  • How to get value from list item

    Hi all,
    How to get value from list item?
    I have a problem with the List Item object
    in the Oracle forms.
    How can I retrieve the selected item from
    a list ?
    I didn't find any function like 'list.GET_
    SELECTED_ITEM()'...
    thanks
    Bala

    Hello,
    You get the value as for any other Forms item:
    :value := :block.list_tem ;Francois

  • How to get Value of a item of first record when current record is second

    How to get Value of a item of first record when current record is second in Form6i ?
    get_item_instance_property dose not allow to get value.

    Gerd,
    You're right, there are several other triggers that must be coded, but I was responding to Steve's statement about Inserting or deleting records from the multi-record block. For the record, I use the following to manage a Record Group:
    * When-New-Block-Instance - Initialize the RG
    * block Post-Query - populate the RG
    * When-Create-Record - add new record to RG
    * When-Remove-Record - remove record from RG
    * block When-New-Item-Instance - capture previous value of the item or row
    * When-Validate-Item - Item specific Insert, Update, Delete of values in the RG
    There are a few other places as well, but these are the minimum. It might seem like a lot of code, but then again, I don't use this solution for every multi-line block. Like all tools, you use the right tool for the job. :-)
    Craig...

  • How can i highlight a text item

    hi to every body
    i am using oracle forms 6i and I have many of text item which includes numbers of different format such as 12345 ,12-3-456,1-2345-12-23
    as you know when the user doubleclick on the text item it will highlight the value .
    only for the values which is not include A '-' .
    my question is How can I highlight the values which is include '-' when A user doubleclick

    DEAR ALL,
    I have an date block and in that date block there the display items are dates in tabular forms there are many dates display when user double click on the current date or any date it show the data of that date in the next block. i want to create a (when button pressed) in my Control Block that when button press the current date color changed automatically so for that what should i wirte in when button pressed.
    Thanks for you cooperation
    Regards,
    Kamran J. Chaudhry
    Message was edited by:
    Kamran J. Chaudhry

  • How to retain value in LoV item in Tabular Form, after Page Refresh

    Hi,
    I have a tabular form, which contains 2 items(columns), of type "Select List - named LoV".
    Now, 2nd item(column) in tabular form, that LoV should get populated based on user's selection value in first item LoV.
    1. So how do I refer to the value, that user selected in first item's LoV? I will have to use this value as reference in LoV query of my 2nd item ( on this tabular form)
    2. Everytime I select value in first item LoV, page gets refreshed, as my requirement is to calculate 2nd item's LoV based on selected value in first item. So after this page refresh, first item LoV loses its value that was selected before the page refresh happened. So how do i retain this value in first item LoV? I have an unconditional process, that on every submit(refresh) of page, I set all my items with their corresponding values. But problem is what do i mention there to refer to this first item ( of type LoV) of tabular form?
    I looked in view source of my page, this item is referred as f03.
    So i used "apex_application.g_f03", to set this item to its value, in my uncoditional submit process. But it did not work. I tried to refer this item as "f03" in this unconditional submit process. But still it did not help, the selected item loses its value after page refresh(submit).
    Please help.
    Thanks and Regards,
    Ravi.

    Hi Rave,
    You will have to use Javascript and Ajax to change the values as ApEx submissions will lose your results unless they are saved into the database.
    Remember, that as you are using a tabular form there will be lots of items called f01, fo2, fo3 etc on the page (one per row).
    Regards
    Michael
    Edited by: MKii on Jun 4, 2009 10:13 AM

  • How to set value of application item using Java script.

    I have created a textbox on page 0, on chnage of textbox i want to set the value of application item.
    How to write the code to set & get value of application item.
    Thanks,
    -Amit

    Hello Amit
    This would be a great place to start...
    JavaScript
    Alternatively, APEX 4.0 will make this sort of task declarative.
    Kind regards
    Simon Gadd

  • How to supply values for searchCriteria items in af:query programmatically

    Hi,
    Is it possible to supply the default values for search criteria items in af:query programmatically? I didn't find any of the method to set the values for the search criteria items inside the oracle.adf.view.rich.model.Criterion and oracle.adf.view.rich.model.AttributeCriterion classes.
    Please let me know how can I supply DATE values by default for the search criteria items inside the view criteria.
    Thanks

    Jdev I am using is 1.5.
    I've search page where I've a date field (like TransactionDate). The transactionDate is a transient variable in my VO. Created a view criteria using this transient date filed and kept the operator as 'Between'. When I load the page, I want to keep the values for Between operator as 'CurrentDate' and 'CurrentDate - 365 days' (LastYearDate as of today).
    I can't use bind variables to set the currentDate and lastYearDate to the values of the 'Between' operator. If I use so, I will get an error 'Attempt to set a parameter that doesn't occur in the sql.....'.
    So I thought of overriding the QueryEvent inside the bean. But I didn't find a way to set the values for the TransactionDate programmatically.
    I tried below code in the queryEvent method, but in this case the response time is very hign ( I didn't see the result till 30mn).
    DCBindingContainer bc = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    ViewCriteria vc =
    JUSearchBindingCustomizer.getViewCriteria((DCBindingContainer)bc.findExecutableBinding("SupplierSearchCriteriaQuery"),"__ImplicitViewCriteria__");
    Date curretYearDate = null, lastYearDate = null;
    Calendar calendar = Calendar.getInstance();
    curretYearDate = calendar.getTime();
    calendar.add(Calendar.DAY_OF_YEAR, -365);
    lastYearDate =calendar.getTime();
    Object o = new Date();
    ViewCriteriaRow vcr = (ViewCriteriaRow)vc.get(0);
    for(int i=0;i<vcr.getAttributeNames().length;i++) {
    if(vcr.getAttributeNames() == "LastTransactionDate") {
    System.out.println("====================== opeartor ================== " + vcr.getOperator("LastTransactionDate"));
    if( ("%".equals(vcr.getAttributeValues()[i]) || vcr.getAttributeValues()[i]==null)) {
    List nameList = new ArrayList();
    nameList.add("LastTransactionDate");
    List valueList = new ArrayList();
    valueList.add(lastYearDate);
    valueList.add(curretYearDate);
    vcr.setAttributeValues(nameList, valueList);
    vc.addRow(vcr);
    JUSearchBindingCustomizer.applyAndExecuteViewCriteria(bc, vc);
    Thanks,
    Lakshman

  • How to change value of an item through another item???

    Hello guys,
    I have couple of items in my form page, now depending on one item, I wanna change(from disable to enable or vice versa) the values of all other items in that form....
    I thnk for this javascript is required...... but i new bee so if anybody can help me out with these.........
    how to do that????? does anybody has good example or any link.....
    plz help me with this issue.......... appreciated
    thxs
    regards,
    gk

    hi folks,
    I am trying the same but still didnt found any sucess..... my scenario is like this:-
    I have one radio button(P1_DETAILS_YN) and another as text box(P1_NAME), I have written below code under HTML Header(Edit page attribute)
    <script language="javascript">
    function checkSelect('P1_DETAILS_YN', 'P1_NAME')
    if (document.getElementById('P1_DETAILS_YN').value=='Y')
    {document.getElementById('P1_NAME').disable=true;}
    else
    {document.getElementById('P1_NAME').disable=false;}
    </script>
    and following under HTML Form Elements Attributes of P1_DETAILS_YN as:-
    onchange="checkSelect(this.value, html_GetElement('P1_NAME))"
    other than this do I miss anything else guys................ if so than let me know ASAP
    thxs
    regards,
    gk

  • How to populate values in Apex item

    Hi,
    I am using apex collection item to capture data my requirement is to calculate data using the apex item
    This requirement is like this. I am using a SQL query like this
    select
    wwv_flow_item.TEXT(1,NULL,20,10) "A",
    wwv_flow_item.TEXT(2,NULL,20,10) "B",
    wwv_flow_item.TEXT(4,NULL,20,10) "C"
    from dual
    There 3 text boxes are generated in the window when i enter 3 in A and 2 in B it must give me a sum value in C as 5
    this has to be done dynamicall as end user key in values this can be done using java script or any other method please suggest
    Thanks
    Sudhir.

    Hello Sudhir,
    >> If there are multiple text box …
    If there are multiple text boxes, you need to allocate each a unique ID. The easiest is to use the substitution string #ROWNUM#. The code should look similar to the following:
    select empno,
    apex_item.TEXT(1,null,20,10,'onchange="addItems(this);"','A'||'#ROWNUM#') "A",
    apex_item.TEXT(2,null,20,10,'onchange="addItems(this);"','B'||'#ROWNUM#') "B",
    apex_item.TEXT(3,null,20,10,'onchange="addItems(this);"','C'||'#ROWNUM#') "C"
    from empBecause we are in a multi-row environment, we need to pass the line number we are on, into the JavaScript function, hence the use of ‘this’.
    In the JavaScript function, we first need to determine the line number we are on, and then use it to perform the calculation. The code can look similar to the following:
    <script type="text/javascript">
    function addItems(pThis) {
      /* extract rownum */
      var line_no = pThis.id.substr(1);
      $x('C'+line_no).value = parseInt($v('A'+line_no)) + parseInt($v('B'+line_no));
    </script>Regards,
    Arie.
    Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.

  • How to display value of an item based on another item

    Hi,
    In a page I've to display name for the corresponding id displayed in id item.Can I write a query based on id and display name as soon as I enter into that item.if so are there any properties I need to set ?I'm looking for just post_text_item functionality in forms?
    Thanks,
    Mahender

    Hi,
    I've created sample table with id,first_name and last_name to test:
    I've created AJAX script in application process area with name GET_NAME
    declare
    v_name varchar2(150);
    begin
    select first_name||'-'||last_name into v_name from names
    where id = :P53_id;
    htp.prn(v_name);
    exception when others then htp.prn('An error occurred retrieving name'||sqlerrm);
    end;
    CREATED JAVA SCRIPT IN html headers section of the page p53:
    <script type="text/javascript">
    function get_name(){
    var id = document.getElementById('P53_id').value;
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value, 'APPLICATION_PROCESS=GET_NAME’,0);
    get.add('P53_id',id);
    var gReturn = get.get();
    document.getElementById('P53_name').value = gReturn;
    </script>
    put the following in HTML Form Element Attributes of p53_id :
    onchange="get_name(this,'P53_id)"
    It's not working ?
    Can anyone help
    Thanks
    Edited by: user518071 on Aug 14, 2009 8:14 AM
    Edited by: user518071 on Aug 14, 2009 11:04 AM
    Edited by: user518071 on Aug 15, 2009 5:02 AM

  • How to Set Value of page item?

    String dimLayoutNew[][] = new String[3][];
    dimLayoutNew[0] = new String[1];
    dimLayoutNew[1] = new String[1];
    dimLayoutNew[2] = new String[2];
    dimLayoutNew[0][0] = measureString;
    dimLayoutNew[1][0] = strDimension1;
    dimLayoutNew[2][0] = strDimension2;
    dimLayoutNew[2][1] = strDimension3;
    Boolean applyNewLayoutFlag = tableQuery.layout(dimLayoutNew);
    In this Layout,How to set the value of strDimension2 page item to one member of strDimension2?
    thanks!

    what about this - look up the javadoc to get more >info ....You would have to admit, while BI Beans are great, the documentation is a little light.
    int targetHPos[] = targetDataAccess.getEdgeCurrentHPos (2);
    now apply the order to the targethpos as you like...now, once you make your changes to the targetHPos, how does one actually make the change to the Query object (i.e. what method does one need to call to pass the new targetHPos in??) I looked through the JavaDoc and didn't see a SetCurrentHPos or equivalent function in the DataAccess Class. Is there one?
    Also, what role, if any, should the SetCurrentPage method of the query object play if I'm not using it correctly?

  • How to add a new text item in PO items' Item Texts

    Dear All,
    In IDES a standard PO, there are 5 items texts under Items of PO:
    Item text, info record PO text, Material PO text, Delivery Text ,info record note.
    Here we got a requiremnt, it need adds a new item as abvoce.
    How can it be done?
    Any configuration guide?
    Thank you in adv.
    Regards,
    James

    Check at this node
    SPRO: MM > Purchasing > Purchase order > Texts for Purchase orders > Define Text types for Item Texts
    this is for ECC 6.0 , In IDES it may differ

  • How to keep track of text messages?

    I am on a plan where I can send upto 125 text messages through my phone. I had a Razr before and it used to keep track of the messages I had sent (a folder called 'Outbox'). I can't seem to find anything like that on the iPhone. I want to know how many messages I have sent so I don't pass the limit. Does anyone know if the iPhone can do something like that or if there are any applications that will allow me to do so?
    Thanks,
    maadaputtar

    Well it can be done with O2 in the UK so I would hazard a guess that it would be possible with Rogers in Canada also. Try logging into your account on their web site and see.

  • How to detect value change of item?

    Hi all,
    We want to list all goods that customer chooses, so TileList is used to display all goods information and a custom component MyItem is used as ItemRenderer. Meanwhile a Label is used to display the sum of all the goods. The hierarchy is simply like this:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"  layout="absolute" >
    <mx:TileList id="tl" dataProvider="{acGoods}" ItemRenderer="MyItem"/>
    <mx:Label id="labelSum"/>
    </mx:Application>
    Here, acGoods is an ArrayCollection which I believe is bindable.
    User may change price inside MyItem directly, so the text of the Label need to update as well. I find that acGoods contains latest price. Now the problem is Label text stays the same. I have tried to call calculating function in set acGoods() but it doesn't work.
    Please don't sugguest dispatch event because this is only a simplified scenario. If anybody tell me how to implement this by binding mechaism, that'll be very helpful.
    Best wishes,

    protected function get totalLabelText():string {
        // for each var i:* in acGoods and so on
        return 'Calculated label here';
    <mx:Label id="labelSum" text="{totalLabelText}"/>
    Inside MyItem:
    once you changed something invoke:
    Application.application.executeBindings(true);
    Hope this will work for you

Maybe you are looking for

  • O ipad fica com a imagem do cabo e do itunes, é normal que ele ligue durante  restauração do iPad?

    desliguei meu iPad e liguei ele em modo de recuperação, é normal que aquela imagem do cabo com a do iTunes sair e ele voltar a tela inicil, aquela de botar a senha?

  • Edge Animate CC 2014 Update (2014.0.1) live now

    Congratulations All!! The new update for Edge Animate CC 2014(2014.0.1) is now available on Creative Cloud. The following issues have been addressed : Resolved compatibility issues with Chrome 36 Fixed crash when publishing static HTML when the compo

  • How can I edit the compatibility list? (iecompatdata.xml)

    Compatible header field sent by the proxy/load balancer. The admins are unable to change it, but it breaks the site. If I open the development tools, I can manually change the document mode to IE 10 and it works.  I believe that if the site were incl

  • JavaScript error:Timeout

    Hello, I am calculating the value for the barcode (3 of 9) using JavaScript to generate a non-interactive PDF. On the Adobe Sever (ES LC 8.2), after running for 5 hours, I am experiencing script timeout error while calculating the barcode on the firs

  • NT Security Realm Question

    Hi, I an trying to set up WL 6.0 to use an NT Realm for authentication. My question is how do you find or determine the class name of the Windows NT Security realm that is to be supplied in the Basic Realm field? thanks Mike Horn