Oracle Apex - Order by shuttle

Hi all

Is it possible to order by the right of the list in the shuttle?

Example:

left values such as:

------------------

A

B

C

D

and user move right as values:

----------------

D

B

A

Now, I want to order by right and left side. Expected right at my output should be like:

--------------------

A

B

D

Please help me, how to order by the list on the left?

Thank you

Xandot

Xandot wrote:

Shuffle data stored in two separate points format.

Example:

A:D:B

Properties of the source:

[Source type: database column]

As stated earlier, it is a violation of the first normal form. Store values in a relational database in this way is incorrect and will result in significant problems subsequently accessing and using data.

If the data model is not fixed, so instead of using a simple query with an ORDER BY SQL in the source of the element, you will need to create a custom PL/SQL function:

create or replace function sort_delim_str (
    s in varchar2
  , d in varchar2 default ':')
  return varchar2
is

  u varchar2(4000) := s || d;
  t varchar2(4000);

begin

  select
      listagg(v, d) within group (order by v)
  into
      t
  from
      (select
          regexp_substr(u, '[^' || d || ']+', 1, rownum) v
      from
          dual
            connect by rownum <= length(u) - length(replace(u, d)));

  return t;

end;

and call this in the source Post calculation calculation property element:

sort_delim_str(:p1_incorrectly_modelled_value, ':')

Tags: Database

