Button and dynamic Actions
Hi allI need to hide/show buttons with dynamic action, in the Actions of true/false, I tried with the object DOM and selector withjQuery, but it does not work.
Can someone help me, please?
Sergio
Sergio,
As you guessed, buttons are currently not well supported with dynamic actions, something we hope to treat in the future. However, it is possible to work around this problem. First of all, I assume that you use the "Template" based keys: and not "HTML". The "HTML" buttons automatically generate an ID set to the value of the button name, so if you tried to use "DOM object" with the value of button name, then this should have worked. The "HTML Code" buttons are certainly easier to control with dynamic actions, however if you're set on using the buttons "Template" based, it is a bit more complicated, but still possible.
The fundamental problem is that "Template" based button generate an ID has the default value, and the simplest for dynamic steps control the individual buttons (and any element) is by referencing by ID. In addition, there is no substitution string available in the template of the button to the name of the button (only LINK, LABEL, BUTTON_ATTRIBUTES, and BUTTON_ID), so you can't do this on the side of the model. (I know there is a BUTTON_ID, but it is the internal ID, and it is a different set of challenges, I don't think it's better to continue to do this). If we want to give the button ID, the name of the button. To do this:
- Make sure that the substitution string #BUTTON_ATTRIBUTES # is included in your button template, something like:
- In your button, verify that the template is selected, and then you have to specify the ID attribute, whose value can be given in the field "attributes button" the same as the name of the button:
id="my_button"
You encounter so, essentially, to reproduce the name of the button, as well in the name of the button and the added value of ID ideally, you'd be able to do this in the model, as explained, but this is not possible.
- Now, you can reference this button against the 'affected elements' dynamic actions, using a selection of type "Object DOM" and the value of the button name / ID specified.
Sorry it's a bit lengthy. As explained, based HTML buttons are certainly easier currently, you don't have to worry about all that extra work to get the generated ID, it's right there already. And in a later version of the SUMMIT, we want to allow just completely declarative selection of dynamic action buttons that work, without having to make these types of additional solutions.
Hope that helps.
Anthony.
Tags: Database
Similar Questions
-
Radio button on dynamic Action of change
Hi all
I have an example of setting on apex.oracle.com
Workspace: RWTEST
username:testuser
PW:test
(Page 5)
I have 2 test items. We have a radio beside him group with'm ' for the disappeared and "N/a" for not not applicable. The other has checkboxes with the same values.
To simplify things, I just added a dynamic action that takes the value of the test points and multiply by 3. However, when you click on'm ', the value should say 'cannot calculate. This works very well for the Group of radio buttons and checkboxes. However, for radio group, when you lorsque vous decochez uncheck'm ', the value is not recalculated. The value of the box is. I know the option buttons are not supposed to be unchecked and I had to add a function in the html header to allow the radio button to be deselected.
Can someone explain what to do if the value of the Radio says "can not calculate" only when am ' radio button is selected and why is this the case? I guess it's something with the function that I have in the page header.
Thank you
Brett
If I understand your post, you want to print 'cannot calculate' when the radio button is selected for "M" or when you uncheck radio button.
To do this you must trigger DA After unchecking the option button.
function changeRadio (p) {}
{if(State[p.Name]&&State[p.Name]==p.value)}
p.Checked = false;
State [p.Name] = ";
$(p).trigger('change');
}
else {}
p.Checked = true;
State [p.Name] = p.Value;
}
Returns true;
}
Concerning
Bartosz Ostrowski
-
Link between apex and dynamic action images directory
Hello
Recently, I upgraded my version of 4.2.0 for 4.2.2 APEX.
I missed the step where you have to re - setup the WAR of ADR file to point to the new directory of images. The result is that my dynamic actions would not trigger in the application.
Although the problem is solved (by the missing step), I am interested to know how dynamic action links to the directory of the specific images of version to make it work?
See you soon,.
Xrc xarg wrote:
Recently, I upgraded my version of 4.2.0 for 4.2.2 APEX.
I missed the step where you have to re - setup the WAR of ADR file to point to the new directory of images. The result is that my dynamic actions would not trigger in the application.
Although the problem is solved (by the missing step), I am interested to know how dynamic action links to the directory of the specific images of version to make it work?
Dynamic Actions are implemented using jQuery and JavaScript, so their operation depends on the good jQuery and JavaScript APEX referenced files when the page is loaded. These files are stored in the "images" folder hierarchy ('Pictures' are an unfortunately close label, legacy for shared components that reside on the web server. 'Assets' or 'resources' would be better words to describe the current content of these files.)
The references that are in charge of these files are included in the page templates. These are stored in the database and thus updated by the upgrade SQL script. If the files specified by the URL in the page template references are not created in the necessary locations by following the installation steps, the referenced files are not loaded and the dynamic actions generated on the page cannot access the library functions they need to run.
-
database and dynamic action column
I have two questions.
1 - seller
2 - Committee of the seller
In the part of the seller's commission is a dynamic action, according to the seller to point. Commission of the seller of the item is also COLUMN database and when it changes, changed the value, except when it's inclusion in the database with the changed value, but the display shows the value of the dynamic action.
I would like to know how to give it the value of the input by the user.
Thank youHello Renata,.
Change your dynamic action so that it does not fire when the page loads.
Then it will not change the value of the database unless the seller are updated.
Concerning
Michael
-
Several buttons and dynamic (?) EventListener
Hello world
I put 10 buttons on my stage, name it "b1", "b2", "b3", "b10".
All of these buttons should use the same function.
Is it possible to dynamically?
var r: Array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10].
for (var i = 0; i <.) Length; i ++) {}
button = "b" + a [i];
This [button] .addEventListener (MouseEvent.CLICK, onClick_b);
function onClick_b(pEvt: Event): void {}
my_mc. Play();
}
}
The service plays only the 'b10' button.
Someone at - it an idea how all other buttons serve this function?
Thank you! C.
what you want is:
for (var i = 0; i)< a.length;="" i++)="">
getChildByName("b"_+_a[i]).addEventListener (MouseEvent.CLICK, onClick_b);
}
-
Prevent fireing "Submit BeforePage" - dynamic Action if I click the button CANCEL
Hello
I create a dynamic Action on the event "before submitting the Page" which shows me a "Please Wait" - window, if I submit a page. It works very well.
But if I click the button CANCEL, dynamic Action runs as well. Because of that I put the status "request is NOT contained in the Expression 1" and 1 Expression I put BACK, because demand from the button CANCEL is BACK. Unfortunately it is running if I press the button CANCEL.
The action is "executing JAVA-code" and the code is:
What's not here?$x_Show('AjaxLoading'); window.setTimeout('$s("AjaxLoading",$x("AjaxLoading").innerHTML)', 100);
Kind regards
MarkHi Mark,
If you change your button 'CANCEL' to a "Redirect to the page of this application" button, the page is not submitted and does not fire the event "before submitting the Page.
Or if you want to stick with the shipment, you can check for this.data in JavaScript code because that will contain the value of the application to send it. So, for example, you could use
if (this.data != "ZURUECK") { $x_Show('AjaxLoading'); window.setTimeout('$s("AjaxLoading",$x("AjaxLoading").innerHTML)', 100); }
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 -
Variable setting wrong with dynamic action for the region of report
Hello
I can't setting a variable. Here are the details of connection:
Connection information:
TCARMY workspace
User Apex_dev
Password dev_apex
Application 88542
Page 11
If you run the page 11 and just click on submit, there will be two rows. If you click on one, the modal region won't say no data found. If you click on the button submit once again, the value is passed if you click on it now, the results arrive. If you click on the second row, it still shows the value of the first row. If you click on submit again after clicking on the second line, then it is displayed correctly. It seems that the value is set to submit it. I want this to work when clicked, and then for the sql to run with the value that is in this variable when clicks on the element. There is a bit of javascript page level and dynamic action. Something is not right to the installation.
The modal window should popup and run the sql at that time with the variable data and view the two columns. And if the user clicks on the second row, it would display the data in the row.
Thank youTim
TC-army wrote:
If you run the page 11 and just click on submit, there will be two rows. If you click on one, the modal region won't say no data found. If you click on the button submit once again, the value is passed if you click on it now, the results arrive. If you click on the second row, it still shows the value of the first row. If you click on submit again after clicking on the second line, then it is displayed correctly. It seems that the value is set to submit it. I want this to work when clicked, and then for the sql to run with the value that is in this variable when clicks on the element. There is a bit of javascript page level and dynamic action. Something is not right to the installation.
What has not been set up right, it's that the element of P11_NAICNUMD parameter was not specified in the source attribute of Page to go to the region, modal Discount. The current value in the browser page, therefore, was not defined in session state when the report has been updated by the dynamic action. When
-
value of the element is not common when used in dynamic action
I'm learning the 5 apex and I wanted to create a page that would update the fields in a record by entering the unique id of the recording using a dynamic action with plsql.
When I click on the button update the value of the element of the text uses the previous value and not the input current. The 'works' update, but the ID values are not appropriate.
How can I make sure that when I click on the update button, the dynamic action will get the current value of the text element and not the previous (when the page was submitted)?
I created a quick demo or what I was testing in apex.oracle.com and always gives me the same result.
dacoellov wrote:
I'm learning the 5 apex and I wanted to create a page that would update the fields in a record by entering the unique id of the recording using a dynamic action with plsql.
When I click on the button update the value of the element of the text uses the previous value and not the input current. The 'works' update, but the ID values are not appropriate.
How can I make sure that when I click on the update button, the dynamic action will get the current value of the text element and not the previous (when the page was submitted)?
I created a quick demo or what I was testing in apex.oracle.com and always gives me the same result.
What dynamic action event and what types of action are involved here? Provide details, or better yet share identification information of developer comments for the apex.oracle.com workspace so that we can see the demo.
If the dynamic action executes an SQL statement or a PL/SQL process on the server that requires page updated element values in session state, specify these items as part of dynamic action Page to submit items .
-
Redirecting to a page after the dynamic action
I stated a dynamic action of a button (its dynamic action of pl/sql). After its been pressed it fills a line in a table.
I want to redirect it to another page, once completed the dynamic action. How can I do?
PL/SQL D.A. have an indicator expected result, make sure that is selected.
Then, action of true of JavaScript:
Window.Location.href = ' & APP_ID.: 1: & APP_SESSION. :::'
or simply add a real action of page submit and manage the re - run by a branch of the page?
-
Refresh the region in a table using dynamic action
Hello
I'm stumped on this scenario please advise. I have a dynamic action a button that when clicked fires real action pl/sql that will add a member to a collection, it works as expected, but the second real action on the same button will refresh the tabular form/report region. This isn't refreshing my form/report.
To know that if we can indeed I created a report on the same page, based on the same point of view and dynamic action works.
So why the dynamic action of refreshing working on my new report and not on the form of tables. I found a tabular presentation just a report of updateble.
I use apex 4.1.0.00.32
Help, please.Right-click of the tabular form > click attributes report > go to layout and pagination > set yes partial page refresh
-
APEX: Dynamic Action with tabular column
I'm trying to 'turn off' couple of tabular columns using Javascript and dynamic Action.
Some fields are text, although some are LOVs type
I have no boy of Java, so a lot of my scripts are copied and modified based on examples I see, Plse forgive me.
If the field is a text type
With the help of Dynamic Type of Action such as disable, use the JScript
$('_input[name="f20"]').attr ('disable', true);
I managed to get the disabled column...
But I don't seem to be able to apply to the Type "select list".
Please notify
Hi JAS-Oracle,
But I don't seem to be able to apply to the Type "select list".
Step 1:
Go to report attributes-> edit your selection list column
under column attributes - > add class attributes of the element, i.e.
Attributes of the element: class = "select_list.
Step 2: Create a dynamic Action
Event: Page load
Action: disable
Selection type: Jquery selector
JQuery Selector: //dont .select_list forget to put the point before the name of the class
Hope this helps you,
Kind regards
Jitendra
-
Show only the value not save to the database based on the dynamic action
Nice day
I have a select box with products and dynamic action that updates a single display element with the price, based on the selection of products.
Once the selection is made and the page is submitted, I noticed that the price is not stored in the database. If I change the display
only the value of a text box, the data is saved. This is expected behavior? If so, can I add something to the text box to make it uneditable?
Thanks for any help you can provide.
Version is Application Express 4.1.1.00.23
Stevestmontgo wrote:
Hello
Thanks for your advice. I changed the STATE of SESSION SAVE Yes with the other values remains the same, as they met to your recommendations.
When I change the value, I get the error below. It's maybe because the value is taken from a dynamic action?Yes. That would mean there isn't an item "view only". The value is changed by the browser.
You might change view as textitem and set read-only by adding the ReadOnly attribute to the property attributes of HTML form elements .
-
dynamic action not hiding region
I have a page with four different areas and you want to show/hide the based on the button clicks (essentially using four different button and dynamic measurements to create a kind of view by tabs on the page). Each button will show a region and hide the other three. Everything works ok, except for an area that will not hide. It is different from the other regions it is of type HTML, where the other three are all type of report. In addition, she is the only region with parts of the child. I also tried to hide the child regions individually as well, but that does not work either. This particular region contains three pie charts based on Flash.
Any thoughts on why this region will not hide?
SteveHello
You select model to this region?
Kind regards
Jari
-----
My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
Twitter: http://www.twitter.com/jariolai -
Hi all
I have a page with a report interactive and dynamic Action that fires "After Refresh" of the region.
It works fine, except when a filter is applied which returns null and does not display 'no back lines' :(
I created and apex.oracle.com demo here:
http://Apex.Oracle.com/pls/Apex/f?p=579:51
As you will see, an alert is triggered each RPP except when it is 'no row returned.
Y at - it anyway to get the dynamic action to keep shooting even if 'now the rows returned "?
Thank you
ShuntHi, Shunt,
I submitted the bug #13880667 for that matter, where the corresponding event is not triggered with success where SORTING does not return any data. I'm afraid, I have currently no elegant way around that.
Sorry I can't be more help and thanks for reporting this.
Kind regards
Anthony.Published by: Anthony Rayner on March 23, 2012 13:02
-
Simple dynamic action does work properly in 4.1 more
Our application has a page with a large number of boxes while using the same LOV ('Y', ' don't). We defined a simple and dynamic action that fires whenever the first box is changed. If its value is set to 'Y' the value of all the other checkboxes is set to 'Y' as well. A wrong action does the opposite. It worked well in 4.0. 4.1 it fires again, but instead of the complete list of the items affected only the first item in the list has its set value. When we change the action in "value"- for instance - 'hide' or 'Disable' it works fine once again (that is, affect the full list of items).
Anyone an idea what may be the problem here?
Robert.Hi Robert,.
I think you're hit "set of dynamic scripts 4.9 value with multiple affected elements ' documented as behavior change in the APEX 4.1 release notes http://download.oracle.com/docs/cd/E23903_01/doc/doc.41/e21672/toc.htm#CACFHAFB at the same time Mark Lancaster also blogged about this a few days ago. http://oracleinsights.blogspot.com/2011/09/dynamic-actions-changed-behavior-in.html
BTW, if you have so many boxes O/N, you can take a look at our "Simple Checkbox" plugin to http://apex.oracle.com/plugins item type
Concerning
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
-
Transfer from Windows to Mac. Need advice on the brand and model of HD Ext for compatibility which will not need reformatting? Advice welcome.
-
New portable E460 unable to pair with Bluetooth Microsoft Arc Mouse 4.0
My top model tour is E460 / Type: 20ETA00XSG Hi all I've seen a lot of messages with instructions what to do when the bluetooth is not working. I tried everything then maybe someone will offer you something that I have not found. I have tried to unin
-
The next update to my windows Vista continually fails with the above error codeMicrosoft .NET Framework 3.5 Service Pack 1 and the .NET Framework 3.5 Family Update (KB951847) x 86How can I solve this problem? Chris
-
How to play 3gp on Windows Vista-based computer
I sent a video I took on my cell phone to my box of e-mail on my Windows Vista laptop and I can't play the video. I also want to convert the 3gp into a format that I can send an email to others and they will be able to play the video. Thank you!
-
computer HP mini 200 is not compatible with windows 10
I have a hp mini 200-4212sf I would like to have the window 10 and Intel (r) graphics media accelerator 3600 series is not compatible. Can we put windows 10? And if not to add to the computer are running?