Problem with apex.confirm

I use Express application 4.1.0.00.32

I have a region defined by this source:

SELECT 'Remove' delrow.

a.ID,

Description a.desc_ob_strat,

a.fl_attivita_ordinarie,

a.set_linee,

a.Linea,

a.Priorita,

a.data_dal,

a.data_al,

Link_dettaglio NULL,

a.ROWID r_id

OF pdp_ob_strat one

In the report of the attributes in the links column 'DELROW' properties, I have:

'Target': URL

'URL ':

JavaScript:apex.confirm ("are you sure you want to delete this record?', {request: 'DEL_OBSTRAT', value: {'P225_ROWID_OBSTRAT': #R_ID #}}");

In other words, I want that when the user clicks on "Delete" string in a line, it is requested, and if he wants, a shipment is started, the application name would be "DEL_OBSTRAT" and the point P225_ROWID_OBSTRAT would be set with the value of r_id.


On the Page, I have a conditional process, "on submit and before calculation", it is conditional based on the name of the application, and here I have:

DELETE pdp_ob_strat

WHERE ROWID =: P225_ROWID_OBSTRAT;

My problem is that when I click on the word "Delete" nothing happens. I do not see an alert box, I see no page sent.


I tried a few test change "with" but without success.


Any help? Thank you very much.

Hi Francois,.

Francesco wrote:

TO

https://Apex.Oracle.com/pls/apex/

I created the account and ask for following:

Workspace: TESTTRACCIA

Username: [email protected]

Password: matera2019

Application 69273 - Fcoretti 1

In Page 2, I created a situation like mine, and when I try to delete a line, the confirmation box appears, then an error message is displayed.

Thank you.

I checked your application, you have missed the rowid in a statement select it is therefore passing invalid rowid for the erase process.

now added rowid in your State sql query, delete works now, please take a look.

Kind regards

Jitendra

Tags: Database

