Dynamic action to set the value of the point of Application
HelloI 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
Aali
Hi, 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
Tags: Database
Similar Questions
-
Hello
I would like to know how to use PL/SQL to create dynamic action to set the value of a list of selection by another selection list.
I wish can create dynamic action to manage the two above the Room select list (: P9_ROOM) and building (: P8_BUILDING).
When you select "1074" in the bathroom, building highlights like "BRM BLD 5"
When you select 'Area of the black box' in the room, building must assign the value "7 BLD BRM"
When the room is Null, building should also be Null.
I thank you,
Alice
I forgot to mention, for the PL/SQL Code, because you are working with items in the selection list, the return values are different from the display on your LOV values, you must instead use the return values.
Thank you
Erick
-
Dynamic action to change the point label
Hi all
How can I use dynamic action to change the point label?
Thank you.Hello
I don't think that there is a solution out-of-the-box for it. However, it seems that the Apex 4 correct uses of the elements of the label HTML for labels. So you can use a jQuery selector that is simple to get and manipulate the tag of an element.
Something like this:
$('label[for="P1_CUSTOMER_NAME"]').html ("new label");
Note that there is sometimes a scope nested within the tag tag.
You can use a type of dynamic action "run the javascript" to do.
Luis
-
Dynamic action to set the value to select the text box list
Hello
I want the value in the list box select text box i.e list selection with 5 static values and on the user's selection, this value must be added in a box.
I am using dynamic measurements. I tried with dynamic action and created the change list box select evnent but now how to set the value of the selection list to
text box that I don't know.
Help, please.
Thanks in advanceHello
I changed the dynamic on this page action to make it work now. I changed the "value Type" action 'Set value' 'Expression JavaScript' and "JavaScript Expression" do the following:
$v(this.triggeringElement)
This example gets the value of the page element 'DESPROGES', bypassing the server for nothing, as you did before.
I hope this helps. Let us know if you have any other questions.
Kind regards
Anthony -
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.
-
Hi everyone, I posted this question in the past and made huge strides with the help of Denes Kubicek: https://apex.oracle.com/pls/apex/f?p=31517:294:115851992029365: based on my previous question posted: https://forums.oracle.com/forums/thread.jspa?threadID=2537494
I'm fighting with a single element in my tabular presentation. There is a radio button. The choices all seem correctly, but the value is not saved in the collection (and therefore not recorded in the table). All the other elements in the form of tables to record properly.
Here's what I have for the query. This is element c024 (which maps to;) ("F03'), which is defined as a radio based on an existing LOV LOV.
Currently I have:
2 items on the page:
P110_ID
P110_VALUE
Dynamic action called COLUMN of CHANGE:
event: CHANGE
selection type: jQUERY Selector
jQuery:
Select jQuery = input [name = "f03"], select [name "f08"], select [name = "f09"], input [name = 'f10'], input [name = 'f11'], input [name = 'f12'], select [name = "f40"], input [name = "f21"], input [name = 'f22'], input [name = "f23"], input [name = 'f50']
scope of the event: Dynamics
real action #1: set the P110_ID javascript expression this.triggeringElement.id
real action #2: set the P110_VALUE javascript expression this.triggeringElement.value
action 3: run pl/sql code
declare v_member number; v_seq number; begin v_member := TO_NUMBER (SUBSTR (:p110_id, 2, 2)); select ltrim(substr(:p110_ID,5,4),'0') into v_seq from dual; safis_collections.update_column(v_seq, v_member, :p110_value);
refreshment area true creation #4: LANDINGS_COLLECTION
the tabular presentation is based on the query:
SELECT apex_item.text(1,seq_id,'','','id="f01_'||seq_id,'','') "DeleteRow", seq_id, seq_id display_seq_id, apex_item.text_from_LOV(c004,'SPECIES')||'-'||apex_item.text_from_LOV(c005,'GRADE')||'-'||apex_item.text_from_LOV(c006,'MARKETCODE')||'-'||apex_item.text_from_LOV_query(c007,'select unit_of_measure d, unit_of_measure r from species_qc') unit, apex_item.select_list_from_LOV(8,c008,'DISPOSITIONS','onchange="getAllDisposition('||seq_id||')"','YES','0',' -- Select Favorite -- ','f08_'||seq_id,'') Disposition, apex_item.select_list_from_LOV(9,c009,'GEARS','style="background-color:#FBEC5D; "onFocus="checkGearPreviousFocus('||seq_id||');"onchange="getAllGears('||seq_id||')"','YES','3333','-- Select Favorite --','f09_'||seq_id,'') Gear, apex_item.text(10,TO_NUMBER(c010),5,null, 'onchange="setTotal('||seq_id||')"','f10_'||seq_id,'') Quantity, apex_item.text(11,TO_NUMBER(c011),5,null,'onchange="getPriceBoundaries('||seq_id||')"','f11_'||seq_id,'') Price, apex_item.text(12, TO_NUMBER(c012),5,null, 'onchange="changePrice ('||seq_id||')" onKeyDown="selectDollarsFocus('||seq_id||',event);"','f12_'||seq_id,'') Dollars, decode(c013,'Y',apex_item.text(14, c014,30,null,'style="background-color:#FBEC5D;" onClick="onFocusAreaFished('||seq_id||');"','f14_'||seq_id,''),'N','N/A') Area_Fished, decode(c017,'Y',apex_item.text(18, c018,4,null,'style="background-color:#FBEC5D; "onBlur="setUnitQuantity('||seq_id||')"','f18_'||seq_id,''),'N','N/A') UNIT_QUANTITY, decode(c017,'Y',apex_item.text(19,'CN',3,null,'readOnly=readOnly;','f19_'||seq_id,''),'N','N/A') UNIT_COUNT, c024 hms_flag, decode(c050,'Y',apex_item.checkbox(21,'Y','id="f21_'||seq_id||'" style="background-color:#FBEC5D; " onClick="alterYes('||seq_id||');" onKeyPress="alterYes('||seq_id||');"',c021),'N','N/A') FinsAttached, decode(c050,'Y',apex_item.checkbox(22,'N','id="f22_'||seq_id||'" style="background-color:#FBEC5D;" onClick="alterNo('||seq_id||');" onKeyPress="alterNo('||seq_id||');"',c022),'N','N/A') FinsNotAttached, decode(c050,'Y',apex_item.checkbox(23,'U','id="f23_'||seq_id||'" style="background-color:#FBEC5D;" onClick="alterUnk('||seq_id||');" onKeyPress="alterUnk('||seq_id||');"',c023),'N','N/A') FinsUnknown, decode(c050,'Y',apex_item.textarea(28,c028,3,null,null,'f28_'||seq_id,''),'N','N/A') Explanation, decode(c024,'N',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'U',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'Y','N/A') Nature_Of_Sale, decode(c020,'Y', apex_item.select_list_from_LOV(40,c040,'HMS_AREA_CODE','style="background-color:#FBEC5D;"',null,null,null,'f40_'||seq_id,''), 'N','N/A') HMS_AREA_CODE, c020,c050, decode(c020,'Y', apex_item.text(41,TO_NUMBER(c041),5,null,null,'f41_'||seq_id,''), 'N','N/A') Sale_Price from apex_collections where collection_name = 'SPECIES_COLLECTION' order by seq_id
I noticed the following:
When I change the column C011 (price) the following values are defined in dynamic action:
P110_ID = f11_1
P110_VALUE is everything that I change the price.
When I change the column C024 (hms_flag), the following values are defined:
P110_ID = f03_0001
P110_VALUE = change everything what I hms_flag to.
the region is updated in my dynamic action, and change of hms_flag does not take. I tested the SQL query that generates the value of v_SEQ in the dynamic action. Both a change of price and HMS_FLAG, it seems valid
Select ltrim (substr(:p110_ID,5,4),'0 ') in the double v_seq;
If f11_1, v_seq: = 1
If f03_0001, v_seq: = 1
Thank you!
solved. sort of.
domain c024 references f03.
dynamic ACtion, step 4 calculated v_member as a substring of P110_ID... and in all other areas, the column and the field (fxx) displayed the same value... otherwise c024.
I'm not exactly sure how solve it, but see the problem.
-
Dynamic action to refresh the region->; see the message to user
Hello
I have a page in the apex 4.2.2.
In this page, I have an interactive report and a filter sets, users can choose.
When users choose one of the filters, I implemented a dynamic action to refresh the interactive report region, so it should refresh the data being shown without submitting it.
So far so good... but... when the region is refreshing there is point 'charge of circle' which displays and allows the user to know he is done on the page. But this icon is not so obvious.
What I want is to add a message, for example to display a region, which showed a message like "being the updating of the report, please wait" (something like that).
I tried to insert in my dynamic action, as 1st action, to SHOW this area and as the last action to HIDE. But nothing is done, the region is never shown.
How can I perform this task? All I need is to be able to display a message, for the duration of the dynamic action, to inform the user that he or she must wait until the task is completed.
All real common actions have been reported to "wait for result", if I didn't get this wrong, it means that he expects the previous real action remaining to be done, in order to trigger the next... This should show the region and then hide it, but it does not work.
Can someone help me with this? Maybe give an idea?
Kind regards.
You can actually go several routes with a solution for this. A refresh of the IR will start forward and after updating the events that you can hang on to dynamic actions or jQuery, so you can show something at the start of the update and then hide it again. And since you can do all this in jQuery you could easily hold it in a javascript file and attach it to every page of the ir. This is probably the cleanest solution and more independable.
Another way is to use the already existing waiting icon and play with his presentation a little. You know, that you are talking about loading icon. You can change this to something much better with minimal effort!
Example:
Run when the page loads, to execute javascript code:
$("#apexir_LOADER").append("
Please wait. Refreshing the data.");Add this css to inline css in the page:
span#apexir_LOADER { display: block; width: 150px; text-align: center; background-color: white; border-style: solid; border-radius: 5px; border-width: 2px; top: 20%; }
It'll make a little white box with black borders rounded around the loading icon and put a text below.
You can get the html code to add a bit more generic, or you can raise some html of the page if necessary. You can put it in a dynamic action on the load, put in a js file, or whatever. The css can be put in a page template or a css file.
It's only less independable hanging in front or after updating because we are taking advantage of the system in place, which means that maybe he could change in the future - but this is hardly on the same scale as the 'hacking' the ir for example javascript.
-
Dynamic action to display the button
Hi all
I use Apex 4.1
I want to build a dynamic action:
If a value in the select list is changed - a button must be indicated.
It does not work!
Yes, I did:
In the model of button:
either:
< button value = "" #LABEL # "class ="grey button"type ="button""
#BUTTON_ATTRIBUTES # >
< span > #LABEL # </span >
< / button >
or this:
"< button value =" "#LABEL #" class = "grey button" type = "button" onclick = "#LINK #
#BUTTON_ATTRIBUTES # >
< span > #LABEL # </span >
< / button >
The button:
The button attributes:
ID = "button_dyn_action".
In dynamic action:
Event: change
Selection type: elements
Product (s): P51_KW_ID
Condition: No strings attached
Action: show
Fires when the result of the event is: true
Fire when the Page loads: no
Items affected
Selection type: DOM object
DOM object: button_dyn_action
Would be nice to get help in this forum about this, as a dynamic action to display the buttons are not described anywhere!
Published by: oraman on December 12, 2011 07:42oraman,
I think this thread is cursed. He deleted my answer!
I made a mistake in my first post. Your model of button should look like this:
and you must include the following in your attributes of button, then your button is hidden when the page loads:
style="display:none;"
Here's a demo: http://apex.oracle.com/pls/apex/f?p=43401:34:0
See you soon,.
Janet TysonPublished by: Tyson Janet December 12, 2011 10:30
Published by: Tyson Janet December 12, 2011 10:33
-
How to set the value of the point of application using pl/sql in the application process
Hi guys,.
I want a global variable (application point) whose value will be set to start when a user logs on to the application. The value will be retrieved from the database by using a sql query. I don't exactly know the syntax to set the value of the point of application in the application process. Also, I want to know what type of enforcement process should I use to set the value of the point of application, when a user starts a session. The value of the point of application varies from one user to the user.
Help, please.
I use apex 4.2
Kind regards
Waqas
You can use the application element as a link with his name. That is to say. your point of application is named G_MY_APPLICATION_ITEM, then you can / set of access using: G_MY_APPLICATION_ITEM.
For example
BEGIN
-assign as a variable
: G_MY_APPLICATION_ITEM: = 'LARRY ';
--
-use in a SQL statement
SELECT WHATEVER_COLUMN
IN: G_MY_APPLICATION_ITEM
FROM MY_TABLE
WHERE USERNAME =: APP_USER
;
END;
Peter
-
using the value of the point of application in javascript
Hi all
Apex 3.1
I have a javascript that calls an application process, please see below. In the application process, I have create/modify the value of an element of the application logic. Later in the javascript, I need to define a page element to the value of the application element that has been created in the application process. All of the alerts that I post for the javascript display this value as empty, even though a similar HTP.prn in the process of the application displays the value! Once the completed script the correct value of the issue of enforcement is in session state. Can someone explain this problem of sync for me? Why can't I get the value of an element of application in javascript code when the application process is called by the javascript code?
Is there a simple solution for me to get this value?
Published by: blue72TA on August 16, 2011 11:39<script> function f_ValidateLinkLine(pThis) { // The row in the table var vRow = pThis.id.substr(pThis.id.indexOf('_')+1); // is Link Line really a number? if ( isNaN(html_GetElement('f20_'+vRow).value)) { if (html_GetElement('f20_'+vRow).value.length > 0) { alert('Link Line is an invalid number - '+html_GetElement('f20_'+vRow).value); html_GetElement('f20_'+vRow).value = ''; } } else { if ( ! isNaN( parseFloat(html_GetElement('f20_'+vRow).value) ) ) { var link_line = parseInt(html_GetElement('f20_'+vRow).value); if (html_GetElement('f20_'+vRow).value.length > 0) { var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=ValidateLinkLine',0); get.add('F101_LINK_LINE',html_GetElement('f20_'+vRow).value); get.add('F101_INVENTORY_ITEM_ID',html_GetElement('inventory_item_id_'+Number(link_line)).value); get.add('F101_QUOTE_LINE_LINK_ID',html_GetElement('f01_'+spacer+link_line).value); get.add('F101_QUOTE_LINE_ID',html_GetElement('f01_'+vRow).value); get.add('F101_QUOTE_NUMBER',html_GetElement('f19_'+vRow).value); gReturn = get.get(); // The application process can sometimes change the value of F101_QUOTE_LINE_ID // and I need to set f37 to this value when this happens html_GetElement('f37_'+vRow).value =('&F101_QUOTE_LINE_ID.'); //< -- This does not work, the applicaiton item is blank! if (gReturn) { alert(gReturn); } if(gReturn) { html_GetElement('f20_'+vRow).value = ''; html_GetElement('f37_'+vRow).value = ''; } } //End Check Length } else { html_GetElement('f37_'+vRow).value = ''; } // is Link Line a number? } // End If } // End ValidateLinkLine </script>
Published by: blue72TA on August 16, 2011 11:41
Published by: blue72TA on August 16, 2011 11:41Hello
When you use the point of application in JavaScript, as you do, string &. F101_QUOTE_LINE_ID is replaced by the value of the session state.
Changes to this value of the item when you call process On Demand do not affect the page.Lets take for example,
You app element value of F101_QUOTE_LINE_ID is for example XX in session state.
You run the page and view the source of the page that looks like thishtml_GetElement('f37_'+vRow).value =('XX');
Like you have a value hard to JavaScript code.
Nothing can change this, unless you refresh the page.
You need return the value of the process On Demand.
To set the value of code might look like sohtml_GetElement('f37_'+vRow).value = gReturn;
Kind regards
Jari -
Set the 'Not available' application via the SQL statement
Hi, I am trying to automate the deployment of applications and wonder if anyone knows how I could define the "Unavailable" via a SQL script application. In the views of the APEX_030200 scheme, there is a view called "APEX_APPLICATIONS" with "AVAILABILITY_STATUS" and "UNAVAILABLE_TEXT" columns What I want to do is to run a statement that sets the 'Not AVAILABLE' application before you run the import script.
Thanks, JHello:
You can use the 'wwv_flow_api' to set the State of the application
DECLARE ws_id number; BEGIN select max( workspace_id) into ws_id from apex_applications ; wwv_flow_api.set_security_group_id(ws_id); wwv_flow_api.set_flow_status ( p_flow_id => :app_id, p_flow_status => 'UNAVAILABLE', p_flow_status_message =>'Application being updated...') ; end;
The valid values for p_flow_status are
'AVAILABLE. '
"AVAILABLE_W_EDIT_LINK,"
"AVAILABLE_W_INLINE_EDIT,"
"DEVELOPERS_ONLY,"
"UNAVAILABLE_URL,"
"UNAVAILABLE_PLSQL,"
"RESTRICTED_ACCESS,"
"UNAVAILABLE".CITY
-
How can I set the pointer or mouse to do only the things when I double click?
Original title: my highlites pointer without clicking, opening up much more often. How can I set the pointer or mouse to do only the things when I double click?
How can I configure my pointer/mouse to do only the things when I double click? Currently, it has a mind of its own, putting highlight and things that I don't want to open.
Hi George,.
Try the following steps to disable the functionality of hover and check if it helps.
a. Click Start and select Control Panel
b. click on ease of access and select make the mouse easier to use
c. If there is a check box for activate a window by hovering over it with the mouse uncheck it.You can also read the following article and check.
-
How to access the value of the point of application in javascript
How to access the value of the point of application in javascript?Hello
A way
var myVariable = '&MY_APP_ITEM.';
BR, Jari
-
Bug during import of calculation and the point of application
Hello
I created a component export file which contains, among other things, a part of the application and a calculation of the claim on this point. Looking at the export file, this is the order of events:
+...+
Create calculations of the application
Create the application point
+...+
However, when I import this file in our test environment, the point of application is created but not calculated. In fact, if I create the calculation manually and re - import the file, the calculation is actually deleted! However, if I change the import file and to reverse the order of events:
+...+
Create the application point
Create calculations of the application
+...+
.. .it works very well. Is this a known bug?
I use Apex 3.0 on Oracle 10 g btw.
Thank you!
LuisLuis - I filed a bug for the problem of calculation/pos. The problem is that a trgger on wwv_flow_items removes the corresponding calculations and the way in which the element is replaced is to remove it first and then re-create.
The last date of update for components is not very reliable on this report. I wouldn't want to ignore them.
Scott
-
Date arithmetic gives error in dynamic Action that makes the value value
Hello
I am trying to create a dynamic action that automatically assigns the value of P8_ENDTIME to P8_STARTTIME + 30 minutes. Both are date variables.
So far, my settings
Dynamic action:
Event: change
Selection type: elements
Items: P8_STARTTIME
Scope of the event: static
Real Action:
Action: Set
Set type: PL/SQL Expression
PL/SQL expression: P8_STARTTIME + 1/48
Page items to submit: P8_STARTTIME
Affected elements Type: elements
Assigned items: P8_ENDTIME
Note: I read online by adding 1 to a date increments of one day. And the addition of 1/24 Add 1 hour. 1/48 will add a half an hour.
These settings compile but when I change the STARTTIME field for a new date on my page it says:
AJAX call back Server error ORA-06502: PL/SQL: digital or value error: character number conversion error to set the value.
I have to mention if I did my right PL/SQL expression: P8_STARTTIME then no error is thrown. : P8_ENDTIME be successfully will set the value of: P8_STARTTIME
Your help is very appreciated.
Item is string. not of type datetime. You must first fills in /date datetime type and then add 30 min. After that, maybe you must convert to a string.
Maybe you are looking for
-
Problems with HP laptop (model dv4-1225dx), turns off
I have bolded the important bits. To be honest, I had problems with this computer since the beginning. A lot of it, however, is due to a problem of overheating resulting from a wrong place fan and cons set to automatically install updates. But a coo
-
I see Camileo P30 photo on laptop as if connect the camera to the TV?
Hello! I have laptop with HDMI and Toshiba Camileo P30.I see the image of the camera on my laptop as if connect the camera to the TV? Should what software I use (cause that nothing happens, when I connect my camera)?
-
Problem with Windows startup with Toshiba HDD external
HelloWhen I'm away from windows (xp) and I got my external drive connected, the computer can´t departure, he collapsed in "windows start". When I mount the laptop without a disc, it starts good. Do you know a solution?Thank you and sorry for my bad E
-
Satellite 1000-Z2: driver Intel GPU does not - I should update the BIOS?
Hello I just downloaded and installed the latest driver for satellite 1000 Z2 graphics card which is Intel(r) 82830M chipset Driver revision: 6.14.10.3889. However, it does not work. I wonder if I should update my BIOS first. Thank you
-
LabVIEW stores Boolean values as a U8 in memory article. http://zone.NI.com/reference/en-XX/help/371361J-01/lvconcepts/how_labview_stores_data_in_memory/ My question is what happens when you expand in FPGA? More precisely if I made 8 tables of choice