Help required to query the fields of the shuttle to Table?
Hi Experts,My needs:
1. According to the Ship Date query field, the item number should display in the console on the left.
2. Select some amendments point shuttle from left to right shuttle and press the button.
3. the article selected our and these details must display in the table.
Design:
1 created as query field (entry of Message text) shipping Date.
2 Shuttle, Shuttle flight beginning and footer (second query button).
3. the table that contains the article, Description, quantity, and manufacturing details no.
Question:
I created a shuttle, the creeping shuttle and the flight of footer, here I mentioned the VO attribute and discovers for the first query that takes place in shipping date and displays the item No.
By default (without question) the extension numbers is the display in the shuttle leading.
How to use the fields in the query of the shuttle. Its not that allows you to query the selected fields.
Help required:
I need to ship date, then the element of the request should appear in the console of leak, then I need to move some element not in the shuttle leading and click on the second button of the query.
All required according to the shipping date and the amendments point values (Selected in the shuttle leading) must display in the table.
Thank you
Corinne Bertrand
Pass this date and form a condition, and re-run the LEADVO
Anne Marie
Tags: Oracle Applications
Similar Questions
-
Help, how to query the database using pagination
Hello
How to query the database using paging for large data.
any API for this?
Thank you in advance!Hello
You can specify XmlQueryContext::Lazy as the type of assessment and only call XmlResults:: next() comes as many times as you need.
John
-
Help required to choose the designer of Livesycle or any other
Hi
I am working on a project of web based Government developed using J2EE. Forums are pretty useful. I need help from your team choosing products adobe for our requirement.
We have a requirement in which we want to give a form offline to users of the client. (Unlimited)
Then, we wanted to give the provision the user to download the form in the customer Web site.
Finally retrieve us the data from the form and store them in DB.
For the prescription above I thought to use Adobe LiveCycle designer. Once the form is designed and sent to end-users,
1. how the user can save the form.
2. it can save the form to PDF / XML or in any other format that it can download from the site.
3 is there a provision to get the fields in pdf form by calling request.getParameter () in HTML forms is how to read form in JAVA is to say like.
(Including images)
Once I get the fields of the form in Java, I can store in DB.
Please help in this regard and to offer the right product for our needs.
Once this is done, then assess us and plan to purchase
Thank you
RAM
Designer would create a PDF file that the user could load in their Reader or Acrobat. The PDF would be either the data input by the user (XML) or PDF to your web server for the treatment of post like an HTML form). The ability to present outside of the browser and the ability to allow users to partially drop the form and save work in progress and users use drive then you would require LiveCycle Reader Extensions enable the features of the player. Once you decide what you send, then you would enter the presentation into your program Java the same way you would for a HTML presentation.
I suggest you contact your Adobe representative to discuss more in detail.
Paul
-
HELP required on forming the matrix of data using PL/SQL
Hi all
I'm new on this thread and need your help in this regard.
I have a requirement for the construction of a matrix of 5000 X 5000 using PL/SQL. My original data tables have 5000 lines each and I need to make a correlation analysis using these data and need to store in a physical table, and not in memory. This feat feasible the simple use of PL/SQL? I understand that Oracle DB has a limit of 1000 columns (but not sure) and so I would like to know if there is a workaround for this kind of scenario. If not, what are the other alternative methods to achieve this feat? Do I need to use any 3rd party tools to do this? A quick response from experts is highly appreciated.
Thanking you in advance all the gurus.
Rgds
SAI1006089 wrote:
I have a requirement for the construction of a matrix of 5000 X 5000 using PL/SQL.
Possible. But this will require a large part of the memory. As PL/SQL is a language server side, this means the server's memory. That means server potential resource problems.
And that the server environment is a multiprocessu multi-user environment, it also means potentially several copies of this code of matrix running multiple processes, each putting a request very heavy on the resources of the server. Is no longer a matter of potential server resources, but a guarantee... (exactly the same problem if you use app server architecture and Java or .net)
You have to ask what is the cracking of data, server-side language? The answer is SQL. No PL/SQL. SQL runs rings around PL/SQL, Java, C/C++ and other languages when it comes to complex, fast and scalable, processing of large volumes of data.
So you ask yourself why use PL/SQL? With his expensive server memory footprint? SQL and not SQL tables that are designed to deal with massive data effectively and efficiently?
-
Help required to resolve the error-200022
Hi all
I have a VI that throws the error-200022 (after acquiring data mx). This has got 5 data acquisition channels off 2 of them (THERMOCOUPLE sensors channel 1 & pressure - channel 1 commented on the left within the program) are throwing this error and do not read whatever it is reasonable and the program stops. However the other channels are read good values. When I checked the individually, it works perfectly fine but when I put them together in the same program he throws the error above.
I looked into some of the suggested solutions, but nothing did. Can someone help me solve this error. I have attached the VI as well.
Thank you very much
Rivet
I have it..!
You use "embedded Clock' for all the three tasks (thermocouple measurement) and its causing conflict... !!If you see here, the main reason (as I already specified it) is "resource requested by this task has already been reserved by another task." "" ...
I suggest you club all three tasks into one...!
-
Help required to combine the output in CSV
I am running the script below to collect some of the properties of the virtual machine and it displays the output to the screen, I would like to export to the CSV file
$vms = get - VM
write "VM with the Active Snapshots:
foreach ($vm in $vms | where {$_ |}) Get-Snapshot}) {}
write to $vm.name
}
write "VMware tools obsolete.
foreach ($vm in $vms | where {$_.}) {ExtensionData.Guest.ToolsStatus - eq "toolsOld"})
write to $vm.name
}
write "VM with CD-ROM Connected:
foreach ($vm in $vms | where {$_ |}) Get-CDDrive. where {$_.} {ConnectionState.Connected - eq 'true'}})
write to $vm.name
}
write "VM with floppy connected:
foreach ($vm in $vms | where {$_ |}) Get-FloppyDrive | where {$_.} {ConnectionState.Connected - eq 'true'}})
write to $vm.name
}
Write "VM with limits.
Get - VM | Get-VMResourceConfiguration | Where-Object {$_.} CpuLimitMhz - don't '-1' - or $_.» MemLimitMB - no "{-1} | Select-Object VM
write "VM created over the last 24 hours:
Get-VIEvent - maxsamples 10000 - Start (Get-Date). AddDays(-1) |
where {$_.} GetType(). Name - eq "VmRemovedEvent"} |
Select @{N = "VM"; E={$_. VM name}}, user name
write "removed from the virtual machine in the last 24 hours:
Get-VIEvent - maxsamples 10000 - Start (Get-Date). AddDays(-1) |
where {$_.} GetType(). Name - eq "VmCreatedEvent" - or $_. GetType(). Name - eq "VmBeingClonedEvent" - and $_. GetType(). Name - eq "VmBeingDeployedEvent"} |
Select @{N = "VM"; E={$_. VM name}}, user name
You are looking for the following output:
Properties Nom VM VM with the Active Snapshots VM1, Vm2 Exceeded the VMware tools VM3 Vm4 VM with connected Floppy VM5, Vm6 VM with limits Vitavm9, Vm8 VM created in the last 24 hours: VM1 Vm2 by User2, user1 by Thank you!!
Try like this
$report = @() $vms = Get-VM $report += New-Object PSObject -Property @{ Properties = "VM's with Active Snapshots" "VM name" = &{ $result = $vms | where {$_ | Get-Snapshot} | %{$_.Name} if($result){ [string]::Join(',',$result) } }} $report += New-Object PSObject -Property @{ Properties = "VMware tools outdated" "VM name" = &{ $result = $vms | where {$_.ExtensionData.Guest.ToolsStatus -eq "toolsOld"} | %{$_.Name} if($result){ [string]::Join(',',$result) } }} $report += New-Object PSObject -Property @{ Properties = "VM's with Floppy Connected" "VM name" = &{ $result = $vms | where {$_ | Get-FloppyDrive | where { $_.ConnectionState.Connected -eq "true"}} | %{$_.Name} if($result){ [string]::Join(',',$result) } }} $report += New-Object PSObject -Property @{ Properties = "VM's with Limits" "VM name" = &{ $result = Get-VMResourceConfiguration -VM $vms | Where-Object {$_.CpuLimitMhz -ne '-1'-Or $_.MemLimitMB -ne '-1'} | %{$_.VM.Name} if($result){ [string]::Join(',',$result) } }} $report += New-Object PSObject -Property @{ Properties = "VM's Created in Last 24 hours:" "VM name" = &{ $result = Get-VIEvent -MaxSamples ([int]::MaxValue) -Start (Get-Date).AddDays(-1) | where {$_.Gettype().Name -eq "VmCreatedEvent" -or $_.Gettype().Name -eq "VmBeingClonedEvent" -or $_.Gettype().Name -eq "VmBeingDeployedEvent"} | %{"{0} created by {1}" -f $_.VM.Name,$_.UserName} if($result){ [string]::Join(',',$result) } }} $report | Select Properties,"VM name" | Export-Csv report.csv -NoTypeInformation -UseCulture
I've included the tests to avoid errors with the Join function
-
Need help with SQL Query - change of name history of audit table.
I need your help to find the result in the following way...
Emp No New_name Old_Name ----------------------------------------------- 1 Name3 Name2 1 Name2 Name1
Thank you...create table emp(emp_id number(10), emp_name varchar(50), constraints emp_pk primary key(emp_id) ); create table emp_audit( audit_id number(10), emp_id number(10), emp_name varchar(50), audit_date date, constraints emp_audit_pk primary key (audit_id), constraints emp_audit_emp_fk foreign key(emp_id) references emp(emp_id)); insert into emp values(1,'Name3'); insert into EMP_AUDIT (audit_id, emp_id, emp_name, audit_date) values (1, 1, 'Name1', to_date('14-08-2011', 'dd-mm-yyyy')); insert into EMP_AUDIT (audit_id, emp_id, emp_name, audit_date) values (2, 1, 'Name2', to_date('15-08-2011', 'dd-mm-yyyy')); commit;
Dipabkar Bédard (DB) wrote:
We write is the query without using "partition by" in oracle...?
with t as ( select audit_id, emp_id, emp_name, row_number() over(order by audit_id) rn from emp_audit order by emp_id, audit_id ) select a.audit_id, a.emp_id, a.emp_name old_name, nvl(b.emp_name,(select c.emp_name from emp c where c.emp_id = a.emp_id)) new_name from t a left join t b on ( b.emp_id = a.emp_id and b.rn = a.rn + 1 ) / AUDIT_ID EMP_ID OLD_NAME NEW_NAME ---------- ---------- -------------------------------------------------- ------------ 1 1 Name1 Name2 2 1 Name2 Name3 SQL>
And without analytical functions:
with t1 as ( select audit_id, emp_id, emp_name from emp_audit order by emp_id, audit_id ), t2 as ( select audit_id, emp_id, emp_name, rownum rn from t1 ) select a.audit_id, a.emp_id, a.emp_name old_name, nvl(b.emp_name,(select c.emp_name from emp c where c.emp_id = a.emp_id)) new_name from t2 a left join t2 b on ( b.emp_id = a.emp_id and b.rn = a.rn + 1 ) / AUDIT_ID EMP_ID OLD_NAME NEW_NAME ---------- ---------- -------------------------------------------------- ---------- 1 1 Name1 Name2 2 1 Name2 Name3 SQL>
SY.
-
Insert the module {cc_security} and captcha and continues to receive spam on forms Adobe Catalyst submissions. Help, please! Also the required field is be circumvented.
This has been resolved through Adobe Live Chat Support. Thank you
-
Internationalization of the search for the af:query component fields
HelloI dropped a component af:query on my page. I have a requirement that when the browser is English, label of query components search fields must be in English, and if the browser is in Arabic that they must appear in the Arabic language. Please help me to know how this can be achieved.
Thanks and greetings
Rati
Hello
It's a simple matter to create local resource bundles.
I guess you have indicators on the elements of the model installation check that the attributes of the View object. If so, you will see a ModelBundle.properties (if your model project called model). Create a copy based on the locale of this property file and customize the labels.
Read more here: http://docs.oracle.com/cd/E41362_01/web.1111/b31974/bcquerying.htm#CEGBFHJC
-
How to query the data of Contact with multiple fields
How can I query the data of Contact with multiple fields?
For example, I'll get contacts which are changed after a point at the specified time and whose country is US. How could I make the chain of research of the SOAP API "Query"?
And I also want to know how to make a search term for RESTful API for contacts above.
Any suggestions?
Thank you.
Hi Biao,
The following document describes how query for multiple fields using the SOAP API: request a Contact from several fields.
And you can search multiple fields using the REST API with the & operator. For example, to search for a Contact by e-mail address and date of creation:
- " emailAddress ='[email protected]' & converted > = '1369828886'".
Hope this helps and please let us know if you need more information.
Thank you
Fred
-
Need help with a query complex for the production database
Hello again,
I need your help once again, for a query how to show me how long each stage of production is by order.
See examples of data and what I expect.
Thank you all for your help.
We use Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
Here the example data tables:
And here's what I expect of my request:CREATE TABLE TABLE_2 ( "ORDER_NR" VARCHAR2 (12) , "PRIORITY" VARCHAR2 (2) , "WO_STEP" VARCHAR2 (1) , "STEP_DATE" DATE ); CREATE TABLE TABLE_1 ( "ORDER_NR" VARCHAR2 (12) PRIMARY KEY , "PRIORITY" VARCHAR2 (2) , "CREATE_DATE" DATE , "ACT_STEP" VARCHAR2 (2) , "STEP_DATE" DATE , "EMPLOYEE" VARCHAR2 (5) , "DESCRIPTION" VARCHAR2 (20) ); INSERT INTO TABLE_1 (ORDER_NR, PRIORITY, CREATE_DATE, ACT_STEP, STEP_DATE, EMPLOYEE, DESCRIPTION) VALUES ('1KKA1T205634', '12', TO_DATE('10-FEB-13 10:00:00','DD-MON-RR HH24:MI:SS'), 'U', TO_DATE('28-FEB-13 12:00:00','DD-MON-RR HH24:MI:SS'), 'W0010', 'CLEAN HOUSE'); INSERT INTO TABLE_1 (ORDER_NR, PRIORITY, CREATE_DATE, ACT_STEP, STEP_DATE, EMPLOYEE, DESCRIPTION) VALUES ('1KKA1Z300612', '12', TO_DATE('08-FEB-13 14:00:00','DD-MON-RR HH24:MI:SS'), 'F', TO_DATE('20-FEB-13 16:00:00','DD-MON-RR HH24:MI:SS'), 'K0052', 'REPAIR CAR'); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', 'A', TO_DATE('12-FEB-13 13:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', '5', TO_DATE('13-FEB-13 09:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', 'K', TO_DATE('13-FEB-13 10:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', '5', TO_DATE('13-FEB-13 11:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', 'K', TO_DATE('13-FEB-13 12:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', '5', TO_DATE('13-FEB-13 16:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', 'C', TO_DATE('14-FEB-13 08:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', 'B', TO_DATE('14-FEB-13 10:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', 'E', TO_DATE('18-FEB-13 13:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', 'F', TO_DATE('20-FEB-13 16:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', 'S', TO_DATE('21-FEB-13 08:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', 'R', TO_DATE('21-FEB-13 09:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', 'U', TO_DATE('28-FEB-13 12:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1Z300612', '12', 'A', TO_DATE('12-FEB-13 13:52:42','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1Z300612', '12', '5', TO_DATE('13-FEB-13 09:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1Z300612', '12', 'K', TO_DATE('13-FEB-13 10:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1Z300612', '12', '5', TO_DATE('13-FEB-13 11:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1Z300612', '12', 'K', TO_DATE('13-FEB-13 12:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1Z300612', '12', '5', TO_DATE('13-FEB-13 16:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1Z300612', '12', 'C', TO_DATE('14-FEB-13 08:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1Z300612', '12', 'B', TO_DATE('14-FEB-13 10:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1Z300612', '12', 'E', TO_DATE('18-FEB-13 13:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1Z300612', '12', 'F', TO_DATE('20-FEB-13 16:00:00','DD-MON-RR HH24:MI:SS')); COMMIT;
And now the explanation for the result of the query:SYSDATE 28.Feb.13 14:00 ORDER_NR PRIORITYCREATE_DATE STATUS STATUS_DATE DESCRIPTION AGE_1 AGE_2 WAITNG STEP_A STEP_B STEP_C STEP_5 STEP_K STEP_E STEP_F STEP_S STEP_R 1KKA1T205634 12 10.Feb.13 10:00 U 28.Feb.13 12:00 CLEAN HOUSE 18,083 8,833 2,125 0,833 4,125 0,083 0,750 0,208 2,125 0,666 0,042 7,125 1KKA1Z300612 12 08.Feb.13 14:00 F 20.Feb.13 16:00 REPAIR CAR 20,000 16,042 2,125 0,833 4,125 0,083 0,750 0,208 2,125 0,666
The AGE_1 is the difference in days between the "CREATE_DATE" and if EXSIST L'ETAPE 'U' then STEP_DATE or if the STEP 'U' is not found in TABLE_2 then it should show the difference in days between the "CREATE_DATE' and the 'SYSDATE.
The AGE_2 is the difference in days between the STEP "A" STEP_DATE and IF EXSIST L'ETAPE 'R' then STEP_DATE or if the STEP 'R' is not in TABLE_2 then it should show the difference in days between the "CREATE_DATE' and the 'SYSDATE.
The EXPECTATION is the difference in days between CREATE_DATE and STEP 'A' STEP_DATE
The following columns indicate the days, how long the ORDER_NR remains in these TIMES, if an ORDER_NR comes in the same STEP should be calculated together more than once.
If the ORDER_NR jump a step, it should show a zero in the specific field.
I hope that my explanation is good enough, my English skills are far from good.
Thank you for all your help.
Hosts Reinhard W.Solomon Yakobson says:
Just add the amounts:In fact, you could edit all CASES:
with t2 as ( select t.*, lead(step_date) over(partition by order_nr order by step_date) next_step_date from table_2 t ) select t1.*, nvl( max( case t2.wo_step when 'U' then t2.step_date end ), sysdate ) - t1.create_date age_1, nvl( max( case t2.wo_step when 'R' then t2.step_date end ), sysdate ) - t1.create_date age_2, sum( case when t2.wo_step in ('B','5') then t2.next_step_date - t2.step_date end ) step_b_5, sum( case t2.wo_step when 'C' then t2.next_step_date - t2.step_date end ) step_c, sum( case t2.wo_step when 'K' then t2.next_step_date - t2.step_date end ) step_k, sum( case t2.wo_step when 'E' then t2.next_step_date - t2.step_date end ) step_e, sum( case t2.wo_step when 'F' then t2.next_step_date - t2.step_date end ) step_f, sum( case t2.wo_step when 'S' then t2.next_step_date - t2.step_date end ) step_s, sum( case t2.wo_step when 'R' then t2.next_step_date - t2.step_date end ) step_r from table_1 t1, t2 where t2.order_nr = t1.order_nr group by t1.order_nr, t1.priority, t1.create_date, t1.act_step, t1.step_date, t1.employee, t1.description / ORDER_NR PR CREATE_DA AC STEP_DATE EMPLO DESCRIPTION AGE_1 AGE_2 STEP_B_5 STEP_C STEP_K STEP_E STEP_F STEP_S STEP_R ------------ -- --------- -- --------- ----- ----------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- 1KKA1T205634 12 10-FEB-13 U 28-FEB-13 W0010 CLEAN HOUSE 18.0833333 10.9583333 4.875 .083333333 .208333333 2.125 .666666667 .041666667 7.125 1KKA1Z300612 12 08-FEB-13 F 20-FEB-13 K0052 REPAIR CAR 44.252338 44.252338 4.875 .083333333 .208333333 2.125 SQL>
SY.
-
define a field as requires it, from the Group of radio buttons
I saw not a strong response if you can set the field as required - in this case a date field based on the selection of a previous radio button.
A post was that you couldn't do with calc form, it will have to be JS.
I'm not the best at that. The form is sent by mail on a web server for data capture.
Any help would be appreciated.
Hello
Yes, you can change the status of 'necessary' to one or more fields by using the validate.nullTest in Formcalc or Javascript. You can use script like this in the output of the option button event:
If (this.rawValue == 1) then
DateTimeField1.validate.nullTest = "error".
on the other
DateTimeField1.validate.nullTest = "disabled".
endif'error' sets the field referenced on required; considering that the 'disabled' changes back to not required.
Good luck
Niall
-
I have a need to query the most recent entry in a value in a field became the current value, but it is possible that it was this value before, so a simple MIN() is insufficient.
Example, I want to date the EMPLID reported to the current REPORTS_TO
EMPLID REPORTS_TO EFFDT OTHER_DATA Comment 123456 500500 01/12/2010 xxx 123456 500500 15/12/2010 XYY 123456 500999 30/01/2013 XYZ 123456 500999 30/06/2014 zzz 123456 500500 15/01/2015 ABC GET THIS EFFDT 123456 500500 01/12/2015 nnn Most of the time a MIN() would work, but there are cases like this that throw me a curve known.
Any advice is most appreciated. Thank you!
WITH emp_report_tab AS
(SELECT emplid 123456, 500500 reports_to, DATE ' 2010-12-01' effdate FROM dual)
UNION ALL
SELECT emplid 123456, 500500 reports_to, DATE ' 2010-12-15' effdate FROM dual
UNION ALL
SELECT emplid 123456, 500999 reports_to, DATE ' 2013-01-30' effdate FROM dual
UNION ALL
SELECT emplid 123456, 500999 reports_to, DATE ' 2014-06-30' effdate FROM dual
UNION ALL
SELECT emplid 123456, 500500 reports_to, DATE ' 2015-01-15' effdate FROM dual
UNION ALL
EmplID SELECT 123456, 500500 reports_to, DATE ' 2015-12-01' effdate FROM dual)
SELECT er0.emplid, MIN (er0.effdate)
Of emp_report_tab er0
WHERE er0.effdate >
(SELECT MAX (er1.effdate)
of emp_report_tab er1
where er1.emplid = er0.emplid
and er1.reports_to! =
(By SELECTING er2.reports_to in emp_report_tab er2
WHERE er2.emplid = er1.emplid
AND er2.effdate =
(select max (effdate) in emp_report_tab er3
where er3.emplid = er2.emplid
and er3.effdate<=>=>
GROUP BY er0.emplid;
EMPLID MIN (ER0. E
---------- ---------
123456 15 JANUARY 2015
-
Hello!
I m facing a problem with the help of oraext: query-database.
In my transformation im try the following (Simplified):
How to get the correct value when you use oraext:query - database?<xsl:template match="*"> <xsl:variable sqlQuery="select ....."/> <xsl:variable name="storeSec" select="oraext:query-database($sqlQuery,true(),true(),'jdbc/xref')/> <xsl:choose> <xsl:when test="string-length($storeSec/ROWSET/ROW[1]/STORE_PART_SECTION) > 0"> <xsl:value-of select="$storeSec/ROWSET/ROW[1]/STORE_PART_SECTION"/> </xsl:when> <xsl:otherwise> <xsl:value-of select"some other val"/> </xsl:otherwise> </xsl:choose> </xsl:template> {code} This always results in +some+ +other+ +val+ !! I´v checked the output from oraext:query-database by using getcontentAsString and if I instead test putting the expected output from oraext:queryDatabase in my variable it gives me A100 which is what i expected. {code} <xsl:template match="*"> <xsl:variable sqlQuery=select ....."/> <xsl:variable name="storeSec"> <ROWSET> <ROW num="1"> <STORE_PART_SECTION>A100</STORE_PART_SECTION> </ROW> <ROW num="2"> <STORE_PART_SECTION>XXm</STORE_PART_SECTION> </ROW> </ROWSET> </xsl:variable> <xsl:choose> <xsl:when test="string-length($storeSec/ROWSET/ROW[1]/STORE_PART_SECTION) > 0"> <xsl:value-of select="$storeSec/ROWSET/ROW[1]/STORE_PART_SECTION"/> </xsl:when> <xsl:otherwise> <xsl:value-of select"some other val"/> </xsl:otherwise> </xsl:choose> </xsl:template>
How should you exit? Several item ID with each having a value of the result set?
If Yes, then you can try following: -
Hierarchical Oracle query help needed - path between the crux of two brothers and sisters
I want to find the path between two nodes of oracle hierarchical Table.
Consider the following case-
NodeId - ParentId
=============
1 > > > > > > 0
2 > > > > > > 1
3 > > > > > > 2
4 > > > > > > 3
5 > > > > > > 0
6 > > > > > > 5
Here I want to query the database table that if there is a path between nodes 3 and 5?
The previous query you provided work upwards to the root node.
Here is my expected result, 3-> 2-> 1-> 0-> 5
Yet once if I have a query in the table to get the path between 1 and 3, I want to get out of the way - next
1-> 2-> 3
Therefore, the query works in both cases. Where ADI root can act as an intermediate or no node.
Can you please guide me how I can get it?
Thank you.Hello
user13276471 wrote:
I want to find the path between two nodes of oracle hierarchical Table.Consider the following case-
NodeId - ParentId
=============
1 >>>>>> 0
2 >>>>>> 1
3 >>>>>> 2
4 >>>>>> 3
5 >>>>>> 0
6 >>>>>> 5
Here I want to query the database table that if there is a path between nodes 3 and 5?
The previous queryWhat application is this? If you're referering to another thread, then post a link, such as {message identifier: = 10769125}
you provided work upwards to the root node.
Here is my expected result, 3--> 2--> 1--> 0--> 5
Yet once if I have a query in the table to get the path between 1 and 3, I want to get out of the way - next
1--> 2--> 3Therefore, the query works in both cases. Where ADI root can act as an intermediate or no node.
Can you please guide me how I can get it?
I think you want something like this:
WITH bottom_up_from_src AS ( SELECT nodeid , parentid FROM table_x START WITH nodeid = :src_nodeid CONNECT BY nodeid = PRIOR parentid ) , bottom_up_from_dst AS ( SELECT * FROM bottom_up_from_src UNION ALL SELECT parentid AS nodeid , nodeid AS parentid FROM table_x WHERE nodeid NOT IN ( SELECT nodeid FROM bottom_up_from_src ) START WITH nodeid = :dst_nodeid CONNECT BY nodeid = PRIOR parentid ) SELECT :src_nodeid || SYS_CONNECT_BY_PATH (parentid, '-->') AS display_path FROM bottom_up_from_dst WHERE parentid = :dst_nodeid START WITH nodeid = :src_nodeid CONNECT BY nodeid = PRIOR parentid ;
This will show how you can get it from: src_nodeid at dst_nodeid, moving to the top or to the bottom of a hierarchy at a time step. This will work regardless of the fact that
- : src_nodeid is the ancestor of the: dst_nodeid, or
- : src_nodeid is a descendant of: dst_nodeid, or
- both: src_nodeid and: dst_nodeid are the descendants of another node (e.g. 0).
- : src_nodeid is the ancestor of the: dst_nodeid, or
I hope that answers your question.
If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) and also publish outcomes from these data.
Explain, using specific examples, how you get these results from these data.
Always say what version of Oracle you are using (for example, 11.2.0.2.0). It is always important, but particularly so with CONNECT BY queries, because each version since Oracle 7 had significant improvements in this area.
See the FAQ forum {message identifier: = 9360002}
Maybe you are looking for
-
It now takes a double click to open an email. How to open on the first click?
-
Dell Precision 390, processors who work for an upgrade?
We have two Dell Precision 390. One with the Conroe E6300 and one with the Pentium 4 631, variety of Cedar Mill. We want to upgrade the P4 to something better. We have a lying here Q6600 processor, and an old Pentium D 830 dual core CPU, but it's be
-
Hello In .net, we the ArrayList class, which can be used for creating table, erases the content, adds items. Don't we have some think like this in blackberry jaa? I tried to use a series of tables, but its me gives error public static Arrays aInfoser
-
using mail app - view all outlook emails
When I use IE 10 in outlook mail access it displays emails to June 2013 (when I opened the account). My mail app goes back only 30 days. I think I got him to show last month. How to reset my email application to display all THE EMAILS? Is no longer a
-
Quality of bad shadows in Lightroom Windows, OK on Mac/export
HelloI have a problem I do not understand. In Lightroom CC on Windows, shadows in images look completely distorted (Figure 1). Exported JPEG or in Lightroom on a Mac, look shadows end (Figure 2).Any ideas what causes this?Figure 1:Figure 2:Kind regar