How to cancel tasks in a dynamic Action when apex.confirm = cancel
I have a text field that has a dynamic Action attached to it. When the field is changed, the dynamic Action is triggered. There are 6 separate tasks in this dynamic Action.The first task is a call to apex.confirm. I want to assure you that the user understand the consequences of the change in the value of this field. Thus, appears the dialog box, the user reads the information and decides to click OK or cancel.
If you click OK, I want to continue through the rest of the tasks in the dynamic Action. If you click CANCEL, I want to just give up out of dynamic Action.
Is this possible?
Apex 4.1.1.00.23
Published by: Mark T. March 1, 2012 09:49
Hi Mark,
code, says more than words :-)
I changed your "apex.confirm" JavaScript code in action 'Confirm' that does what you want. The "apex.confirm" JavaScript API is not designed for what you want to do and how you used it.
The example works now in my opinion.
Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf
Tags: Database
Similar Questions
-
How to run dynamic Action when clicking on a link in a report
APEX V4.2.3
DB EA 11.2
APEX listener V2.0.5.287.04.27
13 blue-gray theme
IE9.0.8112
FF26.0
I have classic report and I would like to launch a dynamic action (together a show has confirmed and the value of the alert, submit the page, then run a process) when the user clicks on a link in a report or click on #ID #.
I can write the real actions that I just need to know what to write behind the report link that will serve as a trigger for the DA?
Thanks in advance
PaulP
It's the link attribute
onClick = "if (confirm (' do something for #ENAME # with EMPNO: #EMPNO #'")) {$s('P5_ENAME_CLICKED','#ENAME#') ;};$s('P5_ID_CLICKED','#EMPNO#');doSubmit()""
It's getting a bit long on a single line, if you want, put it in a function
However, fixed, forgotten pair of single quotes as soon as possible.
Now you have 2 bind variables to use in the process of page after submit.
: P5_ENAME_CLICKED and: P5_ID_CLICKED
I've updated the example page, http://apex.oracle.com/pls/apex/f?p=14308:5
Good luck.
-
Dynamic action in Apex - automatic text field display based on the definition of value
Hello
I have two text elements. Need to create dynamic action for what follows,
1 Order_number
2 Order_type
When a user enters an order number starting at 1, the order type should type should automatically posted as CONSUMER.
When a user enters an order number starting with 2, the order type should type should be automatically displayed as COMPANY to another display null.
Can anyone help please have solved this issue.
Thanks in advance!
Hi 2932464,
2932464 wrote:
Please change your login username of "2932464" to something meaningful. Reference: Video tutorial how to change username available
I have two text elements. Need to create dynamic action for what follows,
1 Order_number
2 Order_type
When a user enters an order number starting at 1, the order type should type should automatically posted as CONSUMER.
When a user enters an order number starting with 2, the order type should type should be automatically displayed as COMPANY to another display null.
Can anyone help please have solved this issue.
Hereby you mean something like this: https://apex.oracle.com/pls/apex/f?p=52380:11:129938442406997:
If Yes, then create dynamic action as follows:
- Create a dynamic action on the Order_number change event say. P11_ORDER_NUMBER.
- Event-> change, Type of selection-> item (s), article (s)--> P11_ORDER_NUMBER Condition-> is not null
- Real Action-> to run the JavaScript Code
- JavaScript code:
var ordernum = $('#P11_ORDER_NUMBER').val(); var startdigit = ordernum.substr(0,1); if (parseInt(startdigit) === 1) { $('#P11_ORDER_TYPE').val('CONSUMER'); } else if (parseInt(startdigit) === 2) { $('#P11_ORDER_TYPE').val('BUSINESS'); }
I hope this helps!
Kind regards
Kiran
-
Dynamic action - when the 'event' and 'condition' seems to have no sense
Step by step, I am trying to get free Javascript coding so I can rely on what natively offers the Apex. It was an interesting experience, however I have noticed certain situations sicesdonneessontdisponibles options seems to have no sense, at least to date, and you will certainly help me which can be cleared up. I tried to put one of them into words. I just created a new dynamic action that will just set the focus to an element whenever my page is loaded.
Why my new dynamic action allows me to choose the "Page loading" event and condition "sucks"? I don't understand why this combination is available. There is probably no effect anyway, but I decided to leave the condition "without condition."
Thanks in advance.
Franklin.Jr wrote:
Step by step, I am trying to get free Javascript coding so I can rely on what natively offers the Apex. It was an interesting experience, however I have noticed certain situations sicesdonneessontdisponibles options seems to have no sense, at least to date, and you will certainly help me which can be cleared up. I tried to put one of them into words. I just created a new dynamic action that will just set the focus to an element whenever my page is loaded.
Why my new dynamic action allows me to choose the "Page loading" event and condition "sucks"? I don't understand why this combination is available. There is probably no effect anyway, but I decided to leave the condition "without condition."
It's just that there is a basic LOV status of one size for all types of events. Most of the conditions it contains is relevant to events associated with the elements. "Page Load" + "sucks" doesn't in fact make sense, but 'P4_END_DATE' + 'is null' fact. The Condition property remains visible and active so that the option "JavaScript expression" are available, as this can be used to make any event conditional.
-
Dynamic action of APEX 4 relaxation of report
I have an application that queries and displays a report and has a column of link to a custom url. I don't want to trigger dynamic action to open the url customized loading Page. I can't find another way to trigger the url. In my report of Apex successfully it seems unable to find a DOM object or jquery Selector that will trigger my dynamic action. I have all of the elements that I can return.
Event: click on
Selection type: I tried jQuery Selector and DOM object, but unable to find the exact entrance to enter the field
Condition: No conditions... maybe if I knew what condition to enter in it can help you.
Action: Run the JavaScript Code
Fires when the result of the event is true
Code: javascript:popUp2 ($v ('P1_URL'), 900, 900);
Oh, it seems simple enough, but it does not, unless I click on the button to fire on the loading Page.
I tried to assign the Click event and the Type of area selection, however, it will trigger the dynamic Action whenever I click anywhere in the region, not only when I click on a specific line.
Thank you.
These links can help you (if you mean by APEX 4 APEX 4.2):
Perform the dynamic Action of the link column report
-
How to use the dynamic Action?
Dear all,
I use Apex 4.1 worm.
I need returns the value in the text box item when I select a value in the select list.
I have a select list item: p1_template_id and a text box to point P1_template_description.
Code of the selection list
I want to the DESCRIPTION of the column value for the text box item when I select the select list template ID.SELECT TEMPLATE_NAME D, TEMPLATE_ID R FROM TEMPLATE_MAS ORDER BY TEMPLATE_NAME Table Name CREATE TABLE "CRM_CAM_TEMPLATE_MAS" ( "TEMPLATE_ID" VARCHAR2(50) NOT NULL ENABLE, "TEMPLATE_NAME" VARCHAR2(500) NOT NULL ENABLE, "DESCRIPTION" CLOB CONSTRAINT "CRM_CAM_TEMPLATE_MAS_PK" PRIMARY KEY ("TEMPLATE_ID") ENABLE ) /
How can I do this with dynamic Action or in any other way?
How can I do this?
Thank you
CORINEHi Maxence,
create a dynamic action of the advance,
Follow the instructions belowevent = change
selection type = item (s)
product (s) = p1_template_id
condition = no requirementAction: Execute the PL/SQL Code
declare
CLOB v_description;
Start
Select v_description from CRM_CAM_TEMPLATE_MAS where category = DESCRIPTION: p1_template_id;
: P1_template_description: = v_description;
end;Page to Submit elements - p1_template_id
Page items to return - P1_template_descriptionhope you help
Kind regards
Jitendra -
Dynamic action on upper and lower region button
I have a dynamic action where when I click on my first button (add a LINE) I want a 2nd button to be disabled (DELETE). My second button as the button position "Up and down the region", so that the button is displayed above and below my report.
After you create the dynamic action, when I click on my first button (add a line), the top of the page button DELETE is disabled, but it does not neutralize my button at the bottom. When I set up my action dynamic and he say what button to assign, it only shows a button in the list of the button (MULTI-RANG-DEL). In other words when I set up the button like "Up and down the region" it does not show 2 as the selection in dynamic action buttons, one button.
So how can access this button down in my dynamic action?
Using APEX 4.2.4
Thanks in advance!
John
jfosteroracle wrote:
I have a dynamic action where when I click on my first button (add a LINE) I want a 2nd button to be disabled (DELETE). My second button as the button position "Up and down the region", so that the button is displayed above and below my report.
After you create the dynamic action, when I click on my first button (add a line), the top of the page button DELETE is disabled, but it does not neutralize my button at the bottom. When I set up my action dynamic and he say what button to assign, it only shows a button in the list of the button (MULTI-RANG-DEL). In other words when I set up the button as "The top and bottom of the region", it shows 2 buttons as choices in dynamic action, a single button.
So how can access this button down in my dynamic action?
Use the property Class CSS button button to add a class name (for example
delete
) for the button. Change the DA Sélection Type selector to jQueryand jQuery Selector to something likebutton.delete
(the exact required selector will depend on the template theme and used button). -
More than one Page objects of value with dynamic action parameter
Hello
How to set the values of the two elements of the page based on another page, article in dynamic action IE
-variable value tr_type is set using the function get_type
-passing the p1_code parameter
TR_TYPE; = GET_TYPE (P1_CODE);
If TR_TYPE = "DR" THEN
P1_DR: = P1_AMT;
ON THE OTHER
P1_CR: = P1_AMT;
END IF;
-If I write the function get_type with Exp of PL/SQL of TYPE 'SET', it triggers the error on the use of the service.
-If I put body of the PL/SQL TYPE of function 'SET', the page displays error unhandled expception.
How can I achieve this using dynamic action.
Hi, IK,.
Can you please quote the u of changes/amendments made to the code, I am unable to find it.
Included missing: for element names.
--value variable tr_type is set using function get_type --passing p1_code parameter TR_TYPE:=GET_TYPE(:P1_CODE); if TR_TYPE='DR' THEN :P1_DR:=:P1_AMT; ELSE :P1_CR:=:P1_AMT; END IF;
Here is my scenario with code.
I have a form with 4 elements (account (P1_CODE), quantity (P1_AMT), DR (P1_DR, hidden), CR (P1_CR, hidden), I am writing a dynamic action on P1_AMT (change) of the code)
DECLARE
TR_TYPE char (2);
BEGIN
-calling a function "GET_TYPE.
-passing the P1_CODE parameter
TR_TYPE; = GET_TYPE (P1_CODE);
If TR_TYPE = "DR" THEN
P1_DR: = P1_AMT;
ON THE OTHER
P1_CR: = P1_AMT;
end if;
end;
Again, we know not not how you want to call a dynamic action,.
assuming that on the evolution of the account (P1_CODE), the function call GET_TYPE(:P1_CODE) to retrieve the type of transaction,
on the basis of the transaction that you want to set the amount of specific element.
on the change of point P1_code
Action: execute the PL/SQL code
Parameters
DECLARE TR_TYPE char(2); BEGIN --calling a function "GET_TYPE" --passing parameter P1_CODE TR_TYPE := GET_TYPE(:P1_CODE); if TR_TYPE='DR' THEN :P1_DR:=:P1_AMT; ELSE :P1_CR:=:P1_AMT; end if; end;
page elements to present - P1_CODE, P1_AMT
page items to return - P1_DR, P1_CR
Check the screenshot
There are other ways to set the values using dynamic action, try the above
Kind regards
Jitendra
-
Apex 4.2
Theme 21
Firefox
At the moment I have a report that contains the following sql which produces an html button
decode (status, 'POWER',
"< input type ="button"name ="stop_para"class ="buttonred"value ="Stop"id ="P6_STOP_PARA"onclick =" stop_paral ("stop_para", "' |)" queue_owner | " ','' ' || queue | " ') ; ">",
"STOPPED."
"< input type ="button"name ="start_para"class ="buttongreen"value ="Start"id ="P6_START_PARA"onclick =" start_paral ("start_para", "' |)" queue_owner | " ','' ' || queue | " ') ; ' > '
) action
In the page header, I have little javascript
function stop_paral (Request, q_owner, q_name) {}
var response = confirm ("you really want to stop the listener of the parallel line" + q_name + "of" + q_owner + "?");
{if(Answer==true)}
$x('P6_QUEUE_OWNER_ACTION').value = q_owner;
$x('P6_QUEUE_NAME_ACTION').value = q_name;
doSubmit (Request);
}
}
function start_paral (Request, q_owner, q_name) {}
var response = confirm ("you really want to start the listener to the parallel line" + q_name + "of" + q_owner + "?");
{if(Answer==true)}
$x('P6_QUEUE_OWNER_ACTION').value = q_owner;
$x('P6_QUEUE_NAME_ACTION').value = q_name;
doSubmit (Request);
}
}
I also have a 2 page process
p_scpapx.pr_6_stop_parallel_listener (: P6_QUEUE_OWNER_ACTION,: P6_QUEUE_NAME_ACTION);
Ask = Exp1
stop_para
p_scpapx.pr_6_start_parallel_listener (: P6_QUEUE_OWNER_ACTION,: P6_QUEUE_NAME_ACTION);
Ask = Exp1
start_para
Is it possible to replace some of those dynamic actions
Gus
Yes, there is. But honestly, tapping on what I would do with all that is quite annoying when I could simply be implemented on apex.oracle.com. If you set an example and sharing of credentials of the workspace we/I can just you showed
.
In short, I could do this:
- If status, queue_owner and queue columns are in the ir, add them and defined in hidden
- make action sql NULL column
- action to do a link of the column and assign it a class in the attributes and add attributes of data as 'data status', ' data-queue - owner ","data-tail. "
- create dynamic action to transform the links from the jquery button column, depending on the value of data registered
- create a dynamic action when click on cancel the default event, confirm the action, javascript action copies the value of data-queue - owner and queue for these 2 page elements and a plsql, running this code block when sending these items on the page. You can also combine all this in a javascript/block function.
-
Dynamic action real action is not available in the APEX 5.0
Hi all
We did the/import export of APEX 4.2 to version 5.0 of the APEX, but I am unable to find the real Action of dynamic Action in APEX 5.0. Can someone help me on this.
LnTInfotech wrote:
We did the/import export of APEX 4.2 to version 5.0 of the APEX, but I am unable to find the real Action of dynamic Action in APEX 5.0. Can someone help me on this.
Assuming that this refers to you being unfamiliar with the default constructor of app UI Page Designer in APEX 5.0. See "dynamic Page Designer action management" for more details. True/false actions appear as nodes in the dynamic Action of the left pane of the designer of Page navigator tab:
If you do not use the Page Designer, you can move on to the familiar view of the component:
-
ORA-01461: can bind to a LONG value only for insert into a LONG column of dynamic Action
I try to apply the condition to display items in a table with the following error code.its dynamic action when him save the day.
event: click on
Selection type: button
name of the button: P23_ADD_MORE_ROW
condition: no strings attached
//P23_NAME_BY_CAT,P23_HOW_MANY as LOV in apex form var l_no_rows; l_no_rows = apex.item("P23_HOW_MANY").getValue(); for (var i=0; i<l_no_rows; i++){ apex.widget.tabular.addRow(); if ($v("P23_NAME_BY_CAT")==1) { $("#WORK_QTY").show(); $('td[headers=WORK_QTY]').show(); $("#WORK_LOCTION").hide(); $('td[headers=WORK_LOCTION]').hide(); $("#MY_LOCTION").hide(); $('td[headers=MY_LOCTION]').hide(); //with morethan 25+ entry } else if ($v("P23_NAME_BY_CAT")==2) { $("#WORK_QTY").hide(); $('td[headers=WORK_QTY]').hide(); $("#WORK_LOCTION").show(); $('td[headers=WORK_LOCTION]').show(); $("#MY_LOCTION").hide(); $('td[headers=MY_LOCTION]').hide(); //with morethan 25+ entry } else if ($v("P23_NAME_BY_CAT")==2) { $("#WORK_QTY").hide(); $('td[headers=WORK_QTY]').hide(); $("#WORK_LOCTION").hide(); $('td[headers=WORK_LOCTION]').hide(); $("#MY_LOCTION").show(); $('td[headers=MY_LOCTION]').show(); //with morethan 25+ entry } else { alert("no count"); } };
dynamic action above can ignite if you level column, it means when I choose LOV value so that specified columns will show only rest in a column will be hidden. up to 10 input works fine.
Hi Ramani_apex,
Is the action of javascript executed in the dynamic action of the code you posted above or more code?
You seem to have exceeded a 4000 or 32 K bytes on a column of metadata for dynamic action when you set the dynamic action.
- Rather than write a javascript function in the Page attributes-> Javascript section-> the function and the declaration of the Global Variable:
function f_mybuttonAction () { //P23_NAME_BY_CAT,P23_HOW_MANY as LOV in apex form var l_no_rows; l_no_rows = apex.item("P23_HOW_MANY").getValue(); for (var i=0; i
- Call the action javascript function run the dynamic action javascript code:
//mybutton action f_mybuttonAction();
Reference:
- APex 4.1 error ORA-01461: can bind to a value of type LONG only to insert them into a LONG
- Masking multiple elements with dynamic action me gives error
I hope this helps!
Kind regards
Kiran
-
The dynamic action of javascript
Hello
Good evening.
I am aware, that we can trigger dynamic actions in multiple ways, based on events of the DOM.
can someone help me triggering a dynamic javascript action.
But not based on events.
Ex: name action dynamic, based on its name or sequence or in any other way.
There are situations where I have to call dynamic measures to avoid hand-written Ajax calls.
Thanks in advance
Hello
The correct answer to this post:
Not sure why the following code lines failed to trigger a dynamic action
$("#P0_SIGNAL").val (123) .changes (); --Also failed
$("#P0_SIGNAL").trigger ("change"); --Also failedThis line would trigger a dynamic javascript action.
Apex. Event.Trigger ($("#P3_TEST_ID"), "change","" ");Steps to make it work.
I need to trigger a dynamic action when a value is set to hidden JavaScript element
P3_TEST_ID is a hidden item.
Create a dynamic action to shoot the P3_TEST_ID change event.
Setting the value of p3_test_id of javascript wouldn't trigger a dynamic action.
Run the following code to fire the javascript DA
Apex. Event.Trigger ($("#P3_TEST_ID"), "change","" ");
-
Masking multiple elements with dynamic action me gives error
Hello
I have a selection list, and I tried to create a dynamic action on this subject. When the list is zero I want to hide items. The problem is that I thing 200 articles on my page and when I try to list them all under the dynamic action, it gives me an error or cut off my list. I tried created two separate actions of dynamics, but it did not work. Any suggestions? Any help would be so appreciated. Thank you!The problem is that I thing 200 articles on my page and when I try to list them all under the dynamic action, it gives me an error or cut off my list.
Is it that you were able to cross the mark of products/page 100? But the official documentation has to say otherwise:
http://docs.Oracle.com/CD/E23903_01/doc/doc.41/e21674/limits002.htm#BGGIECDFIt is possible to define and to return more than 100 items on a page, but you will get a 404 error when running if you submit a page with over 100 articles (including the hidden objects and elements of page zero). You will not be able to present and process a page that has made more than 200 points. You will be able to set more than 200 items in your page and send, and then process the page If the actual number of elements returned is limited to 100 or less by using permissions and conditions.
* Specify error messages you received
Error message: error failed to create dynamic action.
ORA-20001: error creating dynamic action sub-action name = "NATIVE_HIDE" id = "" ORA-01461: can bind to a LONG value only for insert into a LONG column > "You seem to have exceeded a 4000 or 32 K bytes on a column of metadata for dynamic action when you set the dynamic action. Because you cannot use all 200 points at the same time, you must create multiple dynamic actions that correspond to some subsets of items are actually rendered.
-
Re: Anthony sample application to demonstrate the dynamic action http://apex.oracle.com/pls/otn/f?p=39830:38
It seems that native dynamic action Refresh (currently limited to the refresh of the regions report) simply refresh the content of the report by re-running the query. But if the region has text strings using the & POINT. Notation (for example in the header, the footer, or title), which is not updated.
Am I missing something or is this a limitation of the Refresh action conceived as it is? I'm sure that the Apex Team plans to improve it in the next version, but is there a way to DIY in this version?
Thank youHi Vikas,
Yes you are right that "Refresh" will just refresh the main region component. For example the report or in the future chart. But it won't refresh the content of the entire region.
1. the reason for this is that a region may also have page elements that save session state are entrusted to him. If us would be updated to a region, the internal mapping of the name attribute of the INPUT tags could change based on conditions screen which screws up the whole would submit the treatment.
2. the updating of the partial page regions (and in the future for graphics) only run the SQL statement set for component there and is the logically defined set for page rendering (for example, calculations, process,...). If a region would now use & Pxxx_TEST. to reference session state in the content of the region it would most likely be NULL or return a value of false if the values were recovered by an extraction process DML during page rendering (which simply writes in memory).
Therefore we must consider whether we support in the future and perhaps allow him to some extent in place.
Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
How to get the user input to dynamic Action confirmation message?
Hi guys,.
I use apex 4.1.
I added a page dynamic Action confirmation message box. How can I get the user input to the confirmation pop up?
Thank youHello
you do not directly get user input. But you should still be able to get what you want. Suppose you have a dynamic action which fires for a 'change' (or other) and who has two or more actions
(1) confirm
(2) execute the PL/SQL CodeIf the user clicks Cancel/no in the confirm dialog box, APEX stops execution of this dynamic action and not run "run the Code in PL/SQL.
Hope that helps
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf
Maybe you are looking for
-
Hello, I bought iphone 5 s, the phone runs on the carriers of the United States, but it does not work in my country what should I do? How can I solve this problem?
-
I have a portable Satellite PSP26E, I want to download photos from my Ericsson T610 using Bluetooth. I use the WiFi inside this notbook. What should I put WiFi to get bluetooth to work? Help, please Rune S
-
Satellite L40 - 17U - need SATA drivers for installation of WXP
Someone here these drivers? I looked like 5 hours already trying to install win XP.
-
I use lenovo s860 phone for almost 6 months with good performance, but suddenly, his autobrightness does not & on all the brightness level down, I can not read or see in normal daylight. It's very embarrassing. What to do? ........
-
HP pavilion n 204 tx: unable to wake after sleep in window 10
I downloaded windows 10 yesterday and everything seems to work properly. However, whenever I SLEEP my computer, it is supposed to go to mode "Eve" where a twitch of the mouse wakes you up there. He goes to sleep, but I can't wake up through any inter