Send a Page having the SHUTTLE point

Hello

I have an element of type - SHUTTLE, this train to suppose that 1,000 records.
When I submit the page containing the type of SHUTTLE, all records of 1000 are parade first before submitting the page, I mean the control goes from top to bottom for this element.

This is the default function of APEX?.

Thank you
Deepak

Deepak:

The function will delete all items in the item of the shuttle and submit the page.

CITY

Tags: Database

Similar Questions

  • How can I force a send this page if the user presses a tab?

    This may be obvious buy I start everything just with the APEX then maybe someone can tell me...
    How can I force a send this page if the user presses a tab and they go to another page before I run the backup of page variables?
    Thank you!!!
    C

    Hello

    If you use version 4.x Apex while you can create a dynamic action for this.

    * If this answer is useful or appropriate then please mark and award points.

  • Save the shuttle point

    Hello

    I am trying to record the content of an element of the shuttle. I m using a "Save"-button that triggers a process (PL/SQL anonymous block). "."

    The content of the element of the shuttle should be stored in a table.

    The point of shuttle from filling with a calculation of work. Store new items that have been enjoy on the left side to the right side works just as well.

    Unfortunately I m not able to delete an existing element on the right side.

    If I remove an item from the right to the left and click on the button "Save", I get the error "ORA-01722: invalid number". "."

    I m using the following PL/SQL block:

    DECLARE
      v_count        NUMBER  := 0;
      v_shuttle_ids  VARCHAR2(1000);
      v_shuttle      APEX_APPLICATION_GLOBAL.VC_ARR2;
    BEGIN
      v_shuttle := APEX_UTIL.STRING_TO_TABLE(:P47_PFLANZLICHE_HERKUNFT);
    
      FOR i in 1 .. v_shuttle.count LOOP
        SELECT COUNT(*) INTO v_count FROM rjm.material_objekte WHERE objekte_id = :P47_OBJEKTE_ID AND material_id = v_shuttle(i);
    
        IF v_count = 0 THEN
          INSERT INTO rjm.material_objekte (objekte_id, material_id) VALUES (:P47_OBJEKTE_ID, v_shuttle(i));
        END IF;
    
        v_shuttle_ids := v_shuttle_ids || v_shuttle(i) || ',';
      END LOOP;
       
      v_shuttle_ids := SUBSTR(v_shuttle_ids, 0, LENGTH(v_shuttle_ids) - 1);
    
      DELETE FROM rjm.material_objekte WHERE objekte_id = :P47_OBJEKTE_ID AND material_id NOT IN (v_shuttle_ids);
    END;
    

    The Delete statement fails because the data types are not compatible. The variable v_shuttle_ids is the VARCHAR2 data type and the database column material_id has the NUMBER data type.

    Anyone has a solution to the problem (for example, casting data types) or has a better way to remove existing items from the shuttle point?

    Thank you in advance,

    Patrick

    If I understand the problem, your code should look like this:

    DECLARE
      v_count        NUMBER  := 0;
      v_shuttle_ids  NUMBER_TT;
      v_shuttle      APEX_APPLICATION_GLOBAL.VC_ARR2;
    BEGIN
      v_shuttle_ids := NUMBER_TT();
      v_shuttle := APEX_UTIL.STRING_TO_TABLE(:P47_PFLANZLICHE_HERKUNFT);
      FOR i IN 1 .. v_shuttle.count LOOP
        SELECT COUNT(*) INTO v_count FROM rjm.material_objekte WHERE objekte_id = :P47_OBJEKTE_ID AND material_id = v_shuttle(i);
        IF v_count = 0 THEN
          INSERT INTO rjm.material_objekte (objekte_id, material_id) VALUES (:P47_OBJEKTE_ID, v_shuttle(i));
        END IF;
        v_shuttle_ids.extend();
        v_shuttle_ids(v_shuttle_ids.last) := v_shuttle(i);
      END LOOP;
      DELETE FROM rjm.material_objekte WHERE objekte_id = :P47_OBJEKTE_ID AND material_id NOT IN (SELECT column_value FROM TABLE(v_shuttle_ids));
    END;
    
  • send a page via the tabs

    It is not the case that by clicking on a tab shall submit the current page, using the name of the tab as the demand? I have to work some of the time, but not always. In particular, it seems to work if the execution point is "on the presentation before the calculation", but not when the point of performance is "after the submission.

    Here's what I did: I created a new application with two pages, each of which has a tab Page 2 has nothing in it. Page 1 has an element, a button, and two processes of PL/SQL. Process 1 is unconditional and sets the item at 10. Process 2 is conditional to the tab named 'T_PAGE2' and increment point 5.

    If the two processes running "on the presentation before the calculation" then everything works fine:
    -If I click on the button, then the element is 10, indicating that only deal with 1.
    -If I click on the page 2 tab, then the item is 15, which indicates that the two processes have benefited.

    Now suppose I have change them so that the processes running "after submit. Then the button still works, but the tab does not work:
    -If I click on the button, then the element is 10, as it should.
    -If I reset the value of the element to 0 and click the page 2 tab, then the element does not change, indicating that no shot process.

    Note that I have not calculations and validations in my application. My only conclusion is that when you submit via a tab, there is a sort of internal validation occurring which keeps firing processes. Can someone explain this to me?

    Ed Sciore
    Boston College

    Hi Ed,

    It's actually very simple see what happens for yourself. Run your application in debug mode, then check the debug report of the page that you clicked on the tab. You will see something like this
    >
    General direction of the point: front of calculation
    Point calculation: after the presents
    Etichette: Make the connection for the tab applications
    >

    In other words, Apex knows it is a tab application and performs calculations of before branching out.

    Does not explain what you see?

    See you soon,.

  • change the position of the region in the middle of the page / create the new Point of view from the region

    I have used apex 4.1, 10.3 oracle database, theme 21 (scarlet) window7

    I want to change any position the region to appear in the middle of the page and I have tray every thing to do and no results

    I change REGION_ATTRIBUTES to be: style = vertical-align: middle
    and I add in the header of the region {< div style = "vertical-align: middle" > < / div > ""} and no results and the region do not move in the middle of the page


    My question is
    1 a way to make the region in middle of page other

    2. How can create the new Point of display area as (region Position2, Page (1) template body) with the middle position


    Thank you

    Published by: Ahmed Farouk on April 15, 2012 11:01

    Published by: Ahmed Farouk on April 15, 2012 11:01

    Hello

    No need to give ' style = vertical-align: middle ", replace it with this: nowrap ="nowrap"align ="center ".

    see if it works.

    and for the second, you can copy the existing model definition: model, in the table tag you can see #REGION_ATTRIBUTES #, simply add align = 'center' after this

    and apply this model in your area.

    Thank you
    Tauceef

  • Running jspx page having the ADF DVT inside bar chart

    In Jdev, I am able to create a page jspx with ADF DVT associated histogram in it, also a bean of support and is successfully able to run the jspx page.

    Now, I'll have my web application (no ADF in service) running on WLS. I want to deploy a graphic page jspx with ADF DVT bar inside the server where my web application is running. What are the steps, configurations and libraries that I need to make it work?

    Any document relating to this will be very useful.

    http://radalcove.com/blog/?p=48
    or
    http://download.Oracle.com/docs/CD/E15523_01/Web.1111/b31974/deployment_topics.htm#CHDJJDDG

  • Refresh only the left side of the cascade point shuttle LOV

    Hello

    I want to fill the shuttle point dynamically using selection LOV cascading list. but when I change to another value left and right gets refreshed.

    but I want to refresh only the left side, right must be the same.

    I want to achieve something like that

    http://Apex.Oracle.com/pls/Apex/f?p=579:56

    I want to achieve this by using Refresh before and after updating dynamic action.
    Is this possible?

    pls help me with this. Its very urgent.

    879090 wrote:

    If you are on 4.x just used the cascade LOV Parent article (s) in the element of the shuttle

    Yes use v 4.X .and uses the parent LOV cascading item. My problem is that I want to change the elements of lov parent and cascading using different values.

    Let's say my lov elements parent has deptno 10,20,30.

    Wen I select dept 10 it should display all the emp to 10 dept. and I wil select some employees from that. then I will select dept 20 then it will show all employees of dept 20 and I will select a few PMCs from that.

    But now the prob is wen I don't change the dept No 20 of 10, the right side of the shuttle point with details emp dept 10 has disappeared. but I want that values must be ter, and should be updated by the left side.

    check out the link that I have attached in the first post. I want to achieve the same thing like that.

    Well, I looked at link above and even recreated in my demo application and added the section how it, just follow the steps

    http://Apex.Oracle.com/pls/Apex/f?p=46417:22

    Test/test connection

  • Shuttle point - save the changes

    The shuttle point integrated is a good way to view and edit data to multiple values. If the data comes from a single line and column (delimited), using the internal order process line Fetch and automatic DML to read/write, it work well.

    But what happens if the data from multiple lines in a source table? Say 10 lines are selected (right hand of shuttle) off a 50 LOV. The Source of the element of the shuttle has just the query to retrieve the 10 lines and the APEX engine automatically converts multiple values into 1 delimited value required by the shuttle.

    But when it comes to saving the changes in the shuttle, there is no easy way to identify what has changed. Say I deselect the option 1 and select 2 new items in the left side of the shuttle. Value of the element in the session state is delimited by colon 1 string containing the currently selected values. How this translates into the ELIMINATION of 1 and 2 INSERTs necessary against the base table?

    I can think of to save the front-subimit value in a hidden element, comparing it to the value of after-submit and stuff like that, but that seems a lot of work. What this kind of thing done effectively?

    Thank you

    HELEN wrote:

    But when it comes to saving the changes in the shuttle, there is no easy way to identify what has changed. Say I deselect the option 1 and select 2 new items in the left side of the shuttle. Value of the element in the session state is delimited by colon 1 string containing the currently selected values. How this translates into the ELIMINATION of 1 and 2 INSERTs necessary against the base table?

    I can think of to save the front-subimit value in a hidden element, comparing it to the value of after-submit and stuff like that, but that seems a lot of work. What this kind of thing done effectively?

    As the table changed with the values of the shuttle contains one column other than the PK and the shuttle update column, this can all be handled with reusable one DML MERGE statement and a utility function:

    begin
    
      merge into shuttled_states ss
      using (
      /*
        The merge source requires a set of matched pairs: the selected shuttle values
        against the corresponding values in relevant DB rows, for example:
    
        shuttle_st  db_st
        ----------  -----
        X           X       -- X is in both shuttle selection and DB rowset
                    Y       -- Y is not in the shuttle selection but is in DB rowset
        Z                   -- Z is in the shuttle selection but not DB rowset
    
        We therefore need to leave the X row in the DB unchanged, delete the Y row,
        and insert the Z row.
    
        This query should also contain other columns and values required in matching
        rows in the merge, or in inserted rows.
      */
        select
            shuttle.column_value shuttle_st
          , db.st db_st
        from
            table(string_to_coll(:p37_states)) shuttle
              full outer join shuttled_states db
                on shuttle.column_value = db.st) t
      /*
        Match conditions normally include matching PK and/or other values to get the
        relevant DB rowset, but the main requirement here is a predicate that matches
        using the DB value column from the shuttle/DB rowset pair.
      */
      on (ss.st = t.db_st)
      when matched
      then
      /*
        This is where the restriction applies. Although we don't actually want to
        update any matched rows as they are unaffected by the shuttle selection, the
        MERGE can only delete rows that have been updated. However we can't update
        any of the columns used in the match, so there needs to be at least one
        column available that can be set to the same value to mark the row as
        updated...
      */
        update
        set
            ss.state_name = ss.state_name
      /*
        ...which makes it possible to delete rows that are not selected in the shuttle.
      */
        delete
        where
            t.shuttle_st is null
      /*
        Where there's no match the value is newly selected in the shuttle and is
        inserted as a new row.
    
        (Other values required should be included in the query, or handled in a
        trigger.)
      */
      when not matched
      then
        insert
          (st)
        values
          (t.shuttle_st);
    
    end;
    

    This method uses to transform the selected values shuttle of a string delimited by two points in a set of SQL. The function provided by Oracle apex_util.string_to_table returns a PL/SQL associative array that is not appropriate for this. If it is possible to convert a string into lines purely using SQL, these methods are rather obscure and only can be reused by cutting-and-pasting. A simple function that returns a collection of standard SQL type can be used as a set of rows in a query through the SQL TABLE operator and is highly reusable:

    create or replace function string_to_coll (p_string in VARCHAR2) return sys.ODCIVarchar2List
    is
    
      l_table apex_application_global.vc_arr2;
      l_list  sys.ODCIVarchar2List := new sys.ODCIVarchar2List();
    
    begin
    
      l_table := apex_util.string_to_table(p_string);
    
      l_list.extend(l_table.count());
    
      for i in 1..l_table.count()
      loop
        l_list(i) := l_table(i);
      end loop;
    
      return l_list;
    
    end;
    

    For purposes of demonstration, this one uses the predefined sys . ODCIVarchar2List collection type. In real life, you would create your own, and of course the function would be in a package, not stand-alone.

  • Creation of Validation for the multiple selection list or shuttle point

    Hello
    I'm new to APEX and have questions about the best way to validate the selected shuttle items to verify that they exist in the sys.dba_roles table before submitting. The shuttle point uses a static LOV. I would like to than the error message to display when there is no such thing as a role selected in the element of the shuttle in the sys.dba_roles table.

    Using version 3.2 of APEX
    DB version 9.2.0.8.0
    Internet Explorer version 6

    I tried to create a validation step level about to shuttle P3_ROLE using SQL EXISTS when you press the button SUBMIT. I know that when argued that the shuttle point returns the selected values in a single string delimited by a colon. I use the APEX_UTIL. STRING_TO_TABLE to convert values selected in a table.

    CODE HERE
    declare
    l_selected APEX_APPLICATION_GLOBAL. VC_ARR2;
    number of l_num;
    Start
    l_selected: = APEX_UTIL. STRING_TO_TABLE(:P3_ROLE);
    BECAUSE me IN 1.l_selected. COUNTY
    LOOP
    Select 1 from l_num of sys.dba_roles where role = l_selected (i);
    END LOOP;
    end;

    This is the error ORA-00928: lack of SELECT keyword
    1006 - ERR error in the validation routine.

    Any advice? Thoughts? Thank you.

    Published by: Violet on Oct 14, 2010 14:50

    Hello

    Your code is PL/SQL block. You cannot use this type of validation with your code.

    Try to change the body type of the function that returns the error text and
    code for this one

    DECLARE
      l_selected APEX_APPLICATION_GLOBAL.VC_ARR2;
      l_num NUMBER;
    BEGIN
      l_selected := APEX_UTIL.STRING_TO_TABLE(:P3_ROLE);
      FOR iIN 1..l_selected.COUNT
      LOOP
        SELECT count(1) INTO l_num FROM sys.dba_roles WHERE role = l_selected(i);
        IF l_num = 0 THEN
          RETURN 'Role not exists';
        END IF;
      END LOOP;
      RETURN NULL;
    END;
    

    Kind regards
    Jari

  • Cannot insert rows in a table db to an element of the shuttle

    I'm a little puzzled. I created a shuttle element called P18_SELECTED_RESOURCES with the following LOV:
    SELECT sed.domain||'.'||
           sed.target||'.'||
           sed.skill||'/'||
           sed.skill_prof||'  '||
           r.first_name||' '||
           r.last_name "d",
           r.rsrc_id "r"
    FROM   ri_resource r, ri_skill_supply_eq_demand sed
    WHERE  r.rsrc_id = sed.rsrc_id
    AND    sed.work_id = :P18_WORK_ID
    It works properly and displays the correct data for: P18_WORK_ID.

    Then I created a page called SAVE_SHUTTLE_SELECTION triggered by button process called Submit with an action to submit the page. The button is located in the same region of the point of the shuttle. It looks like this:
    declare
    
     r_selected APEX_APPLICATION_GLOBAL.VC_ARR2;
    
    begin
    
     -- Convert the colon separated string from the shuttle into the array
     
     r_selected := APEX_UTIL.STRING_TO_TABLE(:P18_SELECTED_RESOURCES);
    
     -- the array should now contain rsrc_ids from the shuttle LOV
    
     -- Now insert those rsrc_ids into the RI_WORK_ASSIGNMENT table with the work_id from P18_WORK_ID
     FOR i IN 1..r_selected.count LOOP
        insert into RI_WORK_ASSIGNMENT (RSRC_ID, WORK_ID)
        values (r_selected(i), :P18_WORK_ID);
     END LOOP;
    
    end;
    The code executes and returns a success message, but no data is inserted into the table. The shuttle point and P18_WORK_ID are in different regions, but they are on the same page. I even tried to put a *' "commit"; * After the END of LOOP;. I didn't know who would do anything. There can be no. I use APEX 4.1.

    Thanks for any help.

    Hello people of the sea,

    I checked your code and the same replicated on my instance.it works fine.
    I thought that you didn't want seleceted any value from the left pane of the shuttle.

    so first change the value in the left pane to the right pane of the point of the shuttle, then click on submit .it definitely works.

    Kind regards
    Jitendra

  • APEX_UTIL. STRING_TO_TABLE trying to separate items of the shuttle. . Not to collect data

    I use the below code and I don't receive the no found error of data.
    I use this code to separate the content from the shuttle point... and put it in a text field.
    But I sometimes randomly recive the no data found error...
    No idea why it should happen... I don't know why this piece of code will trigger the when_no_data found the error.
    Any info will be appreciated

    Thank you and best regards,
    Paul


    v_selected APEX_APPLICATION_GLOBAL. VC_ARR2;
    Start
    v_selected: = APEX_UTIL. STRING_TO_TABLE(:P53_x);

    If v_selected (1) is not null then
    : P53_XADISSUE1N: = v_selected (1);
    end if;
    If v_selected (2) is not null then
    : P53_XADISSUE2N: = v_selected (2);
    end if;


    I ran an apex debugging and it is the part of the production...
    Transformation point: submit before 4 calculation

    0,09300 0.00400... "Adv_proc" process: PLSQL (ON_SUBMIT_BEFORE_COMPUTATION) declare mmagazine_no number (10); madvtno number (10); mgno number (10); minvno number (10); mcontact_no number (10); v_selected APEX_APPLICATION_GLOBAL. VC_ARR2; begin v_selected: = APEX_UTIL. STRING_TO_TABLE(:P53_x); If v_selected (1) is not null 4 th

    0.09700 0.00100 encountered unhandled exception to the process type 4 PLSQL

    0.00100 error 0,09800 page view...

    Published by: pauljohny on May 15, 2012 02:34
    DECLARE
      t_count number;
    BEGIN
      l_vc_arr2 := APEX_UTIL.STRING_TO_TABLE(:P53_x|| ':');
      t_count := l_vc_arr2.count - 1;
      if t_count > 0 then
        :P53_XADISSUE1N := l_vc_arr2(1);
      end if;
      if t_count > 1
        :P53_XADISSUE2N := l_vc_arr2(2);
      end if;
      if t_count > 2 then
        :P53_XADISSUE3N := l_vc_arr2(3);
      end if;
      --.....
    exception
      when others then null;
    end;
    

    Kind regards
    Richard
    -----
    blog: http://blog.warp11.nl
    Twitter: @rhjmartens
    If you answer this question, please mark the thread as closed and give points where won...

  • send Web page by e-mail

    When I try to send a Web page by e-mail, I go to the file menu drop down and select send, but the send this page and the send link options are grayed out. How to activate these features?

    I think I found the solution for you:

    t-4-2
  • Button to apply tabular form - can I just update region c. send this page?

    Hi all -
    I have a tabular form of base with a button apply. After the button is clicked the MRU is done properly, but it then triggers a sending of full page. I would rather just refresh the region like nothing else on the page requires a refresh. If I create a dynamic action, I think that I need the pl/sql to do the update and I hope I can find an easier way around this.

    The only action the button options are send page, redirect to a page or the url and "defined by the dynamic action. I'm on request Express 4.1.0.00.32.

    I hope it's something really basic but I have ideas or suggestions,

    John

    Hi John,.

    If you want to stay with the built-in feature in a table, as the process of page MRU, optimistic locking, etc., then you need send a page and the full reload. You can easily navigate the game following lines using partial page refresh and also make sort. But for writing data in the database, you must send the page. Especially if you have extra in the form of validations and related processes. Of course, you could go entirely manual, write your own JavaScript to collect the data from all the tables in table form and submit this via an AJAX request and initiate an update of only the region in table form. But you loose some features in doing so.

    We are looking for in this, addressing a new component to edit grid several rows before us for inclusion in the APEX 5.0:

    http://www.Oracle.com/technetwork/developer-tools/Apex/application-express/Apex-sod-087560.html

    ... However for the moment, I would strongly recommend to stick to submit to full page and reload in this case.

    Kind regards
    Marc

  • Return the value to the second point based on LOV select on the Fort point

    When a user selects a value (Group_Desc) of an element of LOV (created from a table), I want a corresponding value in the table to display in a second point (Director_Name) on the page. I don't know JavaScript, but found an example clear to the sum of the 3 elements of page in the 4th point-http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10497/javascript.htm#CHDDCIFE is similar but rather then making the sum of the values of the elements for the new item, I want to use a select look up of the table based on the return value for Group_Desc (point 1) to be included in article 2.

    If the use of javascript is the only way to do it (and I would appreciate another way), I need help with the code for the example cited to reflect a return value to pass to the point 2 of this selection.
    Select Director_Name from groups where Group_Desc =: P7_Group_Desc;

    Here's the example I found.

    function getVal (item) {}
    If (document.getElementById (point) .value! = "")
    Return parseFloat (document.getElementById (item) .value);
    on the other
    return 0;
    }
    document.getElementById('P1_TOTAL').value =.
    getVal ('P1_ONE') + getVal ('P1_TWO') + getVal ('P1_THREE');
    }


    Thanks for any help,
    Karen

    Karen

    I'll take a look in the morning.

    Your description is not yet very clear (although I admit that I have not yet watched the app).

    Please can you set desired entries and exits in you app.

    See you soon

    Ben

  • 30.0 Firefox is so slow since updated. IE &amp; Chrome not having problems loading pages, showing the blank pages, need two or more tests to open Web pages.

    30.0 Firefox is so slow since updated. IE & Chrome not having problems loading pages, showing the blank pages, need two or more tests to open Web pages. It seems to have something to do with the Visual data on the pages. My MSN homepage gets old and dies every time I open the page after the re-opening and closing of firefox. It takes forever! What is a memory drain? Each open page in a new session of firefox suffer the same fate.

    Start Firefox in Safe Mode {web link}
    While you are in safe mode;
    Press < Alt > or < F10 > to display the toolbar.
    Followed;

    Windows; Tools > Options
    Linux; Edit > Preferences
    Mac; name of the application > Preferences

    Then Advanced > General.
    Find and stop using hardware acceleration.

    Dig safe web sites and see if there is still a problem. Then restart.

Maybe you are looking for

  • iBooks does not download on iphone

    I bought an audio book 2 weeks ago and it still load on the iPhone 6.  What is the problem? Thank you

  • iCloud photo

    Hello I want to delete all my pictures from my phone and put them on my laptop. But the only thing my laptop sees the last 30 photos taken. I can't find where it went wrong! I hope you can help me. Bye, Anne

  • Portege 600-Windows Setup has encountered an unexpected error - error Code: 0x0

    Hello During an upgrade to Windows 7, I get the following error message. Windows installation encountered an unexpected error - error Code: 0 x 0. Searching the Web I found the recommendations of setting DMA on optical drive (only), updated the bios

  • HP 6830 Officejet Pro: problem with printhead

    My printer is now under warranty and started giving the following message on a month previously, the error code Oxc19a0003 "problem with printhead.  He continued to print while the cartridges are low on ink.  I guess it was the 'problem '.  I changed

  • What would prevent a laptop to see our WLAN but not others? __

    Hi guys,. I have a laptop Vista Ultimate used to easily connect to my wireless LAN, until we recently took the server offline to replace a RAID drive. Now, the server is online, I can't understand why the laptop does not connect to WLAN no more. The