apex_application.g_f0X - how

I'm looking example of @ Dene.
http://Apex.Oracle.com/pls/OTN/f?p=31517:214:4482592621033283:no
and cannot help but wonder how to identify what is apex_application.g_f0 * X * I need to use in my page?
How this can be done, if I do not form automatically generate?

Hello again!

How about something like this in your process of page?

DECLARE

v_err_rows VARCHAR2(255);
v_err_msg VARCHAR2(255);

BEGIN 

  FOR i IN 1.. APEX_APPLICATION.G_F01.COUNT
  LOOP

    IF LENGTH(APEX_APPLICATION.G_F01(i)) > 10
    THEN

      IF v_err_rows IS NULL
      THEN v_err_rows := i;
      ELSE v_err_rows := v_err_rows||' and '||i;
      END IF;

    END IF;

  END LOOP;

  IF v_err_rows IS NOT NULL
  THEN 

    IF LENGTH(v_err_rows) > 1
    THEN v_err_msg := 'Names on rows '||v_err_rows||' are just too damn long!';
    ELSIF v_err_rows IS NOT NULL
    THEN v_err_msg := 'Name on row '||v_err_rows||' is just too damn long!';
    END IF;

  END IF;

  IF v_err_msg IS NOT NULL
  THEN wwv_flow.show_error_message(v_err_msg);
  END IF;

END;

See you soon

Ben
http://www.munkyben.WordPress.com
Don't forget to mark the answers useful or correct ;)

Tags: Database

