How to get multiple columns of a 2d array in a loop
I tried to select several columns in a 2D array and form a new table that will be my final data.
I have the program below. I would like to know if there is a smart way to do it with the help OF the loop.
I tried once but without success.
Autoindexing is your friend.
Sure it should work.
Tags: NI Software
Similar Questions
-
Hi all,
I'm sorry to ask this question because I found 2 different answers, tried without result. So before you go crazy, I prefer to ask!
Thus given mySelection = app.selection [0], how is possible to get the column's selection?
I tried app.selection [0] .parentTextFrames [0].characters.itemByRange (0, x)
with x being app.selection [0] .index.
but then I'm stuck as if I add ".textColumns", I get an error
I explored the second way using app.selection [0].textColumns.item (1).insertionPoints.item (1), but once I'm stuck again.
As a beginner I don't understand why there is no simple built-in function to call in order to obtain such a result of base
Any help would be appreciated
Thank you
Ed
Okay here goes,
For and only for the linked text frames.
// For and only for linked text frames. // Warning // The Good: This will PROBABLY work for you // The Bad :THIS IS A REALLY PRIMITIVE METHOD // The Ugly: It could fail in COUNTLESS cases // Here goes...... var mySelection, textFrame, parentPage, c; mySelection = app.selection[0]; textFrame = mySelection.parentTextFrames[0]; parentPage = textFrame.parentPage; c = 0; while(textFrame && textFrame.parentPage === parentPage){ textFrame = textFrame.previousTextFrame; c++; } alert('Column number: ' + c);
Now with regard to the issue of the image columns bound text compared to the blocks of text with multiple columns of text or span. Depends on what you're trying to achieve with your workflow.
The scripts are around written by me and others who convert multicolumn text executives to related texts related and vice versa.
If you want to know which is more appropriate you can use with your workflow, then I suggest the regular ID forum.
HTH
Trevor
-
How to get a column on the road report
Hi all
I have a table that has a leave_start_date and leave_end_date of separate columns. Now, I want to create report to list the employee who took part in some days. I want to show it to every weekend (Friday as weekend bu using NEXT_DAY (TRUNC (to_date (start_date), 'IW'), 'FRIDAY')). There are employees who get up early for most of the week, or in some cases more than a month. so now, I want to show that those who leave details for each weekending. I don't know how to get every weekend for leaves starting November 7, 14 and end 21 January 2014.
can anyone help me please with the query to get the column weekends like
ENAME LEAVE_START LEAVE_END End of WEEK JOHN AUGUST 31, 2014 21-SEP-2014 AUGUST 29, 2014 JOHN AUGUST 31, 2014 21-SEP-2014 05-SEP-2014 ......
ENAME LEAVE_START LEAVE_END End of WEEK JOHN AUGUST 31, 2014 21-SEP-2014 20-SEP-2014 .
Thanks in advance
Something like that... ?
with min_max_dates like)
Select min (LEAVE_START_DATE) min_LEAVE_START_DATE, max (LEAVE_END_DATE) max_LEAVE_END_DATE
of Leave_details
)
-Make all dates for the weekend Fri, sat and Sun for the max min above range
, weekend_dates as (select case when to_char (level - 1, 'Dy' + min_LEAVE_START_DATE) in ("sat", "Sun", "Sat") then min_LEAVE_START_DATE + level - 1)
otherwise null terminator weekend_date
of min_max_dates
connect by level<=>=>
)
Select ld.ename, ld.leave_start_date, ld.leave_end_date, wd.weekend_date
of ld leave_details
weekend_dates WD
where wd.weekend_date between ld. LEAVE_START_DATE and ld. LEAVE_END_DATE
and ld.ename = "JOHN".
order by ename, weekend_date
;
-
How to get a column using the logical AND operator on two columns?
All columns are the VARCHAR2 data type.
I got out of the table in this way:
col1 col2
but I want an extra column in this way:
True True
True false
False falsecol1 col2 result
as the clear sound output shows this column resut is logical operator AND
True True True
True false false
Fake fake fake
col1 and col2. How to get there?WITH t AS (SELECT 'True' col1, 'True' col2 FROM DUAL UNION ALL SELECT 'True' col1, 'False' col2 FROM DUAL UNION ALL SELECT 'False' col1, 'True' col2 FROM DUAL UNION ALL SELECT 'False' col1, 'False' col2FROM DUAL) SELECT col1,col2,CASE WHEN col1 = 'True' AND col2 = 'True' THEN 'True' WHEN col1 = 'True' AND col2 = 'False' THEN 'False' WHEN col1 = 'False' AND col2 = 'True' THEN 'False' WHEN col1 = 'False' AND col2 = 'False' THEN 'False' END AS RESULT FROM t
-
How to get multiple license for Adobe Standard?
Our company wants to buy 3-5 for Adobe Standard licenses. Can you tell me how to get them?
Thank you
Becky RMB
Hi David,
You can easily purchase several licenses for the product that you want.
Adobe gives you an option to purchase volume licenses.
Please visit the links below to be updated on the Volume licensing and choose the relevant purchase program.
http://www.Adobe.com/volume-licensing.html?promoid=ITLHM
http://www.Adobe.com/in/volume-licensing/benefits-by-role.html
I'm sure this will help.
Concerning
Sukrit diallo
-
How to get individual columns within an itemrenderer?
Hey,.
I was wondering if it is possible to get the column of a datagrid in an itemrenderer? I have a datagrid with 4 columns. I would use an itemrenderer for each of them. Is it possible within the itemrenderer which gets the individual column for me. For example
ItemRenderer:
DataGrid1 = datagrid (parentDocument as file name);
If (datagrid1. "selectedColumn"(==0) {} "
doThis();
}
If (datagrid1. "selectedColumn"(==1) {} "
doThat();
}
Is something like this?
Thank you!
Concerning
Kat
If your converter implements the IDropInListItemRenderer, you can figure out the column that you represent by examining the listData property
Alex Harui
Flex SDK Developer
Adobe Systems Inc..
-
How to get the 'index' of an associative array?
Hello
Is it possible to get the 'index' of an associative array?
I saw say about 3000 ID.
Corresponding to each of these identifiers, thre is a 'key' (the 'key' can repeat for different ID)... tell key1, key2, key3.
Now, I want to show the top of page 8 keys ().
Could you please tell me how can I do this?
ConcerningDon't know what you are exactly looking for.
To get the index of an array of assotiative you should do something like
SQL> declare type arr is table of number index by varchar2 (5); var arr; idx varchar2 (5); begin -- fill the array for id in 1 .. 12 loop var ('key' || to_char (id, 'fm00')) := id; end loop; -- get the keys idx := var.first; dbms_output.put_line (idx); while idx is not null loop idx := var.next (idx); dbms_output.put_line (idx); end loop; end; / key01 key02 key03 key04 key05 key06 key07 key08 key09 key10 key11 key12 PL/SQL procedure successfully completed.
-
How to get multiple records in a line and a different column
Hi all
I am using oracle database 11g
and I have a two table table_1, table_2
table_1 has columns
emp_no
first name
middle_name
last_name
E-mail
and table_2 have columns
emp_no
phone_type
Phone_Number
and having entires
emp_no phone_type phone_number
1001 MOB 9451421452
1001 WEMG 235153654
1001 652341536 EMG
1002 MOB 9987526312
1003 WEMG 5332621456
1004 59612356 EMG
Now I want the output of values with the MOB or WEMG phone type in a single line with different columns
emp_no first_name last_name middle_name officeno mobile e-mail
1001 score null k 9451421452 235153654 [email protected]
1002 chagneau gary [email protected] 9987526312 null
1003 dany craig [email protected] 5332621456 null null
1004 donald finn sian [email protected] null null
Can I have any input to achieve this?
Concerning
$sidHi Sid,
Under query will be help for you...
SELECT tab1.emp_no
*, first name *.
*, middle_name *.
*, last_name *.
*, email *.
*, mobile t2.phone_number *.
*, t3.phone_number officeno *.
OF tab1
*, (SELECT Emp_no *)
*, phone_number *.
Of THE tab2
WHERE phone_type = "MOB") t2
*, (SELECT Emp_no *)
*, phone_number *.
Of THE tab2
WHERE phone_type = "WEMG") t3
WHERE tab1.emp_no = t3.emp_no
AND tab1.emp_no = t2.emp_no;Thnks,
cveluri -
How to get the column provided out of the Oracle Data Miner?
Hi all!
I use Oracle Data Miner provided with Oracle SQL Developer to predict the loss of customers. If I plan on the table column lets say X (as a target column) of table say T, so how can I get the corresponding values under my model?
Here is the simplified model for the reference.
Thanks in advance!
Hello
Simply connect a node that accepts data to the node to apply it.
For example, if you want to create a view or table table using the prediction of outputs generated by the node to apply it, and then add a Create Table node and connect the node to apply it.
For more information, try the Oracle by example tutorials for ODMr.
You must use the node apply Publisher to revise prediction outputs models to generate as well as the additional columns to include, for example columns id.
There are a set of predictor columns added by default that may be acceptable.
THX, mark
-
How to get <; af:column >; in the bean using findComponent
Hello
I get null if I find the component with id in the bean. The component exist however in the JSP. Can someone tell me how we please? I'm trying to set the text for the header of the bean.
in the bean<af:panelCollection id="pc1" inlineStyle="width:900px;"> <f:facet name="menus"/> <f:facet name="toolbar"/> <f:facet name="statusbar"/> <af:table value="#{bindings.Invoice.collectionModel}" var="row" rows="#{bindings.Invoice.rangeSize}" emptyText="#{bindings.Invoice.viewable ? 'No data to display.' : 'Access Denied.'}" fetchSize="#{bindings.Invoice.rangeSize}" rowBandingInterval="0" selectedRowKeys="#{bindings.Invoice.collectionModel.selectedRow}" selectionListener="#{bindings.Invoice.collectionModel.makeCurrent}" rowSelection="single" id="invoiceTable"> <af:column sortProperty="OrganizationName" sortable="true" headerText="#{bindings.Invoice.hints.OrganizationName.label}" id="c16">
RichColumn crdWrtRfncolumn = (RichColumn)context.getViewRoot().findComponent("c26"); if(crdWrtRfncolumn != null){ log.info(">>>>> Column 2 " + ((RichColumn)context.getViewRoot().findComponent("c16")).getId()); crdWrtRfncolumn.setHeaderText(crdWrtRfndamountColumnLabel); }
Check [url http://forums.oracle.com/forums/thread.jspa?threadID=970889] this post.
~ Abhijit
-
How to use multiple columns for the bookmarks instead of column 1
Bookmarks always appear in a single column. As I have a lot you have to scroll to see all.
How can I set bookmarks in several columns so that I can see them all at the same time.
You can use the above. The Bookmark Manager works just like the
folders on your computer. Create folders by using the sort and general name
your list in these files. In addition, when you open the Manager, it
a search box is at the top right. -
How to get the column headers into an Excel report with variable width columns?
Hello:
I read this question before but I can´t open the link when I try to download the solution I get the following: status HTTP 404 the requested resource is not available.
Can someone help me with the solution? I want to just put a heading for each column (1 thermocouple, thermocouple 2, anemometer, etc.).
In advance, thank you for your help!
You may need to take some tutorials.
LabVIEW Introduction course - 3 hours
LabVIEW Introduction course - 6 hours -
Hallo,
I want to create a method that takes as a parameter the id of an af:table (used to display the search results) and returns:
- the column headings of the af: table
- Visible property (true/false) of the columns af:table
- the actual query of the VO instance used to create the af: table
- the values of real bind variables passed to the query of the instance of VO
I would like to create a servlet which takes the parameters reruns the query and returns a report Excel/PDF file that contains exactly the same columns and same of the af records: table.
I'm a little confused on who use the code to achieve this... you kindly help me?
I did a similar qustion here
but then I guessed that it was preferable to create a new thread.Thank you
Federico
For this, you can use this type of code
Context LocaleContext = _adfTableBinding.getLocaleContext ();
for (attr AttributeDef: attributeDef) {}
Label As String = attr.getUIHelper () .getLabel (context);
_logger.info ("Attritbute name:" + attr.getName () + "column name:" + attr.getColumnName () + "Col4Query name:" + attr.getColumnNameForQuery () +)
"Name:"+ label);
}
which produces this output
Timo
-
How to get the columns of the table based on different conditions in one column?
Hello
I have two sql queries-
Select sum (col1) sum1 Tab1
where join_date > (sysdate - 1).Select sum (col1) sum2 of Tab1
where join_date > (sysdate-4)I need to use a single query to get sum1 and sum2 data in a single line.
Can someone help please how?Like this? select sum(case when join_date > (sysdate - 1) then col1 else null end) sum1 , sum(col1) sum2 from tab1 where join_date > (sysdate - 4)
-
How to get the column and the row of winding of title in a custom section?
In default, the title of column and line's not winding print when the specification in the Chinese environment.
How to make them winding?
Thank you
Please change ExtendedAttributes$ xlate$ .xsl EASectionTable section of the file in the folder/reports/FO
as below:
Maybe you are looking for
-
IOS 9.2.1 camera records more photos on iPhone!
I had an iPhone since version 1.0 and IOS since version 1.0. I currently have an iPhone 6 and who has been in my possession for about 1 year, works perfectly. He has had several revisions to IOS during this period and it worked flawlessly... NOW, I
-
Cannot change the brightness of the display on my Qosmio X 770
I don't know what happened... After I bought the laptop (X 770-107) computer I each time improved to 7 Ultimate, then I joined a domain network. After a while I can't press the eco button, he said that some options cannot be changed... Now ive had th
-
RD450 MMR, BMC, TSM TMM default username and password
Someone can point out the default username / password for the management system? Also, since it's ridiculously difficult to find these passwords, anyone have a list of all? We should post to keep them in one place. My favorite is the rd450 manual say
-
Snip can be used to copy and paste If yes how
original title: snip Snip can be used to copy and paste If yes how
-
Problems with 2 updates continually want to download, KB2572073 and KB2518864.
Hello Check the forums I see I'm not the only person today to have updates "KB2572073" and "KB2518864" continually want to install on my xp professional OS. When I check my editing history, he said that they succeeded, and before I caught I don't da