How to make a loop to display the results of each iteration?
I have a process inside a for loop and I want to display the results of 1, 2, 3 and 4 iterations all at once. Is it possible to do without creating 4 distinct for loops with a different constant for every N?
Thanks for the help.
Tags: NI Software
Similar Questions
-
How to make fonts and icons in the menus for each larger screen?
How to make larger fonts and icons in the menus on my iMac screen?
You can change the size of icons, arrange them in a grid and set other preferences for items on your desktop by changing the options to display on your desktop. To change your desktop view options, click on the desktop and then choose the command view > Display Options from the menu bar. You can try different settings to see which ones you like, you will immediately see the effects of your changes.
-
Hello. We have designed our online help using the drop-down hotspots (this aspect is much cleaner to us). Problem is that when a user searches for something and clicks the page to find the information, the topic theme of the results page, but does not develop the hotspot of menu drop-down to display the exact location of the search item. Is there a JavaScript or another solution to get the hotspot DHTML to expand, showing the information? Thank you.
Hello and welcome to the community,
What version of RoboHelp do you use? What is your output?
For WebHelp RH8/9, see http://www.wvanweelden.eu/robohelp/skinning_webhelp/expand_dropdowns_and_expandspots_for_s earch_results
Take a bow
Willam
-
I get my email on two computers. How to make a computer out of the loop?
I get my email on two computers. How to make a computer out of the loop without jeopardizing my Comcast email account?
Using Outlook Express? Go to: tools | Accounts and delete the account. If you think you can it in the future, go to the properties of the account, and under the general tab, simply uncheck: include this account when receiving or synchronization.
If you are interested, you can receive messages at a time without losing them on one.
On both machines:
Tools | Accounts | Mail | Properties | Advanced - Check: leave a copy of messages on the server.
On a single computer only, make sure to delete messages after X days to satisfy your allocated space that you get from your server.
-
How to display the results in the order based on the value of research
Hi all
How to display the results in the slot order.
If the user makes a search with "MADONNA", I view the results as title begins with "MADONNA" first then the rest of the records.CREATE TABLE TEST( SONGID NUMBER, TITLE VARCHAR2(200)) INSERT INTO TEST(SONGID,TITLE) VALUES (10,'AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)'); INSERT INTO TEST(SONGID,TITLE) VALUES (11,'CICCONE, MADONNA (CA)'); INSERT INTO TEST(SONGID,TITLE) VALUES (12,'DALLIN, MADONNA LOUISE/STOCK'); INSERT INTO TEST(SONGID,TITLE) VALUES (13,'MADONNA'); INSERT INTO TEST(SONGID,TITLE) VALUES (14,'MADONNA (A)/ AHMADZAI, MIRWAIS (C)'); INSERT INTO TEST(SONGID,TITLE) VALUES (15,'MADONNA (CA)'); INSERT INTO TEST(SONGID,TITLE) VALUES (16,'MIRWAIS AHMADZAI, MADONNA'); INSERT INTO TEST(SONGID,TITLE) VALUES (17,'MIRWAIS (CA)/ MADONNA (CA),AHMADZAI'); INSERT INTO TEST(SONGID,TITLE) VALUES (18,'MADONNA (CA),CICCONE'); SELECT *FROM TEST WHERE INSTR (TITLE, 'MADONNA') > 0 output: SONGID TITLE 10 AHMADZAI, MIRWAIS (CA)/ MADONNA (CA) 11 CICCONE, MADONNA (CA) 12 DALLIN, MADONNA LOUISE/STOCK 13 MADONNA 14 MADONNA (A)/ AHMADZAI, MIRWAIS (C) 15 MADONNA (CA) 16 MIRWAIS AHMADZAI, MADONNA 17 MIRWAIS (CA)/ MADONNA (CA),AHMADZAI 18 MADONNA (CA),CICCONE Expected output : 13 MADONNA 14 MADONNA (A)/ AHMADZAI, MIRWAIS (C) 15 MADONNA (CA) 18 MADONNA (CA),CICCONE .. .. .. .. ...
Please let me know is possible to show the results in this order.
Kind regards
RajasekharThis can be a little more specific:
SQL> SELECT * 2 FROM TEST 3 WHERE INSTR (TITLE, 'MADONNA') > 0 4 ORDER BY INSTR (TITLE, 'MADONNA') 5 ,TITLE 6 ; SONGID TITLE -------------------- -------------------------------------- 13 MADONNA 14 MADONNA (A)/ AHMADZAI, MIRWAIS (C) 15 MADONNA (CA) 18 MADONNA (CA),CICCONE 12 DALLIN, MADONNA LOUISE/STOCK 11 CICCONE, MADONNA (CA) 17 MIRWAIS (CA)/ MADONNA (CA),AHMADZAI 16 MIRWAIS AHMADZAI, MADONNA 10 AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)
-
How to make a video to display horizontally on iPhone?
How to make a video to display horizontally on iPhone?
Not sure where but your get video, put your phone horizontally.
-
How to make transparent cluster keeping only the elements inside the visible cluster?
Hello
Can anyone suggest me how to make transparent cluster keeping only the elements inside the cluster visible in the front panel.
Thanks in advance,
Vinciane
As I said, use the space bar for what is paint. This works. Trust me.
PS You cannot link to pictures stored on your hard drive. We don't see them. You must add them as attachments and then submit the post they get uploaded to the servers of NOR.
-
How to display the watermark to each page number?
Hello.
app.documents.item(0).watermarkPreferences.watermarkText = "page"; app.documents.item(0).watermarkPreferences.watermarkVisibility = true;
These are all same watermark settings.
It is impossible to set a nonzero value of the element.
I want to display the watermark to each page number.
If there is no way, I want to create this similar feature.
Any ideas?
And please tell me if the function already exists.
Thank you.
I think I know what you want.
You need a different watermark to each page of a document.
Which seems not be possible since watermarkPreference is not a preference of page but a preference document.
If you need this for the PDF export for example, you can export single pages in single PDF files and change the watermarkText according to the name of the page you are currently exporting.
After the export of all pages you could assemble in Acrobat Pro. Or place them in InDesign page-by-page and export again to a multipage PDF document.
// ExportPages-ChangeWatermarkForEveryPage.jsx // Uwe Laubender /** * @@@BUILDINFO@@@ ExportPages-ChangeWatermarkForEveryPage.jsx !Version! Mon Dec 14 2015 20:28:23 GMT+0100 */ var doc = app.documents[0]; var pages = doc.pages.everyItem().getElements(); // You can also assign a preset by its name // For simplicity here the second preset listed in assigned: var pdfExportPreset = app.pdfExportPresets[1]; // Loop through all the pages: for(var n=0;n
Hope, that helps.
Uwe
-
How to make 'Save to Desktop' save the default value instead of 'This PC'?
How to make 'Save to Desktop' save the default value instead of 'This PC'?
Windows 10, I guess?
-
In CC Dramweaver Adobe how to make my Web page fill the entire window?
In Adobe Dreamweaver CC how to make my Web page fill the entire window?
A width of 100% CSS.
Body {width: 100 %}}
Nancy O.
-
How to display the result sqlplus in java?
I want to call sqlplus to run some commands sql in java, but how can I print the result of sqlplus?
In java code, I call sqlplus as:
Process of p;
Run the command
p = Runtime.getRuntime () .exec (commandString);
print the result of the command
InputStream inputStream = p.getInputStream ();
How to display the result of the execution?
Published by: Yi on February 26, 2012 23:41You can use ProcessBuilder. Copy the following code starts sql * more and runs the script in the variable "filename". It displays the results in the console of NetBeans.
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.File; import java.util.Map; public class test1 { public static void main (String args []) { test_script(); } public static void test_script () { String fileName = "@test_table.sql"; String sqlPath = "E:\\"; String sqlCmd = "sqlplus"; String arg1 = "user/password@sid"; -- plug in your user, password and db name String arg2 = fileName; try { String line; ProcessBuilder pb = new ProcessBuilder(sqlCmd, arg1, arg2); Map
env = pb.environment(); env.put("VAR1", arg1); env.put("VAR2", arg2); pb.directory(new File(sqlPath)); pb.redirectErrorStream(true); Process p = pb.start(); BufferedReader bri = new BufferedReader (new InputStreamReader(p.getInputStream())); BufferedReader bre = new BufferedReader (new InputStreamReader(p.getErrorStream())); while ((line = bri.readLine()) != null) { System.out.println(line); } bri.close(); while ((line = bre.readLine()) != null) { System.out.println(line); } bre.close(); System.out.println("Done."); } catch (Exception err) { err.printStackTrace(); } } } Here is the content of the script at E:\\test_table.sql
Prompt drop TABLE ANOTHER_TEST; DROP TABLE ANOTHER_TEST CASCADE CONSTRAINTS / Prompt Table ANOTHER_TEST; CREATE TABLE ANOTHER_TEST ( BATCH_SEQ NUMBER, BATCH_GROUP_ID NUMBER, STATUS_FLAG VARCHAR2(30 BYTE), OBJ_BEING_PROCESSED VARCHAR2(80 BYTE), BATCH_RUN_START_DTTM DATE, BATCH_RUN_END_DTTM DATE, CREATE_DTTM DATE, CREATE_USER VARCHAR2(30 BYTE), UPDATE_DTTM DATE, UPDATE_USER VARCHAR2(30 BYTE) ) LOGGING NOCOMPRESS NOCACHE PARALLEL ( DEGREE DEFAULT INSTANCES DEFAULT ) MONITORING / COMMENT ON TABLE ANOTHER_TEST IS 'This is a test table.' / EXIT /
-
How to make a web page to the size of browsers?
How to make a web page to the size of browsers?
Try to download the pdf file and the example in this tutorial files, which explain how to do this.
http://www.Adobe.com/devnet/Dreamweaver/articles/bk_dwcs4_mastering_css.html
PZ
-
To display the result in the dialog box
Hi all!
I wonder if there is a way to make me at the end of a process, to display the result (number or string), I got in a dialog box.
I mean at the end there is a dialog box containing the message as "the result is xxx" xxx is the result of this process.
Any idea about it? Thanks in advance!
Chao
-
I have the table names in the list box to check if the same tables has same columns. For example
listBox3 is the name of the EMPLOYEE table that my request must verify if the EMPLOYEE table has different columns.
This query working as for example: table Employee UserA and UserB has Employee table too. After comparing the time user Employee table I get the altar of statements about richTextBox1.
Depends on my EMPLOYEE table, I guess only to see the result as below;
ALTER table EMPLOYEE add DESCRIPTION VARCHAR2 (15);
ALTER table EMPLOYEE add CITY VARCHAR2 (10);
but only seeing:
ALTER table EMPLOYEE add DESCRIPTION VARCHAR2 (15);
foreach (string Items in listBox3.Items)
{
using (OracleCommand crtCommand = new OracleCommand("with src as(select src.table_name src_table_name, src.column_name src_col_name, src.data_type src_data_type, src.data_length src_data_len, src.data_precision src_data_precision, src.data_scale src_data_scale, src.nullable src_nullable,decode(T.Constraint_Type,'P', 'Primary Key','U','Unique','') as src_cons from all_tab_columns src left join (select Cc.Column_Name,Uc.Constraint_Type from user_cons_columns cc, user_constraints uc where Cc.Constraint_Name = Uc.Constraint_Name and Cc.Table_Name = Uc.Table_Name) t on T.Column_Name = Src.Column_Name where table_name = '" + Items + "' and owner='" + txtSrcUserID.Text + "'), tgt as(select tgt.table_name tgt_table_name, tgt.column_name tgt_col_name, tgt.data_type tgt_data_type, tgt.data_length tgt_data_len, tgt.data_precision tgt_data_precision, tgt.data_scale tgt_data_scale, tgt.nullable tgt_nullable, decode(T.Constraint_Type,'P', 'Primary Key','U','Unique','') as tgt_cons from all_tab_columns tgt left join (select Cc.Column_Name,Uc.Constraint_Type from user_cons_columns cc, user_constraints uc where Cc.Constraint_Name = Uc.Constraint_Name and Cc.Table_Name = Uc.Table_Name) t on T.Column_Name = tgt.Column_Name where table_name = '"+Items+"' and owner='" + txtDesUserID.Text + "'), col_details as(select src.src_table_name, nvl(tgt.tgt_table_name, first_value(tgt_table_name) over(order by tgt_table_name nulls last)) tgt_table_name, src.src_col_name, src.src_data_type, src.src_data_len, src.src_data_precision, src.src_data_scale, src.src_nullable,src_cons, tgt.tgt_col_name, tgt.tgt_data_type, tgt.tgt_data_len, tgt.tgt_data_precision, tgt.tgt_data_scale, tgt.tgt_nullable,tgt_cons from src full outer join tgt on (src.src_col_name = tgt.tgt_col_name))select * from (select case when tgt_data_type != src_data_type or tgt_data_len != src_data_len or tgt_data_precision != src_data_precision or tgt_data_scale != src_data_scale or tgt_nullable != src_nullable then 'alter table ' || tgt_table_name || ' modify ' || tgt_col_name || ' ' || src_data_type || ' ' || case when src_data_type in ('DATE') then null else case when src_data_type in ('VARCHAR', 'VARCHAR2') then ' (' ||nvl(to_char(src_data_len), ' ') || ') 'else decode(nvl(src_data_precision, -1), -1, null, nvl(to_char(src_data_precision), ' ') || ', ' || nvl(to_char(src_data_scale), ' ') || ')') end end || case when tgt_nullable = 'Y' then ' null ' else ' not null ' end || tgt_cons when tgt_col_name is null then 'alter table ' || tgt_table_name || ' add ' || src_col_name || ' ' || ' ' || ' ' || src_data_type || ' ' || case when src_data_type in ('DATE') then null else case when src_data_type in ('VARCHAR', 'VARCHAR2')then '('|| nvl(to_char(src_data_len), ' ') || ') ' else decode(nvl(src_data_precision, -1), -1, null, nvl(to_char(src_data_precision), ' ') || ', ' || nvl(to_char(src_data_scale), ' ') || ')')end end || tgt_cons when src_col_name is null then 'alter table '|| tgt_table_name ||' drop '||tgt_col_name end alter_statement from col_details) where alter_statement is not null", conn1))
{
var result = crtCommand.ExecuteScalar();
if (result != null)
{
richTextBox1.AppendText(Environment.NewLine);
richTextBox1.AppendText(result.ToString() + ";");
richTextBox1.AppendText(Environment.NewLine);
}
else
{
continue;
}
}
}This is the same query:
with the CBC as
(
Select src.table_name src_table_name, src.column_name src_col_name, src.data_type src_data_type, src.data_length src_data_len, src.data_precision src_data_precision, src.data_scale src_data_scale,
CBC. Nullable src_nullable, decode (T.Constraint_Type, 'P', 'Primary Key', 'U', 'Unique', ") as src_cons
all_tab_columns CBC
left join (select Cc.Column_Name, Uc.Constraint_Type
of user_cons_columns cc, uc user_constraints
where Cc.Constraint_Name = Uc.Constraint_Name
and Cc.Table_Name = Uc.Table_Name) t
on T.Column_Name = Src.Column_Name
where table_name = ' EMPLOYEE worker ' and owner = "ERHAN"
),
As TGT
(
Select tgt.table_name tgt_table_name, tgt.column_name tgt_col_name, tgt.data_type tgt_data_type, tgt.data_length tgt_data_len,
TGT.data_precision tgt_data_precision, tgt.data_scale tgt_data_scale, tgt.nullable tgt_nullable,
Decode (T.Constraint_Type, 'P', 'Primary Key', 'U', 'Unique', ") as tgt_cons
from all_tab_columns tgt
left join (select Cc.Column_Name, Uc.Constraint_Type
of user_cons_columns cc, uc user_constraints
where Cc.Constraint_Name = Uc.Constraint_Name
and Cc.Table_Name = Uc.Table_Name) t
on T.Column_Name = TGT. Column_Name
where table_name = 'EMPLOYEE' and owner = "SARIGUL"
),
col_details as
(
Select src.src_table_name, nvl (tgt.tgt_table_name, first_value (tgt_table_name) more (order of nulls last tgt_table_name)) tgt_table_name;
SRC.src_col_name, src.src_data_type, src.src_data_len, src.src_data_precision, src.src_data_scale, src.src_nullable, src_cons,
TGT.tgt_col_name, tgt.tgt_data_type, tgt.tgt_data_len, tgt.tgt_data_precision, tgt.tgt_data_scale, tgt.tgt_nullable, tgt_cons
the CBC
outer join full tgt
on)
SRC.src_col_name = tgt.tgt_col_name
)
)
Select *.
BeO
Select the case sensitive option
When tgt_data_type! = src_data_type or tgt_data_len! = src_data_len or tgt_data_precision! = src_data_precision or tgt_data_scale! = src_data_scale or tgt_nullable! = src_nullable
then 'alter table ' | tgt_table_name | 'Edit ' | tgt_col_name | ' ' || src_data_type | ' ' ||
-case when src_data_type null ('DATE') then
on the other
case
When src_data_type in ('VARCHAR', 'VARCHAR2')
then ' (' |) NVL (to_char (src_data_len), ' ') | ') '
otherwise decode (nvl (src_data_precision-1),-1, null, nvl (to_char (src_data_precision), ' ') |) ', ' || NVL (to_char (src_data_scale), ' ') | ')')
end
end
||
cases where tgt_nullable = 'Y' then 'null '.
of another end 'not null '.
|| tgt_cons
When tgt_col_name is null
then 'alter table ' | tgt_table_name | 'Add ' | src_col_name | ' ' || ' ' || ' ' || src_data_type | ' ' ||
-case when src_data_type null ('DATE') then
on the other
case
When src_data_type in ('VARCHAR', 'VARCHAR2')
then ' ('| nvl (to_char (src_data_len), ' ') |) ') '
otherwise decode (nvl (src_data_precision-1),-1, null, nvl (to_char (src_data_precision), ' ') |) ', ' || NVL (to_char (src_data_scale), ' ') | ')')
end
end
|| tgt_cons
When src_col_name is null
then 'alter table' | tgt_table_name: ' drop '. tgt_col_name
end alter_statement
of col_details
)
where alter_statement is not null;
After reading the post, I could not understand if you mean that the problem is with your query or the code displays the result on your UI.
The query returns a correct result when it is run on SQL Prompt?
If this is the case, then perhaps problem exists with your logic to assign variables. Maybe, you need a loop in the set of results rather that by assigning them once. Or maybe not, because I do not know what language you are using.
var result = crtCommand.ExecuteScalar(); if (result != null) { richTextBox1.AppendText(Environment.NewLine); richTextBox1.AppendText(result.ToString() + ";"); richTextBox1.AppendText(Environment.NewLine); } else { continue; }
If you say, there is problem with the query, it's a good place to ask your question, but you must provide the Table definitions that can be replicated.
If the query works fine, then maybe consider posting this question at an appropriate forum (c#).
-
Add the value of point two apex and display the result in another part of the apex
Hello
I need to make the addition of the two item values using apex.item.text and find the result in another apex.item.text.
For example:
please suggest meSELECT
apex_item. Text(1,null) ONE
apex_item. Text(2,null) TWO
apex_item. Text(3,null) RESULT
FROM EMP
Thank you
Sudhir>
No it does not add the two values in the column, user key to enter the value, it must add the value of the item and displays the result in a dynamic way. Need a suggestion for using javascript
>
This requirement was not not clear in the op.See the demo of Denes Kubicek.
This topic is discussed far too often. Have you tried to Oracle Application Express (APEX) and adapting one of the many examples of LoV cascading to your situation?
See you soon,.
PS: Tip:
Look for the p_item_id and p_attributes of the APEX_ITEM API parameters.
You can call JS functions for example using p_attributeAPEX_ITEM.TEXT(... p_attributes => 'onchange="doTotal(this);"', /* doTotal being your JS Function */ ...
Published by: Dominic August 16, 2012 11:52
Maybe you are looking for
-
I have emails that require some points to address such as "Please fix leak in the bathroom sink' and then the next line will be another application and so on. I would like to answer each question at the end of each line with a response (preferably in
-
help me to remove password biose computer hp mini 110
help me remove biose password hp mini 110 s/n [under the direction of personal information]
-
I downloaded a free software to open PDF files from 'freeze' and got a bunch of unwanted extras... .free freezing games, etc. I didn't download Adobe because they include google chrome, which has a bad reputation
-
3210 all-in-in-one: 3210
Hi my printer after several years of work ok started just to eject a simple sheet of paper before starting to print. If I print several pages it does only at a beginning of a suite. If printing at the same time, she does every time, so I have to keep
-
cannot get rid of the notice of no messages in Windows Live Mail
Recently, when I leave Windows Live Mail, the box ' you sent messages - you want to send then now "appears every time when I know that there are no unsent messages. I think it started when I tried to send an e-mail response to a person who answered