Similar Questions

  • apex_application.g_f0X - no data found?

    All,

    We are running in a sporadic error (don't you hate those?) save a form in a table where up an error "no data found". We use a custom PL/SQL record the process which makes a loop through all the fields in g_f0X to save the data of the user. Through the liberal use of the debug messages, I found that the error occurs in these two lines:
    nmin := apex_application.g_f04(i);
    nmax := apex_application.g_f05(i);
    Here is the HTML code for the appropriate line (in this case, I have is 22), just before hitting the Save button and get the error:
    <td headers="NEW_MIN" class="data">
         <label for="f04_0022" class="hideMe508">NEW_MIN</label>
         <input type="text" name="f04" size="6" maxlength="2000" value="11" data_field="new_min" id="f04_0022"/>
    </td>
    <td headers="NEW_MAX" class="data">
         <label for="f05_0022" class="hideMe508">NEW_MAX</label>
         <input type="text" name="f05" size="6" maxlength="2000" value="17" data_field="new_max" id="f05_0022"/>
    </td>
    No idea what's happening, and how can I solve this problem?

    Thank you
    -David

  • Is there some JS code disabled a few lines before the submit?
  • Is it possible that you use one of these paintings 04 or 05 in other places on the page, except the measurement report?
  • If you use a wwv_flow.debug (apex_application.g_f04. COUNTY) and wwv_flow.debug (apex_application.g_f05. COUNTY)
    Match these values, which is also the same as the number of lines that you see in the report?

  • How to assign the variable element of dynamic page?

    Hello

    I am facing following problem:
    I need assign a variable with a value of a page element - for example apex_application.g_f04 (i).
    My problem is, that f04 maybe everthing between f04 and f52 (or whatelse was number of page elements?).
    I've tried several things, among others, something like this:

    v_test: = apex_application.g_f | x | (i) / * where x can be another variable * /.

    or

    v_stat: = 'SELECT apex_application.g_f ' | x | "(i) the double '.
    EXECUTE IMMEDIATE v_stat INTO v_test

    but I do not understand so far...
    Any ideas?

    Published by: DFiles on 06.01.2011 13:57

    apex_application.g_f0x variable package are associative arrays and are not accessible to the dynamic SQL. You must use the dynamic PL/SQL:

    declare
    
      i pls_integer;
      x pls_integer;
      v varchar2(32767);
    
    begin
    
      /* However you get values for x and i... */
      i := 1;
      x := 4;
    
      execute immediate 'begin :1 := apex_application.g_f' || to_char(x, 'fm09') || '(:2); end;'
        using out v, i;
    
      return v;
    
    end;
    
  • Help Popup not rendered HTML based on the referenced element.

    I have a named item & P104_GENDER on a page that references a hidden item, which is calculated using a calculation that uses a database function to retrieve data to help for the item and fill in the hidden element.

    So for this article, is the source of help & P104_GENDER_HELP. & P104_GENDER_HELP is filled with "Please enter a sex. Possible values are: & lt; BR & gt; -Male & lt; BR & gt; -Female' according to the debugging session.


    When I click on the label to display the context-sensitive Help window, it displays: "Please enter a sex. Possible values are: & lt; BR & gt; -Male & lt; BR & gt; -Female. "

    Apex 3.X, the HTML would render correctly and it would display:

    Please enter a sex. Possible values are:
    -Male
    -Female

    But in Apex 4.0, it makes just the text as if it had no HTML implementation involved form, i.e. "Please enter a sex. Possible values are: & lt; BR & gt; -Male & lt; BR & gt; -Female. "

    However, if I put the source directly for help on the question "Please enter a sex. Possible values are: & lt; BR & gt; -Male & lt; BR & gt; -Female", without reference to the hidden item, it renders properly in HTML format.

    I tried to change my label template to use javascript:popupfieldhelpclassic instead of the javascript:popupfieldhelp function, but I get the same wrong result.

    When I looked at the source that is generated in the pop-up window when you reference an element hidden, is to convert the < and >, symbols of "& lt" and "& gt" respectively, which means it does reference the text from the element hidden in the form of literal text and convert anything that resembles HTML in plain text instead of treat it only as HTML. I can see why this would be useful for some people, but it's not so useful to me, especially since he is used to the opposite effect.

    They have both have in common, is that they use the wwv_flow_item_help.show_help function. I guess that the culprit lies in this encapsulated code.

    Anyone has an idea on how to work around this problem so that text coming from referenced items analyzed and presented in HTML format instead of literal text?

    Thank you very much.

    Published by: user12021046 on December 15, 2011 13:51
    Changed for good formatting HTML :-)

    Ah, now I understand!

    So I think the problem is, when you click the label, he calls a procedure that returns the text of help via AJAX. In my view, this procedure escapes html tags, and from what I can tell, there is no setting to disable. :( Even if you load classic help, these tags are also escaped. There may be tweaks that I don't know, but I looked into the security of the shared components section, but nada.

    So a possible solution?

    If you look at the label, you'll see that it links to the following function:

    function popupFieldHelp(b,a){
         if(!$x("pScreenReaderMode")){
              apex.jQuery.getJSON("wwv_flow_item_help.show_help?p_item_id="+b+"&p_session="+a+"&p_output_format=JSON",
              function(c){
                   var d=apex.jQuery("#apex_popup_field_help");
                   if(d.length===0){d=apex.jQuery('
    '+c.helpText+"
    "); d.dialog({title:c.title,bgiframe:true,width:500,height:350,show:"drop",hide:"drop"}) } else{ d.html(c.helpText).dialog("option","title",c.title).dialog("open") } }) }else{ popupFieldHelpClassic(b,a) } return }

    A quick and dirty solution would be to replace the escape with their html tags characters so that it is rendered correctly

    that is, add the following:

                   c.helpText = c.helpText.replace(/</g, '<');
                   c.helpText = c.helpText.replace(/>/g, '>');
    

    -These forums are not keep what I write here, I'm sure you can understand what im speak well.

    Of course, change the label template to point to your custom function.

    The other solution I was going to suggest was to write your own application process that gets you some JSON - Martin D'Souza has written a blog on the use of the apex_util.json_from_sql; which is what you would probably use a query such as:

    select label, item_help_text
    from apex_application_page_items
    where item_id = apex_application.g_x01
    

    The problem is the text of the done element refers to another page, so it would return to the value chain e.g. & P12_ITEM. of course it wouldn't be to hard to get around.

    for example, select replace (item_help_text, '&' | apex_application.g_x02 |'.) (', v (apex_application.g_x02)) item_help_text
    of apex_application_page_items
    where item_id = apex_application.g_x01

    (not tested)

    and then as a quick primer to a way of doing AJAX

    1. create a htmldb_Get object: helpText var = new htmldb_Get (null, null, "APPLICATION_PROCESS = nom_processus");

    Where nom_processus is the name of an application process that you create

    2. Add the necessary parameters

    helpText.addParam ("x 01', 'itemId')
    helpText.addParam ("x 02', 'P12_ITEM')

    This is to add temporary variables that can be reference via apex_application.g_f0x; the alternative is that you can add paremeters State session with

    helpText.add ('nom_element', 'ITEM_VALUE') and get sent when you call the object's get() function.

    3. get the JSON and parse
    obj = JSON.parse (helpText.get ());

    Then create the http://jqueryui.com/demos/dialog/ for the help dialog box

    ..

    Well I hope that gives you some ideas / a starting point.

  • APEX_ITEM. DISPLAY_AND_SAVE: return as number value?

    Hello

    Apex 4.0.2.00.07, Oracle 11 g r2.

    I need to use the APEX_ITEM. DISPLAY_AND_SAVE function in an interactive report (I need to be able to access its value using apex_application.g_f0x).

    The displayed value is a numeric value:

    SELECT
       [...],
       APEX_ITEM.DISPLAY_AND_SAVE(2, person_no),
       [...]
    FROM
       [...]
    WHERE
       [...]
    


    The problem is that this function returns a varchar2 value, so that the column cannot be sorted correctly in the report.

    I can't find a way to display the value as a number in an interactive report...

    Any solution?

    Thank you.

    Yann.

    Hello

    Indeed, it is a solution.

    I think it's a job improvised, but it works!

    EDIT: Sorry, but I just saw that he does not for an interactive report as there is no "Expression HTML" option available. I used link column instead, redirect to javascript:void (0).

    Thanks RecxLtd.

  • In a table - looping through the rows and the stored procedure call

    APEX version: 3.2.0.00.27

    Hello

    I searched the forum and tried a few things but could not make it work.

    I have a tabular presentation, developed with the help of the ATD (Cascading LOV - method of tabular presentation - AJAX - ATD )

    What I'm trying to do now:
    -After submit and validations, loop through all the lines and
    -call a stored procedure passing 3 parameters obtained from each of the lines on the form of tables. This procedure will be an update of a database table.

    On the forum, I found that I could do the loop "* FOR i IN 1..." APEX_APPLICATION.g_f03. "LOOP COUNT *" syntax.

    Only for testing purposes, I tried just to view information with the following (On Load - after a footer) process (example of Denes Kubicek == > http://deneskubicek.blogspot.com/2009/05/execute-javascript-throuhg-plsql.html):
    declare
      v_today  varchar2 (200);
    begin
    --  :P40_test := APEX_APPLICATION.g_f03(1);
    --  :P40_test2 := APEX_APPLICATION.g_f04.COUNT;
      :P40_test2 := 100;
    
      v_today := to_char (sysdate, 'dd.mm.yyyy');
    
    --FOR i IN 1.. APEX_APPLICATION.g_f03.COUNT LOOP 
    
      :P40_test := APEX_APPLICATION.g_f02(2);
    
      HTP.p ('<script type="text/javascript">');
      HTP.p (   'alert(''Today is '
              || v_today
    --          || APEX_APPLICATION.g_f04(APEX_APPLICATION.g_f03(i))
              || '.\n'
              || 'end!'');'
             );
      HTP.p ('</script>');
    
    --    :P40_test := APEX_APPLICATION.g_f02(APEX_APPLICATION.g_f02(i));
    
    --END LOOP;
    
    end;
    The foregoing would give me a ' * ORA-01403: no data found * ' message. I tried through various variants of APEX_APPLICATION.g_f0* #*, but still can't get anything to display correctly. In commenting on all the lines referring to APEX_APPLICATION.g_f0x above, the date would be are they displayed fine.

    I tried uncomment the FOR... LOOP and play with the code (defining the process runs "On submit - after calculations" and Validations), I got was a ' * ORA-06502: PL/SQL: digital error or value: character conversion number error * "message.

    Here is the script of the form in a table:
    select 
    "V"."MSLINK",                                       -- hidden (number)
    "V"."INSTALLATION_DATE",                        -- editable date picker
    "V"."MANUFACTURER_INDICATOR",              -- editable (cascading LOV -- text)
    "V"."MODEL_INDICATOR",                           -- editable (cascading LOV -- text)
    "V"."DIAMETER_INDICATOR",                      -- editable (LOV -- number)
    "V"."PURPOSE_INDICATOR",                        -- editable (LOV -- text)
    "V"."VALVE_NUMBER",                                -- shown but not editable -- number
    "V"."MODIFY_DATE",                                  -- shown but not editable
    "V"."MODIFY_USER",                                   -- shown but not editable
    "V"."VALVES_STYLE"."FEATURE"                  -- shown but not editable -- number
    from "#OWNER#"."VALVES" "V"
    Where
      "V"."PROJECT_ID" = :P1_PROJECT_NUMBER AND
      "V"."VALVES_DFLAG" = 0
    Regarding the parameters for the stored procedure, it would the MSLINK, VALVE_NUMBER and the VALVES_STYLE. FEATURE.

    Help, please!
    (Sorry for the long post).

    Thank you

    Tan

    Hi, Tan,

    I have not seen that type of object - I've only used custom types for purposes of test years ago and have never used their within Apex!

    One possibility is that the value of checksum being is based on all of the content of these fields, rather than only the part of the FEATURE. If there are other parts of the object, you could include those items as well.

    Otherwise, as you f01 KP for a record, you will need to retrieve the values of the FUNCTION in your PL/SQL code directly from the table (because the user cannot modify these fields, you can be sure that the values in the table will be still valid).

    Andy

  • APEX_APPLICATION. G_F0x tables in the query

    Hello

    Is it possible to use APEX_APPLICATION. G_F0x tables in the query and select it at the table?

    I like to select values from table bunch I have on the table.
    Of course I can loop table, but I like to select at once as
    SELECT e.*
    FROM emp e
    WHERE EXISTS(
      SELECT 1
      FROM TABLE(APEX_APPLICATION.G_F01 AS empno) a
      WHERE e.empno  = a.empno
    )
    I don't know is it still possible.

    Thanks in advance.

    Kind regards
    Jari

    Jari

    No, you cannot use the TABLE operator on a PL/SQL associative array as apex_application.g_f01: it requires a nested table or a table variable declared as an object database. You can access apex_application.g_f01 by using a function in the pipeline in this way.

  • How to use APEX_APPLICATION. G_FXX in a process page

    Hello

    I'll have a report to my 1st page using the code
    select 
    apex_item.checkbox(1,"EQUIPMENT_ID") Tick,
    EQUIPMENT_TYPE as "Device Type",
    EQUIPMENT_NAME as "Device Name",
     CUSTOMER_NAME as "Customer Name",
     SITE_NAME as "Site Name"
     
      from DEVICE_VIEW
    In the process of the page this page we can use APEX_APPLICATION. G_F02, * APEX_APPLICATION. G_F03 * for

    Reference type_equipement, EQUIPMENT_NAME?

    My second page has code
    select
    apex_item.checkbox(1,"INTERFACE_ID") Tick,
    INTERFACE_TYPE as "Device Type",
    INTERFACE_NAME as "Device Name",
     CUSTOMER_NAME as "Customer Name",
    apex_item.checkbox(2,"EQUIPMENT_ID") Tick,
     SITE_NAME as "Site Name"
     
      from INTERFACE_VIEW
    Can I use this way? How we identify each filed using the APEX_APPLICATION. G_FXX? in the process of the page.

    If my interpretation is wrong, which is exactly APEX_APPLICATION. G_FXX?. Help, please

    Thank you
    TJ

    Hi TJ.

    As you use index 2 your second check box, you must use a different number for the item DISPLAY_AND_SAVE - if no other columns are editable, so you can use 3.

    Then your process can refer to each of the three values as APEX_APPLICATION. G_F01 (x) for the first box, APEX_APPLICATION. G_F02 (x) for the second box and APEX_APPLICATION. G_F03 (x) for the DISPLAY_AND_SAVE element.

    An important point to note is that only checked boxes are submitted with the page - all those disabled or unchecked are completely ignored (it's a browser thing not an Apex one). This can have major problems when you try to connect the boxes checked with other values on the line. If the user has checked only two articles about 15 ranks, F01 would only have 2 values but F03 the full 15. As the boxes return the EQUIPMENT_ID value, you may be easier get your PL/SQL code to retrieve the DELIVERED_SERVICE_NAME value directly from the database.

    Andy

  • How to get APEX_APPLICATION elements index for lines checked

    Hi, I built a report like this:
    SELECT
    APEX_ITEM. CHECKBOX (11, CAA_NO, GET_RB_CA_CHECKED (: P13_REIMBURSEMENT_FORM_ID, CAA_NO,: CURRENT_USER_EMPLID)) as CA_CLEAR,
    APEX_ITEM. TEXT (12, GET_RB_CA_CLEAR_AMT (: P13_REIMBURSEMENT_FORM_ID, CAA_NO), null, null, GET_CA_SELECTABLE (:P13_REIMBURSEMENT_FORM_ID,:CURRENT_USER_EMPLID)) as CA_CLEAR_AMT,)
    + "TNE_CASH_ADVANCE." "" CAA_NO ""CAA_NO,"+
    + "TNE_CASH_ADVANCE." "" APPLY_DATE ""APPLY_DATE,"+
    + "TNE_CASH_ADVANCE." "" BUSINESS_UNIT ""BUSINESS_UNIT,"+
    + "TNE_CASH_ADVANCE." "" APPLY_AMOUNT ""APPLY_AMOUNT,"+
    + "TNE_CASH_ADVANCE." ' ' CURRENCY_CD ' 'CURRENCY_CD ' +.
    OF
    + 'TNE_CASH_ADVANCE ' +.
    WHERE APPLICANT =: P13_APPLICANT_EMPLOYEE_NUMBER

    You can see that the 2nd is an input box for the user to enter the number.
    But here's a nuisance. For the submission process:

    DECLARE
    P_CAA_NO VARCHAR2 (14);
    NUMBER OF P_WO_AMT;
    NUMBER OF P_WO_TOTAL;
    BEGIN
    P_WO_TOTAL: = 0;
    + / * erase all profits. prepare for the write-off of validation * / +.
    DELETE TNE_RB_CLEAR_CA
    WHERE REIMBURSEMENT_FORM_ID =: P13_REIMBURSEMENT_FORM_ID;
    BECAUSE me in 1.APEX_APPLICATION. G_F11. Count
    LOOP
    P_CAA_NO: = APEX_APPLICATION. G_F11 (i);
    P_WO_AMT: = APEX_APPLICATION. G_F12 (APEX_APPLICATION. G_F11 (i));
    raise_application_error (-20001, P_WO_AMT);
    P_WO_TOTAL: = P_WO_TOTAL P_WO_AMT; +
    END LOOP;
    END;

    We know that the arrary F11 will return only selected lines. But this leads to a mistake on go get the F12.
    The F12 will have a bad index (i). Right?

    Anyone has any experience on this? Thanks in advance.

    Add one more APEX_ITEM - element hidden with the same ID as in your ARTICLE in the BOX. As you wrote, F11 (i) returns only selected ID. checkboxes so, if you add an element with the same ID value to compare with your box. In your loop, if these two values are the same, this means checkbox for the current, I even checked. E.g.:

    Select
    apex_item. Hidden(1,TABLE_ID) | apex_item. Hidden (2, SEQ_ID) | apex_item. CheckBox(3,SEQ_ID) "remove."
    NAME
    of une_table

    Erase your process:

    BECAUSE me in 1... apex_application.g_f01. COUNTY
    LOOP
    FOR j from 1... apex_application.g_f03. COUNTY
    LOOP
    IF apex_application.g_f03 (j) = apex_application.g_f02 (i) THEN
    / delete process using only the i-references.
    END IF;
    END LOOP;
    END LOOP;

    With this condition you don't need to use APEX_APPLICATION. G_F12 (APEX_APPLICATION. G_F11 (i)); but:

    P_WO_AMT: = APEX_APPLICATION. G_F12 (i);

    Kind regards
    Przemek

  • How to get the #APP_VERSION # to display in a region

    Request Express 3.2.1.00.11

    Using a page template (home page > Application Builder > ApplicationNUM > shared components > models > modify the Page template) I can get the version of the Application to display on a page, using the following substitution #APP_VERSION string # in the foot.

    But how do I get the version of the application to display (#APP_VERSION #) in a region.

    If I place the #APP_VERSION text # in a model of the region, it displays the text #APP_VERSION.

    I tried to use the Panel of dispatches Home > Application Builder > Application 221 > shared components > change the definition of request but the same thing happens.

    Ben

    Benton says:

    I tried to use substitutions Panel to access the Version of the Application in the same way that I could do this;

    Replacement replacement value string

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

    MY_ALIAS & APP_ALIAS.

    Replacement replacement value string

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

    MY_APP_VERSION what is happening here - I want to access the value which is next to the * Version text in the panel titled 'Name' under Home > Application Builder > Application 221 > shared components > change the definition of request

    I can to the Version of the Application other than its use #APP_VERSION # in a page template. I don't want to use static text.

    The only way to access the application Version attribute using the #APP_VERSION model # substitution string in a template header or footer, or interviewing in the APEX_APPLICATIONS view SQL. Create an application APPLICATION_VERSION element and set it in a calculation of application of SQL query executed about calculation on the new Session:

    select
        version
    from
        apex_applications
    where
      application_id = :app_id
    

    The question of the application can now be referenced in the HTML source code like & APPLICATION_VERSION. or in SQL and PL/SQL like: APPLICATION_VERSION

  • APEX_APPLICATION. G_F01. Count remains 0

    I have,

    My main requirement is table based on IR o/p upsert. But I realized that my pl/sql block was not in the loop as long as APEX_APPLICATION. G_F01. Count; down to 0.

    That is why I changed my DA as below which shows that the count is always 0.

    declare

    Number DEFAULT_THRESHOLD: = 95;

    x number;

    Start

    x: = APEX_APPLICATION. G_F01. Count;

    insert into apex_imh_team.test_loop values (x);

    commit;

    END;

    SQL > select * from apex_imh_team.test_loop;

    COUNTY

    ----------

    0

    0

    0

    Request for IR:

    Select apex_item.select_list_from_lov (1, case when (select count (DISKGROUP_NAME) in rep_user.) ASM_DG_THRESHOLD where HOST_NAME =: P2_HOST and DB_NAME =: P2_DB and DISKGROUP_NAME = a.DISKGROUP_NAME) = 0 then 95

    other (indicate the THRESHOLD of rep_user. ASM_DG_THRESHOLD where HOST_NAME =: P2_HOST and DB_NAME =: P2_DB and DISKGROUP_NAME = a.DISKGROUP_NAME)

    end, 'THRESHOLD_RANGE',: P13_THRSHOLD_SELECT_STATUS, p_show_null = > 'NO', p_show_extra = > 'NO') THRESHOLD.

    TIMESTAMP, DISKGROUP_NAME, APEX_ITEM. Hidden(2,DISKGROUP_NAME) DG_HIDDEN, sum (round(DISK_TOTAL_SIZE_GB,2)) 'TOTAL GB", sum (round(DISK_FREE_SIZE_GB,2))"GB FREE",

    (round ((sum (round(DISK_TOTAL_SIZE_GB,2)) - sum (round(DISK_FREE_SIZE_GB,2))) /sum (round(DISK_TOTAL_SIZE_GB,2)) * 100, 2)) "USED PCT.

    of rep_user. ASM_DETAILS_CENTRAL one

    where HOST_NAME =: P2_HOST

    and DB_NAME =: P2_DB

    Group of TIMESTAMP, DISKGROUP_NAME

    order by 5 desc;

    Am I missing something here?

    Kind regards

    Meet.

    user8862264 wrote:

    Please update your forum profile with a recognizable username instead of "user8862264": Video tutorial how to change username available

    Always include detailed information here when you post a question.

    My main requirement is table based on IR o/p upsert. But I realized that my pl/sql block was not in the loop as long as APEX_APPLICATION. G_F01. Count; down to 0.

    That is why I changed my DA as below which shows that the count is always 0.

    declare

    Number DEFAULT_THRESHOLD: = 95;

    x number;

    Start

    x: = APEX_APPLICATION. G_F01. Count;

    insert into apex_imh_team.test_loop values (x);

    commit;

    END;

    SQL > select * from apex_imh_team.test_loop;

    COUNTY

    ----------

    0

    0

    0

    Request for IR:

    Select apex_item.select_list_from_lov (1, case when (select count (DISKGROUP_NAME) in rep_user.) ASM_DG_THRESHOLD where HOST_NAME =: P2_HOST and DB_NAME =: P2_DB and DISKGROUP_NAME = a.DISKGROUP_NAME) = 0 then 95

    other (indicate the THRESHOLD of rep_user. ASM_DG_THRESHOLD where HOST_NAME =: P2_HOST and DB_NAME =: P2_DB and DISKGROUP_NAME = a.DISKGROUP_NAME)

    end, 'THRESHOLD_RANGE',: P13_THRSHOLD_SELECT_STATUS, p_show_null => 'NO', p_show_extra => 'NO') THRESHOLD.

    TIMESTAMP, DISKGROUP_NAME, APEX_ITEM. Hidden(2,DISKGROUP_NAME) DG_HIDDEN, sum (round(DISK_TOTAL_SIZE_GB,2)) 'TOTAL GB", sum (round(DISK_FREE_SIZE_GB,2))"GB FREE",

    (round ((sum (round(DISK_TOTAL_SIZE_GB,2)) - sum (round(DISK_FREE_SIZE_GB,2))) /sum (round(DISK_TOTAL_SIZE_GB,2)) * 100, 2)) "USED PCT.

    of rep_user. ASM_DETAILS_CENTRAL one

    where HOST_NAME =: P2_HOST

    and DB_NAME =: P2_DB

    Group of TIMESTAMP, DISKGROUP_NAME

    order by 5 desc;

    Am I missing something here?

    Generally, apex_application.g_fxxvalues in the table are available in the page accept the procedure if the page is presented and therefore are not met when a dynamic action is executed (unless DA fills it first table).

    Why do you use a dynamic action instead of submit page?

  • How to disable Edit/Clone/case when transaction obtained ceratin in apex 4.2

    Hi all

    In our application, we have designed a screen using interactive report as shown below, in this report when they click on the checkbox and click the middle button we are what makes this transaction as being inactive and red color display. Requirement is now this line had to be disabled once the record was ceratin.

    1. below is screenshot of reference

    2 when they select the checkbox and click the ceratin that she will change in different as on the first row, now that the rank we now need to disable this, since this product has been produced de-activated.

    3 below used concept to achieve color, using dynamic action, we put in place this

    $('td[headers="Active_Flag"]').each(function() {  
      if ( $(this).text() === 'N' ) {  
        $(this).closest('tr').find('td').css({"background-color":"#EEA196"});
      } 
    });
    

    4. the logic of inactive code

    update t_test
                 set active_flag='N',
                      inactive_date=sysdate
                WHERE prod_map_id = to_number(apex_application.g_f01 (i));    
    

    Could you please let me know how to disable it.

    Kind regards

    Sruthitamiri

    Sruthi Tamiri wrote:

    I created an application in apex.oracle.com, please find necessary details, when you click on the checkbox and click Delete active, I call process of having ename like "N", then entire line should be disabled, because these have become now in use. Also, I gave the icon change, but total feature I didn't explain, that won't hurt i., e will redirect us to another page, where they changed the required fields, in this case I'm showing only a blank page. Once the entire line is turn off, it will not be able to click the icon change as well.

    Using CASE expressions in the report query to conditionally exclude links and lines disabled checkboxes and add a hidden (EMPNO) key column that can be referenced as a parameter in the conditional link:

    select
        case ename
          when 'N'
          then
            null
          else
            ''
        end "Edit"
      , ename
      , job
      , case ename
          when 'N'
          then
            null
          else
            apex_item.checkbox2(
                p_idx => 1
              , p_value => empno)
        end checkbox
      , empno
    from
       emp
    

    The column change Display Type value Standard report columnand the column Link Text link #Edit #.

  • How to create a text file of apex

    Hello.

    I have apex 5 user and I need to create a txt file to format a report ANSI classic interactive report or query.

    I need a TXT, CSV file because this file allows it to import into another application.

    Is it Possible? How?

    Thank you!!

    Hmm, could be done in a select statement in a variable:

    DECLARE l_Clob_Item CLOB;

    l_Length NUMBER;

    SELECT Col1 | Col2. COL4 IN l_Clob;

    l_Length: =.DBMS_LOB.GETLENGTH( l_Clob);

    Next, you need to write code to allow download of the clob machine local users

    owa_util.mime_header('application/octet', FALSE );
      htp.p('Content-length: ' || l_length);
      htp.p('Content-Disposition: attachment; filename="My_text_File"');
      owa_util.http_header_close;
      wpg_docload.download_file( l_Clob );
      apex_application.stop_apex_engine;

    Something like this should work...

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

  • How a select list to cascaded in a table?

    Hello

    I would like to know how to create a pick list cascading tabular.

    In the screenshot next, for example, when select "2081: Alice Fan", the next filed should watch only "ID: name of the element" belongs to Alice.

    Screen Shot 2015-07-17 at 16.35.32.png

    Usually I do this simply for an article by implementing the SQL query and cascade LOV parent as follows.

    However, I can't find it in the form of tables?

    Screen Shot 2015-07-17 at 16.37.16.png

    Screen Shot 2015-07-17 at 16.37.25.png

    One can help with the solution?

    I hope that this can be done to reload partially after the first field had changed, but not to present an entire page.

    Thank you!

    Alice

    Hi AliceFan-Oracle,

    AliceFan-Oracle wrote:

    Please see application 81653, page 2 (Test in the navigation menu).

    It's the ERT_TABLE_Item.

    If 'point ERT ID' is cascaded by ERT ID,

    When select "2221" ERT ID, it takes only the concerts "2521" and "2541" at the point of the ERT ID.

    When select "2222" ERT ID, it takes only the concerts '2561"in ERT item ID.

    ID ERT and ERT tabular item ID are columns 29th and 30th.

    Check your Application-> Page 2 81653 on your instance of apex.oracle.com. I implemented the LOV cascading using the solution of Jari.

    Reference: APEX Blog of Jari: Article Cascading select list in the form of

    Here are the steps how this is implemented:

    • Edited your Page attributes-> section JavaScript-> 'Function and Variable global statement' has added the following code:
    (function($){
    
    /*** Cascading select list ***/
    $.fn.htmldbCascade=function(parent,onDemand,options){
    
      options=$.extend({
       trigger       : false,
       extrVal       : false,
       nullShow      : false,
       nullValue     : "",
       nullDisplay   : "- Select -",
       disAlias      : "DIS",
       retAlias      : "RET",
       loadingTxt    : "Loading ...",
       loadingCss    : {"width":"80px"}
      },options);
    
      return this.each(function(i){
    
       var self=$(this);
       var lParent=$(parent).eq(i);
       var lSelfVal=self.val();
       if(!lSelfVal){lSelfVal="";};
    
       if(!lParent.data("htmldbCascade")){
        lParent.change(function(){
    
         var lParentVal=$v(this);
         if(!lParentVal){lParentVal="";};
    
         $.extend(options.loadingCss,{"height":self.parent().height()});
    
         self
          .hide()
          .empty()
          .parent()
          .find("div.ui-autocomplete-loading")
          .remove()
          .end()
          .append($("
    ",{"html":options.loadingTxt,"css":options.loadingCss}) .addClass("ui-autocomplete-loading")); if(options.nullShow){ appendOpt(self,options.nullDisplay,options.nullValue); }; $.post("wwv_flow.show",{ p_flow_id:"&APP_ID.", p_flow_step_id:"&APP_PAGE_ID.", p_instance:"&APP_SESSION.", p_request:"APPLICATION_PROCESS="+onDemand, x01:lParentVal },function(jd){ var lExists=false; $.each(jd.row,function(i,d){ if(d[options.retAlias]===lSelfVal){lExists=true;}; appendOpt(self,d[options.disAlias],d[options.retAlias]); }); if(options.extrVal&&!lExists){ appendOpt(self,lSelfVal,lSelfVal); }; self .val(lSelfVal) .show() .parent() .find("div.ui-autocomplete-loading") .remove(); if(options.trigger){self.trigger(options.trigger);}; },"json"); }).data("htmldbCascade",true).trigger("change"); } }); /*** Append option ***/ function appendOpt(pThis,pDis,pRet){ pThis.append( $("
    • Edited your ERT_ITEM_ID column and added the following code to query LOV:
    SELECT NULL d,
           NULL r
    FROM   DUAL
    WHERE  1 = 2
    
    • Application G_TEMP element created in shared components-> section elements of enforcement with Protection of Session State"set to"Unrestricted ".
    • Created AJAX callback information Page at the request of GET_ERT_ITEM_ID process with the following code:
    DECLARE
      l_sql VARCHAR2(32700);
    BEGIN
      IF APEX_APPLICATION.G_x01 IS NOT NULL THEN
        APEX_UTIL.SET_SESSION_STATE('G_TEMP', APEX_APPLICATION.G_x01);
        l_sql := '
          SELECT ERT_ITEM_ID||'': ''||VENDOR_ID DIS,
                 ERT_ITEM_ID RET
          FROM   ERT_TABLE_ITEM
          WHERE  ERT_ID = :G_TEMP
          ORDER BY 1
        ';
      APEX_UTIL.JSON_FROM_SQL(l_sql);
      ELSE
        HTP.prn('{"row":[]}');
      END IF;
      APEX_UTIL.SET_SESSION_STATE('G_TEMP', NULL);
    END;
    
    • Created the dynamic action named "Set LOV cascade after refresh and onload", with the following attributes:

    Event: After refresh

    Selection type: region

    Region: Update purchase order (15)

    Condition: No strings attached

    Action: Run the JavaScript Code

    Fire on loading the Page: Yes

    Code:

    $("[name=f30]").htmldbCascade(
    "[name=f29]",
    "GET_ERT_ITEM_ID",{
      nullShow:true,
      nullDisplay:"- Select -"
    });
    

    Assigned items: no

    • 'Action' button "ADD a line" changed "defined by the dynamic Action. Created another dynamic action named "Cascading select list Set for the new line" with the following attributes:

    Event: click on

    Selection type: button

    Region: ADD Row

    Condition: No strings attached

    Action: Run the JavaScript Code

    Fire on loading the Page: No.

    Code:

    apex.widget.tabular.addRow();
    $("[name=f30]:last").htmldbCascade(
    "[name=f29]:last",
    "GET_ERT_ITEM_ID",{
      nullShow:true,
      nullDisplay:"- Select -"
    });
    

    Assigned items: no

    Kind regards

    Kiran

  • How to create a process of erasure for sub form of table

    Hello

    I created two applications and they share the same DB schema to apex.oraclecorp.com.

    One is app purchase order, when user enter 'Purchase requisition number' and select ' ERT HW/Item ID: HW/Item Name.

    and click 'apply changes' in the tabular presentation, the other app in 3rd screenshot, automatically updated data with the ID of the item selected with the "purchase requisition number.

    I did it with the following code in the first screenshot.

    I would like to know how to create a delete for this process?

    Does it mean that when I delete one of the item in purchase order app, another application can update the article with this number of requisition (PRM) as null?

    How to specify the item I checked to remove?

    Thank you!

    Alice

    I did itScreen Shot 2015-07-17 at 16.24.22.png

    Screen Shot 2015-07-17 at 16.16.18.png

    Screen Shot 2015-07-17 at 16.18.33.png

    Hi AliceFan-Oracle,

    AliceFan-Oracle wrote:

    I read the thread of the solution you provided. But I think that my case is different.

    I therefore reproduce my apex.com case.

    In the page of the order, I create a process of "Apply change" button, so when you select item ERT ID and press the button 'apply changes', the process will update the column 'PURCHASE_REQUEST_NUMBER' in the table 'ERT_TABLE_ITEM '.

    So it works on the button 'Apply Changes' that hope you that it works and you want to reproduce the same thing for the button 'delete '? as mentioned below:

    So my question is how to create a deletion process, then click on the button Delete, the application of 'buy' in the article ERT Table number must be removed while the selected item with ID ERT point in the purchase order page is deleted?

    Check your Application 81653 - Page 3.

    Made the following changes:

    • Created a process of PL/SQL 'Remove the PRM in ERT_ITEM_TABLE' as follows:
    Declare
    
        j number;
    
    Begin
    
        For  i IN 1 .. apex_application.g_f01.count
        LOOP
            j := apex_application.g_f01(i);
            Update ERT_TABLE_ITEM
            SET    PURCHASE_REQUEST_NUMBER = null
            Where  ERT_ITEM_ID = apex_application.g_f30(j);
    
        END LOOP;
    
    End;
    
    • Subordinate the process of 'Remove the PRM in ERT_ITEM_TABLE' to 'Remove' button request: MULTI_ROW_DELETE
    • Re-sequenced process so that the process of 'Remove the PRM in ERT_ITEM_TABLE' runs before "ApplyMRD".

    Kind regards

    Kiran

Maybe you are looking for