Add lines to insert a table based on the box and the values in the LOV
I have two options (1) the list of values (2) box (2 values) .the are required field.when I click on create lines button and then insert table/slot (fire) form of table, based on my selected lov values (for example 3 selected then 3 rows only) and the value of the checkbox.
If I select 3 values LOV and then check the box 1
SEQ | / / desc | box SL (1) |
---|---|---|
1 | DESC 1 | 1 |
2 | DESC 2 | 2 |
3 | DESC 3 | 3 |
If I select 5 values LOV and then check the box 0
Header 1 | / / desc | box SL (0) |
---|---|---|
1 | DESC 1 | 0 |
2 | DESC 2 | 1 |
3.. 5 | DESC 3... 5 | 2.. 5 |
my workspace: ram_r & d
username/password: aramani/apex
App: https://apex.oracle.com/pls/apex/f?p=72423:1:102019883635814:NO
Thank you
RAM
It has achieved the goal, thread:multi line table based on LOV
Tags: Database
Similar Questions
-
insert into the table based on the difference in line (or using less)
Hello
Oracle Version: 11g
Operating system: Solaris 10.
I was wondering if it is possible to insert data in a table based on the operator 'less' Please?
We have a very large table in a database, we moved to a different database. The table is cleared by a line for a certain range of dates, and we wondered if it is possible to insert this line of data in the remote database using the difference of rank between the two tables.
Here's the query that we are running:
SELECT ID , TO_CHAR (creation_datetime, 'yyyy-mm-dd') from TABB10 where TO_CHAR (creation_datetime, 'yyyy-mm-dd')='2014-03-18' minus SELECT ID , TO_CHAR (creation_datetime, 'yyyy-mm-dd') from TABB10@TABB_LINK.APDB00 where TO_CHAR (creation_datetime, 'yyyy-mm-dd')='2014-03-18'
TO_CHAR (CR ID
---------------------- ----------
2.4111E + 17-18 / 03 / 2014
Any ideas please?
Thank you
If I don't get me wrong, you can insert as below
INSERT INTO REMOTE_TABLE@DBLINK
SELECT ID, TO_CHAR (creation_datetime, "yyyy-mm-dd")
of TABB10
where TO_CHAR (creation_datetime, 'yyyy-mm-dd') ='' 2014-03-18
less
SELECT ID, TO_CHAR (creation_datetime, "yyyy-mm-dd")
of TABB10@TABB_LINK. APDB00
where TO_CHAR (creation_datetime, 'yyyy-mm-dd') ='' 2014-03-18
Concerning
-
divide the table based on the number of lines
Hello
I am trying to split a table based on the number of lines and then treat.
Say I have a TEST_XXX table that contains 50 lines, what I would do is.
to access multiple lines of 10. How can we achieve this?
What I thought is, once the table is created and the line are filled.
Add a new column to the table and perform a procedure that inserts of 1 to 10 first lines
and 2 to 10 lines and 3 to 10 next ranks... etc. Based on this, that we can treat
the first set of lines then play next or etc...
is there a better way to do it?
Code to create the table:
Code to add lines:CREATE TABLE TEST_XXX ( A_ID VARCHAR2(10), B_ID NUMBER, c_ID VARCHAR2(10), D_ID NUMBER )
The original problem is, I have a huge table, and I write a sql query to process,DECLARE BEGIN FOR I IN 1..50 LOOP INSERT INTO TEST_XXX VALUES('ABCDE',123,'ZYXWV',321); END LOOP; COMMIT; END;
When I treat him by selecting all the values in the table, it is very slow.
But when I have treat small Coulon (say 100 rows), it works very well.
That's how I got the approach described above in mind.You can use NTILE.
See:
http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/functions101.htm#SQLRF00680
http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:47910227585839 -
SQL script to insert values into a table based on the type of user
Hello
I have a requirement where I need to insert (username, groupname) in a table based on the user name.
We have two types of user accounts:
(1) user name, which starts with "DV" example: "DVPATM."
regular user 2) example: 'PATM '.
If the user name begins with "DV" under instruction insert should kick in
insert into < tablename > (username, groupname) VALUES (< username > ' < groupname1 >).
otherwise below insert statement should kick in
insert into < tablename > (username, groupname) VALUES (< username > ' < groupname2 >).
I need to use SQL or stored only procedure.
Please suggest
Thanks in advance
All things being constant, you could use decode/case just for groupname by examining the first character t the user name, for example
insert into
(username, groupname) VALUES ( , (substr ( , 1, 2) the case when "DV" then else end)); Fixed edit: value for OTHERS, as noted by Frank
-
Is there an easy way to filter a 2D table based on the values in two fields?
Y at - it an easy way to filter a 2D table based on the values of one of the fields. In my attached VI the output array has the following format:
Ident Frame Type bytes TimeStamp data
10:57:07.621 3AD00016 POUVEZ 8 0000000000000000 data frame
10:57:07.622 3AD00017 CAN data frame 8 000005E000000000
10:57:07.624 3AD00018 POUVEZ 8 0000000003300000 data frame
10:57:07.625 2DC00000 POUVEZ 8 0000000000000000 data frame
10:57:07.626 3AD00019 POUVEZ 4 0000030000000000 data frame
I would like to delete all lines that do not have an "Ident" between the values of 3AD00000 and 3AD0001E. So for the data above the fourth row would be removed. The only way I can see to do this is to form a 1 d table. Is there a better approach?
Thank you.
Hi chuck72352,
After you've sorted your data, you can use the function InRange. Combined with a "search in 1 table D", you get the range you really want.
Mike
-
How to update the password on the other table based on the mod
Hello
I need to update the password for the other table based on the mod.
I have two table 'user' and 'reset '.
User:
Username username password date_exp
s232322 Bobby John sdds4545df4r 10/12/2010
s454566 George Bill f444556gh76 07/14/2010
s343466 Bill Clinton fgf54tyujkkkhj 06/12/2011
.
.
.
Reset:
Series encrypt decrypt
fgf5656fg 0 Watellemon
1 dfggf5665 lime juice
dfdffd545 2 applesalad
3 54r4gggt airlines
construction of 4 hg44hh63
5 fgf4343yh security
.
.
.
How can I update the password of a table to another table "reset"?
Ex: query
Update user set password = (select Encrypt reset where mod (length (username), 10))
If mod (length (username), 10) is 0, it should take series "0" encrypt the password and update the password in the table "user".
If mod (length (username), 10) is 1, it should take serial '1' encrypt the password and update the password in the table "user".
If mod (length (username), 10) is 2, it should take series '2' encrypt the password and update the password in the table "user".
If mod (length (username), 10) is 3, it should take series '3' encrypt the password and update the password in the table "user".
If mod (length (username), 10) is 4, it should take series '4' encrypt the password and update the password in the table "user".
....
Please help me write an update query.
Thank you
NiharHi, Nihar,
You almost had it! You just need to correlate the subquery for the main UPDATE statement, like this:
UPDATE user_table u -- USER is a built-in function; it's not a good table name SET password = ( SELECT encrypt FROM reset -- RESET isn't a very good table name, either WHERE serial = MOD ( LENGTH (u.username) , 10 ) );
-
Hide the line of adf table based on the transient attribute does not
I have a JSF
page where the user can insert new line in
View object
. this
View object
contains a transitional
attribute which indicates whether or not the record is newly created.
On the same page, I have a table adf
which is bounded on the city
view object
. This table should show only newly created records. my approach is to use
expression language of
in the
renditions
property to hide all the other lines that are not newly created. I changed the render property for the columns of the table as:
rendered="#{row.bindings.RowStatus.inputValue eq'new'}"
, but the table does not show anything.Then, I tried to change the
made
not for the column property, but to the
outputText
inside the same way. It worked, but the problem is that the blank line is always on display.
So, basically because I do not hide the entire line, instead I'm hiding the text in the lines and lines with spaces empty is still on display in the page aside.
The Table of JSF
page where the
made
property is applied on
outputText
inside the column:
<af:table value="#{bindings.UplodedFilesView1.collectionModel}" var="row"
rows="#{bindings.UplodedFilesView1.rangeSize}"
binding="#{CreatSR_UserBean.fileTable}">
<af:column sortProperty="#{bindings.UplodedFilesView1.hints.FileName.name}"
headerText="File Name" id="c1">
<af:outputText value="#{row.bindings.FileName.inputValue}" id="it1"
rendered="#{row.bindings.RowStatus.inputValue eq'new'}"/>
</af:column>
</af:table>I use Jdeveloper with ADF technology 11.1.2.3
Thanks Timo,
You are right. Its to late to hide lines after stamping in the row set. I solve the problem by filtering the view object, based on the transitional attribute in the section of liaison page. The steps as follows: (assuming that the object from view with the temporary attribute has been created, and the transient attribute contains the filtered values)
- Drag the view object on the page and also make the Table (in my case it might otherwise listen)
- On the page, go to the connection tab.
- Double-click the object desired in the links column.
- New window will appear titled with (change the binding tree)
- Check the option (enable filtering)
- Select the (filter attribute) and (filter value) for the selected filter attribute.
- Select (Display attribute) you want to appear in the page.
- Press OK
-
Need to add lines to a dynamic form based on numeric field
I designed a form based on the example in the book of the use of javascript with addInstance Terry to make a button to add a line in a table.
Works very well for me, however I am transforming the shape slightly so that instead of allowing the user to click the button Add a line I have them enter a numeric value in a field, then call addInstance to create the correct number of lines. The numeric field is on page 1 of the form and is called NumberStudents and is linked as a Global. I tried to have him call addInstance to add lines, but can't make it work. Suggestions appreciated. Thanks newbie.
The only mistake you made was missing rawValue next to the name of the command "NumberOfCards".
var i = 0;
for
(I have = 2; I<>NumberOfCards.rawValue. i ++) {
Roster.Page2.StudentSubform.Table1._Row1.addInstance (1);
XFA. Form.Recalculate (1);
}
If your requirement is to add the number of rows based on the value entered in the digital field, so you can by calling the setInstances method. This way you need not looping through the number and use of the addInstance every time.
Roster.Page2.StudentSubform.Table1.Row1.instanceManager.setInstances (5);
XFA. Form.Recalculate (1);
or
Roster.Page2.StudentSubform.Table1._Row1.setInstances (5);
XFA. Form.Recalculate (1);
Thank you
Srini
-
Can we add lines in an interactive table
Hello
I have a requirement as below. user wants to add/remove lines in the table below and enter data into interactive. Is this possible in interactive Documaker?
Name Phone number Please let me know if anyone has any documentation interactive parameters/attributes variable to follow.
Thanks, Biks
If you ask if a user making the modification entered manually add or remove lines, the answer is no. Gendata trigger can be used to add additional lines, but once that you drop in the entry, that are only available for editing lines.
Historically, people would achieve the appearance of a dynamic input table in designing a small (short) section that consisted of a single row of columns. Then via DAL scripting, you might allow the user to add additional lines, by using a call to AddSection() to add at the end of "table" - that really hasn't been a single table, but achieved the look of a table from the point of view of the user.
-
ADOBE Acrobat Pro DC - add lines to an existing table
Hello. I have an existing table, I need to add lines. Is this possible? Thanks in advance.
It is very difficult to do something like this in a PDF file (unless it was created using LiveCycle Designer).
You will be better off by changing the original file, and then creating a new PDF from it.
-
How to highlight the line of the ADF table based on the value of the column?
Hi all
I use jdev 10.1.3.4. I want to highlight a table row or a cell based on the value of the column.
Lets say, I have a table emp with column empid, empname and sal. I want to emphasize the lines that have sal = 10000.
How can I achieve this? Please help me with this.
Thank you
AbhijitHello
You want to highlight the lines? or set a different color for the lines? If it's the second, you can set the inline style based on the salary. (+ Edit: well, never mind, both are same :)) +)
Something like
If you want the entire line to be a different color, you have 2 options.
1. define the same style inline for all columns in the table (good if you want to do only for a single table).
2. create a style class and apply the styleclass based on the value of sal (preferably if you want the same behavior in all of your application).Arun-
Published by: joel Ramamoorthy, October 23, 2009 16:56
-
INSERT or update based on the quantity and the description
I have a table of transaction known as ot_cut_detail based on who i need to update or insert into two tables that have missing information. There are two criteria, we must first check if the cut_ps_desc is as pl or not like pl, if the description of cut_ps_desc is as pl he will check and update or insert into ot_actual_dtl_pl, or else it will update or insert into ot_actual_dtl, to the corresponding cut_pm_code and cut_ps_code as act_pm_code act_ps_code ot_actual_dtl and act_pm_code_pl, act_ps_code_pl in ot_actual_dtl_pl, which can be found below. quantities to both ot_actual_dtl and ot_Actual_dtl_pl are located in each row.the test case is the following.
{code}
create table ot_cut_detail (cut_pm_code varchar2 (12), cut_ps_code varchar2 (12), cut_ps_desc varchar2 (12), the number of cut_ps_qty);
insert into ot_cut_detail (cut_ps_code, cut_ps_desc, cut_pm_code, cut_ps_qty) values ('1001 ', "A001", "HEA", 3);
insert into ot_cut_detail (cut_ps_code, cut_ps_desc, cut_pm_code, cut_ps_qty) values ('1002 ', 'A002', 'PL', 2);
insert into ot_cut_detail (cut_ps_code, cut_ps_desc, cut_pm_code, cut_ps_qty) values ('1003 ', 'A003', 'PL', 2);
create table ot_actual_dtl (act_pm_code varchar2 (12), act_ps_code varchar (12), the number of act_qty);
insert into ot_actual_dtl (act_pm_code, act_ps_code, act_qty) values ('1001', "A001", 1);
insert into ot_actual_dtl (act_pm_code, act_ps_code, act_qty) values ('1001', "A001", 1);
insert into ot_actual_dtl (act_pm_code, act_ps_code, act_qty) values ('1001', "A001", 0);
create table ot_actual_dtl_pl (actp_pm_code varchar2 (12), actp_ps_code varchar (12), the number of actp_qty);
insert into ot_actual_dtl_pl (actp_pm_code, actp_ps_code, actp_qty) values ('1002', "A002", 1);
-required output is as follows
-in the table ot_Actual_dtl
act_pm_code, act_ps_code, act_qty
' 1001', "A001", 1
' 1001', "A001", 1
' 1001', "A001", 1 - line last updated 1 since she was not corresponding to the amount of ot_cut_detail
-case 2
-by ot_Actual_dtl_pl
actp_pm_code, actp_ps_code, actp_qty
"1002", 'A002', 1
"1002", 'A002', 1 - inserted recording missing with balance Qty
' 1003', "A003", 1 -inserted recording missing with balance Qty .
{\code}
' 1001', "A001", 1 - line last updated 1 since she was not corresponding to the amount of ot_cut_detail
Update ot_cut_detail table with 0 whenever 0 or null comes (guess that there are relationships between these tables. So no need to check the data of wherther there or not) of the foregoing. Here's the update statement
Ot_actual_dtl ADO UPDATE
SET oad.act_qty = 1
WHERE NVL(oad.act_qty,0) = 0
;
After the update, there is a 0 in the table. So now you can insert the rows required for both the table. Here I first, I checked the corresponding record exists in ot_cut_detail or not. If is to insert into the table else insert into ot_actual_dtl_pl (assumes that registration will not be there with Qty 0 in the table ot_actual_dtl_pl). This is the insert all THE
INSERT ALL
WHEN the flag = "ACTP" THEN
IN ot_actual_dtl_pl (actp_pm_code, actp_ps_code, actp_qty) VALUES (pm_code, ps_code, ps_qty)
WHEN the flag = "Act" THEN
IN ot_actual_dtl (act_pm_code, act_ps_code, act_qty) VALUES (pm_code, ps_code, ps_qty)
WITH qry1 AS
(
SELECT ocd.cut_pm_code,
OCD.cut_ps_code,
OCD.cut_ps_qty,
OCD.cut_ps_qty - Sum (NVL(OAD.act_qty,0)) act_qty,
OCD.cut_ps_qty - Sum (NVL(OADP.actp_qty,0)) actp_qty
Of ot_cut_detail OCD
LEFT OUTER JOIN ot_actual_dtl ADO
ON ocd.cut_pm_code = oad.act_pm_code
AND ocd.cut_ps_code = oad.act_ps_code
LEFT OUTER JOIN ot_actual_dtl_pl oadp
ON ocd.cut_pm_code = oadp.actp_pm_code
AND ocd.cut_ps_code = oadp.actp_ps_code
Ocd.cut_pm_code GROUP,
OCD.cut_ps_code,
OCD.cut_ps_qty
),
qry2 (pm_code, ps_code, ps_qty, Qty, Flag) AS
(
Cut_pm_code SELECT pm_code,
cut_ps_code ps_code,
1 ps_qty,
1 qty
CASE WHEN (q1.act_qty <> q1.cut_ps_qty) THEN the 'ACT' ELSE "ACTP" END flag
OF qry1 q1
WHERE q1.act_qty<=>=>
AND q1.act_qty <> 0
AND q1.actp_qty <> 0
UNION ALL
SELECT q2.pm_code,
Q2.ps_code,
Q2.ps_qty,
Q2. Qty + 1,
flag
OF qry2 q2, q1 qry1
WHERE q2.pm_code = q1.cut_pm_code
AND q2.ps_code = cut_ps_code
AND q2.qty + 1 <= case="" when="" (q1.act_qty="">=> <> q1.cut_ps_qty) THEN q1.act_qty ELSE q1.actp_qty END
)
SELECT q2.pm_code,
Q2.ps_code,
Q2.ps_qty,
Q2. Flag
OF qry2 T2
;
You must follow two steps.
Step 1:-update the table with 0 (1st update statement)
Step 2:-once the update is finished, insert into table using INSERT ANY State.
-
Change cell color in a table based on the input
Hi guys
Please refer to my example, I have attached. I had a 2d with som information table. 1 row = 1 component information and it's electric. This table is put in a table when you press "Update" in the front panel. My goal is that based on index 1 of table (col2 'Edge'), the color of the TableRow should change color. If the contents of the line is S20-1, the color should be red and so on. It works a little bit, but I'll have a few bugs:
-You must press "Reset" twice in order to remake the Whiteboard.
-The first colorchange also changes the color of the entire table. I want my whiteboard and lines to change color (header and TableRow unused must be white).
You can change the first element in the array constant of S20 - 1-S20 - 3 and you will see that my program brings to the whole blue table on the first colorchange.
Is this a mistake on my part? Or is this a bug in LV (which I doubt)?
Property nodes are running up and down, and you have the reverse order. You set the color first, and then the active cell, which means that the colour be trolling a run.
Your code is also too complicated. Here's a quick draft how this could be done. Let me know if you have any questions.
-
Selectively hiding a row in a Table based on the value of the column
I have a data control that is populated from pro-grammatically, based on the user's selection in the page one of wanting to hide some lines on page 2 at the same time, I don't want to delete the value binding, is there to hide the lines instead of column?To the table of the ADF, to hide the lines according to the requirement, use the visible property on each of the columns.
For example, if you do not want to display all the lines that have IDs Director like 200 or 201.
Thank you
Nini -
Under certain conditions, update a table based on the comparison with a SQL statement
I have a table (table 1) that has 4 columns:
UID. THE NEST | VALUE1 | VALUE2
I have another statement SQL (STMT) that returns the 3 columns of a few other tables:
UID. THE NEST | VALUE1
Now this is the condition of the way in which I want to put up-to-date TABLE1:
First, to compare a pair of UID and PID of STMT with those in TABLE1,
-1, for any new pair UID and PID not in TABLE1, insert a new line of STMT in TABLE1 set TABLE1. Value2 = 0 (I already did this).
2, for an existing UID and PID pair in STMT and TABLE1, do:
a. in TABLE1. Value2 > 0, update TABLE1. VALUE1 = STMT. VALUE1
b. to TABLE1. Value2 = 0 and if TABLE1. VALUE1! = STMT. Value1, update of TABLE1. VALUE1 = STMT. Value1, otherwise nothing to do.
I can't seem to come with a solution for condition 2. Any help is appreciated!Hello
Here's one way:
MERGE INTO table1 dst USING ( SELECT ... -- your stmt query goes here ) src ON ( src.uid = dst.uid AND src.pid = dst.pid ) WHEN MATCHED THEN UPDATE SET dst.value1 = CASE WHEN dst.value2 > 0 OR ( dst.value2 = 0 AND dst.calue1 != src.value1 ) THEN src.value1 END WHERE dst.value2 > 0 OR ( dst.value2 = 0 AND dst.calue1 != src.value1 ) ;
This assumes that the combination (uid, pid) is unique in stmt. It doesn't have to be unique in table1.
sb92075 wrote:
-1, for any new pair UID and PID not in TABLE1, insert a new line of STMT in TABLE1 set TABLE1. Value2 = 0 (I already did this).
FUSION could also do parts 1 and 2 together, in the same statement.
2, for an existing UID and PID pair in STMT and TABLE1, do:
a. in TABLE1. Value2 > 0, update TABLE1. VALUE1 = STMT. VALUE1
b. to TABLE1. Value2 = 0 and if TABLE1. VALUE1! = STMT. Value1, update of TABLE1. VALUE1 = STMT. Value1, otherwise nothing to do.
Why are they not simply your needs ' uid and pid that already exist in stmt and table1, if table1.value2 > = 0, then the value table1.value1 = stmt.value1 "? Are you concerned about shooting triggers unnecessarily? It has something to do with null values? The MERGE statement above does exactly what you asked, but, depending on your needs, something simpler and more efficient could do it as well.
I hope that answers your question.
If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.
If you ask on a DML statement, such as UPDATE, the sample data will be the content of the or the tables before the DML, and the results will be the State of the or the tables changed when it's all over.
Explain, using specific examples, how you get these results from these data.
Always tell what version of Oracle you are using.
See the FAQ forum {message identifier: = 9360002}Published by: Frank Kulash, June 6, 2012 14:51
Maybe you are looking for
-
Satellite L670-143 - problem USB or midi
Hello I have a Toshiba laptop with 64-bit windows market 7.I recently bought DJ Mixer with midi control an allen and heath xone db2. When I connect it to the usb port it works for a minute and then stops working. I tried all usb ports and have the co
-
my Apple Watch battery is dead and I couldn't load it! all I get is red symbol cable like the one in the photo, load When it is connected to the charger it turned green, I kept it like that all night and nothing has changed (when connected green when
-
Estou tendo dificuldades em excluir uma particao
-
Hello I have a RT SMU-8135 that records events and data from various sources in CSV files and custom binaries. I'm looking for a way to protect against data loss during a normal shutdown. Windows or Linux, I can programatically close the application
-
Questions of capacity with XP to Vista
I have Windows XP Edition family version 2002 service pack 3; a D3123 e-machine with an AMD sempron Processor 3100 +, 1.8 GHz, 1. 48 GB of Ram and 221 GB hard drive space. My questions are; my computer is capable of running Vista, windows aero, and h