Apex 4.2: Condition PLSQL gantt

Hello

I have a plugin of Gantt chart and a list of filters in a sidebar. If the query returns no data, I want to gantt chart to disappear (as otherwise it does is display a pie chart and the words "loading data" indefinitely) ideally I would return a message that says: "sorry, your query did not return any results.

I approach this by putting a condition against the region (type: function body PLSQL returning a Boolean value). I'm never quite clear on the difference between a PLSQL function and a PLSQL expression, but I tried the two different forms.

This is my code:
DECLARE
NUMBER of myNum2;
BEGIN
Select count (*) in the myNum2 of AA_WL_ACTIVITIES3
where (activities_key =: P0_KEYPROJECT or: P0_KEYPROJECT is null)
and (activities_parent =: P0_PARENTCHILD or: P0_PARENTCHILD is null).
IF myNum2 = 0 THEN
RETURN FALSE;
END IF;
END;
He hides the area at any time. If I change the code to read "IF myNum! = 2 THEN' - then he also hide gantt chart.

Can someone tell me what I am doing wrong?

Thank you
Emma

Emma-apex wrote:
Hello

I have a plugin of Gantt chart and a list of filters in a sidebar. If the query returns no data, I want to gantt chart to disappear (as otherwise it does is display a pie chart and the words "loading data" indefinitely) ideally I would return a message that says: "sorry, your query did not return any results.

I approach this by putting a condition against the region (type: function body PLSQL returning a Boolean value). I'm never quite clear on the difference between a PLSQL function and a PLSQL expression, but I tried the two different forms.

This is my code:

DECLARE
NUMBER of myNum2;
BEGIN
Select count (*) in the myNum2 of AA_WL_ACTIVITIES3
where (activities_key =: P0_KEYPROJECT or: P0_KEYPROJECT is null)
and (activities_parent =: P0_PARENTCHILD or: P0_PARENTCHILD is null).
IF myNum2 = 0 THEN
RETURN FALSE;
END IF;
END;

He hides the area at any time. If I change the code to read "IF myNum! = 2 THEN' - then he also hide gantt chart.

Can someone tell me what I am doing wrong?

The body of the function does not return a value which will result in the region displayed under any circumstances. In this case a Exists (SQL query returns at least one row) condition by using just the query appears most appropriate:

select null from AA_WL_ACTIVITIES3
where (activities_key=:P0_KEYPROJECT or :P0_KEYPROJECT is null)
and (activities_parent=:P0_PARENTCHILD or :P0_PARENTCHILD is null)

Tags: Database

