Renumber the rows in table
Hello
I have the problem which I have not found a solution, so I was wondering if you can help me.
I have a 2D chart where I store all data from a serial port 10 sec.
When new data is available, a new line is added to the table. The first column of table 2-D is just a further indication that indicate how much data (table rows) have received so far.
The problem is when I want to just delete a line (a line) of the table. How can I manage to automatically renumber the additional index in the first column?
Thank you very much in advance
Achilles
It is a way to do it.
In this example, I am deleting 2 line.
Tags: NI Software
Similar Questions
-
How to access the rows in table via the script
I have a numeric field floating in a table that is populated by a database. When the previewed image uses an example of XML file. The path to the field is:
topmostSubform.Page.Content.Repeater.Table1.Row1.F11a
Who got by copying the path of the script window. I have a numeric field which I hope to get the total in one day, but for debugging purposes, in the case of calculating I used the following:
var row = topmostSubform.Page.Content.Repeater.Table1.Row1;
Row.All.Length;This option displays 28 which is the correct number of lines on the page. An attempt to summarize all areas of F11a, I tried the following:
var row = topmostSubform.Page.Content.Repeater.Table1.Row1;
var sum = 0;
for (var j = 0; j < row.all.length; j ++) sum line += [j]. F11a.RawValue;
sum;I don't get anything with it. There is probably a script error. Could someone tell me what to do. Thank you
Weird, I answered this afternoon, but my answer does not seem to exist!
Search help to the title of 'Calculation of the amounts of the fields', there are examples of Javascript of the calculation of the amounts to the breast of repeating subforms which is what are the rows of the table.
If you use Formcalc is easy enough to do with wildcards. In the search help for "execute calculations from a table" and there is a picture that shows how to use wildcards for the calculation in the tables. Basically, it's in the sense of "sum" (Table.Row [*]. Field [*])
So in your case might run the following:
sum (topmostSubform.Page.Content.Repeater.Table1.Row1[*].F11a[*])
-
MathScript adds the row of table
Hello LabVIEWers,
I recently encountered a problem using the MathScript that I don't understand. When I create a simple table of dimension 1 and then access a single element in this array, MathScript and/or LabVIEW adds an extra line in this table. This problem appears when I add the output for the MathScript structure array and create an indicator. A VI sample that illustrates the problem I encounter is attached. I have also run the same code MathScript in MatLab and the issue does not seem to occur. Is there something that I am missing? Perhaps a logical reason and explantion for why LabVIEW for this? I searched on the web, help and forums so far. Any help is appreciated.
My goal is to be able to access the items in a table without changing the dimensions of the table, or to manually remove the added row.
Kind regards
Doug
Hello Doug77,
In the line where you replace the 5th element of the array, if you say public (5) = 77, LabVIEW will not add the extra line. Almost everything in Mathscript if defined as a matrix. That's why you see size as 1.11. If you try to manipulate the public in the form of a 2D picture, saying test_array (1,5), mathscript guess it must be a 2D array.
Let me know if it helps.
-
Need a script to hide the rows of table - this makes the problem no justice - LiveCycle ES2
I develop a dynamic form.
There's a RadioButtonList that under option (1,2,3), will open a subform (1,2,3). Each subform contains a different set of checkboxes. The checkboxes for each subform (1,2,3) are related to one another subform (5,6,7). Subforms, 5, 6, and 7 all contain arrays. Checkboxes in subforms 1, 2 and 3 are related to the lines in the tables of subforms, 5, 6 and 7. All rows in all tables are set to 'hidden '. When checking a checkbox, the associated row of the associated table has its presence changed to 'visible '.
Example:
RadioButtonList1 = 1
Subform1 appears.
CheckBox3 = 1
Subform5.Table1.Row3 is displayed.
It all works perfectly. I'm sure it's complicated, but the end result works.
Here's what I need: I need a way to re - hide everything was set to "visible". Here is what I tried:
RadioButtonList1::click - (JavaScript, client)
xfa.host.resetData ("xfa.form.form1.Subform1"); & 2 & 3 & 4 & 5 & 6 & 7
XFA. Form.Recalculate ();
XFA. Form.remerge ();
Clears the contents of the table, it does not hide it from view. I don't want to have to manually set all the lines of the "Hidden" table - there are 156 of them (don't judge me!). Y at - it a script that can find all lines that are not hidden and re - hide? Thanks in advance.
See you soon
Let me add this. Writing scripts to display fields lies with radio buttons. It looks like this:
Form1. Subform1.CheckBox3::change - (FormCalc, client)
If ($.rawValue == 1) then of form1. Subform5.Table1.Row3.presence = 'visible' to other form1. Subform5.Table1.Row3.presence = "hidden" endif
It would help if I moved to writing scripts to the line on the table? For example:
Form1. Subform5.Table1.Row3::change - (FormCalc, client)
If (form1. Subform1.CheckBox3 == 1) then $ .its presence "visible" else = $ .its presence = "hidden" endif
I don't know if that would make a difference or not. Any thoughts would be greatly appreciated.
-
How to delete all the rows in table?
Hello
my table has an attribute of the selection (salt). By removing all the button is pressed, the following code is executed.
The problem is that all the selected lines except the last one are deleted. I don't know why the last line is not deleted.
Could you help me?
public void deleteAll(ActionEvent actionEvent) { DCIteratorBinding it = ADFUtils.findIterator(ITERATOR_NAME); RowSetIterator rit = it.getRowSetIterator(); rit.reset(); if (rit.first() != null) { Row row = rit.first(); if (true == row.getAttribute("Sel")) { row.remove(); } } while (rit.hasNext()) { Row row = rit.next(); if (true == row.getAttribute("Sel")) { row.remove(); } } it.getViewObject().clearCache(); it.executeQuery(); }
You can try this
DCIteratorBinding it = ADFUtils.findIterator(ITERATOR_NAME); RowSetIterator rit = it.getViewObject().createRowSetIterator(null); rit.reset(); while (rit.hasNext()) { Row row = rit.next(); if (true == row.getAttribute("Sel")) { row.remove(); } } it.getViewObject().clearCache(); it.executeQuery(); rit.closeRowSetIterator(); return null;
-
How to disable the rows in table
Hello
I have create a vo.
vo returns 8 rows,
There is table area.
Thanks to this region, all lines are displayed.
but my doubt is.
I want to disable 2 rows in the tabloe region.
How can I turn off the lines in the table.
Thank youHello
It will work for messageTextinputs!
Gerard
-
How to get the row of Table data in the pop up window
Hello world
I'm working on Jdeveloper 11.1.1.4 and I got a requirement when there is a delete as a column in a Table in the ADF. When the user clicks on delete button that I need to display a confirmation message "You want to remove from the Table" OK CANCEL.
If the user clicks the OK button, then I need to update the value of last_update_by to the one who connects and then deletes the line from the user interface but at the level of the table of database, that line will be there.
Do I want to get the line given in the confirmation message pop-up and to add rowdata.setAttribute(last_update_by,'') in the class of the action of the OK button.
I could get the rowdata table in class action OK button but when I do rowdata.setAttribute(last_update_by,'') that class action it gives me null pointer exception.
Can someone help me with valuable suggestions?
Thank youYou may need to check {: identifier of the thread = 2223878} thread
-
I need help to find out what tool can help me in the next task:
#1 moving file
situation: after the extraction of a file, the file is moved to another directory.
Update SQL #2
Situation: what mapping tool can be used to update existing record / execute sql
as UPDATED VALUE TABLE WHERE... or REMOVE...Take the employee data form table and connect name, id, "incative" (from constant) to the target table.
Replace the update target property, and then set the properties of column-level.Find out what
See you soon
Katia -
DataPump: Rows in tables do not match after importation
Hello
I have exported a schema 'ORAMSCA' and imported in the form of schema 'ORAMSCA_TEST151223 '. I found the difference between the rows of tables. Could you please advice.
Here are the details.
ORAMSCA_TEST151223 ORAMSCA
COUNTY OF COUNTY OF TABLE_NAME
------------------------------ ------------- ------------
2 952 3 367 OM_AUDIT_TRAIL
33 40 OM_CONFIG_OPTIONS
3 456 3 456 OM_COUNTRY_STATES
86 91 OM_ENTITY_MENU
64 69 OM_FUNFACTS
81 61 OM_INSTANCES
OM_JOBS 139 111
OM_JOB_LOGS 226 132
37 19 OM_JOB_PARAMS
15 15 OM_LICENSES
1 289 1 594 OM_LOGIN_HISTORY
OM_LOOKUP_CODES 900 904
31 31 OM_LOOKUP_TYPES
9 625 8 225 OM_ORG_ORGANIZATIONS
36 36 OM_ROLE_RIGHTS
29 48 OM_USERS
728 1 983 OM_USER_ENTITY_MENU_ACCESS
OM_USER_ORGANIZATION_ACCESS 40 156Exported log file:
;;;
Export: Release 11.2.0.1.0 - Production on Fri Dec 18 09:22:16 2015
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
;;;
Connected to: Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options
Start "SYSTEM". "" SYS_EXPORT_SCHEMA_01 ": System / * schema = oramsca = ORAMSCA_TEST1.dmp = expdp.log = DUMP directory logfile dumpfile
Current estimation using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 2,937 MB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/DB_LINK
Object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE of treatment
Object type SCHEMA_EXPORT/TABLE/TABLE processing
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Object type SCHEMA_EXPORT/TABLE/CONSTRAINT/treatment
Object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS of treatment
Object type SCHEMA_EXPORT/PACKAGE/PACKAGE_SPEC of treatment
Object type SCHEMA_EXPORT/FUNCTION/treatment
Object type SCHEMA_EXPORT/PROCEDURE/treatment PROCEDURE
Processing object type SCHEMA_EXPORT/PACKAGE/COMPILE_PACKAGE/PACKAGE_SPEC/ALTER_PACKAGE_SPEC
Object type SCHEMA_EXPORT/FUNCTION/ALTER_FUNCTION of treatment
Object type SCHEMA_EXPORT/PROCEDURE/ALTER_PROCEDURE processing
Object type SCHEMA_EXPORT/PACKAGE/PACKAGE_BODY of treatment
Processing object type SCHEMA_EXPORT/JAVA_SOURCE/JAVA_SOURCE
Processing object type SCHEMA_EXPORT/JAVA_CLASS/JAVA_CLASS
Object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT of treatment
Object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS treatment
. . exported "ORAMSCA." "" OM_ORG_ORGANIZATIONS "8225 lines 620,3 KB
. . exported "ORAMSCA." "" OM_AUDIT_TRAIL "3283 lines 285,2 KB
. . exported "ORAMSCA." "' OM_ENTITY_MENU ' lines of 145,2 90 KB
. . exported "ORAMSCA." "' OM_COUNTRY_STATES ' 3456 lines 186,1 KB
. . exported "ORAMSCA." "" OM_CONFIG_OPTIONS "the 40 lines 67,10 KB
. . exported "ORAMSCA." "' OM_LOGIN_HISTORY ' 118.2 lines 1525 KB
. . exported "ORAMSCA." "' OM_LOOKUP_CODES ' 904 lines 68,61 KB
. . exported "ORAMSCA." "' OM_USER_ENTITY_MENU_ACCESS ' 78.60 lines 1644 KB
. . exported "ORAMSCA." "' OM_FUNFACTS ' lines of 15,06 67 KB
. . exported "ORAMSCA." "' OM_INSTANCES ' lines of 17,37 61 KB
. . exported "ORAMSCA." "' OM_JOBS ' 111 lines 19.54 KB
. . exported "ORAMSCA." "' OM_JOB_LOGS ' 132 lines 19,02 KB
. . exported "ORAMSCA." "' OM_JOB_PARAMS ' Ko 9,726, 19 ranks
. . exported "ORAMSCA." "" OM_LICENSES "15 lines 10,25 KB
. . exported "ORAMSCA." "' OM_LOOKUP_TYPES ' 31 lines 11.50 KB
. . exported "ORAMSCA." "' OM_ROLE_RIGHTS ' 36 lines 14,43 KB
. . exported "ORAMSCA." "' OM_USERS ' 44 lines 21,57 KB
. . exported "ORAMSCA." "' OM_USER_ORGANIZATION_ACCESS ' 147 lines 15,56 KB
Main table 'SYSTEM '. "" SYS_EXPORT_SCHEMA_01 "properly load/unloaded
******************************************************************************
Empty the file system set. SYS_EXPORT_SCHEMA_01 is:
/U01/oracle11/dump/ORAMSCA_TEST1.dmp
Work 'SYSTEM '. "" SYS_EXPORT_SCHEMA_01 "carried out at 09:23:14
Import a log file:
;;;
Import: Free 11.2.0.1.0 - Production Wed Dec 23 01:00:58 2015
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
;;;
Connected to: Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options
Main table 'SYSTEM '. "' SYS_IMPORT_FULL_01 ' properly load/unloaded
Start "SYSTEM". "" SYS_IMPORT_FULL_01 ": System / * Directory = DUMP dumpfile = logfile = impdp.log remap_schema = ORAMSCA:ORAMSCA_TEST151223 remap_tablespace = ORAMSCA:ORAMSCA_TEST151223 expdp_ORAMSCA_151221.dmp
Processing object type SCHEMA_EXPORT/USER
ORA-31684: USER object Type: 'ORAMSCA_TEST151223' already exists
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/DB_LINK
Object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE of treatment
Object type SCHEMA_EXPORT/TABLE/TABLE processing
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
. . imported "ORAMSCA_TEST151223." "' OM_ORG_ORGANIZATIONS ' 9625 lines 724,5 KB
. . imported "ORAMSCA_TEST151223." "' OM_AUDIT_TRAIL ' 258.6 lines 2952 KB
. . imported "ORAMSCA_TEST151223." "' OM_ENTITY_MENU ' lines of 166.7 86 KB
. . imported "ORAMSCA_TEST151223." "' OM_CONFIG_OPTIONS ' 33 lines 59,26 KB
. . imported "ORAMSCA_TEST151223." "' OM_COUNTRY_STATES ' 3456 lines 186,1 KB
. . imported "ORAMSCA_TEST151223." "' OM_LOGIN_HISTORY ' 102.8 lines 1289 KB
. . imported "ORAMSCA_TEST151223." "' OM_LOOKUP_CODES ' 900 lines 68,36 KB
. . imported "ORAMSCA_TEST151223." "' OM_USER_ENTITY_MENU_ACCESS ' 728 lines 39,46 KB
. . imported "ORAMSCA_TEST151223." "' OM_FUNFACTS ' lines of 14.87 64 KB
. . imported "ORAMSCA_TEST151223." "' OM_INSTANCES ' lines of 19.66 81 KB
. . imported "ORAMSCA_TEST151223." "' OM_JOBS ' 139 lines 22,07 KB
. . imported "ORAMSCA_TEST151223." "' OM_JOB_LOGS ' 226 KB 25,73 lines
. . imported "ORAMSCA_TEST151223." "' OM_JOB_PARAMS ' 37 lines 10,74 KB
. . imported "ORAMSCA_TEST151223." "" OM_LICENSES "15 lines 10,25 KB
. . imported "ORAMSCA_TEST151223." "' OM_LOOKUP_TYPES ' 31 lines 11.50 KB
. . imported "ORAMSCA_TEST151223." "' OM_ROLE_RIGHTS ' 36 lines 14,43 KB
. . imported "ORAMSCA_TEST151223." "' OM_USERS ' 29 ranks 19.38 KB
. . imported "ORAMSCA_TEST151223." "" OM_USER_ORGANIZATION_ACCESS "the 40 lines 10.53 KB
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Object type SCHEMA_EXPORT/TABLE/CONSTRAINT/treatment
Object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS of treatment
Object type SCHEMA_EXPORT/PACKAGE/PACKAGE_SPEC of treatment
Object type SCHEMA_EXPORT/FUNCTION/treatment
Object type SCHEMA_EXPORT/PROCEDURE/treatment PROCEDURE
Processing object type SCHEMA_EXPORT/PACKAGE/COMPILE_PACKAGE/PACKAGE_SPEC/ALTER_PACKAGE_SPEC
Object type SCHEMA_EXPORT/FUNCTION/ALTER_FUNCTION of treatment
ORA-39083: Type than alter_function cannot be created with the object error:
ORA-04052: error occurred when searching to the top of the remote object APPS. FND_APPLICATION_ALL_VIEW@SYSTEM_LINK_OM_VISMA
ORA-00604: an error has occurred at the SQL level recursive 3
ORA-12154: TNS: could not resolve the connect identifier specified
Because sql is:
ALTER FUNCTION "ORAMSCA_TEST151223". "" OM_APPLICATION_VISMA "PLSQL_OPTIMIZE_LEVEL = 2 PLSQL_CODE_TYPE = COMPILATION INTERPRETED PLSQL_DEBUG = FALSE PLSCOPE_SETTINGS = ' IDENTIFIERS: NO ' S REUSE
ORA-39083: Type than alter_function cannot be created with the object error:
ORA-04052: error occurred when searching to the top of the remote object APPS.GL_CODE_COMBINATIONS_V@SYSTEM_LINK_OM_VISMA
ORA-00604: an error has occurred at the SQL level recursive 3
ORA-12154: TNS: could not resolve the connect identifier specified
Because sql is:
ALTER FUNCTION "ORAMSCA_TEST151223". "" OM_CODE_COMBINATION_VISMA "PLSQL_OPTIMIZE_LEVEL = 2 PLSQL_CODE_TYPE = COMPILATION INTERPRETED PLSQL_DEBUG = FALSE PLSCOPE_SETTINGS = ' IDENTIFIERS: NO ' REUS
Object type SCHEMA_EXPORT/PROCEDURE/ALTER_PROCEDURE processing
Object type SCHEMA_EXPORT/PACKAGE/PACKAGE_BODY of treatment
Processing object type SCHEMA_EXPORT/JAVA_SOURCE/JAVA_SOURCE
Processing object type SCHEMA_EXPORT/JAVA_CLASS/JAVA_CLASS
Object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT of treatment
Object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS treatment
Work 'SYSTEM '. "" SYS_IMPORT_FULL_01 "finished with 3 errors at 01:01:58
Thank you
Jeremy.
Seems that you do not import the file that you exported?
Export: dumpfile = ORAMSCA_TEST1.dmp
Import: dumpfile = expdp_ORAMSCA_151221.dmp
AJ
-
Disable add a button to the row over the selection of the checkbox in the OPS
Hi all
I have a custom page with a box and an advanced array, so in my advanced table, I "AddaRow" button on clicking that I add a new empty row to the table, my requirement is when I select the checkbox, then "AddaRow" should disable the button on the page, so is it possible, please give me a few pointer on this
Thnaks
In the controller
private static int chk = 1; Define overall
In PR
Table2 OAAdvancedTableBean = (OAAdvancedTableBean) webBean.findChildRecursive ("Table2RN");
table2.queryData (pageContext, true); OATableFooterBean tableFooterBean = (OATableFooterBean) table2.getFooter ();If (tableFooterBean! = null)
{
Get a handle to the row of table add bean
OAAddTableRowBean addTableRowBean = (OAAddTableRowBean) tableFooterBean.findIndexedChild ("addTableRow1");
addTableRowBean.setAttributeValue (AUTO_INSERTION, Boolean.FALSE);
if(addTableRowBean!=null){
System.out.println ("addTableRowBean is" + addTableRowBean);
If (chk == 1)
{
addTableRowBean.setRendered (Boolean.TRUE);
}
if(CHK==0)
{
Here Addrow Button disconnect after selection of the checkbox
table2.setRendered (Boolean.false);
}
}
}
In LICS
OAApplicationModule am = pageContext.getApplicationModule (webBean);
OAViewObject vo = (OAViewObject) am.findViewObject ("EmployeeEOVO1");for (row = vo.first () line; row! = null;row=vo.next()))
{
Rowi = rank (EmployeeEOVORowImpl) EmployeeEOVORowImpl;
If ("Y".equals (row.getAttribute ("SelectFlag")) ') //Here I'm selected capture flag
{
chk = 0;
pageContext.setForwardURLToCurrentPage (null, / / no parameter to pass)
true, / / keep the AM
OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
OAWebBeanConstants.IGNORE_MESSAGES);
}
}
}
Thank you
Dilip
-
Highlight the row in a table hint
Hello!
I'm evaluating the LabVIEW and try to do a few simple steps. Now, I have a table hint that contains all the values of frequency of 50-60. I need to calibrate for each frequency, and I would like to insist on each row of the table. Well, I use SelSize and SelStart property nodes, and it works very well the selected line is displayed. But I have only about 20 lines visible, and to see the rest I need to scroll through the table. How to change the position of scroll programmatically? Or maybe you can suggest the best way to highlight the lines?
Found the solution: the IndexVals property node defines the line/column numbers to be displayed in the upper left corner of the table hint.
Kudo goes to AndrewAlford for his reply in this topic:
http://forums.NI.com/T5/LabVIEW/highlight-a-row-in-table/m-p/320036#M165245
-
How to develop all the rows of the table of the tree when the page loads?
Hi all
I have tree than VO mere reference of table... I want to expand all table tree rows when the page loads... I already have initially developed property to true... but it only runs from first line of tree...
Any help would be great-Jey
In the backbean and that:
private RowKeySetTreeImpl ps = new RowKeySetTreeImpl(true); public void setPs(RowKeySetTreeImpl ps) { this.ps = ps; } public RowKeySetTreeImpl getPs() { return ps; }
In the jspx set table tree as disclosedRowKeys
-
How to join two tables if you transpose the rows, columns and rows in one of the table
Hi guys,.
can someone help me please in the write request
I have two tables
Agents and Agent phones but in the agent phones table for the id of an agent it displays 4 rows because one of the column there types of different phones (office, mobile, home, fax)
So instead of display 4 rows, I used max(case...) to convert rows to columns
now how to reach it with another table
Requirement:
Database: 11.2.0.2.0
create the table AGENT_PHONE
(
agent_id NUMBER (20) not null,
agent_type_code VARCHAR2 (10) not null,
agent_type_prefix VARCHAR2 (10) not null,
Phone_Number VARCHAR2 (16) not null,
phone_type_code VARCHAR2 (10) not null
)
CREATE TABLEAGENTS
(
agent_id NUMBER (20) not null,
agent_type_code VARCHAR2 (10) not null,
agent_type_prefix VARCHAR2 (10) not null,
NAME VARCHAR2 (40) NOT NULL
)
INSERT INTO AGENT_PHONE(AGENT_ID,AGENT_TYPE_CODE,AGENT_TYPE_PREFIX,PHONE_NUMBER,PHONE_TYPE_CODE)
VALUES (29709, ARE ', 'OFFICE', '4805551436', 'CELL');
INSERT INTO AGENT_PHONE(AGENT_ID,AGENT_TYPE_CODE,AGENT_TYPE_PREFIX,PHONE_NUMBER,PHONE_TYPE_CODE)
VALUES (29709, ARE ', 'OFFICE', '1111111111', 'PHONE');
INSERT INTO AGENT_PHONE(AGENT_ID,AGENT_TYPE_CODE,AGENT_TYPE_PREFIX,PHONE_NUMBER,PHONE_TYPE_CODE)
VALUES (29709, ARE ', 'OFFICE', '2223334444',' OFF');
INSERT INTO AGENT_PHONE(AGENT_ID,AGENT_TYPE_CODE,AGENT_TYPE_PREFIX,PHONE_NUMBER,PHONE_TYPE_CODE)
VALUES (29709, ARE ', 'OFFICE', '5556667788', 'FAX');
INSERT INTO VALUES AGENTS
(29709, ARE ', 'OFFICE', 'FLY');
INSERT INTO VALUES AGENTS
(1234, ARE ', 'OFFICE', 'MIKE');
SELECT * FROM AGENT_PHONES
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX PHONE_NUMBER PHONE_TYPE_CODE ---------------------------------------------------------------------------------------------
29709 RE OFFICE 4805551436 CELL 29709 RE OFFICE 1111111111 PHONE 29709 RE OFFICE 2223334444 OFF 29709 RE OFFICE 5556667788 FAX
SELECT * AGENTS
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX NAME
29709 RE OFFICE ROB 1234 RE OFFICE MIKE
This is so the data we have in both table
Now, I transposed rows to columns in the table of agent phones so I used the following query
SELECT AP. AGENT_ID,. AGENT_TYPE_CODE,. AGENT_TYPE_PREFIX.
MAX (CASE WHEN AP. PHONE_TYPE_CODE = 'CELL' THEN AP. PHONE_NUMBER END) AS CELL.
MAX (CASE WHEN AP. PHONE_TYPE_CODE = 'OFF' THEN AP PHONE_NUMBER END) AS TURNED OFF.
MAX (CASE WHEN AP. PHONE_TYPE_CODE = 'FAX' THEN AP. PHONE_NUMBER END) LIKE FAX,.
MAX (CASE WHEN PHONE_TYPE_CODE = 'PHONE'. THEN AP PHONE_NUMBER END) AS PHONE
AGENT_PHONE AP
WHERE AP. AGENT_ID = 29709
GROUP OF AP. AGENT_ID, AP. AGENT_TYPE_CODE, AP. AGENT_TYPE_PREFIX.
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX CELL OFF FAX PHONE 1 29709 RE OFFICE 4805551436 2223334444 5556667788 1111111111 My question is how this to join the agents table so that my output should be like this...
I want to display all the results in the table of the Agent, even if they are not in the table of agent phones. As you can see there are other agent id 1234 is also populated
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX NAME AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX CELL PHONE OFF FAX --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
29709 RE OFFICE ROB 29709 RE OFFICE 4805551436 1111111111 2223334444 5556667788 1234 RE OFFICE MIKE Currently, I run this query and I get the output as below
SELECT *.
AGENTS HAS
LEFT OUTER JOIN AGENT_PHONE AP
ON A.AGENT_ID = AP. AGENT_ID
AND A.AGENT_TYPE_CODE = AGENT_TYPE_CODE.
AND A.AGENT_TYPE_PREFIX = AGENT_TYPE_PREFIX.
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX NAME AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX PHONE_NUMBER PHONE_TYPE_CODE 1 29709 RE OFFICE ROB 29709 RE OFFICE 4805551436 CELL 2 29709 RE OFFICE ROB 29709 RE OFFICE 1111111111 PHONE 3 29709 RE OFFICE ROB 29709 RE OFFICE 2223334444 OFF 4 29709 RE OFFICE ROB 29709 RE OFFICE 5556667788 FAX 5 1234 RE OFFICE MIKE I want id 29709 agent in a line with 1234 agent also id to display
You can rotate your phone number of agent in columns
Select *.
of AGENT_PHONE
pivot)
min (PHONE_NUMBER)
for PHONE_TYPE_CODE in ('CELL' as a 'CELL', 'PHONE' like 'PHONE', 'OFF' in the 'OFF', 'FAX' as 'FAX')
)
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX CELL PHONE OFF FAX 29709 RE OFFICE 4805551436 1111111111 2223334444 5556667788 Then you can join to view inline or CTE
with AGENT_PHONE_PIVOT like)
Select *.
of AGENT_PHONE
pivot)
min (PHONE_NUMBER)
for PHONE_TYPE_CODE in ('CELL' as a 'CELL', 'PHONE' like 'PHONE', 'OFF' in the 'OFF', 'FAX' as 'FAX')
)
)
SELECT *.
AGENTS HAS
LEFT OUTER JOIN AGENT_PHONE_PIVOT AP
ON A.AGENT_ID = AP. AGENT_ID
AND A.AGENT_TYPE_CODE = AGENT_TYPE_CODE.
AND A.AGENT_TYPE_PREFIX = AGENT_TYPE_PREFIX.
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX NAME AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX CELL PHONE OFF FAX 29709 RE OFFICE ROB 29709 RE OFFICE 4805551436 1111111111 2223334444 5556667788 1234 RE OFFICE MIKE - - - - - - - Is that what you're looking for?
-
Mr President.
I create a form based on two tables that have sequences also. When I create insert only row is inserted in the fields in table first and second fields of the table are empty. Why?
the page source is
<?xml version='1.0' encoding='UTF-8'?> <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:af="http://xmlns.oracle.com/adf/faces/rich" xmlns:f="http://java.sun.com/jsf/core"> <af:panelFormLayout id="pfl1"> <af:group id="Group"> <af:inputText value="#{bindings.VoucherId.inputValue}" label="#{bindings.VoucherId.hints.label}" required="#{bindings.VoucherId.hints.mandatory}" columns="#{bindings.VoucherId.hints.displayWidth}" maximumLength="#{bindings.VoucherId.hints.precision}" shortDesc="#{bindings.VoucherId.hints.tooltip}" id="it1"> <f:validator binding="#{bindings.VoucherId.validator}"/> <af:convertNumber groupingUsed="false" pattern="#{bindings.VoucherId.format}"/> </af:inputText> <af:inputDate value="#{bindings.VoucherDate.inputValue}" label="#{bindings.VoucherDate.hints.label}" required="#{bindings.VoucherDate.hints.mandatory}" columns="#{bindings.VoucherDate.hints.displayWidth}" shortDesc="#{bindings.VoucherDate.hints.tooltip}" id="id1"> <f:validator binding="#{bindings.VoucherDate.validator}"/> <af:convertDateTime pattern="#{bindings.VoucherDate.format}"/> </af:inputDate> <af:inputText value="#{bindings.Credit.inputValue}" label="#{bindings.Credit.hints.label}" required="#{bindings.Credit.hints.mandatory}" columns="#{bindings.Credit.hints.displayWidth}" maximumLength="#{bindings.Credit.hints.precision}" shortDesc="#{bindings.Credit.hints.tooltip}" id="it2"> <f:validator binding="#{bindings.Credit.validator}"/> </af:inputText> </af:group> <af:group id="g1"> <af:inputText value="#{bindings.Lineitem.inputValue}" label="#{bindings.Lineitem.hints.label}" required="#{bindings.Lineitem.hints.mandatory}" columns="#{bindings.Lineitem.hints.displayWidth}" maximumLength="#{bindings.Lineitem.hints.precision}" shortDesc="#{bindings.Lineitem.hints.tooltip}" id="it3"> <f:validator binding="#{bindings.Lineitem.validator}"/> <af:convertNumber groupingUsed="false" pattern="#{bindings.Lineitem.format}"/> </af:inputText> <af:inputText value="#{bindings.VoucherId1.inputValue}" label="#{bindings.VoucherId1.hints.label}" required="#{bindings.VoucherId1.hints.mandatory}" columns="#{bindings.VoucherId1.hints.displayWidth}" maximumLength="#{bindings.VoucherId1.hints.precision}" shortDesc="#{bindings.VoucherId1.hints.tooltip}" id="it4"> <f:validator binding="#{bindings.VoucherId1.validator}"/> <af:convertNumber groupingUsed="false" pattern="#{bindings.VoucherId1.format}"/> </af:inputText> <af:inputText value="#{bindings.Debit.inputValue}" label="#{bindings.Debit.hints.label}" required="#{bindings.Debit.hints.mandatory}" columns="#{bindings.Debit.hints.displayWidth}" maximumLength="#{bindings.Debit.hints.precision}" shortDesc="#{bindings.Debit.hints.tooltip}" id="it5"> <f:validator binding="#{bindings.Debit.validator}"/> </af:inputText> <af:inputText value="#{bindings.Credit1.inputValue}" label="#{bindings.Credit1.hints.label}" required="#{bindings.Credit1.hints.mandatory}" columns="#{bindings.Credit1.hints.displayWidth}" maximumLength="#{bindings.Credit1.hints.precision}" shortDesc="#{bindings.Credit1.hints.tooltip}" id="it6"> <f:validator binding="#{bindings.Credit1.validator}"/> </af:inputText> <af:inputText value="#{bindings.Particulars.inputValue}" label="#{bindings.Particulars.hints.label}" required="#{bindings.Particulars.hints.mandatory}" columns="#{bindings.Particulars.hints.displayWidth}" maximumLength="#{bindings.Particulars.hints.precision}" shortDesc="#{bindings.Particulars.hints.tooltip}" id="it7"> <f:validator binding="#{bindings.Particulars.validator}"/> </af:inputText> <af:inputText value="#{bindings.Amount.inputValue}" label="#{bindings.Amount.hints.label}" required="#{bindings.Amount.hints.mandatory}" columns="#{bindings.Amount.hints.displayWidth}" maximumLength="#{bindings.Amount.hints.precision}" shortDesc="#{bindings.Amount.hints.tooltip}" id="it8"> <f:validator binding="#{bindings.Amount.validator}"/> <af:convertNumber groupingUsed="false" pattern="#{bindings.Amount.format}"/> </af:inputText> </af:group> <f:facet name="footer"> <af:button text="Submit" id="b1"/> <af:button actionListener="#{bindings.CreateInsert.execute}" text="CreateInsert" disabled="#{!bindings.CreateInsert.enabled}" id="b2"/> <af:button actionListener="#{bindings.Commit.execute}" text="Commit" disabled="#{!bindings.Commit.enabled}" id="b3"/> <af:button actionListener="#{bindings.Rollback.execute}" text="Rollback" disabled="#{!bindings.Rollback.enabled}" immediate="true" id="b4"> <af:resetActionListener/> </af:button> </f:facet> </af:panelFormLayout> </ui:composition>
Concerning
Go to your VO Wizard, select the tab of the entity and to check if both the EO is editable or not.
See you soon
AJ
-
Dynamically add and partially fill the rows in a table
Hello
I am trying to create a score card into a tool of the Apex.
I am considering using a form master detail with the work items to be marked as the master and the score Board being the detail section.
Each work in the Master table item has a type of work assigned, which translates into a job category, and each category of work has several criteria to be noted.
I wish that when a user selects an element of work and is branched to the detail page, the tabular presentation adds a number of lines having previously met the criteria.
For example, a user must click on an element which is a part of category "Car Wash".
Arriving on the form, the tabular form should have 3 rows with 2 columns. Column A personnel action (IE. Washed with SOAP?, rinsed with water?, dried?) And column B would have a group of yes/no radio.
If the user has selected a work item from the category 'Room cleaned' instead, the tabular presentation would load with 2 lines added columns A and b. column A personnel action (IE. Bed made?, rags storage?) And column B would have a group of yes/no radio
Is this possible with tabular forms or is there a better way to do it? I included the picture of how the tables are related.
Ideas on the best way to approach the question is appreciated!
Sorry for the late reply!
And you're right about the lines being temporary. If the user does not mark the editable column in this line and select apply, the lines will never entered in the database.
I managed to find a way to fix this since I posted this even though I'm not sure if it's the most effective way to do it.
I have created a process that runs when the page after the header and written lines of the secondary table (item Action Scores) given of the Association. In this way when loading the form of tables, it loads with all the correct rows with null values in the column group radio for Yes / No.
That's what I came with, but if there is a more effective way without making too complicated, I'd love to learn!
Maybe you are looking for
-
account lockout - need help unlocking my MSN email account
I need help unlocking my e-mail account (* address email is removed from the privacy *) I forgot my password and have tried the reset option but continue in cirlces. Help, please
-
Outlook Express won't send or answer...
For the 1st time in about 7 years... I can't send emails on my Outlook Express. It receives very well but I can not send or answer. Any suggestions?
-
I'm on Vista x 64 final and what update tries to install the update of security for IIS FTP 7.5 (KB2489256) and I get the error 80070643. I rebooted the Office Source Engine, nothing helps.
-
Update blackBerry OS 10.1.0.2019 10
I updated the operating system today, but I was not able to visit the link and explaining the changes. Now, I can't find the link. Anyone know what it is?
-
Well, I'm sorry for the confusion on my part. It really seems that this craze "each with an iPhone can now use BBM" all came from absolutely nowhere. If anyone can help with this scenario: I use BB990, the ORDINARY mail service, NO BBM surveys. My fr