7 Replies Latest reply: Mar 27, 2014 7:28 AM by Salai Kumar RSS

    Value is clean if i select value from select list .

    Vedant

      Dear Friend,

       

      i am using Apex 3.2 ver.I created 7 ITEM FIELD on page sequesnce are as below

       

      TEXT FIELD 1

      TEXT FIELD 2

      TEXT FIELD 3

      SELECT LIST 1

      SELECT LIST 2

      SELECT LIST 3

      SELECT LIST 4

       

      When i have enter in these below item with values

      TEXT FIELD 1 = Manoj

      TEXT FIELD 2 = Kaushik

      TEXT FIELD 3 = 27676

      SELECT LIST 1 = Delhi

      SELECT LIST 2 = A  (Type = Select list with Redirect)

      SELECT LIST 3 = Vendor Name (After select from select list 2 then filtered vendor comes into select list 3)

       

      Plroblem is when i select value from SELECT LIST 2 then upper first 4 item are clean  there is no value into upper item of SELECT LIST 2.

       

      i don't wnat to clean first 4 item when i select value from SELECT LIST 2.

       

      How to resticted.

       

       

      Thansk

        • 1. Re: Value is clean if i select value from select list .
          jariola

          Hi,

           

          You need submit page to store items value to session state.

           

          Regards,

          Jari

          • 2. Re: Value is clean if i select value from select list .
            Salai Kumar

            Hi Vedant,

                           Why not you go with cascading select on "Select List 3" on selecting a value from "Select List 2" .This will avoid page submission or re-submission which results all the text fields will retain its value.

             

            Salai Kumar

            • 3. Re: Value is clean if i select value from select list .
              Vedant

              Dear Salai,

               

              i can use cascade for select list but i need value in to select list and text filed when i select value from SELECT LIST 2.

              i don't have process how to extract value in to select list and text field if i select value from select list.

              If you have any idea or process then please share with me.

               

               

              Thanks

              • 4. Re: Value is clean if i select value from select list .
                Salai Kumar

                Better you can create one dynamic action which will execute on "select list 2" change .Inside dynamic action you can use your text field 1,2,3 ,4 and select list 1 values and set the final resultant value to "select list 3".

                 

                Salai Kumar

                • 5. Re: Value is clean if i select value from select list .
                  Vedant

                  Dear Salai,

                   

                  I am using Apex 3.2 there is no option to create dynamic action.

                   

                  How to resolve it into Apex 3.2.

                  • 6. Re: Value is clean if i select value from select list .
                    Irha10

                    Hi, Try as follows.

                     

                    use source for all the above items as (source used (only when current value in session state is null))

                    then use - Cascading LOV Parent Item(s) for List3 (P_number_list2)
                    and add condtion within list of values as follows

                    e.d   id = :p(number)_list2

                    it should Work, I assumed.

                    Thanks

                    RI

                    • 7. Re: Value is clean if i select value from select list .
                      Salai Kumar

                      Hi Vendant,

                                          You need to include below js code in HTML page header. Below is the code you can refer it

                       

                       

                      function cascadeSubsite(){

                      cascadeLOV('P2_SELECTPAGEITEM','P3_SELECTPAGEITEM', 'applicationprocessname');

                      //you need to pass remaining page item

                       

                      }

                      function cascadeLOV(pLov1 , pLov2 , pProcess){

                        $x(pLov2).innerHTML=null;

                       

                       

                        $.ajax({

                           url : 'wwv_flow.show',

                           dataType : 'text' ,

                           data: {

                               p_flow_id:$('#pFlowId').val(),

                               p_flow_step_id:$('#pFlowStepId').val(),

                               p_instance:$('#pInstance').val(),

                               p_request:'APPLICATION_PROCESS='+ pProcess,

                               x01 : $v(pLov1)

                           },

                           success : function( data ) {

                                 $('#'+ pLov2).append(data);

                                      },

                           beforeSend : function(){

                              $x_Show('apexir_LOADER');

                           },

                                complete : function(){

                              $x_Hide('apexir_LOADER');

                           }

                       

                       

                        });

                      }.

                       

                      You need to call this function in your second select statement in HTML form attributes using onchange="cascadeSubsite();" and you have to create a application process ('applicationprocessname' in my code) which will get all three text field value and two select statement and resultant value will be set to third select statement.

                       

                      Thanks,

                      Salai Kumar