Similar Questions

  • APEX 4.0 - construction of Gantt chart error?

    Hello world

    When I build a Gantt chart in apex.oracle.com, the start and end dates show no actual date, just text "dd.mm.rr".
    My query follows:

    Select
    NULL as link,
    Description like taskname,
    TASK_ID as task_id,
    NULL as parent_id,
    start_date as actual_start,
    End_date as actual_end,
    progress as progress
    of PENDING_TASKS;

    Any ideas?

    Oscar

    Hi Oscar,.

    For Gantt diagrams, by default the Format of Date of Application will use to bring in the form the dates on your Gantt chart. If a date of application-level format is not specified and none is a Date of the Gantt chart format, via the attributes list page, then the NLS_DATE_FORMAT will serve to shape the dates on your Gantt chart. If you want to set a date through the table attributes page format, change your Gantt chart and update the item "Date" in the region of Gantt chart settings. For example, on this example on apex.oracle.com - http://apex.oracle.com/pls/apex/f?p=36648:4 - I put the 'Date Format' * % dd.%MMM.%yy*, which uses the AnyChart format specifiers required, indicated such in the AnyChart documentation, specifically in the list of parameters of formatting: http://www.anychart.com/products/anygantt/docs/users-guide/locale.html?fromtree#list.

    Version 4.0 - post, I identify a problem with the context menu associated with the element 'Format of Date' on page table attributes and bug 9861439 can be used to track this issue. A fix for this issue will be available in our next release, but in the meantime you can enter dates in the text 'Format of Date' element, ensuring that you use the format specifiers AnyChart described in the documentation that I have included a link for above example * % dd.%MMM.%yy*.

    I hope this helps.

    Kind regards
    Hilary

  • Sorting for the pivot 5 APEX error

    Hello

    Has anyone encountered the following error when trying to make a kind of pivot with more than 1 sort column? If so, what is the solution?

    {'dialogue': {'uv': true, 'line': [{'V': "failure of Widget}]}}

    AJAX\u0020call\u0020returned\u0020server\u0020error\u0020ORA\u002D01403\u003A\u0020no\u0020data\u0020found\u0020for\u0020worksheet. »}]}}

    If we make a kind of pivot with sort 1 column, the results are always returned without any error. I just created a SR this topic because I think it could be a bug.

    Version of the APEX - 5.0.0.00.31

    Version of DB - 11.2.0.4.0

    APEX via OSH/mod plsql

    Kind regards

    David

    Just to let everyone know that after raising a SR, they confirmed that this is a bug and it will be fixed in version 5.1. This bug is in each version of the APEX 5 so far.

    Kind regards

    David

  • Unable to connect to an application after moving from Apex to Apex 5.0 4.2

    Hello

    I have an APEX application which the login is authenticated with a password (encrypted) in the database.

    After you import a request of APEX 4.2 to APEX 5.0 to a different database, here is the error I get when I try to connect from page 1:

    ORA-00918: column ambiguously defined

    Treatment of error condition.

    And here's the info I can find from the debug log:

    Exception logging:

    SQLERRM: ORA-00918: column ambiguously defined

    Backtrace: ORA-06512: at "SYS." DBMS_SYS_SQL", line 1445

    ORA-06512: at "SYS." WWV_DBMS_SQL', line 464

    ORA-06512: at "SYS." WWV_DBMS_SQL', line 475

    ORA-06512: at "APEX_050000.WWV_FLOW_DYNAMIC_EXEC", line 411

    Exception logging:

    SQLERRM: ORA-00904: "O". ' ' User_id ': invalid identifier

    Backtrace: ORA-06512: at "SYS." DBMS_SYS_SQL", line 1445

    ORA-06512: at "SYS." WWV_DBMS_SQL', line 464

    ORA-06512: at "SYS." WWV_DBMS_SQL', line 475

    ORA-06512: at "APEX_050000.WWV_FLOW_DYNAMIC_EXEC", line 411

    Exception logging:

    SQLERRM: ORA-00904: "O". ' ' User_id ': invalid identifier

    Backtrace: ORA-06512: at "SYS." DBMS_SYS_SQL", line 1445

    ORA-06512: at "SYS." WWV_DBMS_SQL', line 464

    ORA-06512: at "SYS." WWV_DBMS_SQL', line 475

    ORA-06512: at "APEX_050000.WWV_FLOW_DYNAMIC_EXEC", line 411

    Exception logging:

    SQLERRM: ORA-20987: APEX - error processing condition. -ORA-00918: column ambiguously defined

    Backtrace: ORA-06512: at "APEX_050000.WWV_FLOW_ERROR", line 732

    ORA-06512: at "APEX_050000.WWV_FLOW_ERROR", line 1013

    ORA-06512: at "APEX_050000.WWV_FLOW_CONDITIONS", line 767

    ORA-06512: at "APEX_050000.WWV_FLOW_META_UTIL", line 69

    ORA-06512: at "APEX_050000.WWV_FLOW_META_UTIL", line 118

    ORA-06512: at "APEX_050000.WWV_FLOW_REGION", line 125

    ORA-06512: at "APEX_050000.WWV_FLOW_DISP_PAGE_PLUGS", line 962

    Exploitation forest exception in final_exception_handler:

    SQLERRM: ORA-20987: APEX - error processing condition. -ORA-00918: column ambiguously defined

    Backtrace: ORA-06512: at "APEX_050000.WWV_FLOW_ERROR", line 963

    ORA-06512: at "APEX_050000.WWV_FLOW_ERROR", line 998

    ORA-06512: at "APEX_050000.WWV_FLOW_DISP_PAGE_PLUGS", line 998

    ORA-06512: at "APEX_050000.WWV_FLOW_PAGE", line 2228

    ORA-06512: at "APEX_050000.WWV_FLOW_PAGE", line 2447

    ORA-06512: at "APEX_050000.WWV_FLOW", line 4938

    If I import this application similarly APEX APEX 4.2 4.2, but to a different database, I get no error and I can't the application United Arab Emirates.

    Does anyone has an idea of the problem?

    Thank you in advance.

    Kind regards.

    Hi Patrick,

    Thanks for your response.

    You gave me good advice, I was exploring just the look and feel of the APEX 5.0 and it is still a Terra Incognita.

    Although the Advisor provided advice nany to be alert in, I found the problem.

    "PL/SQL errors" referred to in the report of the Advisor stressed (at least) a request that identify the database the user record.

    This query worked very well in the original request of the APEX. So, I could not believe that it is a real "syntax error".

    The problem seems to have been the DataPump data import.

    A subsequent investigation showed that some tables were not created properly. There where some columns missing ID and also the column date was not correct.

    For a table, a column that was missing has been used in a join to identify the user.

    As a result, the column was "ambigously defined."

    Kind regards

  • Apex 4 or 5 zoom function and macros and update questions

    Presently, got open users in Excel via odbc tables and I want to transfer to Apex.

    1. How can I reduce the Apex down police according to the Excel zoom feature so that more data gets to the screen.   I want a LOT of data on the screen, Ive got some end users who wish to up to 100 + rows and columns of 30 +, they don't mind the size and readability, the screens are big and have macros that are constantly highlighting changes to data they are interested in what brings us to question 2

    2. how macros script to Flash color changes.

    3. how data streams constantly modify data in a table live the Apex report and apply these macros.   Refresh rate?

    IM in dev with version 4, but if a feature isn't available until the level 5 I can hold off.

    Hello

    All the above mentioned requirements can be done in one of the APEX, version 4 or 5.

    1. it is a change of POLICE CSS based on the model of HTML page, and it is supported in the APEX 4 and 5 times.

    2. for changes from flashing color macros (formulas), you should design your SQL query and insert various HTML tags in SQL query results.

    3. updating of the page tables, can be programmed using jQuery functions.

    So, basically we expect 5 APEX as your condition does not use what is explicit to APEX 5.0 /.

    Thank you

    Sunil Bhatia

  • How can I resize an iframe in apex based on the amount of available space on the screen with a button

    Hello.  I have a request to 4.2.2.00.11, llg Server Oracle apex.  The conditions for this application are to hide and display a navigation bar by clicking on the buttons leathers/display on the screen.  The right side of the screen has an iframe that is to fill up whats left of the estate of the web browser.  Search in google, I found a function that works on the laundry.  I need the iframe to resize when the browser hides and shows, but when I tried to create a dynamic action on click to call javascript, hide and show the features of the browser bar break.  The iframe is not also resize.

    Here's the code that I currently use.

    JavaScript in my page header

    <script language="JavaScript">
    <!--
    function autoResize(id){
        var newheight;
        var newwidth;
    
    
        if(document.getElementById){
            newheight=document.getElementById(id).contentWindow.document.body.scrollHeight;
            newwidth=document.getElementById(id).contentWindow.document.body.scrollWidth;
        }
    
    
        document.getElementById(id).height= (newheight) + "px";
        document.getElementById(id).width= (newwidth) + "px";
    }
    //-->
    </script>
    
    

    The source of the IFRAME area.

    < IFRAME SRC = "f? p = & I_FRAME_APEX_APP_ID: & I_FRAME_APEX_PAGE_ID.: & APP_SESSION.

    : NO::ROLE: & ROLE. "width ="100% "height ="200px"id ="iframe1"marginheight ="0"frameborder ="0"onLoad ="autoResize ('iframe1'); "> < / iframe >

    A colleague suggested this, and the width is now set properly.  the height is always not to fit properly in the window.  When I set the height to 100%, the default height for pixels, I put in the iframe.

    
    
    
  • show/hide the button with the icon enabled when the condition is met

    Hello

    I created a B button with an icon of a sign of the green check mark.
    It must appear next to another A button when a condition is met.

    How can I better get this working B key, without using something else than the APEX.

    The condition is that some data has been inserted by clicking A button or simply exist in the database table.

    I tried conditional display of point with conditiontype "PL/SQL Expression.
    but could not make it work.

    TNX to tide me over.

    Cara

    Hello

    If you use the condition EXISTS (SQL query returns at least one row)?

    This could give idea how
    http://Apex-SMB.blogspot.com/2009/05/How-to-determine-if-user-can-view-apex.html

    BR, Jari

    Published by: jarola 18 November 2009 16:07

    Oh,.
    I paste the wrong link and can not find more good.
    Well anyway in this link is also example to condition EXISTS

    To meet this requirement I can add a condition (SQL Exists) to the Report 2 region on Page 2:
    

    It takes something similar and your table selection

  • Query/report asked for entry? in the Apex

    Hello everyone, my name is John and I am asking for help with the following.
    I am new to Apex, Oracle, PL/SQL, and SQL (as you can tell from my query below).
    I have the basics of the Apex (to present reports, forms etc.).
    I created this query on a view in SQL Developer, where it is asked for the start and end dates filter the report. which is what I want it to and returns the results I want.
    Now, I want to create a report in the Apex where it asks him between the dates as it does in the request sent, when it's done I want to spend bipublisher to print pdf report.



    I run this query as a report of totals already (without the line with WHERE clause query asking course.) in an apex application, gross is it.

    I have it as interactive reports and can be filtered in this way dates of couse, but I want to learn how to create the report/query of type of user input in the Apex.
    I read that I would need to use a "Block anonymous pl/sql with a" declare "and a process page?." " (confused gettting in variables "declare" and execute sections)

    I looked at many samples and still haven't quite come down the blocks.
    If you could point me in the right direction of where to go, or better still, if someone could show me coding on how to make this work in apex query/report (s)?
    Learn slowly I suppose
    I use APEX 3.1.2 on database 11g.
    Thanks in advance for the help on this.
    ++++++++++++++++++++++++++++++++++++
    -the truck view totals query-
    Select
    trucktotals.truck_number "truck number."
    trucktotals. truck_type as "Type truck."
    sum (trucktotals.end_miles - trucktotals.begin_miles) as "Total number of miles,"
    sum (trucktotals.reg_hours + trucktotals.ot_hours) as 'Total hours. "
    sum (trucktotals.total_net_tons) as 'Total tonnes. "
    AVG (trucktotals.equip_rent) as "EQR P_HR' to 'trucktotals '.
    where < strong > trucktotals.wage_date between to_date(:Start_date) and to_date(:end_date) < facilities >

    Trucktotals.truck_number group, trucktotals.truck_type

    order of trucktotals. Truck_Number - query end to view truck totals-+++

    Published by: [email protected] on October 31, 2008 12:49

    Published by: [email protected] on October 31, 2008 12:53

    Published by: [email protected] on October 31, 2008 12:54

    Hi John,.

    I am pleased that the information has helped.

    About the pop up, you should try to avoid them if possible. You should really try to avoid if possible because most browsers have pop-up blockers. (I can ramble on about this topic for hours, but I'll leave it as one).

    So how to avoid pop-ups in this situation? APEX can return conditionally regions. If you have a region "indicates the parameter" which has your in/thru date. which is always is evidence. Then put a condition on the report so that he sees only when the from and through date are entered (I think that I put an example above).

    I would like to know how this happens.

    M

  • Adding line by submitting the manual tabular form while adding lines

    Hi all

    I'm a newbie in the Apex.

    I created a manual tabular form based on Apex_Collection. In addition, created the buttons ADD, DELETE and APPLY the CHANGES .

    The data below are the steps that I did.

    1 initialize the Collections

    Process: When loading - before header

    Enforcement process: once a Page visit

    Source:

    DECLARE
      l_collection_name APEX_COLLECTIONS.COLLECTION_NAME%TYPE;
      l_bind_names      APEX_APPLICATION_GLOBAL.VC_ARR2;
      l_bind_values     APEX_APPLICATION_GLOBAL.VC_ARR2;
      l_query           VARCHAR2(32767);
    BEGIN
      l_collection_name := 'EMAILDETAILS';
    
      IF apex_collection.collection_exists(l_collection_name)
      THEN
      apex_collection.delete_collection(p_collection_name => l_collection_name);
      END IF;
    
      l_query := '   SELECT cmp_cd, ' --c001 => f01
      || '   email, ' --c002 => f02
      || '   tab_seq_id, '  --c003 => f03
      || '   NULL, ' --c004 => f04
      || '   NULL, ' --c005 => f05
      || '   NULL, ' --c006 => f06
      || '   NULL, ' --c007 => f07
      || '   NULL, ' --c008 => f08
      || '   NULL, ' --c009 => f09
      || '   NULL, ' --c010 => f10
      || '   NULL, ' --c011 => f11
      || '   NULL, ' --c012 => f12
      || '   NULL, ' --c013 => f13
      || '   NULL, ' --c014 => f14
      || '   NULL, ' --c015 => f15
      || '   NULL, ' --c016 => f16
      || '   NULL, ' --c017 => f17
      || '   NULL, ' --c018 => f18
      || '   NULL, ' --c019 => f19
      || '   NULL, ' --c020 => f20
      || '   NULL, ' --c021 => f21
      || '   NULL, ' --c022 => f22
      || '   NULL, ' --c023 => f23
      || '   NULL, ' --c024 => f24
      || '   NULL, ' --c025 => f25
      || '   NULL, ' --c026 => f26
      || '   NULL, ' --c027 => f27
      || '   NULL, ' --c028 => f28
      || '   NULL, ' --c029 => f29
      || '   NULL, ' --c030 => f30
      || '   NULL, ' --c031 => f31
      || '   NULL, ' --c032 => f32
      || '   NULL, ' --c033 => f33
      || '   NULL, ' --c034 => f34
      || '   NULL, ' --c035 => f35
      || '   NULL, ' --c036 => f36
      || '   NULL, ' --c037 => f37
      || '   NULL, ' --c038 => f38
      || '   NULL, ' --c039 => f39
      || '   NULL, ' --c040 => f40
      || '   NULL, ' --c041 => f41
      || '   NULL, ' --c042 => f42
      || '   NULL, ' --c043 => f43
      || '   NULL, ' --c044 => f44
      || '   NULL, ' --c045 => f45
      || '   NULL, ' --c046 => f46
      || '   ''O'', ' --c047 (for record status)
      || '   wwv_flow_item.md5(cmp_cd, email, tab_seq_id) ' --c048 (for optimistic locking)
      --c049 for (not used in collection/reserevered for seq_id array)
      --c050 (not used in collection/reservered for delete checkbox array)
      || ' FROM Cmp_Email '
      || ' WHERE cmp_cd= v(''P9_CMP_CD'') ';
    
      apex_collection.create_collection_from_query_b (
      p_collection_name => l_collection_name,
      p_query           => l_query
      );
    
    
      IF :REQUEST = 'ADD'
      THEN
      APEX_COLLECTION.ADD_MEMBER(p_collection_name => l_collection_name);
      END IF;
    
    END;
    

    2. tabular Guide

    Type: SQL query

    Source:

    SELECT apex_item.hidden(4,c047,NULL,'f04_'|| '#ROWNUM#')
      || apex_item.hidden(5,c048,NULL,'f05_'|| '#ROWNUM#')
      || apex_item.hidden(6,seq_id,NULL,'f06_'|| '#ROWNUM#')
      || apex_item.hidden(3,c003,NULL,'f03_'|| '#ROWNUM#')
      || apex_item.hidden(1,c001,NULL,'f01_'|| '#ROWNUM#')
      || apex_item.checkbox(
      7, 
      seq_id,
      NULL,
      CASE 
      WHEN c047 = 'D' THEN seq_id
      END,
      ':',
      'f07_' || '#ROWNUM#'
      ) AS delete_checkbox,
      apex_item.text(
      2,
      c002,
      20,
      50,
      NULL,
      'f02_' || '#ROWNUM#'
      ) AS email_id
    FROM apex_collections
    WHERE collection_name ='EMAILDETAILS'
    ORDER BY c002
    

    The buttons used:

    1. name button: ADD

    Action: send the Page

    2 button name: DELETE

    Action: send the Page

    3 Collection page

    Point process: present now - before the calculations and Validations

    Enforcement process: once a Page visit

    Source:

    DECLARE
    
    
      l_collection_name APEX_COLLECTIONS.COLLECTION_NAME%TYPE;
      l_original_md5    VARCHAR2(32);
      l_latest_md5      VARCHAR2(32);
    
    BEGIN
    
      l_collection_name := 'EMAILDETAILS';
    
      FOR x IN 1 .. apex_application.g_f06.count 
      LOOP         
      IF apex_application.g_f01(x) IS NOT NULL --ID exists, check to see if record was updated
      THEN
      SELECT c048 INTO l_original_md5
      FROM apex_collections
      WHERE collection_name = l_collection_name
      AND seq_id = apex_application.g_f06(x);
    
      l_latest_md5 := wwv_flow_item.md5(
      apex_application.g_f01(x),
      apex_application.g_f02(x),
      apex_application.g_f03(x)
      );
    
      IF l_original_md5 != l_latest_md5 
      THEN
      apex_collection.update_member(
      p_collection_name => l_collection_name,
      p_seq             => apex_application.g_f06(x),
      p_c001            => apex_application.g_f01(x),
      p_c002            => apex_application.g_f02(x),
      p_c003            => apex_application.g_f03(x),
      p_c047            => 'U',
      p_c048            => apex_application.g_f05(x)
      );
      END IF;
      ELSE --ID does not exist, must be new record
      apex_collection.update_member(
      p_collection_name => l_collection_name,
      p_seq             => apex_application.g_f06(x),
      p_c001            => apex_application.g_f01(x),
      p_c002            => apex_application.g_f02(x),
      p_c003            => apex_application.g_f03(x),
      p_c047            => 'N',
      p_c048            => apex_application.g_f05(x)
      );
      END IF;
      END LOOP;
    
      IF :REQUEST = 'DELETE' 
      THEN
      FOR x IN 1 .. apex_application.g_f07.count 
      LOOP
      apex_collection.update_member_attribute(
      p_collection_name => l_collection_name, 
      p_seq             => apex_application.g_f07(x), 
      p_attr_number     => '47', 
      p_attr_value      => 'D'
      );
      END LOOP;
      END IF;
       
    END;
    

    4. table collection

    Point process: submit now - after calculations and Validations

    Enforcement process: once a Page visit

    Source:

    DECLARE
      l_table_md5       VARCHAR2(32);
      l_collection_name APEX_COLLECTIONS.COLLECTION_NAME%TYPE;
      l_del_count       PLS_INTEGER := 0;
      l_upd_count       PLS_INTEGER := 0;
      l_ins_count       PLS_INTEGER := 0;
      l_success_message VARCHAR2(32767);
       
      CURSOR op_lock_check_cur (p_id IN NUMBER)
      IS
      SELECT wwv_flow_item.md5(cmp_cd, email, tab_seq_id)
      FROM Cmp_Email
      WHERE tab_seq_id = op_lock_check_cur.p_id
      FOR UPDATE;
    BEGIN
      l_collection_name := 'EMAILDETAILS';
    
    
      FOR x IN (
      SELECT *
      FROM apex_collections
      WHERE collection_name = l_collection_name
      AND c047 IN ('N','U','D')) 
      LOOP
      IF x.c047 = 'N'
      THEN
      INSERT INTO Cmp_Email(tab_seq_id,cmp_cd,email) 
      VALUES (cmp_email_seq.nextval,
      :P5_CMP_CD_HIDN, 
      x.c002
      );
    
      l_ins_count := l_ins_count + 1;
      ELSIF x.c047 = 'U'
      THEN
      OPEN op_lock_check_cur(x.c003);
      FETCH op_lock_check_cur INTO l_table_md5;
    
    
      IF l_table_md5 != x.c048 
      THEN
      raise_application_error(-20001,'Current version of data in database has changed since user initiated update process.');
      END IF;
    
      UPDATE Cmp_Email
      SET cmp_cd=:P5_CMP_CD_HIDN
      ,email = x.c002
      WHERE CURRENT OF op_lock_check_cur;
    
      CLOSE op_lock_check_cur;
    
      l_upd_count := l_upd_count + 1;
      ELSIF x.c047 = 'D'
      THEN
      DELETE FROM Cmp_Email
      WHERE tab_seq_id = x.c003;
    
      l_del_count := l_del_count + 1;
      END IF;
      END LOOP;
       
      apex_collection.delete_collection(p_collection_name => l_collection_name);
       
      l_success_message :=  
      l_ins_count || ' rows inserted, ' ||
      l_upd_count || ' rows updated, ' ||
      l_del_count || ' rows deleted';
    
      :P5_SUCCESS_MESSAGE:= l_success_message;
       
    END;
    

    When I press the ADD button, a new line must be added to the shape of the table and the data should be saved to the collection. , But currently, the page is being submitted to the database table when adding new lines in the form of tables. The data should only be saved in the database when the user clicks on the APPLY CHANGES button

    I searched the Forum about this issue and have found many discussions which suggested to use JavaScript to add new lines. As I have no knowledge of JavaScript, these solutions have been strange for me.

    Please help me solve this problem.

    Thanks in advance.

    Kind regards

    Aravind

    Hi Christophe,

    Follow the changes mentioned below

    1. remove this your Collections initialize

    IF :REQUEST = 'ADD'
    THEN
      APEX_COLLECTION.ADD_MEMBER(p_collection_name => l_collection_name);
    END IF;  
    

    2 condition your collection process initialize

    Modify your process-> conditions-> PLSQL Expressions->: REQUEST IS NULL

    3. create a process more onload I say Add new line to the collection

    DECLARE
        l_collection_name APEX_COLLECTIONS.COLLECTION_NAME%TYPE;
       BEGIN
          l_collection_name := 'EMAILDETAILS';
         IF apex_collection.collection_exists(l_collection_name)
          THEN
              APEX_COLLECTION.ADD_MEMBER(p_collection_name => l_collection_name);
              END IF;
       END;
    

    4 condition your Add new line to the collection

    Modify your process-> conditions-> request = Expression1-> ADD (this should be request ADD button)

    5. change your button-> Action addition-> redirect to this application page :-> page no (same page)->-> ADD APPLICATION

    6. check your through the process conditional Page collection

    Modify your process-> conditions-> PLSQL Expressions->: ASK IN ('ADD', 'APPLY_CHANGES', 'DELETE')

    7. check your subject to the process of Collection to Table under condition

    Modify your process-> conditions-> PLSQL Expressions->: ASK IN ('APPLY_CHANGES')

    8. for the whole process to remove the conditions when the button is pressed.

    If the problems persists, create a sample on apex.oracle.com and share the connection information with the name of workspace.

    Hope this helps you,

    Kind regards

    Jitendra

  • When you press the button

    Hi Experts,

    Thank you very much for you full support for those who are new to the apex.

    I have created a form in the apex oracle 4.2 and I need your help.

    In form10g, I used when-pressed button trigger and used this logic PLSQL.

    If: ca_gl.ca_type = 'G', and: ca_gl.ca_lvl = 1, then select max (ca_code) in the ca_gl cod

    where ca_type = 'G '.

    and substr (ca_code, 1, 1) = substr(:ca_gl.ca_code,1,1)

    and ca_lvl = 1;

    Do_Key ("duplicate_record");

    : ca_gl.ca_code: = key + 1;

    kindly guide me in the apex oracle 4.2 where I can write this code.

    In Oracle Apex, I created a button and together

    attributes HTML button

    Action when click the button Set by the dynamic action

    Condition PLSQL

    SELECT max (ca_code) + 1 ca_gl

    where ca_type = '

    and substr (ca_code, 1, 6) = substr(:p7ca_code,1,6);

    It is showing error:

    • ORA-06550: line 6, column 16: PLS-00103: encountered the symbol "SELECT" when expecting one of the following numbers: (- + new case mod not null < an ID > < a between double quote delimited identifiers of > < a variable binding > continue avg current County are min max sql prior stddev sum variance execute forall time timestamp interval date fusion < a literal string with character set the context of > < number >) < a SQL string between single quotes > hose < a literal string between quotes or set of characters (go to the error)

    kindly Guide

    Thank you very much. you have your point.

  • error Java install ADR

    upgrade of application of apex 4.2.1 plsql for apex mod 5 and ADR on an installation of OEL 5.9.

    Apex installed 5.  installation of ords.war according to the docs

    https://docs.Oracle.com/CD/E37099_01/doc.20/e25066/install.htm#AELIG7019

    According to the pre-reqs Ive got 1.6 build 20

    Java $ [oracle@orcldub819 ADR] - version

    Java version "1.6.0_29 - ea.

    Java (TM) SE Runtime Environment (build 1.6.0_29 - ea - b08)

    Java for 64-bit Server VM (build 20, 4 - b01, mixed mode)

    [oracle@orcldub819 nico2277] $

    I still get the following error...

    Java $ [oracle@orcldub819 ADR] - jar ords.war

    Exception in thread "main" java.lang.UnsupportedClassVersionError: oracle, dbtools, jarcl, Entrypoint: version unsupported major.minor 51.0

    at java.lang.ClassLoader.defineClass1 (Native Method)

    at java.lang.ClassLoader.defineClassCond (unknown Source)

    at java.lang.ClassLoader.defineClass (unknown Source)

    at java.security.SecureClassLoader.defineClass (unknown Source)

    at java.net.URLClassLoader.defineClass (unknown Source)

    to java.net.URLClassLoader.access$ 000 (unknown Source)

    java.net.URLClassLoader to $1.run (unknown Source)

    at java.security.AccessController.doPrivileged (Native Method)

    at java.net.URLClassLoader.findClass (unknown Source)

    at java.lang.ClassLoader.loadClass (unknown Source)

    to Sun.misc.Launcher$appclassloader$ AppClassLoader.loadClass (unknown Source)

    at java.lang.ClassLoader.loadClass (unknown Source)

    The main class is not found: oracle.dbtools.jarcl.Entrypoint. Program ends.

    [oracle@orcldub819 nico2277] $



    I tried to run on another machine with a version of the JDK 1.7 and it worked but I want to get on this machine and run side by side for the upgrade of the 4.2.1 existing so am reluicatant draw 1.7 last because he will crush my java version existing prod which I don't want to do until the migration of apex 5 install to production.  Suggestions?

    Is not a matter of APEX, you would be better of this Oracle ADR forum post...

    Thank you

    Tony Miller
    Software LuvMuffin
    Salt Lake City, UT

  • Run the immediate problem

    Hi all

    Please check the following piece:

    DECLARE
       smtp_host     VARCHAR2 (256);
       smtp_port     PLS_INTEGER;
       wallet_path   VARCHAR2 (200);
       wallet_pass   VARCHAR2 (200);
       conn          UTL_SMTP.connection;
       l_reply       UTL_SMTP.reply;
    BEGIN
       EXECUTE IMMEDIATE
          ' begin :l_reply := utl_smtp.open_connection ( host => :smtp_host,
                                                                      port => :smtp_port, 
                                                                      c => :conn,
                                                                      wallet_path => :wallet_path, 
                                                                      wallet_password => :wallet_pass,
                                                                      secure_connection_before_smtp => FALSE
                                                                    ); end;'
          USING IN OUT l_reply,
                smtp_host,
                smtp_port,
                conn,
                wallet_path,
                wallet_pass;
    END;
    

    I have the following error at the launch of the anonymous block:

    ORA-06550: line 17, column 20:

    PLS-00457: expressions must be SQL types

    ORA-06550: line 9, column 4:

    PL/SQL: Statement ignored

    Is there a solution to return the collection l_reply and conn dynamically please?

    Thank you

    Michael.

    Thank you for answer you...  In fact, any solution for my problem of compatibility with the 10g...

    Solution has been compiling using conditional plsql.

  • Download images and saving them to a folder

    Well Hello, this is my first topic here in the oracle forums and I m already ask something, sry, but I really need help on this topic.

    I am currently working with Oracle database 10g XE with Apex 4.0 x.

    So here go us:

    I m trying to make application to the Apex where users will be able to download pictures and store them in a folder is desired on the server. I have red little son here and I found this.

    1. create FileBrowse point in Apex
    2. check the PLSQL processes that will take the images downloaded from WWV_FLOW_FILES and store them in custom table (allows to call IMAGES). After this step, we have our images stored in the table of the IMAGES on the server.
    3. now this is the confusing part, I want to be able, on the client side, see the list of folders already created on a server, or be able to specify the name of the folder and then call some PLSQL (or something else) to create this folder.
    4. after that, I saw that there are many ways to recreate the images and store them in the specific folder (created or specified in step 3 by customer) http://apex.oracle.com/pls/otn/f?p=31517:LOGIN:1753086653679135
    5. This is also part confusing: where should I create the main folder (the folder where all other records will be kept) so that I can access it using the application (purpose: image display)
    For example, when you create a Web page by using html, if I wanted to access some image files I would fix his way relative index.html.

    Lets say i m looking for the end do not code, I just want some advice in order to continue my research, or be able to understand this concept a little better because I m new to this.

    Thanks in advance.

    Published by: on January 24, 2012 910011 15:00

    With PL/SQL, you can create using UTL_FILE files, but not files.
    But using DBMS_SCHEDULER, you can run 'external' jobs... what could be a sort of "mkdir" command (see http://psoug.org/reference/dbms_scheduler.html)

    But think about it... I don't know that dbms_scheduler is available in XE...

    So something like the XFILES, using the built-in features XML - DB can be an elegant solution as well. You can even grant access to the XML - DB by using WebDav repository, it looks just like a folder on your network in windows Explorer.

    (Thanks for the plug XFILES, Mark)

  • to contion on link change in shape with report

    Hello
    i am working with form and report.on  the form page in case of edit i want to make contional to the delete button with condition:-
    
    plsql function returning a bolean 
    
    return GET_ADMIN_STATUS_UP(:APP_USER,TO_CHAR(:APP_PAGE_ID));.
    
    it is very important to pass the condition on delete button. if user don't have rights to delete the record.then button should not dispaly to the user.
    
    but on delete button condition is already there.
    
    VALUE OF THE ITEM IN EXPRESSION 1 IS NOT NULL.
    
    how could i full fill both these purpose.means how could i use both the conditions at same time.or is there any alternate.
    Thanks and greetings
    CORINE

    Published by: Sophie on April 26, 2011 05:30

    change the status of pl/sql expression and change the expression of

    :PXX_YOUR_ITEM is null and GET_ADMIN_STATUS_UP(:APP_USER,TO_CHAR(:APP_PAGE_ID))
    

    Make sure you add a colon in front of your name of the element.

    Thank you

    Janet Tyson

  • Compare start date with the end date

    Hello

    I'm a newbie in the apex. And my plsql programming skills are also not much.

    I have a request to the apex. I have a page where I insert the username and organization and begindate and the enddate.
    A user can belong to more than one organization.
    A user can also be belong to the same organization, several times, but then the new begindate must be greater than the old endate that already exist for this user and the organization.

    Can someone please help me on my way with the code?

    Thank you

    Instead of using a button, use a PL/SQL Expression:

    : ASK ('CREATE', 'APPLY_CHANGES')

    Be careful, the CREATION and the APPLY_CHANGES are the names of button the text displayed on the button. These two things can be different.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

Maybe you are looking for

  • The error queue will not fill

    Hello I've finally set up my treatment of error only to get a new problem: the queue of my error remains empty. What should happen is the following: 1. one or both of my instruments report an emergency stop. Because it is an error to which is not, I

  • Webcam worked perfectly, the next day, image display is very dark

    Hello. I recently bought a HP Pavilion dv6 - 6113cl 2 days ago. The webcam worked perfectly with beautiful hd quality and nice lighting. I have nothing else than a window updates. some downloads. Now when I go on Skype or youcam. The display of the w

  • DeskJet 3050 J610c ceased to appear in Image Capture (OSX)

    Hello, from the object, I've always used my Deskjet scanner using Capture picture, but today (or perhaps earlier, but I needed to scan today), it ceased to appear. My printer works without any problem. I'm on Mountain Lion 10.8.4, latest hp drivers i

  • HPLIP and LaserJet CP1215 Plugin

    I tried to get the cp1215 to work with my Mandriva Linux system cups 1.4.5.  I installed the HPLIP program for my distribution (3.12.10).  I installed the plugin, I can see the printer, toner levels, and he says that it prints.  But nothing comes out

  • How to complete the data not sorted in the listview?

    Hello I use the model dataset to display the list, but the content populated sort alphabatically. How to display the list without sorting? Thank you Dembélé George Jacob