Similar Questions

  • upgrade to 12 c causing problems with APEX 4.2.5

    Hey everyone, our dba updated our database this past weekend at 12 c.  Today, we have problems with one of our more complex pages.  Here's our software configuration where after upgrade:

    APEX: Application Express 4.2.5.00.08

    Database: Oracle Database Enterprise Edition Release 12.1.0.2.0 - 64 bit Production 12 c

    The page in question has dynamic actions which fire when a user clicks a button.  The action has 3 processes related to it.  The first is javascript that runs that changes some css classes.  That seems to work.  The second is supposed to be executing pl/sql code (with a dynamic process page element).  This does not appear be to fire.  I watched with firebug and chrome dev tools, but it seems that no ajax call is sent when I click on the button.

    The page seems to generate exceptions in the scenes.  I see the following in newspapers several times on the page.

    ORA-20987: APEX - ORA-00001: unique constraint (APEX_040200.WWV_FLOW_COLLECTIONS_UK) violated

    Unfortunately, I can't determine if what is happening on the loading of the page or under dynamic actions.  Apparently not loading the linked page cause I can't recreate it all by refreshing the page.  But I don't see how it could be created by the dynamic action since they don't seem to be calling the server either.  (no ajax call I see)

    Does anyone know of none known between 4.2.5 and 12 c?  Everything worked well Fri/Sat, so the upgrade must be the cause.

    Thank you!

    It looks like given the scope of the implemented dynamic actions in dynamic instead of static electricity was the problem.  Their transition to static seems to have fixed everything.  Not sure if it "just worked" under the previous version and 12 c was somehow more special or if the parameter got reversed somehow in the process, but it was certainly before.

    Well.  I'll consider it fixed!

  • GTT - Global temporary Table - problem with Apex

    Hello

    I'm having a problem using TWG with Apex. The data generated by a session can be selected by another user in another session. How can this happen?

    Thank you

    Márcio Goncalez

    Sounds like the connection pooling. You might want to try to change your TWG flush on the end of session to flush the commit.

  • problem with apex

    I have installed oracle 10g and oracle application server 10g (http server)

    and I install apex and I use the guide as appendxed with apex intallation for intallation

    After you run the scripts

    I edited the file dads with the following information

    Alias is "g:/apex/images / '.
    AddType text/xml xbl
    AddType text/x-component htc

    < apex/pls/location >
    Order deny, allow
    Docs PlsqlDocumentPath
    AllowOverride None
    PlsqlDocumentProcedure wwv_flow_file_mgr.process_downloadd
    Apex of nasser: 7777:service_name PlsqlDatabaseConnectString
    PlsqlNLSLanguage AMERICAN_AMERICA. AL32UTF8
    PlsqlAuthenticationMode Basic
    SetHandler pls_handler
    PlsqlDocumentTablename wwv_flow_file_objects$
    PlsqlDatabaseUsername APEX_PUBLIC_USER
    Apex PlsqlDefaultPage
    PlsqlDatabasePassword pub
    PlsqlRequestValidationFunction wwv_flow_epg_include_modules.authorize
    Allow all the
    < / location >

    After that, I ask the url http://nasser:7777/pls/apex

    but I got "Internal Server Error"

    What is the problem

    If there is an error in the file of dads

    Help me please

    Published by: user3683976 on February 9, 2009 15:19

    If I understand correctly, you are using the Windows environment, right? So, your alias images should not be 'g:\apex\images/ '?
    Hope this helps.
    -------------------------
    Alias is-"g:/apex/images /"-"g:\apex\images/".
    AddType text/xml xbl
    AddType text/x-component htc


    Order deny, allow
    Docs PlsqlDocumentPath
    AllowOverride None
    PlsqlDocumentProcedure wwv_flow_file_mgr.process_download - d-
    Apex of nasser: 7777:service_name PlsqlDatabaseConnectString
    PlsqlNLSLanguage AMERICAN_AMERICA. AL32UTF8
    PlsqlAuthenticationMode Basic
    SetHandler pls_handler
    PlsqlDocumentTablename wwv_flow_file_objects$
    PlsqlDatabaseUsername APEX_PUBLIC_USER
    Apex PlsqlDefaultPage
    PlsqlDatabasePassword pub
    PlsqlRequestValidationFunction wwv_flow_epg_include_modules.authorize
    Allow all the

  • Problem with Apex 3.2 export

    Hello world

    A few days ago, I upgraded my APEX of 3.1 to 3.2. It was easy and I had no problem.
    After a few tests, everything seems to be right. Cams then the time to make a backup. I use the export as a backup tool utility.
    After reading an excellent article by Jan Huyzentruyt "automatically backup your Apex Application", I built a batch file that calls the java class APEXExport. This package works well on Apex 3.1 but in 3.2 gives this error:

    Exception in thread "main" java.lang.UnsupportedClassVersionError:
    Oracle/apex/APEXExport (unsupported major.minor version 49.0)
    at java.lang.ClassLoader.defineClass0 (Native Method)
    to the java.lang... etc.

    I said: well, no problem, I can always do an export of APEX interface... and it worked, but just for the curious, I compared my last 3.1 export with this recently generated 3.2 export and am surprised: it seems that export 3.2 loses some characters in the generated scripts.
    For example. where should say "wwv_flow_api.g_id_offset", sometimes I randomly get "wwv_flow_ap.g_id_offset" (I miss) or "wwv_flow_ai.g_id_offset" (lack of P).

    Play with the export options in the interface of the APEX, change of Format from UNIX to BACK, seems to give good export stuff, but File Format is about how lines end (LF or CR/LF) in the resulting file, for things or worse.
    A deeper check SEEMS to show that occurs when characters missing when I use accented characters in the object what script is generated.

    To work around these problems, I always use 3.1 APEXExport class from java to batch export.

    Does anyone have the same problem?
    Oscar


    BTW: export-> File Format, in addition to the option UNIX and BACK, there is an option of database, but is not documented in the help file and the Application Builder User Guide. Can someone tell me what this option is for?

    Oscar - Install PL/SQL Web Toolkit 10.1.2.0.6 or higher. See for a recent example of success.

    Scott

  • How can overcome the problem with ' Apex 4.2

    Hi team,

    I created as a result of things in our application, as mentioned below

    1 created a "Key Source" text element

    2 concept own popup LOV created for this item as

    Under the Post element

    List

    3 defined as java script code

    function callMySrckey () {
      var url;
      url = 'f?p=&APP_ID.:3:&APP_SESSION.::::';
      w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600");
      if (w.opener == null)
      w.opener = self;
      w.focus();
      }
    

    4. he wants to say when they click on the img icon it will redirect to the #3 page.

    5. now on the page #3, I had created an interactive report by the query in the form

    select distinct sourcekey SrcKey from t_src_key order by 1;
    

    6. in the report to column link attributes

    Under the text link I had selected

    #SRCKEY #.

    Selected as a URL target

    javascript:passBackSkey('#SRCKEY#'); 
    

    7. under Java script defined as

    <script language="JavaScript1.1" type="text/javascript">
    function passBackSkey(passKey)  {
       opener.document.getElementById("P34_SRC_KEY").value = passKey;   
       close();  }
    </script>
    

    8. now, on page 3, we see data as shown below

    Consumer-city gate of energy | Gate of the city of energy to consumers

    WALC Mead

    CÔTE D'IVOIRE

    9. when I click on these data, it will be passback and store in key source point i., text element e p34_src_key.

    10. given above if we look at we see "appearing in"Ivory COAST", in this case passback does not work do not display this value in text."

    Could someone help me how to solve this problem when we have a ' data.

    Kind regards

    Sruthitamiri

    Sruthi Tamiri wrote:

    fac586,

    Please find the #2 approach, could you please let me know if I'm missing something here.

    URl #https://apex.oracle.com/pls/apex/f?p=51537:1:121524763711746:

    #cts_demo workspace

    user name # [email protected]

    password # tamiriseshu

    For example if we have data in the emp table

    In the main screen see us data that is to show that \u002FA and other.

    When I click on page #2 values are not pass on screen #1.

    Use two columns in the report:

    select ename, apex_escape.js_literal(ename) js from (select distinct ename ename from emp) order by ename
    

    View ENAME, then assign the column hidden JS. Use #JS # in the target URL.

  • Problem with Apex 5.0 report with a query that runs in SQL Developer

    Hello

    I have a query that runs in SQL Developer without problem, but when I use it in a classic report, it displays following:

    error report:

    ORA-06502: PL/SQL: digital or value error: character of number conversion error


    The query is:

    select 
     T1.ID_ATTACHMENT, 
     T1.BLOB_CONTENT, 
     T2.ATTACH_CATEGORY, 
     T1.FILENAME, 
     T1.ATTACHMENT_DESCRIPTION 
    from ATTACHMENTS T1
     LEFT JOIN REF_ATTACH_CATEGORIES T2
      ON T1.ATTACHMENT_CATEGORY = T2.ID_ATTACH_CATEGORY
     WHERE T1.ID_ATTACHMENT IN
      (SELECT ID_ATTACHMENT FROM REL_ATTACHMENTS
       WHERE REL_PART_ID = 1
       AND REL_ID = 64146);
    


    And the output of SQL Developer is:

    2015-08-12_01-03-36.png

    I have following Setup for the BLOB_CONTENT column in the classic report:

    2015-08-12_01-06-25.png

    Any ideas what is causing this problem?

    Thanks in advance,

    Sergio


    I don't have notes with me, but I think that the content of the blob must be selected as:

    DBMS_LOB. GetLength (blob_content) as blob_content

    and check that you have included the primary key in the results.

  • Problem with apex.navigation.popup.url and the symbol + (more)

    Hello
    I use Apex 4.2.6.00.03 in an Oracle DataBase 11g.

    I want to show in a popup over information about a line in a report, to do this, I use apex.navigation.popup.url JavaScript function to open an apex page and set a variable in this page with the ROWID of the register, the url is

    JavaScript:apex.navigation.Popup.URL ('f? p = & APP_ID.:59: & SESSION.: P59_ROWID: #ROWID #');

    It works fine, but when the ROWID contains a symbol '+', it is replaced with a space when the value is set to the article and the code that uses this value returns an error.

    Oracle Docs the ROWID can have letters, numbers and symbols '+' and ' / ', I tested it with "/" and it works fine.

    I could use the replace to replace the space with a '+', but I want to know if this can be corrected in the URL, and what other symbols he affects.

    Thank you

    Diego (SniperCat) wrote:

    I use Apex 4.2.6.00.03 in an Oracle DataBase 11g.

    I want to show in a popup over information about a line in a report, to do this, I use apex.navigation.popup.url JavaScript function to open an apex page and set a variable in this page with the ROWID of the register, the url is

    JavaScript:apex.navigation.Popup.URL ('f? p = & APP_ID.: 59: & session.: P59_ROWID: #ROWID #');

    It works fine, but when the ROWID contains a symbol '+', it is replaced with a space when the value is set to the article and the code that uses this value returns an error.

    Oracle Docs the ROWID can have letters, numbers and symbols '+' and ' / ', I tested it with "/" and it works fine.

    I could use the replace to replace the space with a '+', but I want to know if this can be corrected in the URL, and what other symbols he affects.

    That's why I only spend the alphanumeric key values as URL parameters. It could affect all the reserved characters in the URL.

    Add a hidden column of ROWID_URL to the report query, that JavaScript and URL does not escape the ROWID value:

    select
       ...
     , apex_escape.js_literal(apex_util.url_encode(rowid), null) rowid_url
     , ...
    from
       ...
    

    and use this column in the column link URL:

    javascript:apex.navigation.popup.url('f?p=&APP_ID.:59:&SESSION.::::P59_ROWID:#ROWID_URL#');
    
  • problem with email confirmation

    Hello world! I tried to install the trial version of Adobe Creative cloud, but I can't go any further than the installer because I need to confirm my e-mail address, but the confirmation e-mail is sent to a wrong address (false). I do not understand why not receive it on my real email address, and I don't know how to change the e-mail address... Could you please help me?

    Hi Tania,.

    Please rename the OOBE by OOBE.old and then try to connect with the correct ID:

    Location: -.

    Windows C: \ directory users\ user account-App data-local-adobe \oobe

    MAC: Go / go to the folder / Application support / Adobe / oobe


  • Problem with APEX 4.1 Email values

    Hello

    I thought it would be a simple, but do not know if the syntax is correct. Basically, I need to pick up the email to a text field and send this e-mail to the MAIL of the APEX. Send the procedure. Now when I enter the real email in the APEX_MAIL.send, for example

    previous code...
    () apex_mail. Send
    p_to = > '[email protected]', - change to your email address
    P_FROM = > '[email protected]', - change of an actual e-mail address shippers
    p_body = > l_body,
    p_body_html = > l_body_html,
    p_subj = > 'APEX_MAIL Package - HTML format message');
    END;


    works very well.

    But when I try something like

    () apex_mail. Send
    p_to = >: P1_EMAIL_ADD,-change to your email address
    P_FROM = > '[email protected]', - change of an actual e-mail address shippers
    p_body = > l_body,
    p_body_html = > l_body_html,
    p_subj = > 'APEX_MAIL Package - HTML format message');
    END;


    I tried, V ('P1_EMAIL_ADD') also in the call to ampex_mail.send.

    Can you advice?

    Thank you
    Sun

    sun1977 wrote:
    Hello

    I'm in 4.1 and 11 g. The browser is IE 7, Win XP, 21, default template theme.

    : P1_EMAIL_ADD is a text field with the default (an email address). The error I get is an alert, "Ajax call returned the error Server 20001: you must provide a message recipient to send an email." "to execute the PL/SQL code.

    Thus, it is called by a dynamic Action "run the Code from PL/SQL?

    He then worked. Yes as you say looks like to the: P1_EMAIL_ADD does not by default it shows up when the user interface and is zero, although only in the user interface, I can see the value of the field. Any idea how is it possible?

    Use the setting of the Page items to send in the "run the Code in PL/SQL" action to validate the P1_EMAIL_ADD value both her DA is run.

  • Problem with APEX 4.1, DBLink and NLS_LANG

    Hello

    I get an error message:

    "ORA-12705: unknown or invalid NLS parameter value specified.

    When access to the content stored in another database of APEX via a DBLink

    I use Application Express 4.1 on the Oracle 11 g XE database

    I have an application that uses the dblink to access data on an Oracle 9i server.

    NLS_LANG in database 11g: SPANISH_SPAIN. AL32UTF8
    NLS_LANG in the 9i database: SPANISH_SPAIN. WE8ISO8859P1

    I changed the NLS_LANG 11 g to SPANISH_SPAIN value. WE8ISO8859P1 but nothing happens.

    What can I do?

    Thank you!

    Hello

    Oracle 9i supports all Format of Date masks supported a 10g database. If you use a database connection, the database tries to set the same NLS settings on the remote database as defined in the current database session.

    When you get the error? Do you get in report designer or in your own application? If it's in your own application, check the masks of date format of "globalization application-level attributes."

    You must also ensure you actually close the database link in the ' Code from PL/SQL to cleaning "security-Session of database to avoid problems of links of open database in your database session pool. Because otherwise, database sessions that do not need the link database are also affected by this problem, as the generator,...

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Problem with Apex TIMESTAMP

    Hi friends,

    I create a table and only one column as TMP with the timestamp data type.

    When I am inserting into the table
    insert into  table (id,tmp) values (1,TO_CHAR(sysdate,'dd.mm.yyyy HH24.MI.SS'))
    during the presentation of the page, its month invalid, saying. Any help?

    Thanks in advance

    Published by: User_Apex on August 27, 2010 07:43

    Hello

    It is best to avoid the intermediary date, timestamp-> varchar2 conversions.

    Try this:

    insert into  table (id,tmp) values (1, CURRENT_TIMESTAMP);
    

    Lev

  • Is there a problem with APEX Application processes and the CAE?

    I have a table that has a political function. When I select in the table directly from the page, it seems to be only return lines appropriate for the user.

    But, when I select from the same table using an application process (On Demand), PL/SQL block.

    BEGIN
    OWA_UTIL.mime_header ("text/xml", FALSE);
    HTP.p ('Cache-Control: non-cache');
    HTP.p ('Pragma: non-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ("< select >");
    FOR c IN (SELECT '1' o)
    name | ' (' | school |) ')' d,
    pk_id r
    OF sch_base
    WHERE pk_id = nvl(:REFRESH_LOV_PK_ID,'null')
    UNION
    SELECT '2' o,
    '%' d,
    r 'null %.
    OF the double
    UNION
    SELECT '3' o,.
    name | ' (' | school |) ')' d,
    pk_id r
    OF sch_base
    WHERE pk_id <>nvl(:REFRESH_LOV_PK_ID,'null')
    ORDER BY 1, 2)
    LOOP
    HTP.prn ("< option value ="' | c.r |) '">' ||
    c.d | ("< / option >");
    END LOOP;
    HTP.prn ("< / select >");
    END;

    It returns all rows in the table.

    Try something like

    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=' + pApp,$v('pFlowStepId') )
    

    CITY

  • Smartphones Blackberry Tour Facebook blackBerry problem with confirming 'friend requests '.

    Until yesterday, my Facebook app worked perfectly on my Blackberry Tour.  Since yesterday, I get an error when I try to 'confirm' a 'friend request '.  I took my battery and restarted, but the problem persists.  All advice is appreciated.  Thanks in advance.

    Probable server problems, not a problem with your FB app or device.

  • Problem with the syntax to call a page Apex

    I display 5 faces changing mood of a table. Each face has a link stored in the table. The link should go to a page in the same application and pass a parameter to this page when the face is selected.

    Somewhere, there is a problem with the syntax of the link, can anyone please help me out with the correct syntax, please.

    The error that I get when I select a face, is the following:

    Screenshot (34).png

    The link entry in the table is the following: http://apex.enciva.co.uk/pls/apex/f?p=842:1: & SESSION.: P1_MOODID:1

    and the code to display the faces, is as follows:

    DECLARE

    BEGIN

    FOR (IN) c1

    SELECT Hmauin,

    mntitle, mnlink

    OF MOODYFACES

    WHERE NVL ((mnfilename) dbms_lob.getlength, 0) > 0

    AND mnactive = 'yes '.

    ORDER BY HMAUIN

    ) LOOP

    HTP.prn ("< a class ="dock-item"HREF ="'|) C1. MNLINK | "" ">

    < img src = "f? p = & APP_ID.: & APP_PAGE_ID.: & APP_SESSION.:APPLICATION_PROCESS = GET_IMG1:NO:P141_MNID:' | C1. HMAUIN | "" "alt =" "/ >

    < span > ' | C1.mntitle | / span > < /a > ');

    END LOOP;

    END;

    Any answer will appreciated.

    Thanks fac586, spawn the link works perfectly.

Maybe you are looking for