Similar Questions

  • How do for elements to create the shuttle cascading in Oracle Apex

    Can everyone please create me Articles of the shuttle in cascade in the oracle apex.

    The same way as you do that for selection only lists the condition is a little different. Here is an example of the second Shuttle in my case:

    SELECT pcat_title d, pcat_id r

    FROM (SELECT pcat_id, pcat_title, pcat_pt_code

    Of om_prod_categories

    WHERE pcat_parent_id IS NULL)

    WHERE INSTR (': ' |: p3_prod_pt_code |) ':',

    ':' || pcat_pt_code | ':') > 0

    Denes Kubicek

  • How to validate an element of the shuttle in the oracle apex

    Hello

    I have an element of the shuttle in the page. I want to validate the shuttle. use 3.2.1 on oracle 11g oracle apex.

    I want to trigger an alert if the value of not selected by the user to shuttle on the other displays the value selected in alert.

    Please help me solve this problem.

    Thank you

    Published by: kumar73 on April 17, 2010 14:15

    Hello

    This might help
    http://download.Oracle.com/docs/CD/E14373_01/AppDev.32/e11838/bldr_pgs.htm#sthref565

    Create the validation level element non-Null step

    BR, Jari

  • Progressively display areas in Oracle Apex 5.0 (universal theme)

    Hello, what I am trying to achieve:
    https://apex.oracle.com/pls/apex/f?p=63709:1:2676260562286:

    So basically I have 3 region on page load all regions must be hidden, after that the user click on the button (Let's Say ADD_REGION) first region will appear on new clicks of the user on the same button second region indicated even for the third.

    in the link above I created a region called JavaScript_Working in HTML.
    I want something even for areas of oracle apex.

    Tried:

    (1) based on the ID of a region I created a DA who will hide the region during the loading of the page, but after clicking on the button it does not return.

    (2) Css: inline Css section of a page where I had called Display: none with region Id prefix.

    (3) javascript: get Null drop back so this idea.

    Any advice will be good enough.

    Always:

    Identification information: new_b/new_b/new_b

    App: Apex_Community

    ID: 63709

    page: 1

    Thank you.

    This function added

    function check_then_show(p_region) {
    
        if ($(p_region).css('display') === 'none') { // if  hidden
          $(p_region).show(); //  show
          return true;
        }
        return false; // keep looking for next region
    
    }
    

    and this at the click of a button

    if (check_then_show('#region1')) {}
    else if (check_then_show('#region2')) {}
    else if (check_then_show('#region3')) {}
    

    That will keep test in the order provided.

    Looks like you were something already to help the regions of catalog, you would like to combine? It was just the first idea that worked

  • Oracle Apex 5 + Oracle 11 GR 2 reports

    Hello!

    Sorry, I know it's a subject repeated, I tried to follow the other topics, but without success.

    I am trying to call RDF report from a URL order, following the Oracle Documentation: http://your_webserver.domain_name:port/alias/rwservlet?report=myreport.rdf & userid = username / password@my_db & server = server_name & desformat = html & destype = cache

    I am using reports Oracle 11 GR 2 on Weblogic. I am trying to execute the Url http://XXXXXXXXX:YYYY/reports/rwservlet?report=APEX_REPORT.rdf & userid=XXX/XXX@XXX & server = ReportsServer & desformat = pdf & DESTYPE = leader

    REP-110: could not open file APEX_REPORT.rdf.

    REP-1070: an error occurred when opening or saving a document.

    REP-0110: APEX_REPORT.rdf file cannot be opened.

    I changed the sourceDir on rwbuilder.conf, rwserver.conf, REPORT_PATH, etc.

    Help!

    Thank you!

    Hello!

    The s/n of my company's it. You must configure report_path on OS and set the default folder of the RDF files. Now, it's work and I call Repors Oracle in .PDF by Oracle Apex.

    Thak you all!

  • How to hide the field element of text based on true or false cases in the oracle apex

    Hello

    I have a set of text field in the oracle apex:

    1. Order number
    2. Revision number

    When we open the report, the review must be hidden.

    Only when the user enters the unique order number (order not duplicate numbers), revision number should be visible.

    If he enters the number of duplicate order, the revision number should be hidden.

    Help, please.

    Hi 2932464,

    2932464 wrote:

    Hello

    I have a set of text field in the oracle apex:

    1. Order number
    2. Revision number

    When we open the report, the review must be hidden.

    Only when the user enters the unique order number (order not duplicate numbers), revision number should be visible.

    If he enters the number of duplicate order, the revision number should be hidden.

    Help, please.

    Give you an example of how to do to get there.

    Step 1. Create three elements of the Page

    (1) P1_ORDER_NO - text field

    (2) P1_REVISION_NO - text field

    (3) P1_ENABLE_DISABLE_REVNO - hidden, protected value - no.

    2 create dynamic Actions 3

    (1) disable the revision on the loading of the page number

    Event - loading of the Page

    Action - disable

    Fires when the result of the event is - real

    Selection type - point

    Point - P1_REVISION_NO

    (2) check the number of duplicate order

    Event - change

    Selection type - item (s)

    Article (s) - P1_ORDER_NO

    Condition - is not null

    Action - to execute the PL/SQL Code

    Generate in front of false action - not checked

    Fires when the result of the event is - real

    Fire on page load - disabled

    Stop execution on error - checked

    Wait for the result - verified

    PL/SQL - code

    declare
    l_count number;
    begin
      select count(*) into l_count
        from emp
       where empno = :P1_ORDER_NO;
    
    if l_count > 0 then
      :P1_ENABLE_DISABLE_REVNO := 1;
    else
      :P1_ENABLE_DISABLE_REVNO := 0;
    end if;
    end;
    

    To present the page = P1_ORDER_NO

    Page referred to return = P1_ENABLE_DISABLE_REVNO

    (3) enable and disable the revision number

    Event - change

    Selection type - item (s)

    Article (s) - P1_ENABLE_DISABLE_REVNO

    condition - greater than or equal to

    value - 1

    Action - disable

    Fire on Page Laod - disabled

    Generate the opposite action of false - verified

    Selection type = item (s)

    Article (s) - P1_REVISION_NO

    Hope this helps you,

    Kind regards

    Jitendra

    DER_NO

  • Integration of Oracle Apex with EBS R12.1.1

    Dear all,

    We are in the process of integration Oracle Apex 4.0.2 with EBS R12.1.1 with the help of http://www.oracle.com/technetwork/developer-tools/apex/apex-ebs-wp-cabot-consulting-169064.pdf.

    After doing all the steps, the time where we sail of EBS to Apex application clicking on EBS links menu it ends with error below

    "404 not found".

    ' / OA_HTML/null/pls/apex/f resource not found on this server.

    After some tests, I found the code below in "LaunchApex.jsp" in order to get the value of profile (supposed to be "http://myserver:port") of custom system 'APEX_HTTP_SERVER' profile and prefacing of ' / apex/f? ' p = applicationid:page:APPS: ' does not work correctly

    "
    ...

    String l_launcher = ctx.getProfileStore () .getProfile ("APEX_HTTP_SERVER");
    l_launcher = l_launcher + "/ apex/f? p ="+ p_application +": "+ p_page;
    l_launcher = l_launcher + ': APPS: "+ p_item_names +": "+ p_item_values;

    ...

    "

    as we found that the profile custom system 'APEX_HTTP_SERVER' does not exist in the EBS system. But it works without any error page if we encode the URL of the entire application variable in l_launcher apex, but this hard brings us to the page of connection of EBS instead of the Apex application page.

    So I think that we can't work around by using the value of 'APEX_HTTP_SERVER' profile because it has something to do with the EBS application session.

    So could someone please help me how we could create custom profile system "APEX_HTTP_SERVER" or other options to make the transparent integration of apex Oracle with EBS works without any second login page

    Thanks in advance

    Published by: 805196 on August 25, 2011 12:23 AM

    Hi oar,

    you will need to change as the below in the jsp

    String l_launcher = ctx.getProfileStore().getProfile("OAE_LAUNCHER");
    l_launcher = l_launcher + "/apex/f?p=" + p_application + ":" + p_page;
    l_launcher = l_launcher + "::APPS:::" + p_item_names + ":" + p_item_values;
    

    Brgds,
    Mini

    --------------------
    Mark responds promptly

  • Public using DBLinks in Oracle APEX

    Hi all, have no restrictions in the use of public DBLink Oracle apex?

    Thank you.

    No, if you can run the query in the analysis schema then APEX will show it. This is an old post on the subject.

    ORACLENERD: APEX: database of links

    Also check the security settings for application for ' Code PL/SQL for cleaning.

    http://blog.iAdvise.EU/2011/12/20/using-a-database-link-with-heterogeneous-services-in-apex/

  • How to integrate the search engine (Google) customized with oracle apex 5.0?

    <script>
      (function() {
        var cx = 'aaaaaaaaaaaa:bbbbb';         
        var gcse = document.createElement('script');
        gcse.type = 'text/javascript';
        gcse.async = true;
        gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
            '//cse.google.com/cse.js?cx=' + cx;
        var s = document.getElementsByTagName('script')[0];
        s.parentNode.insertBefore(gcse, s);
      })();
    </script>
    <gcse:searchbox ></gcse:searchbox>
    
    

    Like, I then politico who and want to change the settings of the CSE research must have be take place. Above the CSE code works for any thing you search I want to connect this way regardless of the setting I have spend in search results will go.

    For this I need to use Json rest api in oracle apex to bind the varibales. Say for example: cr = (country); LN (language) = en; This value will be passed through JSON ESC (google), and the result will appear any suggestion I how to get this...
    Thank you.

    Used JavaScript get json response and show it to the page. You can also use the pl/sql to achieve this.

  • Create the Signature buffer in oracle apex 5.0

    Hello, I'm trying to create the signature buffer in oracle apex 5.0, did see some plugins for that as: https://www.enkitec.com/products/plugins/signaturepad/help can I implement the same functionality without using this plugin. What I see: 1) http://keith-wood.name/signature.html 2) https://github.com/brinley/jSignature ) 3 https://github.com/thomasjbradley/signature-pad/blob/gh-pages/documentation.md Point is to make this cushion where I sign! and also save as image in database. Don't know if I'm clear enough with my question or not. Thank you.

    Hi Pranav.shah,

    Pranav.Shah wrote:

    Hello, I'm trying to create the signature buffer in oracle apex 5.0, did see some plugins for that love: https://www.enkitec.com/products/plugins/signaturepad/help can I implement the same functionality without using this plugin. What I see: 1) http://keith-wood.name/signature.html 2) https://github.com/brinley/jSignature 3) https://github.com/thomasjbradley/signature-pad/blob/gh-pages/documentation.md Point is to make this cushion where I sign! and also save as image in database. Don't know if I'm clear enough with my question or not. Thank you.

    Use the pad of Signature plugin Enkitec. Why don't you use this plugin, but only its features.

    Also, the plug-in can save the signature to be registered as JSON CLOB or BLOB image in the database.

    Reference:

    Kind regards

    Kiran

  • Installing Oracle Apex in Oracle 12 c 5

    Hi all

    I used 5 Apex Oracle in Oracle database 11g. Now, I have a database upgrade from 11g to 12 c

    I installed the database Oracle 12 c container in my server. And I added 3 plug in database.

    Now

    How to install Oracle Apex 5 in Oracle 12 c?

    Can someone help me install?

    Thanks in advance,

    Su.GI

    Hi Su.gi,

    Su.GI wrote:

    I'm trying to uninstall the apex in the database of the container. It displays the error message as below

    Uninstall in shared database container in the background.

    Uninstall progress are wrapped in apxremov * _cdb * .log files.

    Please wait...

    catcon: all outputs related to catcon will be written to apxremov2_cdb_catcon_1164.l

    St

    catcon: see apxremov2_cdb*.log for output files generated by scripts

    catcon: see apxremov2_cdb_*.lst files for spool files, if necessary

    validate_con_names: PDB$ SEEDS is not open

    catconInit: unexpected error returned by validate_con_names

    How to solve this problem?

    Don't know the version of exact details of Oracle 12 c that you are using, but mysteriously the question when you run apxremov_con.sql is due to know what PDB PDB $ SEEDS is not open in READ ONLY or READ WRITE State.

    With two versions of Oracle 12 c, I used (12.1.0.1.0 & 12.1.0.2.0), the SEED of $ PDB is always open in a READ ONLY State when the database is started.

    You can open your SEED of $ PDB in READ ONLY State.

    Reference: Blog of Surachart Opun: Multitenant - how to change PDB$ SEED mode as read write or mount?

    IMP QUESTION: You use an apxremov_con.sql of 5 APEX installable script?

    If Yes, then do not use this script. The reason is that APEX 4.2 is already installed in the ROOT of Oracle 12 c CBD database container $. To uninstall, go to the directory of $ORACLE_HOME/apex and use the apxremov_con.sql to this directory.

    Once you have uninstalled APEX 4.2 container root i.e. CBD$ ROOT successfully, you can go ahead and install 5 APEX in the PDB of your choice.

    Kind regards

    Kiran

  • Learn Oracle APEX

    Hi gurus

    I want to learn Oracle APEX, can anyone guide me how to learn?

    Hi Mitchels,

    Mitchels wrote:

    I want to learn Oracle APEX, can anyone guide me how to learn?

    As well as the documentation and getting started you can also consult the Oracle Learning Library tutorials as well as Oracle APEX Youtube Channel.

    Reference: Oracle Application Express - videos and Podcasts

    See also the thread for more information: Re: hands on demo of the apex

    Kind regards

    Kiran

  • Error of the ACLs in Oracle Apex 5 after schema change

    Hi all

    I'm creating an application using Oracle Apex 5.

    I have a button call Send Mail and mail is worked.

    Now, I imported my request in a different schema and configured acl as below.

    I use apex_mail.send to send mail and created the acl as

    BEGIN

    () DBMS_NETWORK_ACL_ADMIN.drop_acl

    ACL = > 'open_apex.xml');

    (DBMS_NETWORK_ACL_ADMIN). CREATE_ACL

    ACL = > "open_apex.xml"

    Description = > "a test of the ACL feature."

    main = > 'RMSR. "

    IS_GRANT = > TRUE,

    privilege = > 'connection ',.

    start_date = > SYSTIMESTAMP,

    End_date = > NULL);

    (DBMS_NETWORK_ACL_ADMIN). ASSIGN_ACL

    ACL = > "open_apex.xml"

    Home = > ' *',

    lower_port = > 20,

    upper_port = > 9999);

    COMMIT;

    end;

    BEGIN

    (DBMS_NETWORK_ACL_ADMIN). ADD_PRIVILEGE

    ACL = > "open_apex.xml"

    main = > 'RMSR. "

    IS_GRANT = > TRUE,

    privilege = > 'connection ',.

    position = > NULL,

    start_date = > NULL,

    End_date = > NULL);

    COMMIT;

    END;

    It throws error as

    ORA-24247: network access denied by access control list (ACL)

    Is there a problem in my setup?

    Thanks in advance,

    Su.GI

    Hi Su.gi,

    Su.GI wrote:

    I'm creating an application using Oracle Apex 5.

    I have a button call Send Mail and mail is worked.

    Now, I imported my request in a different schema and configured acl as below.

    It throws error as

    ORA-24247: network access denied by access control list (ACL)

    Is there a problem in my setup?

    You have granted the ACL to the RMSR of your database schema, so it is necessary for the APEX_050000 scheme when you use the APEX_MAIL package.

    This is why the ACL must be granted at the APEX 5 Schema: https://docs.oracle.com/cd/E59726_01/install.50/e39144/listener.htm#HTMIG29161

    Here's how the ACL must be granted for APEX 5 Schema: https://docs.oracle.com/cd/E59726_01/install.50/e39144/listener.htm#HTMIG29162

    NOTE:

    • Create the ACL by logging into the user with SYSDBA SYS privileges.
    • Don't forget to validate after execution of the anonymous block for the creation of ACL.

    Kind regards

    Kiran

  • Execution of the procedure of Oracle APEX

    Hello

    I've written a procedure ' create or replace PROCEDURE process_csvfile (p_filename IN VARCHAR2); " et I want to execute this procedure to Oracle Apex.


    PROCEDURE:

    create or replace PROCEDURE process_csvfile(p_filename IN VARCHAR2)
    AS
    statement1 varchar2(1000);
    statement2 varchar2(1000);
    statement3 varchar2(1000);
    
    begin
    dbms_output.put_Line(p_filename );
    statement1:= 'alter table adb.external_bcc_test location ( '  ||chr(39)|| p_filename||chr(39)|| ')' ;
    dbms_output.put_line(statement1);
    EXECUTE immediate statement1;
    dbms_output.put_line('statement1-> completed');
    EXECUTE immediate 'truncate table ADB.ADB_BCC_TEST';
    dbms_output.put_line('statement2-> completed');
    statement3:='insert /*+ append */ into ADB.ADB_BCC_TEST(BCC_ID,BCC_ADD,"NO_OF_BCC(GEO)") select * from adb.external_BCC_test';
    dbms_output.put_line(statement3);
    EXECUTE immediate statement3;
    dbms_output.put_line('statement3 insert-> completed');
    
    EXCEPTION
    WHEN OTHERS
    then
    raise;
    END;
    
    

    I created the button and the action as a dynamic Action where I wrote below PL/SQ as dynamic Action to perform this procedure


    BEGIN
    
    process_csvfile;
    END;
    
    


    But I get an error" " " ORA-06550: line 4, column 3: PLS-00306: wrong number or types of arguments in the call to 'PROCESS_CSVFILE' ORA-06550: line 4, column 3: PL/SQL: statement ignored (go to error) "

    Oracle Apex Version: 4.2.1

    Thank you

    BO.

    BO123 wrote:

    I've written a procedure ' create or replace PROCEDURE process_csvfile (p_filename IN VARCHAR2); " and I want to run this procedure from Oracle Apex.

    1. create or replace PROCEDURE process_csvfile (p_filename IN VARCHAR2)
    2. AS
    3. statement1 varchar2 (1000);
    4. statement2 varchar2 (1000);
    5. statement3 varchar2 (1000);
    6. Start
    7. dbms_output.put_Line (p_filename);
    8. statement1: = ' change the location of the table adb.external_bcc_test (' |) Chr (39) | p_filename | Chr (39) | ')' ;
    9. dbms_output.put_line (statement1);
    10. EXECUTE immediate statement1;
    11. dbms_output.put_line ('end statement1->');
    12. EXECUTE immediate ' truncate table ADB. ADB_BCC_TEST';
    13. dbms_output.put_line ('end of reporting2->');
    14. statement3: = "insert / * + append * / into ADB." ADB_BCC_TEST (BCC_ID, BCC_ADD, ' NO_OF_BCC (GEO) ') select * from adb.external_BCC_test';
    15. dbms_output.put_line (statement3);
    16. EXECUTE immediate statement3;
    17. dbms_output.put_line ('end statement3 insertion->');
    18. EXCEPTION
    19. WHILE OTHERS
    20. then
    21. lift;
    22. END;

    The treatment is an external table. How to get the source file in the specified location?

    dbms_output.put_linethe instrumentation is unnecessary in an environment of APEX (unless the apex_debug.log_dbms_output method has been called). Use apex_debug API methods instead so that information is available in debug mode.

    There is no reason to use dynamic SQL statements in lines 15-17.

    Creating a column named "NO_OF_BCC (GEO)" is not a good idea and is in conflict with the recommendation of the Oracle do not use identifiers in quotes for the names of database objects. This objects will only cause problems and confusion.

    Lines 20 to 23 are a bug. It doesn't hide where any exception occurred in fact. If there is no specific exception that must be handled in this procedure, it should not contain an exception block.

  • Oracle Apex: Aggregate also show row

    Hi all

    Currently I use an interactive report Oracle Apex

    Column1 Column2

    A1         1             2

    A2         2             3

    A3         3             4

    A4         4             5

    ----------------------

    10 14

    After the display of data, make some calculations as Column1, Column2, using the SUM aggregate function of interactive report

    But the result shows that the last line of the report , so I have to scroll to see the result

    How to display the result in the first row of the report?

    Column1 Column2

    10 14

    ----------------------

    A1         1             2

    A2         2             3

    A3         3             4

    A4         4             5

    I found the solution

    1. Add void querry to compute the sum
    2. Union with existed result
    3. Use to highlight the service to catch up with the new line

Maybe you are looking for