Application of dynamic action appeal process
HelloIs 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
Tags: Database
Similar Questions
-
Dynamic action - notification process success/error display
Hi people,
in our application, we have implemented a plugin of notification of the main Oracle apex site.
We want to use to display a message of success or error for the page processes. Success message is currently held by:
Q1: How to trigger a dynamic action that will call a message notification plugin?<div id="success-message" class="success">
Q2: How to complete a notification text with the text of the div with id = 'success message '?
Thank you very much
TomasSorting...
The problem is that you're using jQuery on the page loading code, but Jquery won't be available until jQuery is initializes (up to a certain number of milliseconds after the standard page load event)
$("#MESSAGE").val().length > 0
I changed it to use the APEX API, that works perfectly.
$v("MESSAGE").length > 0
-
Dynamic action - check if the size of the texfield values does not exceed limit
Hello
I have a form and I'm trying to use dynamic Action to process the form values. I don't know how to get the length of the value of a textfield and compare to what I said in the values
The order of the day called P6_USERNAME which can be more than 10 characters long.
So I tried to create a dynamic Action with the following parameters in the region when .
EVENT: Press button
SELECTION TYPE: jQuery Selector
jQuery SELECTOR: $("P6_USERNAME").val () .length
CONDITION: above
VALUE: 10
Of ACTION GENUINE, I had a view only showing a message "you have exceeded the limit.
The above didn't work and tried to work it around with:
$v("P6_USERNAME").val () .length
that no longer works.
Any suggestions on how I can achieve this? The only options I got in the Type of selection are: point, area, object DOM and jQuery Selector. What I'm really after is retrieving the value of the element, so I can use it for comparison with the value to run my Real Action
APEX 4.0 - Oracle XE 11 G - Windows 7 32 bitIt is not necessary to use a validation/dynamic action. Set the maximum width for the element attribute and the browser will prevent users to enter values longer than that.
-
Level elements dynamic Actions and application
Request Express 4.1.1.00.23
I searched everywhere for an answer on this one and I can't seem to find it. Is it possible to have a dynamic action to interact with an element of application level? If it is possible, is able to have the value field in the when a dynamic action article contains a comparison operator?
An example of a real case would be:
Element level application F111X = X
Dynamic action on P4_Item is triggered and disables the field
Case of falsification:
Element level application F111X = Y
Dynamic action on P4_Item is not triggered and the field remains active.
Thank you
JonJon,
I'm looking for an example, and if I use your article page P4 in the box 'When', event could be the change, Type of selection would be the page element.
P4 would be selected in the drop-down list item (s), Condition would be equal to and value would be TEST with NO quotes!It is difficult for me to know when the values of the quote and when not.
What is it?
Howard -
Dynamic action to set the value of the point of Application
Hello
I want to display a form button that sets a value of the point of Application. Can someone please help and guide how to proceed?
The requirement is, the user will receive a report, they can change a record and a button will allow him to SET the record for the session. When it accesses a different page within the application, they will see that the data relevant to the record that is DEFINED.
Thanks in advance
AaliHi, Estelle,.
You can use the dynamic action 'Code from PL/SQL Execute' to fix your application. For example, your code might look like
begin :G_DISPLAY_MODE := :P1_DISPLAY_MODE; end;
Page items to submit: P1_DISPLAY_MODE
P1_DISPLAY_MODE would be the element on your current page where you select the desired value.
Hope that you give something to play with.
Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
Validation against the dynamic Action
Hi all
I have a Submit button which is dynamic in Action, when we click on this button, that pl/sql code is executed.
Also, I wrote a validation on text box saying that it can not be null. But when I press Submit button dynamic action only to run but not Validation.
Here is the page, it includes two regions, first region button does not have a dynamic Action, so it is prompting validation error, where, as the second region button is not. Help, please
https://Apex.Oracle.com/pls/Apex/f?p=9055:2:3349793619276:
Workspace: KUMAR82
User: Kumar62
Pass: Kumar #1
Thank you
Kumar.
Hi Kumar62,
Kumar62 wrote:
I have a Submit button which is dynamic in Action, when we click on this button, that pl/sql code is executed.
Also, I wrote a validation on text box saying that it can not be null. But when I press Submit button dynamic action only to run but not Validation.
Here is the page, it includes two regions, first region button does not have a dynamic Action, so it is prompting validation error, where, as the second region button is not. Help, please
Check your 9055 Application-> Page 2. Your problem is solved for the button 'submit for approval '.
Here are the changes made on page 2:
- Added real action in your dynamic action to send the page with the query 'SUBMIT' with the following settings:
Action: Send the Page
Application/button name: SUBMIT
See the process facility: No.
Note: Postings are only performed after the page. The release of DA button was running just your logic, but in order to process the postings you submit page.
- Changed condition for validations:
Condition of removed the "when Button Pressed" and game
Condition type: request = Expression 1
Expression 1: SUBMIT
Kind regards
Kiran
-
Validation on the page point is lost when creating dynamic action button
Nice dayI have some page elements like empno, job etc in my application to learn the goal where I validations
to check the length of the point/numeric field and check for null
I have 4 buttons [create, delete, cancel, apply changes] do dml basic operation
Initially, all validations were shot when there was not any trigger attached to the buttons
Once a dynamic action was created for a button by button create account to make these features as the insertion in arrays that are passed as a packaged procedure
It works in all cases (for example) even if an entry is garbage does is allow inserts into the table and all the controls as EMPNO, JOBNO validations are ignored
How can we ensure that these validations must be taken into account first and fired before and only if it is a valid entry before you create key
otherwise it should always display error message when you enter invalid
Tried to use the point of application by the shared components, then set value of Validation for function returns the error text a different value for the same point of the application
[Like global variable]
Don't know if the method described above is correct but stuck in this
Not too much competent in JavaScript and didn't want to try if there is any possibility
Kindly help on this
Thank you
Why not use page instead of dynamic action processes, they fire after validations
Gus
-
APEX 5: Dynamic Action do not run on DEMAND Condition = VALUE
After migration from APEX to APEX 5 dynamic action 4.2.5 which performed in 4.2.5 won't work in 5 APEX.
Event DA: BEFORE the PAGE is SENT
Condition: Ask = value
Value: SAVE
Page contains the button SAVE, in the debug REQUEST window appears like SAVE, but DA does not occur.
When the condition is not defined, DA works correctly in the APEX 5.
Is this a bug in 5 APEX?
Hey Bozo,
Bozo says:
How to have this in mind, can be made to run before Page submit DA specified button click?
It depends on what you want to achieve a click of button and what you want to achieve with DA.
The purpose of the button and DA can be combined in a javascript function or in the DA himself.
How this can be achieved in the DA itself is:
- Instead of shooting the DA "before submit Page', fire the DA to the click event of button. (to do this change the button action to listen for events from DA)
- In the first real action, run everything you want to achieve with DA.
- Write another real action, to submit the page and set the application to any value you want. (ensure that the processes we submit are conditional on the overall application, instead of the State of the button)
Kind regards
Kiran
-
Confirm the dynamic action does not not as expected in the APEX 4.2.5
This looks like a bug in APEX 4.2.5. I have a page with a "Cancel" button that redirects to another page. There is a dynamic action that fires on the button with a confirmation action and the text ' are you sure? However, if the user selects OK or cancel in the confirmation dialog box makes no difference - the redirect is always performed.
I found this question after the migration of a page that worked to 4.1.1-to-4.2.5.00.88 APEX and were also able to replicate on apex.oracle.com here:
https://Apex.Oracle.com/pls/Apex/f?p=19896:2
(Press the Cancel button in the top right of the page redirects to page 1, regardless of the user's response to confirm the popup.)
I don't need someone to suggest the alternative code, I know how to build my own confirmation processing. I want to just raise this as a bug as possible and see if there is a solution to make the dynamic action works as it should.
NB I found this in the patch notes for 4.2.5.00.88 on a fix for a similar problem:
15984978
Dynamic action front-Submit with a confirmation message does not
Hi Tony,.
I think the problem is that the action of the button is defined as 'Redirect page in this Application', but it must always be "defined by the dynamic Action" as soon as you have set dynamic actions 'click' to a button. Normally, which is automatically changed as soon as you create your first dynamic action of a button, and I just confirmed by creating a test button in your application that has been defined as «Redirect...» ». After that I created a dynamic action the action of the button is set to "defined by the dynamic Action.
Is it possible that you have modified the action of the back button to «Reorient...» » ? The question why «redirect...» "does not work, it's that we cannot guarantee in what order the browser will process click on events defined with onclick in the tag button itself and those events attached as a click event handlers. This is why it is necessary that everything is defined as dynamic actions. Only in this case you will be able to cancel the treatment.
Concerning
Patrick
Member of the APEX development team
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf
Post edited by: Patrick Wolf
-
Redirect button AND perform the dynamic action
Hello
I use Oracle 11 g and Apex 4.2.2
It could be a matter of beginners (but that's what I'm ;-)) but I'll ask anyway.
I created a button and can "redirect to the Page in this application" in the section "Action when the button clicked" or select "defined by the dynamic Action."
Is there a way to select "Redirect."... "AND run the SQL Code?
This is exactly the situation that I was considering. You start at the apex (which means don't not offensively or anything like that) and so the concept of session state can still be fresh for you. Telling me where you're just complicates things for yourself.
Why do you, or makes you think, that you need to run plsql in dynamic action first and then redirect the page?
Running code plsql already involves tracking session state and would require the value of the required items on the server. Running WHAT PLSQL is on the side server, if a call should be made. Given that you want to redirect afterwards, the call should happen synchronously, IE make the browser wait the result in order to continue to the next step. A redirect will just tell the server to send the new page to you.
So why would not just use a send page? A page sent will submit all values of item on the server and thus session state. You can use the values of calculation and validation processes and never worry about having properly put it. You can filter out inappropriate process etc. According to the values of query (for example submit) so no problem there. Finally, a branch should redirect you to the target page. Remember, a branch is a part too and is essentially a redirect server-side. Find yourself on your new page without problem really and just send 1 page (send page, get another back essentially).
That said, I simply don't consider a dynamic action. It is useless to laregely here and creates more problems than is useful to review more.
What you have now is to redirect the client to another page, but in the process, you have lost everything from the original page. No values are stored in the session to all State: no save manual to submit State or session page. Add the element to the redirect link doesn't work either, as the link is built during rendering and is not dynamic (so no ' regenerated' link when you click it).
Again, I advise you to:
-put the button to send the page
-create a process after you submit and run your plsql code
-create a branch to a point after the process and set it to redirect to the target page
or
-put the button to send the page
-create a branch set up to redirect to the target page
-create a process on the target page and run your plsql code (but be aware that it may have to be executed conditionally)
There are several traps on session state, so when you feel better grasp it. Page submits are not all that bad.
-
Bug report - copy dynamic action to another page
Hello
In the wizard to copy a DA to another page, in my case, I have the type of selection "jQuery Selector", and the value of the attribute "jQuery Selector" does not get pre-remplis.
Is - is this expected or just something missing in the wizard?
I think I saw so, regardless of the type of selection.
See you soon,.
ScottHi Scott,.
I don't think that it is a bug by itself, even though I agree that this should be improved. We hope to improve the process of copying the dynamic Actions (as requested in the application Feature Requests) in a future version of the APEX, and we already have an enhancement request registered to do so, in which I've now also added a note and a link to this topic.
Thanks for putting in place.
Kind regards
Anthony. -
Deleting a tabular form with dynamic Action
Using Apex 4.2
Is it possible to delete a row in a tabular presentation using dynamic measurements.
Right now my sql report contains html and javasript for a button Delete
I then javascript in my page header'<input type="button" name="Delete" value="Delete" onclick="del(''delete'','''||a.applicationname||''')">' A2
Finally, I have a process page to see the button delete that fires when demand = clearfunction del(Request, Name){ var answer=confirm("Do you really want delete application "+Name+"?\r\n* Provider assignments will be deleted\r\n* Application objects will be deleted\r\n* DB-roles will be dropped\r\n* DB-views will be dropped\r\n* User-synonyms will be dropped"); if (answer==true) { document.getElementById('P10_APPLICATIONNAME').value = Name; doSubmit(Request); } }
Is there a better way
Gus
Published by: Gus on January 24, 2013 C 01:43
Published by: Gus on January 24, 2013 C 01:44Head of /Slaps
Of course, Yes. The text is just interpreted as... Text. I was confused with your previous answers where you said nothing replaced, I thought it was empty. Stupid :)I changed some things in your page:
report-> the link of the DISP_SEQ column: replace CUST_ID ZZZ (just for testing of course)Dynamic action:
delete action to confirm
Created a new action, run the javascript:return confirm("You are about to delete "+$v("P8_CUST_ID")+" ?");
Since confirm returns true or false, returning the value will allow to more to stop or continue actions (as when you would do a "return false;" in a function for example).
To prove that, I added a true other action after the confirmation of the type run javascript, with an alert in it. It will show when you press ok, and he used when you press Cancel.My previous point about where appname: If you'd put an img tag in your link TEXT, then a tag IMG is encapsulated in the anchor tag. When you then bind a dynamic Act of shooting on 'a.delete', the triggeringElement of course would be the anchor tag. Then you can not reference the appname using 'this.triggeringElement.appname' because there is no appname on the anchor element. Instead, it's on the embedded IMG tag.
On your example page you have this in your link text, in your IMG tagappname="'||#CUST_ID#||'"
and this, in the attributes of your link
id="#CUST_ID#"
The correct value is put in P8_CUST_ID, because the value is taken from the ID attribute of the anchor tag. In this case, you can remove the attribute appname on the text of the tag IMG link.
If you were to remove the link id attribute value and use the appname attribute, then you will need to adjust as indicated in my previous post. -
Hello
Request Express 4.1.0.00.32
I have a report region on a page that is conditionaly displayed depending on the value of an element of page Pn_ITEM = "HIDE".
I have dynamic stock running on the page that fill a collection and update the report without the need to submit the page. However, I need to show the report somehow when the collection contains at least one of the members present.
I tried the following:
1st real action running pl/sql that adds a record / member of a collection, then a 2nd action sets the value to a page Pn_ITEM = true 'SHOW' action item and a 3rd that should show the region based on the value of the real action 2.
My collection has an added member. The value 'SHOW' is applied to my article on Pn_ITEM page by the dynamic action but the region of report I want now displayed is not displayed. Obviously if the page is submitted, the report will now be shown however I can't send the page at this stage that's why I need to do this dynamicaly or through javascript and on the application process.
Any ideas how to get my region report to display once the collection has at least one member without submitting the page?
Thanks in advance.Remove the requirement for the view from the region. You don't want this here since it completely stops rendering region if the condition is not fullfilled to the render time. You want that he made, but not displayed.
Add css to the region (inline, class):
style="display: none;"
Add real action that will do a refresh on your area (component - refresh, select your report as an affected item region).
Now, either:
Add a real action of type run javascript. Since you can not put conditions on the real actions, we will test the condition in javascript.
Choose one:if($v("Pn_ITEM")=='SHOW'){ //if you want to target the region to be shown by an ID (static id?) $("#region_id").show(); };
if($v("Pn_ITEM")=='SHOW'){ //if the triggering element would be the region to be shown $(this.triggeringElement).show(); };
if($v("Pn_ITEM")=='SHOW'){ //if you'd want multiple affected elements to be shown at once drop the [0] $(this.affectedElements[0]).show(); };
Create a new dynamic action that has the same conditions of release as your other dynamic action.
Specify a when condition:$v("Pn_ITEM")=='SHOW'
Create a real "Show" type action to show the region.
Final result should be your dynamic action creating an item in the collection, an update of the report based on the item (but still not represented) and finally a show in the region.
Remember that stocks will also fire on page load (so don't forget to check the box on the actions of true), otherwise the region does not appear initially.
I would say that the item is probably not necessary, but depends on any other logic, you might have on your page and possibly interacts with it. -
Dynamic Actions are disabled in Internet Explorer
Hi people
I am a new user to a remote site, completely technique. I finally disagnosed all the problems she reported because the dynamic actions seem to be completely disabled on his PC. It runs Internet Explorer unfortunately. I'll try to persuade her to switch to a real browser, but as it is a laborious process I would be sure that it will solve his problem before undertaking this exercise.
My problem is that I did not know that das could be disabled. I ran the same application on my PC on using IE and it works fine. So I don't know if the problem is browser related or windows related, or maybe even a firewall or a well-meaning, but overzealous anti-virus/spyware program. I'm not aware of a configuration facility that would allow the application to work to a large extent with the only obvious exception being that not even the simplest "hide the element' dynamic action is triggered.
The user is running IE 8, on a hosted Apex v4.0. Can anyone suggest what could be disable all DAs for this user frustrated and distraught developer?
Thanks in advance
Concerning
CSHave check preferences to see if JavaScript is disabled.
Jeff
-
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
Maybe you are looking for
-
Poor quality of the sound on the rocket with some conversions of mp3 128 k
I've converted a few songs to m4a (you have an iTunes gift card, do not want to lose it) using MediaMonkey to load on my rocket 128kbs mp3 files. They sound very good when I play on the computer, but the sound quality is poor, when I play them back o
-
When open, my Windows Contacts file task bar displays only organize, visualize, slides and burn the buttons. The add new contact button is missing. It seems that the tasks in the task bar are confused with the image file. How to restore the correct W
-
Copy Destinations of routes in Streets and Trips?
If I could, I click and drag to select the list of 100 sites, copy it to my Clipboard, and then paste it into the document (?), email, etc. How to copy the list? I do not need or want the map or directions, just the list (which has been optimized).
-
internet security AVG 2011 freeze computer @ free version upgrade
I bought the full version before the expiry of the 'free' version I had received before the expiry date, which had a box of activation click on a popup. I have had no problems to download the upgrade, everything worked well until the date has passed
-
mscorwks.dll corrupt message found in the sfc results
I cannot launch an application (Quicken) and was told to reinstall .NET Frameworks for my version of Windows 7 Home Premium. I've deleted and reinstalled, and it doesn't work. I then tried the Microsoft Fix it 50736 and that has not worked. I ran th