Dynamic action on slot-shaped table
Hello
can someone please help to create dynamic action in the form of tables.
(1) on page load if the State is 'No' and sysdate is between Nov1st to 30 Nov. User can change the status of and 'Yes' and status Date changed to Nov. 1.
(2) when the user attempts to change the status of 'Yes' to 'No' and sysdate is between Nov1st to Nov 30, then the status Date changed to Nov. 1.
Otherwise if sysdate is between Dec1st to Dec30th then Status Date changes to Dec1st.
Apex. Oracle.com
w/u/p: nani5048/test/test
App: 92603 and page 2
I don't think it's possible with a pure dynamic action
It takes a bit of javascript or jQuery
I modified the application, see for yourself
concerning
Tags: Database
Similar Questions
-
Horizontal scrollbar for slot-shaped table
Hi all
I'm bring Page where are the two regions.
Two regions are side by side.
Second half of the page contains a table that is based on a table that has 80 columns, I use the theme "" Productivity Applications - 26 * ' "
Version of the APEX is 4.2. Problem is Iam not able to scroll horizontally to see all the columns.
Can someone let me know how we can add horizontal scroll bar to a tabular presentation so that I can go through all the columns.
Thank you
Ch.
Change defination report
put
in the header of the region
at the foot of the region
-
While I've used the plugin counter for items on the page successfully, I would use it for tabular forms of tabular/manual form for the same application to ensure consistency in the application.
Since the meter APEX plugin does not work for tabular forms, I tried to reproduce the function using the jQuery plugin. Also, I checked js and css library are included. The page contains an element of the P1_SPINBOX page that uses the meter plugin.
For example, I changed the report as a table to use class = meter:
I added the plugin meter jquery in the property page:apex_item.text(10,C006,0,null,'class="spinbox" style="text-align:right"') as "SAL", apex_item.text(11,C007,0,null,'class="spinbox" style="text-align:right"') as "COMM",
It still does not work. What should I do to get the function of counter for the number of columns in the form of tables?// Create group of settings to initialise spinbutton(s). (Optional) jQuery(document).ready( (function($){ // Initialise INPUT elements as SpinBoxes: (passing options if desired) $("INPUT.spinbox").spinbox; }) (function(){apex.jQuery("#P1_SPINBOX").spinbox({"min":0,"max":100,"step":10});}) );
APEX 4.1
10.1.2 Oracle database
I put an example on the APEX. ORACLE.COM.
Workspace: EDIAZJORGE
Application: Example application (1550)
User: TEST
Password: test
Password:
Robert
http://apexjscss.blogspot.comHi Robert,.
I changed your javascript in the service and the Global Variable declaration in commenting on the counter for P1_SPINBOX.
// Create group of settings to initialise spinbutton(s). (Optional) jQuery(document).ready( (function($){ // Initialise INPUT elements as SpinBoxes: (passing options if desired) $("input.spinbox").spinbox(); }) //(function(){apex.jQuery("#P1_SPINBOX").spinbox({"min":0,"max":100,"step":10});}) );
It seems that counters now work on SAL and COMM columns in tabular form.
Kind regards
Erik-jan -
Problems with slot-shaped table and set the values of column
Hello
I have a problem with a tabular presentation.
I have two tables
P_detail and table v_master
columns of v_master:
v_id
v_Name
v_info
columns of p_detail:
P_ID
p_master_fk
p_name
p_info
I want to have a tabular presentation where I can store permanent data retail values. That's why I want to keep the default main column join the detail columns.
In SQL, I can do this with an outer join:
SELECT m.v_name, d.p_master_fk, d.p_name, d.p_info
OF v_master, p_detail
WHERE v_id = p_master_fk (+)
I get the lines that exist for the master data and can add values for the columns of detail. I removed the "add lines" because that makes no sense, because the amount lines are already offered at the opening of the tabular presentation.
Now, I want to get/save the v_id (main table) in the p_master_fk column value
How can I do this?
Thank you and best regards,
MatthiasHello
One approach is to use a database instead trigger. If you define a database view using the query:
SELECT m.v_id, m.v_name, d.p_id, d.p_master_fk, d.p_name, d.p_info
OF v_master m, p_detail d
WHERE v_id = p_master_fk (+)Then, create a trigger on the view that will insert in the detail table if d.p_id is null and update the secondary table if d.p_id is not null instead.
The Apex tabular form is then based on the view (with identifiers like hidden columns) and all treatments multirow Apex should work without modification.
Rod West
-
I need to create a lov on a tabular presentation, using the same table as the form and the need to ignore the line where love will be open.
How can I read where clause that it ignores the line?What is the kind of thing you mean?
http://Apex.Oracle.com/pls/OTN/f?p=579:29
This is the code I used:
select ename, APEX_ITEM.POPUP_FROM_QUERY(3,job,'SELECT DISTINCT(job), job FROM emp where job !='||nvl(job,99)) test FROM emp
Shunt
-
Column based on slot-shaped table
Hello everyone,
I have a tabular layout with the SQL as source of the region:
Select
'EMPNO ',.
'EMPNO' EMPNO_DISPLAY,
'ENAME ',.
"JOB."
"SAL."
"COMM"
NVL(SAL,0) + nvl(comm,0) total_sal,
"DEPTNO".
of ' #OWNER # '. " EMP.
When I run the shape first, it happens with all the lines showing total_sal column as well. But when I change the values for the columns sal and comm, the total_sal does not change unless I submit the values. Is there a way to change the value of total_sal before submitting changes to the database?
Thank youdo the column readonly instead of disable.
-
Interactive report features on slot-shaped table
Hello world
I need to have a search function on a report like the interactive report. On the interactive report, you can type a word/number in the search box and this word/number search. Then once the research is completed you can search again for a different word/number, narrowing down search you whenever you enter a new word/number. You can do until you have only one remaining line.
I need this feature in a tabular presentation, but I'm not sure how to write the SQL code.
Is this possible?
Thanks in advance,
N.S.N.O.Hello
OK, I see what you mean... Here's how the IR done so
SELECT * FROM my_table WHERE ((INSTR(UPPER(column1),UPPER(:APXWS_SEARCH_STRING_1)) > 0 OR INSTR(UPPER(column2),UPPER(:APXWS_SEARCH_STRING_1)) > 0 OR INSTR(UPPER(column3),UPPER(:APXWS_SEARCH_STRING_1)) > 0 ) and (INSTR(UPPER(column1),UPPER(:APXWS_SEARCH_STRING_2)) > 0 OR INSTR(UPPER(column1),UPPER(:APXWS_SEARCH_STRING_2)) > 0 OR INSTR(UPPER(column2),UPPER(:APXWS_SEARCH_STRING_2)) > 0 OR INSTR(UPPER(column3),UPPER(:APXWS_SEARCH_STRING_2)) > 0 ))
Is that what you mean?
See you soon
Ben
-
In table form, a dynamic action to disable and set of columns of text
Hello!!
With the help of APEX 4.2.6 with Oracle 11 g R2, someone I work with has a tabular presentation of the need to do the following:
Tables has the following provision:
When the user selects the UOM LOV Dollars, the rate must have related associated text box the amount set to 1. We currently have JavaScript disable and set the background color, but fo rth elife of me that I can seem to help set the value...
The code we have in dynamic action:
ROW_ID = $(this.triggeringElement).attr('id').substr (4);
If (. val() $(this.triggeringElement) == 2)
{
$(«#f04_» + row_id) prop ('readOnly', 'readonly');
$(«#f04_» + row_id) prop ("class", "textinputdisabled");
.Val (1) $("#f04_" + row_id); < = Here's where we had the question...
}
on the other
{
$(«#f04_» + row_id) prop ("readOnly", false);
$(«#f04_» + row_id) prop ("class", false);
< /tt >
Thank you
Tony Miller
Los Alamos, NMHi Tony
What exactly is the problem here? I have no problem setting the value using the method described above. There is even a '1' in the screenshot above, no doubt, which indicates that the value has been successfully changed.
For ease of improved management, I'd use traversal Dynamics for the form element affected, rather than hard-code the ID (or go with a DA conditional with distinct actions of true/false), but the jQuery code to set the value is the same:
var uom, rate; uom = $(this.triggeringElement); rate = uom.closest('tr').find('td[headers="RATE"] input'); if (uom.val() === "USD") { rate .prop("readOnly", true) .addClass("textinputdisabled") .val("1"); } else { rate .prop("readOnly", false) .removeClass("textinputdisabled"); }
(I used a static LOV in the column of the unit of MEASURE, so the value of '$' is 'USD' rather than '2').
-
Using APEX 4.2.
I have the list of selection using a LOV which returns a display value and a value separated by a comma e.g. return 'reserved to items' and "66,88" or "Available items" and "90,23".
I want that return values for example "66,88" to be assigned to two my form fields.
I have a dynamic action that fires when the field with the changes of the list/select-LOV. I am using an action of 'Set value' and set 'Expression JavaScript' with the expression itself type value ' $v("P1_MY_SELECT_LIST").split(",") and using Type "Article (s)' selection and listing the two points that I want to set as the items in question (from the description of the JavaScript expression field it appears that a table of the results would be assigned to the changed items , in the order.
However, the original value of the LOV return value is passed to the first of the elements concerned (complete with the comma if the original return value was of the form '10')
If I add more REAL action of the JavaScript "alert (" HELLO "+ $v ("P1_MY_SELECT_LIST") .split (", ") [0] +" WORLD "+ $v("P1_MY_SELECT_LIST").split (", ") [1]" ") I * see two expected values.»
Any ideas what I could do wrong?
The action 'Set value' affects the value specified to all affected elements: a value to one or more items. To set a different value at different points, you need several actions "Set value", or simply use javascript to do it in one.
Even if you use a javascript expression that corresponds to a table, the table is just being converted to a string again. It creates a mapping of some sort. That is why for example with '10', she also translated as such. Actually you set this value to these two elements: ' 10, ".split(",").toString () (implicit in the chain of course).
The code makes it very obvious that it doesn't handle values, as described in the help of the element. Aid is not correct or is the implementation simply not here yet?
Just look at the javascript for dynamic actions, images/libraries/apex/dynamic_actions.js, service da.setValue directory file:
function _setValue( pValue ) { lAffectedElements$.each( function( i ) { // Set all affected elements to the value passed $s( this, pValue, null, lSuppressChangeEvent ); }); /* Resume execution of actions here and pass false to the callback, to indicate no error has occurred. */ da.resume( lResumeCallback, false ); }
And when you use a javascript expression:
} else if ( lSetType === "JAVASCRIPT_EXPRESSION" ) { _setValue( lJavaScriptExpression.call( this ));
It's pretty simple. (and this is checked on apex 5. It's the same on 4.2)
-
Set values in a table with dynamic Action?
Hi, I need help for my Application first, Apex, please. This page is for users of fuel truck who buy several gallons of fuel and use this page to distribute this fuel among the many projects. These users are familiar with filling in the Date of the Transaction, the Site, the Type of fuel from the fuel tank #, etc. on the top of the page and then using the lines below to split the fuel in different projects.
Example: The user gets 100 gallons delivered, fills the Page elements on top with the details of the purchase and uses then 3 rows of tabular form to distribute among 3 project (Project1 gets 20 gallons, Project2 gets 30 gallons, Project3 gets 50 gallons). Each line in the form of tables inserts a new record in the table of database of fuel with different values for the Gallons and ProjectID, but the same Site, Date, Type of fuel and tank values.
So there are columns hidden on the tabular presentation for Site, Date, Type of fuel and tank. They need get these values from the top so that the user doesn't have to type repeatedly. This is my problem: How can these hidden columns to get the values in the top text boxes dynamically? It must be dynamic, or changed immediately if the user changes anything in the decoders (as a typo).
Just going to each as a column and defining the 'attributes of tabular form' by default for an item and then by setting the default value in the name of the element page text box will only work if somehow, the user submits the page and does not make typing errors before you fill out the form in a table. I need to be adjusted immediately. Also, is it something special to set the date picker on the form as a table for the value of the Date on the top picker? For the moment, I am trying to use the Set button to set the values in the boxes at the top of the page with their items and refresh the page, so the default values of the column in a table can be right. Is there a better way to do it? It does not work for the date picker.
I just started to use Apex, I only know the basics of dynamic Action HMI. If I should use a jQuery or code in the HTML header or a 'Collection' Apex, be very specific. Page elements above have names like P13_TANK and the P13_TRANSACTION_DATE of Date Picker and the shape of the table has column names like TANK and TRANSACTION_DATE. Truckers and I appreciate any help, thanks!
~ Saphira
I forgot a few quotes:
$("input[name='f05']").val(this.triggeringElement.value);
-
Dynamic action on the fields of forms in table form
Hello guys.
That I can see on the form fields in a table, I can't perform dynamic actions. What I want is to have an element of the selection list when in the change event, it changes the values for all the records in the report. For example if I have 40 records in this tabular form and I change the value of 'Open' to ' near the field called State, I want to see this change (status value of 'Open' close ') all rows in this tabular presentation. Is this sensible?
Thank you very much, Bernardo.
Hello Bernardo.
There are several ways to accomplish what you want.
-You can create a PL/SQL procedure to manage an update on all the rows according to the value of the value of your column. I wrote once a blog that can help you with that:
http://vincentdeelen.blogspot.nl/2013/06/custom-multi-row-processing-using.html
-You can create a dynamic action with javascript or jQuery to handle the change event.
The first option is more secure because it is managed by the database, the second is more simple and example adjustable all the entire column for all rows displayed, without the need to refresh your tabular presentation, or your entire page. For course work, you should however have little validation at the end of the database. I also think that it is not possible to set the values of the rows that are not displayed, which would again require some PL/SQL for handling.
If you need help setting up the dynamic action, please set up an example on apex.oracle.com.
Kind regards
Vincent
-
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.
-
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
-
Cannot perform the insert/update on the form of tables, due to the dynamic action
Hi all
I created a dynamic action that calculates multiple cells in a table.
This feature works well, when I change the value of the associated cell then the computed value is changed by the dynamic action.
But I am not able to insert or update the line in a table when the dynamic action is enabled. When I put the condition 'Never', then the line is inserted or updated without any problems.
All guess where is the problem?
Apex version: 4.1.1.00.23
JiriNina wrote:
I don't know why the 123,40 value (or other) is set to the next item in line (f09, fsc, etc.)
>What is hidden and generated Apex elements are always included in the last cell (td) of the line. Thus, it has nothing to do with the next item, only the last cell.
If you see the last cell of the 888 Page you will see probably the same type = "hidden" entries here also.Your problem is not related to the HTML fragment to the last cell in the row showing all those extra items, it's somewhere else.
Oh, here comes the jQuery selector:
var clickedRow = $(this.triggeringElement).closest('tr'); $(clickedRow).children('td[headers="SAL"]').find("input").val(myCalculatedTotal);
SAL, COMM, w/e. here you will find the TD with headers = "COMM" and all the input fields and the value of all the entries in total calculated. Your selection is not precise enough in this case.
So, target the specific entry.
With the code example:change the switch on
$(clickedRow).children('td[headers="SAL"]').find('input[name="f08"]').val(myCalculatedTotal);
-
Paging in table with dynamic action form
Hi all
I'm having a tabular presentation with 13 columns. I put paging Scheme as, "rank rank 1-15 16-30 in the list of selection (with pagination). And I activated the partial page refresh (because I have a skin and show the process of tabular presentation IE.) When the user presses the button add tabular form will display, otherwise it will be hidden.) For the form of tables, I will have a dynamic action for disabling some fields according to another value of the column. When I run the page in a table is hidden and when I hit Add button tabular presentation displays with disabled columns. But when I select the next in the form of tables button it displays the columns without turning off the column. How to disable, push the button even as previous and next.
Thanks for the help!Hi Christine,
Sorry for the late response has been far from forum for 3 days!
See if it works now!I created a new action dynamic dis_num_on_next_prev that runs the following JavaScript Code:
$('.myClass').each( function() { if( $(this).val() == 'Number' ){ $('#f05_' + $(this).attr('id').substr(4)).attr('disabled',false); $('#f05_' + $(this).attr('id').substr(4)).css("background-color", "white"); }else{ $('#f05_' + $(this).attr('id').substr(4)).attr( 'disabled','disabled'); $('#f05_' + $(this).attr('id').substr(4)).css("background-color", "yellow"); } });
The point of firing is event after refresh of the presentation table region.
I hope that helps!
Kind regards
Kiran
Maybe you are looking for
-
Re: Internal speakers no longer work with RealPlayer on Satellite A100
It is probably a very simple question, but I can't work on the answer. I have a laptop Toshiba Satellite A100 running Windows Vista Home Basic Edition. I have often read audio from RealPlayer and generally make through an external sound card and exte
-
How to detect the Null characters in a binary string
In my application, I send around real binary data in the strings and the flattened data structures and sometimes I'm in the null string. I was wonder if there is a way to NULL dectet characters in a string. Thanks for your help. Josh
-
Hello
-
Missing configuration for deskjet 3070 cartridges
Hello I have a deskjet 3070. I have always used HP original cartridges. currently I could not print in black and bought a new cartridge. Still, I had the same problem and ran cleaningprogams HP several times. Without a bit of luck. Then I changed the
-
Windows Vista. How can I start/turn windows Defender
You want to disable unwanted startup programs. Have rebooted twice by computer. Get "service stopped... problem caused the service to stop program. To start the service, restart the computer... »