Appeal process in Javascript page

Hey guys! Just shortly after work on my conditional Javascript dialog function, I came across another small problem which is as follows:

I need to call a process page of the "dialogwarning" Javascript function when the backup is click on the button of a dialog jquery.

The update action work already but the pl/sql process is not carried out.

In fact, it cannot be so difficult...
Can you please give me a hint how to do it? So far I've only seen son were JavaScript was called in a pl/sql procedure - not vice versa.

Here is my code for the dialog box:
$(function(){
  $("#dialogwarning").dialog({
    autoOpen: false,
    bgiframe: true,
     modal: true,
        width: 400,
        minWidth: 400,
        resizable: true,
     buttons:{
       Save: function(){
          doSubmit('UPDATE','APPLICATION_PROCESS=proc_reset_mx_results');
      },
      Exit: function(){
         $(this).dialog('close');
       }
     }
  });
});
</script>
Any help is appreciated!

Kind regards

Sebastian

If the update action works, it is possible that your application process, without that it runs values in the settings.

Try to put the process on the page, with the condition back when you press the update button.

Tags: Database

Similar Questions

  • Appeal process page javascript

    Hello

    I have a simple code below that I want to run inside the page point process = load after.

    From now on, I have this under DA loading of the page, but its not always running.

    I have a page where I have a similar process of the page but it resets something and it works every time. I think if some how I can put this java code within this process of page then it would be too much work each time.

    This javascript basically reduced to a minimum the bar side navigation

    $('#t_Button_navControl').click ();

    Thanks in advance.

    Minimizing the t_Button_navControl will not work with a process of pl/sql page.

    You need a process of loading page but apex saves the State of the last. So what happens:

    1 time: t_Button_navControl opens and you close with the DA

    2 time: t_Button_navControl gets closed by default (stored in a cookie I think) and you should not run the DA

    What you essentially need to check is the following:

    If ($("#t_Button_navControl").hasClass ("is-active") == false) {$('#t_Button_navControl').click ();}

    Take a look at my new plugin code. I deal with the same problem.

    https://github.com/tobiasarnhold/UILayout-UT

    Best regards

    Tobias

  • Call a process report link Page

    Hello.

    I use Apex 4.2.1 on mod_plsql and Oracle 11 g 3.

    I'm trying to run a PLSQL after - submit process page when users click on a link generated SQL in a classic type report.

    For example, my classic report uses the query:

    SELECT

    E.*,

    ' < an id = "RID" href = "f? p = & APP_ID.:31: & SESSION. : ADDROW:P31_ENAME, P31_MGR, P31_DEPTNO:'

    || E.ENAME

    || ','

    || TO_CHAR (E.MGR)

    || ','

    || TO_CHAR (E.DEPTNO)

    || « « > »

    || 'Add new line '.

    || '< /a >' AS ADD_ROW

    Of

    EMP E

    My page has also a submit after PLSQL method defined as:

    declare

    whole v_empno;

    Start

    Select nvl (max (empno), 0) + 1

    in v_empno

    EMP;

    Insert into emp (empno,

    Ename,

    Bishop.

    DEPTNO)

    values (v_empno,

    substr(:P31_ENAME,1,1) | '-' || TO_CHAR (v_empno),

    TO_NUMBER(:P31_MGR),

    TO_NUMBER (:P31_DEPTNO));

    end;

    This process is the condition 'Request = Expression 1', where 'Expression 1 ="ADDROW.

    I thought that if users click on the report link "ADD_ROW", then items ENAME, MGR and DEPTNO report would be sent to corresponding page elements.  In addition, the PLSQL process above would be carried out and add a new line to the EMP table.  The report would then display then the newly added row.

    But when I click on the link for the report, I see that my page elements, in fact, the report associated a value assigned.  But the process page is never executed.

    I looked at the page state in Session and in debug mode.  The transformation runs simply never my page process.

    Anyone knows why my page process is not executed?  And how do I get the page process runs when users click on the report link?  Indeed, what is the point of having even a floor embedded in the url, so REQUEST it is not recognized bt other processes on the page?

    In my workspace from apex.oracle.com, I created an example page where all this was coded:

    Workspace: EEG

    User name: [email protected]

    Password: galaxy123 (all lowercase)

    AppID: 27083 (Elie_Goodies)

    Page 31 (Option to request Url of Test)

    I would appreciate if someone could help me with what I am puzzled why it doesn't work.

    Thank you very much.

    Elijah

    Hi Elijah,

    I think it's fixed.  It was very close. It's just a matter of timing.

    For a REQUEST be visible after do you need to submit the page.  Something like apex.submit ("ADD_ROW") will do it.

    Then, when the page displays the QUERY is empty again.

    Same thing with the link, which is what you have implemented, the DEMAND is there for the rendering of the page. Then he disappeared when the page is sent.

    All I had to do is move your process to run before header so that it can 'see' the value of the claim.  I have not touch (or seek) and the code.

    Points of treatment area or on a charge before the header or before loading would have worked here.

    Thank you

    -Jorge

    Post edited by: jrimblas

  • Connection to database using an ASP Javascript page

    I use the trial version of the CS6 cloud. Open an ASP Javascript page then wants to connect to my database. The only thing that appears is a spry connection. If I open an ASP VBscript page, the connection is available. I have CS3 and wanted to update, but in this respect is not in CS6 for an ASP Javascript page?

    While the definition of site offers a choice of ASP JS, ASP VBScript is the only version of ASP that DW CS5 + supports for the automatic generation of code through server behaviors & recordsets. So, I guess you're out of luck.

    ASP.NET & JSP behaviors have been deprecated in DW CS4. ASP JS behaviors have been deprecated in DW CS5.

    -ST

  • Options grayed out database when you create the ASP (Javascript) page

    I recently installed CS5 Master Suite on a Windows XP-32 and was able to create pages ASP Javascript that can connect to and update a Microsoft Access 2003 database.  But given that some applications of the necessary suite of 64-bit operating system, I wiped the machine and installed Windows 7 64-bit.

    I managed to get it set up so that I can connect to the database if I create a new page ASP with VBScript, but if I create a new page with Javascript, the ability to add a new connection in the data pane is dimmed, despite all the items listed under being checked.

    I guess that the DSN is configured correctly, because VBScript pages work.  I installed IIS7 on the machine with the 32-bit application pool enabled so that the server can connect with the 32-bit ODBC driver.

    Tips on how to get the database connection works in Javascript pages would be greatly appreciated!

    I was under the impression of support Adobe dropped for ASP/Javascript in CS5.  You say it worked in 32 bit?

  • Bug? -Validations in the processing of the Page

    I think I found a bug in the Validations for the processing of the Page.

    If I create a validation of type "Point in 1 Expression contains only characters of the Expression 2", it's as it should be and catches any invalid character.

    But, if I create a new liquidation of type 'Error of function return text', this validation works and another one does not.

    It is the expression of validation 1 for type validation "function return error text:

    BEGIN
    IF: P42_LLP_DECIMAL_DEG_LAT IS NOT NULL
    THEN

    IF: P42_LLP_DECIMAL_DEG_LAT <-90
    THEN
    RETURN "decimal latiitude must be between - 90.0000000 to 90.0000000';
    ON THE OTHER
    NULL;
    END IF;

    END IF;
    end;

    But, how to integrate the validation of character?

    To be honest, I don't think you should! "Point in 1 Expression contains only characters of the Expression 2" does not guarantee that you have a number, which I think is the intent? (Try something like "5-0"...) There is a built-in "..." is digital""validation"but I have had problems with it. I would use a single validation "function return a Boolean:

    begin
    
      return nvl(to_number(:P42_LLP_DECIMAL_DEG_LAT), 0) between -90 and 90;
    
    exception
    
      when value_error or invalid_number
      then
        return false;
    
    end;
    

    [With ' decimal latiitude must be \[a number\]-90.0000000 to 90.0000000' as the error message in the validation, using the "..." a number...' bit if you want to insist on this.

  • Conditional processing of JavaScript by using the value of the item page

    Dear experts,

    I have the following code to draw a Gantt chart and need to package some steps. They should only appears if the date values are not null or not zero.

    I tried the following, as you can see in my code. However, the first line is always printed even if the value of my article on page P1112_GP_AUFTAKT_START is null or zero (display value).

    Can you please give me a hint how to do conditional processing in my case?

    I appreciate your help!

    Thank you very much

    SEB
    <script>
      var g = new JSGantt.GanttChart('g',document.getElementById('GanttChartDIV'), 'day');
      g.setShowRes(0); // Show/Hide Responsible (0/1)
      g.setShowDur(1); // Show/Hide Duration (0/1)
      g.setShowComp(1); // Show/Hide % Complete(0/1)
      g.setCaptionType('Caption');  // Set to Show Caption
      g.setShowStartDate(1); // Show/Hide Start Date(0/1)
      g.setShowEndDate(1); // Show/Hide End Date(0/1)
      g.setDateInputFormat('dd/mm/yyyy') 
      g.setDateDisplayFormat('dd/mm/yyyy') 
    
      if( g ) {
        if ($x('P1112_GP_AUFTAKT_START').value != null || $x('P1112_GP_AUFTAKT_END').value != null || $x('P1112_GP_AUFTAKT_START').value != 0 || $x('P1112_GP_AUFTAKT_END').value != 0 || $x('P1112_GP_AUFTAKT_START').value != ""  || $x('P1112_GP_AUFTAKT_END').value != "")
       
           {g.AddTaskItem(new JSGantt.TaskItem(1, 'Auftaktveranstaltung'    ,  $x('P1112_GP_AUFTAKT_START').value , $x('P1112_GP_AUFTAKT_END').value    ,  'fff600', '', 0, 'LWF',  100, 0, 0, 1));}
         
         g.AddTaskItem(new JSGantt.TaskItem(2, 'Kartierung LRT Flachland', $x('P1112_KART_LRT_START').value  , $x('P1112_KART_LRT_END').value  ,  '00a3ff', '', 0, 'LWF',  20, 0, 0, 1, "1"));
         g.AddTaskItem(new JSGantt.TaskItem(3, 'Inventur LRT Flachland'  , $x('P1112_INV_LRT_START').value , $x('P1112_INV_LRT_END').value ,  'ff6347', '', 0, 'LWF',  30, 0, 0, 1, "1"));
    
        g.Draw();     
        g.DrawDependencies();
    
    
      }
      else
      {
        alert("not defined");
      }
    
    </script>

    Hello

    Try

    if($v('P1112_GP_AUFTAKT_START').length>0 ||
     $v('P1112_GP_AUFTAKT_END').length>0   ||
     $v('P1112_GP_AUFTAKT_START')*1 != 0 ||
     $v('P1112_GP_AUFTAKT_END')*1 != 0 ||
    ){
    /* your code */
    }
    

    Kind regards
    Jari

  • Application of dynamic action appeal process

    Hello
    Is it possible to appeal to a process of Application named example: dynamic action on button click DC_TEST.
    I am able to call dynamic action on click of a button and have a plsql code run, but I want to call the APPLICATION PROCESS.

    Thanks for your help.

    Hello

    Create dynamic action that runs using the JavaScript code

    apex.server.process ( "DC_TEST", {});
    

    That will run your application on the application process
    http://docs.Oracle.com/CD/E37097_01/doc/doc.42/e35127/javascript_api.htm#BGBJEFDJ

    Kind regards
    Jari
    -----
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Button to call popup, confirm appeal process from PL/SQL?

    My apologies in advance to be new at the APEX. I don't know javascript, PL/SQL.
    I have an HTML page with a top button named "Deactivate". When I click on the button
    I'd like a contextual dialog box confirming that I would do the inactive file.

    So if the user clicks "OK", then I would a process of PL/SQL to update my table row
    (I have the primary key of the row stored in an item on the page). Should be simple right?

    Thank you in advance.

    Carol

    Hello

    There are several ways that you can do. We'd watch the feature around a button Delete in a form that this popup a message asking the user to confirm the deletion.

    What I tend to do, however, is to have a defined button template that allows me to run some JavaScript by clicking on the button, but without presenting the page.

    To do this, you must first create a new model of button:

    1 - Go to the components shared, models
    2 - Click on create to create a new model and when you are prompted, enter / select the following text:
    -Click on the model type
    -Check that you have selected 'as a copy of any existing model.
    -Find the "Button" model (or one you use the most for your pages - we will take a copy of it and work on it)
    -Change the name of "Copy of the button" "Button for javascript" (or something similar) and select Yes to copy
    3. then click on to create the template
    4 - once created, locate and change the model by clicking on the link for the name of the new model
    5. in the new model, you have a template parameter. What you see will depend on what theme you are using and which button you copied.

    You will see probably in there somewhere something like:

    <a href="#LINK#">#LABEL#</a>
    

    This is to change:

    <a href="#" #BUTTON_ATTRIBUTES#>#LABEL#</a>
    

    then click on apply changes to save this.

    #LINK # would be replaced by the feature that submits the page

    href = "#" indicates to the browser not to move to another page when the user clicks on the button

    #BUTTON_ATTRIBUTES # allows you to use the "Key Attributes" setting a button to control what happens when the button is clicked.

    If you have any other attribute in the tag has (for example, class = "... "), do not remove those. If there is nothing else in the template parameter, do not change that either (for example, the button may actually be in the TABLE tags and we need those to keep the structure intact)

    Fortunately, this step must be done once the new model button can be used to any button

    We now need to update your button:

    1 Edit button and go down to the setting of the attributes button
    2 - Add in:

    ID="P1_MY_BUTTON" onclick="javascript:confirmDeactivation();"
    

    Change P1_MY_BUTTON regardless of the name of your button is

    3 - change the template used for the button to your new
    4 - Click on apply changes to save as

    Now, we must add in javascript:

    1 - change page attributes (top icon right in the Page Rendering topic Page)
    2 - Go to the creation of the HTML header and add in:

    <script type="javascript">
    function confirmDeactivation()
    (
      if (confirm('Are you sure you want to deactivate this record?'))
      {
        doSubmit('P1_MY_BUTTON');
      }
      else
      {
        return false;
      }
    )
    </script>
    

    3 - Click on apply changes to save as

    Finally, you have your process:

    1 - click on the Add icon processes in the section of the process in the center column
    2. create a new "Anonymous block" PL/SQL process that runs on-demand, after calculations and Validations.
    3 - process code should be something like:

    BEGIN
      UPDATE MYTABLE
      SET STATUS = 'I'
      WHERE PK_ID = :P1_PK_ID;
    END;
    

    P1_PK_ID should be whatever is the name of the page element referencing the primary key of your file

    4. you can provide success or failure messages if you wish
    5. in the settings of Conditions, select P1_MY_BUTTON from the list when you press button
    6. click on create processes

    I'm assuming there's a branch on your page that could be triggered by clicking on this button

    Now, when the user clicks the button, instead of submitting the page, it triggers the javascript code. It prompts the user to confirm the action. If he clicks OK, a doSubmit() runs that shows the page using the name of the button, the value of the claim. The process detects this name and executes the update

    Andy

  • Using the page submit after elements in the process of treatment page

    Hi all

    I have a form of DML in which the user can update a column.

    After clicking the Apply Changes button that I need to send an email saying the record has been updated with some page elements in the body of the email.

    I am able to send email, but I'm not able to display the page elements in the body.

    After changing the save the session state for the 'yes' also he did not.

    Y at - it another option that must be set so that I can use the page elements in the body of the email.

    Thank you

    MJ

    Make sure that after settlement it is normally a reset page call, is perhaps what kills the variables you are trying to access.  You should put your mail send processes PRIOR to the reset page process...

    Thank you

    Tony Miller
    Los Alamos, NM

  • Error in the processing of the page management

    Hello

    I have two text field 1. : P1_User_id and 2. : p1_User_Name.

    I wrote a page processing small anonymous block to remove the user from the database if the user id does not exist else it should display the user message is not output id.

    Declare

    number of v_cnt;

    Begin

    Select count (*) in the v_cnt of user_table where user_id =: p1_user_id;

    IF V_CNT > 0 THEN

    Remove from user_table where user_id =: p1_user_id;

    end if;

    end;


    If dones userid does not close, I want to display the message that this user id does not close how.


    Thanks in advance

    Ravi

    Hi Bhushan10,

    Bhushan10 wrote:

    I have two text field 1. : P1_User_id and 2. : p1_User_Name.

    I wrote a page processing small anonymous block to remove the user from the database if the user id does not exist else it should display the user message is not output id.

    If dones userid does not close, I want to display the message that this user id does not close how.

    "After presenting before treatment" validation to create or modify your code to:

    declare
    
      v_cnt number;
    
    begin
    
      select count(*)
        into v_cnt
        from user_table
      where user_id=:P1_USER_ID;
    
      if v_cnt >0 then
        delete from user_table where user_id = : P1_USER_ID;
      else
        apex_error.add_error (
            p_message          => 'The user id does not exist!',
            p_display_location => apex_error.c_inline_in_notification );
      end if;
    
    end;
    

    Reference:

    I hope this helps!

    Kind regards

    Kiran

  • Layers of combine: logic, process and Apex pages gui?

    When explaining models for example relational data or logic model, it is often easier if the template could be included as well as the process, or to the Applications Page navigation?

    Is it possible to combine the photo layer designs?

    Basically, it would be neat to be able to calculate dependencies of object database for the application of the Apex and pages applications Apex to the layer image.

    Rgrds Paavo

    Hi Paavo,

    How to represent on the elements of unique scheme of mode of data flow diagrams and logical and relational data types is shown here http://www.thatjeffsmith.com/archive/2015/04/more-fun-with-data-modeler-diagrams-in-version-4-1/

    So that I could begin to show the first process then add navigation of gui beside him and turn more details to the display by clicking the layer 'SHOW '.

    You can create overview subview as entry point to the network of the subviews nested - you can navigate forward and back using "Figure" diagram nested and ' go to the diagram >... ". "feature

    Philippe

  • Failed to load, please check your javascript page errors

    Hello

    After a crash of edge Animate CC 2015 I tried to restart my work, but then I got the following message: echec failure loading, please check your page javascript errors.

    I have seen this problem before the Board of Directors. I looked in the file to see the problem, but my knowledge is not good enough to solve. Can someone help me?

    with sincere friendships.

    Mark

    PS... in the link below, you will find my files.

    http://www.markbroeze.nl/markbroeze_2.zip

    Thank you! You saved me a lot of work. I deleted the double fonts/fonts from the js file and open the file again!

  • Process of Search Page code for some channels?

    We are reworking of several of our Apex applications to eliminate the use of database links.  We used the built-in object reports to find the PL/SQL Code for the binding of database instances, we want to remove. It covered its use in packages, procedures and functions just great.  However, the research does not cover code of Page process. Does anyone know how to query code directly process Page? We would like to avoid having to visit each application, each page one at a time to review the code. I opened a SR, but they could not provide guidance and suggested that I ask the question on the forum. Any ideas or suggestions on how to get this information is appreciated!

    Select * from APEX_APPLICATION_PAGE_PROC where application_id = and lower (process_source) like '% STRING YOU are looking FOR, the % '.

    Thank you

    Tony Miller

    Software LuvMuffin

  • Apex + Javascript page redirect with value

    Hi, I have a dynamic action with the where I redirect another page via javascript.

    window.location = 'f?p=112:1::::NO::P1_KEY:#P1_HDN#';
    

    The first question I have, how can I present the current session?

    It must be described a bit more... I also have a hidden field on the first page. The value of this hidden field must also be submitted to the other page. How can I do this and why don't the hash tags work won´t?

    See you soon

    In action dynamic javascript,.

    Place the following code

    var p1HiddenVal = $("#P1_HDN").val ();

    var href = ' f? p = 112:1: & SSESSION. : NO::P1_KEY: "+ p1HiddenVal;

    Window.Location = href;

Maybe you are looking for