Table counts
Hello people.
I have a (I think) interesting the problem I am looking for a better solution.
I have an array of values of temperature designed to make a cold room. :
Each element of the array has the oven temperature, the duration of the cycle (in minutes) as well as certain other information. The table should power loop on her self so a 'loop' and the 'number of loops' is also include.
FOR EXAMPLE:
Part 1 (20, 30 minutes) and then go to
Part 2 (30 degrees in 30 minutes) can stay in the
item 3 (30 degrees 30 minutes), loop element 7 2 times and then go to item 4
item 4 (45 deg for 30 mins) stay during 30 minutes then put an end to the sequence.
Now Im trying to find the total time of the room temperature will start to time in the table. In the example above indicates the total time would be 480 minutes
I have included my (rather clumsy) source code (which works, but is not very elegant)
Can anyone think of a better way?
Thanks in advance
Chuck
You can use this conversion as a Subvi is more elegant.
This is a kind of conversion, but it works differently from the Counting2.vi. I did not understand how to make the inner loops =)
The loop after conversion has the time for all operations.
Tags: NI Software
Similar Questions
-
Take the table count and display
Hi guys,.
I want to display the number of multiple tables using all_tables
for example
Select table_name from all_tables where table_name like '% AUS.
and display output like this
AUS1 - 10
AUS123 - 20
Australia - 30
I have tried to use any Union but wanted to display the name of the table with the corresponding charges
Here's a basic way:
DECLARE
ln_count NUMBER;
BEGIN
FOR rec IN (select master, table_name from all_tables where table_name like 'AUS %')
LOOP
RUN IMMEDIATELY "SELECT COUNT (*) FROM" | Rec.Owner | '.' || Rec.table_name INTO ln_count;
dbms_output.put_line(Rec.Owner ||) '.' || Rec.table_name | ' - ' || ln_count);
END LOOP;
END;
/
-
Dynamic table count (removeInstance problem)
Hello guys,.
I am trying to create a table that has a column with auto-numbering (a kind of index). Each line has an addition / removal of button and every time I have add / delete a line, a desire to recalculate the index column because I want to order.
Everything works fine when I add rows to the table, but when I try to delete a line, I can't recalculate lines indices, Livecycle throw again a very generic exception "GeneralError: operation failed."
The code I use is as follows:
Form1. #subform [0]. Table1.Row1.Subform1.Add::click - (JavaScript, client)
rowNum var = this.parent.parent.index + 1;
this.parent.parent.instanceManager.addInstance (rowNum);
for (i = 0; i < this.parent.parent.instanceManager.count; i ++) {}
xfa.resolveNode ("Row1 [" + i + "]"). Cell2.RawValue = "" + (i + 1);
}
Form1. #subform [0]. Table1.Row1.Subform1.Remove::click - (JavaScript, client)
Try
{
rowNum var = this.parent.parent.index;
this.parent.parent.instanceManager.removeInstance (rowNum);
for (i = 0; i < this.parent.parent.instanceManager.count; i ++) {}
xfa.resolveNode ("Row1 [" + i + "]"). Cell2.RawValue = "" + (i + 1);
}
}
catch (Err)
{
App.Alert (Err);
}
I noticed that whenever I do a removeInstance, each operation that I do at the level of the table gives me this exception. I am a newbie of Livecycle is possible I'm missing something very basic here...
If you want to take a look at what I'm talking about, I have shared here http://wikisend.com/download/616276/test_dynamic_numeration.pdf
Any help will be much appreciated
Thank you!
Ok
I found a solution using the event layout: loan here
https://Acrobat.com/#d=tdpzltrl25yU2PkvgaQO9w
One less problem
-
moved to the pl/sql forum
Published by: yxes2013 on 23.4.2013 17:40So please mark this thread ANSWERED.
-
Reading a file MS Word with Tables
I have experinced a mess when executing this labview program that reads in all tables in a MS Word file and does not see some tables. The original Word document has hundreds of tables inside and it would be erratic jump a table in the order when he read and run convert text method.
I reduced the thing down to a file simple word do the same thing. This VI is not the second table in this document word with 2 tables. The count property of tables calculated as 2 indicating that the word see 2 tables in the document, but when I try to convert to text the second table I get an indication of infamous error in MS Word and an empty string to the converttotext method.
Someone knows how to fix?
It's a delicate question. Here you change the document (with the help of convert to text), and at the end you do not save the changes.
When you convert a table to text table is more exist and Word reallocate the array indices. In your example after the table 1 is converted to text index 1 is reassign in table 2. In the second iteration, you attempt to get the table with index 2 that no longer exist.
You can change your code as follows to make it work: tables-> Count value of wire to the N of the loop, wire the constant '1' to the Index value of the item table.
Ben64
-
Table into multiple blocks of text
I have a script that goes from page to page and the stories in a document divides the individual frames and I am trying to find a way to manage the tables that span several pages. As the "SplitStory" script that out there somewhere he copies the image and the glue to separate, but before doing so, he does things to avoid hyphenated words at the end of the frame. So, I have to be able to detect when the frame contains a table.
The first image that contains an array has a value "Tables.Count" (sorry, VB not Java) but the following frames do not indicate that they have a table, or characters and only 1 insertion point.
Y at - it something that I'm missing that would indicate that the frame contains the middle or the end of a table?
Thank you
Ken
Hello
Done SplitStory work with a tables as well, isn't?
It does this by using the same procedure: duplicate an image and delete original (thread making this backward).
To specify a parentTextFrame of a specific line, you can check this property to any object of this row.cells text, i.e.
thisRow.cells [-1] .insertionPoints [-1] .parentTextFrames [0]
(IE javascript)
Jarek
-
Count the total number of rows found in the schema
Count the total number of lines present in the schema, including the table, sequence, view
Desirable output
Table sequence views
20 of 1000 1000Do you mean that you need to count the number of Tables, views and sequence present in the schema?
Hi something like that.
SELECT a.view_cnt AS "View Count", b.tab_cnt AS "Table Count", c.seq_cnt AS "Sequence Count" FROM (SELECT COUNT (*) view_cnt FROM USER_VIEWS) a, (SELECT COUNT (*) tab_cnt FROM USER_TABLES) b, (SELECT COUNT (*) seq_cnt FROM USER_SEQUENCES) c
Gives you,
View Count Table Count Sequence Count 153 878 32
Thank you
ShankarPublished by: Shankar Viji on August 28, 2012 03:03
-
How to find the tables placed only on pages.
Hi experts,
I find all the tables in the document (no XML Indd file.) .indd There is only a certain number of tables. And a table in the master page also. Now I'm trying to get back only the tables except the master page. How can I got it?
I used the following code. But it is not working properly.
var myTables is app.activeDocument.stories.everyItem () .tables;.
App.Select(mytables[0]);
var myTableCount = myTables.length;
Alert (myTableCount);
for (var i = 0; i < myTableCount; i ++) {}
var myTableObj = myTables [i];
Alert (myTableObj.parent);
Try
{
var myTableObj.parent.parentPage.name = XXX;
If (xxx.match("^[0-9]+$"))
{
Alert ('table');
myTableObj.label = 'table' +(i+1);
}
on the other
{
Alert ("Master Page table");
}
}
catch (e)
{
Alert (e.message);
}
}
Always throw catch loop...
Can someone guide me...!
Thank you and best regards,
Vel.
Hi Peter,.
Finally, I close with the codes below. It make me fight a lot...
var pagelen = app.activeDocument.pages.length;
Alert (pagelen);
for (var i = 0; i)<>
{
var pageitemlen = app.activeDocument.pages [i].pageItems.length;
for (var j = 0; j)<>
{
v var = app.activeDocument.pages [i] .pageItems [j] .tables;
Alert (v.Length);
for (var x = 0; x)<>
{
App.Select (v [x]); Here, I can select.
App.Selection [0] .label = "table" + count;
Count ++;
myTables.push (v [i]);
}
}
}
Peter, thank you very much for your time in Golden for my problem...
With respect,
Vel.
-
Flag assigned in the MySQL database
Hi all
In the FMS database, how can we check if the server is running. This flag is attributed in the database which reflects the active State in console FMS?
I'd start probably with "select count (*) from alarm_alarm" as a direction for study. This isn't a solution tested, a hint.
This is the extract 'Check number alarm Rows', useful to solve certain types of performance issues.
Given that the alarms are always being added, if none are added in the cycle of 1 (usually 5-10 min) data collection, there is something wrong. Could be something simple like all the rules that are disabled, but in a production environment, the most likely cause would be that the FMS is down.
Stored in the base of most things are unusable from the outside of the FMS, but it could be relatively safe to use. I can't emphasize enough the extreme danger in allowing anyone to access the FMS database directly from the outside of the FMS.
For those of you who have not seen this script (which I wrote no-WARNING):
Import groovy.sql.Sql;
import com.quest.nitro.service.util.JDBCHelper;
msg = new StringBuilder();
try {}
SQL = new Sql (JDBCHelper.getDataSource ());
Msg. Append ("alarms table Count: \n")
Msg. Append (sql.rows ("select count (*) from alarm_alarm"));
} catch (Exception ex) {}
Msg. Append ("exception" + ex);
}
Return msg.toString ();
-
Wish of blackBerry Smartphones that I could password protect BB while in the Holster ONLY
I would love to see RIM put up-to-date, or perhaps a third-party seller 'improve' the security options available on our BB. Here's what I'd like to see:
The ability to enable protection by password, with a timeout of "never" (currently 1 hour is the maximum), but allow "Pocket Holster lock.
Here's my reasoning: around the House, when my BB is not in my hand, so I leave degaine on a table, counter or in a base charger. I am not concerned about security in my house. If I "lose" it, I'm not worried. When I leave the House, I got the case. That's when I want password protected. If I lose, I'll be in a world of pain.
Can you help me and others I am sure RIM? Software developers?
Thank you for reading this and offer you! (BTW... I am aware of the apps like smartguard and others, but really wish someone could resolve what RIM has provided with their operating system)
Hello
Exactly what Blackberry model you have and what version of operating system device turns on it?
Thank you
Bifocals
-
Hi Experts
need your help for my one of the requirements. My database is oracle 11g.table name is STG_TABLE.
the table structure is as below
here for the same value of the column commitment_num if batch_id are different so don't have nothing to do, but if batch_id are the same, I have to record mergingselect * from stg_tables where batch_id in('2806','2805') BATCH_ID COMMITMENT_NUM SAP_CREDITMEMO_NUM SAP_ORDER_NUM CREDIT_AMOUNT SAP_CUST_NUM RECORD_STATUS RECORD_STATUS_MSG HANDSHAKE_DATE 2805 209427 81034559 30386865 34 1000035 S Billing document successfully posted 2/13/2013 18:42 2806 209427 85287754 40180808 60 1000035 S Billing document successfully posted 2/13/2013 20:33 2806 209534 85287755 40181806 60 1000037 S Billing document successfully posted 2/13/2013 14:42 2806 209534 85287755 40181806 90 1000037 S Billing document successfully posted 2/13/2013 14:42
credit_amount column value must be sum (credit_amount) and all records must be converted into a single record... as below for the above data.
Please help me with that and me know if my requirement is not unclear.BATCH_ID COMMITMENT_NUM SAP_CREDITMEMO_NUM SAP_ORDER_NUM CREDIT_AMOUNT SAP_CUST_NUM RECORD_STATUS RECORD_STATUS_MSG HANDSHAKE_DATE SIEBEL_PROCESS_DATE 2805 209427 81034559 30386865 34 1000035 S Billing document successfully posted 2/13/2013 18:42 2806 209427 85287754 40180808 60 1000035 S Billing document successfully posted 2/13/2013 20:33 2806 209534 85287755 40181806 150 1000037 S Billing document successfully posted 2/13/2013 14:42
will it be possible using merge?... If I think using simple cursor approce... like take data in the cursor as shown below, then insert the records, but when I should remove existing records then.
CURSOR abc IS SELECT commitment_num AS commitment_num, sap_cust_num AS customer_number, batch_id AS batch_id, ----CRQ000000161235-Allow Debit-Credit both -- Max(Cust_Ref_Num) As Customer_Reference,--Commented on 30-aug-2011 madhuri,as per reqt cust-ref should be in *ctl table and invoice# should be in *adcoms table COUNT (*) AS line_count, --Sum(Commitment_Amount) As Committed_Amount, -- As Per Conversation With Greg Send The Sum Of Approved Amount As Committed Amount. SUM (approved_amount) AS approved_amount, sales_org AS sales_org --CRQ124450 KS Canadian payments in 9AM feed FROM stg_vg_credits WHERE TRUNC (last_update_date) <= TRUNC (SYSDATE) AND siebel_process_date IS NULL and record_status='S' and sales_org='2403' --CRQ000000161235-Allow Debit-Credit GROUP BY commitment_num, sap_cust_num, sales_org, batch_id;
You can use MERGE to update some rows and delete others. Here's the code, then I'll explain.
MERGE INTO stg_tables o using ( SELECT rid, rn, sum_credit_amount FROM ( SELECT ROWID rid, count(*) OVER(PARTITION BY commitment_num, batch_id) cnt, row_number() over(PARTITION BY commitment_num, batch_id order by handshake_date desc) rn, sum(credit_amount) OVER(PARTITION BY commitment_num, batch_id) sum_credit_amount FROM stg_tables A WHERE batch_id IN('2806','2805') ) WHERE cnt > 1 ) n ON (o.ROWID = n.rid) WHEN MATCHED THEN UPDATE SET credit_amount = sum_credit_amount delete where rn > 1;
Examine the inner query in the USING clause: NTC is the number of lines having the same commitment_num and batch_id. RN numbers these lines, including 1 for the new line. I also have the sum of the credit amount and the IDENTIFIER of the line.
Now to the outer query in the USING clause: I keep only the lines with the CNT > 1, because others need not be merged. It is important, because you don't want to update the lines that are already OK.
Now the MERGE statement corresponds to the table and my USING the ROWID clause, which can be very effective. It updates all rows with the new amount of credit, but then he removes all lines except the most recent.
If you are running twice the MERGER, you will see that the second time it merges "0 rows. No unnecessary update!
Published by: stew Ashton on 25 February 2013 09:50
-
JDeveloper 11.1.2.3
ADFbc + JSF
using this model below, LOVs waterfall or cascade Auto suggest works on entry table. (the table field (stateId) County, LOV in cascade or auto suggest)
It's just that StateID is part of the primary KEY for the table count.
If we change the model and StateID is no not part of the key primary on the table count, everything works perfect!, unfortunately it is something that we cannot do it on most of the cases
Oracle will fix in the new versions, or is something we have to live with?
same behavior occurs in the old version of JDeveloper.
Thank you
-------------------------------------------------------------------------------------------------------------------------------
create table countries
(country_id VARCHAR2 (3) constraint country_pk primary key,)
country_name varchar2 (50) not null constraint country_name_nn
);
create table statement
(country_id VARCHAR2 (3) constraint state_country_id_nn not null,)
state_Id VARCHAR2 (3) constraint state_id_nn not null,
state_name varchar2 (50) constraint state_name_nn not null,
primary key constraint state_pk country_id (state_id)
Constraint state_by_country foreign key (country_id) refers to country (country_id)
);
create table County
(country_id VARCHAR2 (3) constraint county_country_id_nn not null,)
State_ID VARCHAR2 (3) constraint county_state_id_nn not null,
county_id VARCHAR2 (3) constraint county_id_nn not null,
county_name varchar2 (50) constraint county_name_nn not null,
primary key constraint county_key (country_id, state_id, county_id),
Constraint county_by_state foreign key (country_id, state_id) made reference state(country_id,state_id)
);
----------------------------------CHANGING PRIMARY KEY -------------------------------------------
create table County
(pkey raw (16) default sys_guid() constraint county_pkey primary key,)
Country_ID VARCHAR2 (3) constraint county_country_id_nn not null,
State_ID VARCHAR2 (3) constraint county_state_id_nn not null,
county_id VARCHAR2 (3) constraint county_id_nn not null,
county_name varchar2 (50) constraint county_name_nn not null,
county_alt_key unique constraint (country_id, state_id, county_id),
Constraint county_by_state foreign key (country_id, state_id) made reference state(country_id,state_id)
);If you have a reproducible test case, then please work with Oracle Support to complete a bug report.
Without a bug being filled, the chances of a solution are slim. -
Calling a function of pipeline in a Select query
Hello gurus,
I have a request for the function of pipeline call
This area above query I want to use the id of the emp, dept code clause as parameters to the function pk_get_emp_dtls.fn_t_get_emp_dtlsWITH t AS (SELECT dep_code, emp_id FROM test1 WHERE dep_code = 'C1' AND emp_id = '123') SELECT * FROM TABLE (CAST ((pk_get_emp_dtls.fn_t_get_emp_dtls (t.dep_code, t.empid, TRUNC (SYSDATE) ) ) AS ps_ot_emp_dtls ) ), t;
but the error is SQL command not properly ended
Kind regards
Friend
Edited by: most wanted! November 14, 2012 06:17This is the case where the order of the table counts. Operator TABLE does not support early references, so t table MUST appear before the SCOREBOARD operator. And there is no need of CASTING:
WITH t AS ( SELECT dep_code, emp_id FROM test1 WHERE dep_code = 'C1' AND emp_id = '123' ) SELECT * FROM t, TABLE( pk_get_emp_dtls.fn_t_get_emp_dtls( t.dep_code, t.empid, TRUNC(SYSDATE) ) ) /
SY.
-
Update statement as well as a number
I have a table with specific data in it and I need to change a generic name. The field is question is VARCHAR2 (4000 BYTE). What I need the values to be, is something like 1 Agency, agency 2, etc. Now a single table count 184 values so I could do it manually, but another table has more than 10,000, which would take much too long.
Now the ideal situation would be, there is a primary key in the table which is a number. If there is a way that I could line them up the values would be as Agency (primary key number). It would be great.
Thank youSomething like:
update my_table set my_column = my_column||to_char(pk_column) where ...
If you want a fixed text instead of what is already in the column, and then use a constant string where my_column I in the update. If you do not have a numeric PK column, you can use rwnum instead of pk_column.
John
-
Simple problem with DBSequence type
Have the table table1 with two column column1, column2, Column1 PK number.
a sequence s1 start at 250
I have JDeveloper, took me for a type of column DBSeq sequence name and 250/251/249 try all starting point: X.
When I run app_moulde I got the message:
(oracle.jbo.DMLException) Houston-26041: failure to publish data from database in "Insert": SQL statement ' BEGIN INSERT INTO HR. TABLE1(COLUMN1,COLUMN2) VALUES (: 1:2) RETURN COLUMN1 IN: 3; END; ».
-Level 1: retail - 0
(java.sql.SQLIntegrityConstraintViolationException) ORA-01400: cannot insert NULL into ('HR'. "' TABLE1 '. ("' COLUMN1 ')
ORA-06512: at line 1
Discount for integration is to check by default.
For datebase I use 10g Express; <-is this problem?
Why null?
Do I need to relax?
How to do this?DBSequence is intended for use where the data base table counts of database triggers that inhabit the PK via a number sequence in the background. If you do not have these datavase triggers do not use DBSequence.
There are a number of alternative techniques available, including one proposed by Puthanampatti. More information on the use of Groovy to fill your PK field can be found via the following links:
http://one-size-doesn
http://one-size-doesnKind regards
CM.
Maybe you are looking for
-
On Satellite L30 - question compatibility DVD player
Hello I m the owner of the Satellite L30-10 X.My DVD recorder doesn't work and I have to get a newThe M100-165 DVD recorder will be compatible? I can buy one, but not a new one and I won t have the opportunity to check this before buying thx for the
-
Use the type of data "table of container" in teststand
Hello I have a problem with data type "table of container" in the TestStand. I defined an empty local variable in the form "table of the container" with the name "array_of_container1" and also a local variable as 'container' with a name "container1".
-
Pavillion 6143 sc need for my SSD AHCI
Installed a SSD but need AHCI to get better performance. Is this possible or is my computer too old
-
Microsft LifeCam cannot be installed on Windows XP SP3
Hi, I am unable to install Microsoft LifeCam 3.5 on Windows XP SP3. This is the error I get when installing -------------------------Microsoft LifeCam---------------------------Cannot install the Microsoft LifeCam software when connected as a built-i
-
Reagrding Windows 7 configuration
Hello yesterday I bought pavilion g6 model 2137tx. I want to know instead of getting the recovery of the laptop, why not HP in providing the original cd of windows 7. There in the problem with this?