11 Replies Latest reply: Jun 27, 2014 1:18 PM by Kayal RSS

    clear button

    Kayal

      Hi all

       

      I am using apex 4.

      Please let me know a way to clear the shuttle after the report generation through a button click.

       

      Thanks

      Kayal

        • 1. Re: clear button
          jwellsnh

          Hi Kayal,

           

          Is the report dependent on the contents of the shuttle?  Is there more detail that you can share on how the screen operates?

           

          Jeff

          • 2. Re: clear button
            Sunil Bhatia

            Kayal wrote:

             

            Please let me know a way to clear the shuttle after the report generation through a button click.

             

            On click of button, create a PL SQL page process, and provide the code:

             

            :ur_shuttleitem_id := null;

             

            -- Sunil Bhatia

            • 3. Re: clear button
              Kayal

              Hi

               

              I have a select list and the shuttle gets populated according to the select list value.

               

              For the first time everything is perfect. When I select the item from the select list and click the button, I have the right hand side of the shuttle still being populated with the perviously selected item from the select list.

               

              I want to clear the content which is on the right side of the shuttle or to hide the shuttle with clearing the content. I am using 2 buttons (one to run and another to clear).

               

              And also have tried with creating a process assigning null to the shuttle, but its not working.

               

              Thanks

              Kayal

              • 4. Re: clear button
                Kayal

                Hi sunil

                 

                I have tried with the null for the shuttle, but its not working still

                 

                Thanks

                Kayal

                • 5. Re: clear button
                  xarg-Xrc

                  Have you tried using apex.item(pNd).setValue() method?

                   

                  apex.Item("P5_SHUTTLE").setValue("");

                   

                  JavaScript APIs

                  • 6. Re: clear button
                    Kayal

                    yes...I tried that too..its not working

                    • 7. Re: clear button
                      jwellsnh

                      Hi Kayal,

                       

                      Please consider constructing a sample of what you are trying to accomplish in your own workspace.

                       

                      In the interim, I have a demo.  Does it behave in the fashion that you are looking for?

                       

                      https://apex.oracle.com/pls/otn/f?p=51019:1

                       

                      Jeff

                      • 8. Re: clear button
                        Kayal

                        Hi Jeff

                         

                        Its the same function I need to perform on the shuttle with hiding of region.

                         

                        But clearing the shuttle is the same as I expected.

                         

                        I tried with javascript also but its not working for me.

                         

                        Thanks

                        Kayal

                        • 9. Re: clear button
                          jwellsnh

                          Kayal,

                           

                          Not sure why you marked the thread as Correct.

                           

                          I am clearing the Shuttle Item via a simple Page Process of:

                          Clear Cache for Items (ITEM,ITEM,ITEM) on Submit


                          Jeff

                          • 10. Re: clear button
                            jwellsnh

                            Please place an example of what you are trying to do up on apex.oracle.com.  That way I or others can troubleshoot your issue further.

                             

                            If you choose to do so; create a developer account and reply back with:

                            1. Workspace name
                            2. Username
                            3. Password

                            I am headed out the door; someone else should be able to help you out or I will look at it later on if time allows.

                             

                            Jeff

                            • 11. Re: clear button
                              Kayal

                              Hi Jeff

                               

                              I just marked it, because it was the one part I was trying to perform in my page.

                               

                              Thanks

                              Kayal