View selector and column selector one row
Hi Kings,
Thanks in first.
im having view selector v1,column selector c1
user requiremet is to show the view selector and column selector in single row like,
V1 pivot1 c1 usd
rownumber Company currency
1 abc USD
2 def INR
is there ay posibilities to show view selector ad column selector in a single row?
Please help on this..its going nearly a week..
Regards,
Junior........
Hi Sai,
Thank you.
My need is to show (from your example) like,
chart along with Region,market,currentdate in top of results..
more clear ..
viewselector V1 column selector C1
rownum company
1 abc
2 def
ie,column selector and view selector should be appear top of the results.
please remeber im using 2 pivot tables in view selector.
if i select pivot1 then all details are coming left side .
column selector is coming right side of all results.
any ideas...please...
regards,
Junior...
Similar Messages
-
How to Plot number and string in one row (data logger counter) ?
hi all i made data log quantity using Digital Counter via modbus to monitoring quantity and reject that has and Name Operator, Machine and Part Number.
i have problem about plot the number & string in one row, as shown on the picture below :
how to move that string on one row ? i attach my vi.
Thanks~
Attachments:
MODBUS LIB Counter.vi 39 KBDuplicate and answered - http://forums.ni.com/t5/LabVIEW/How-to-Plot-number-and-string-in-one-row-data-logger-counter-via/m-p...
-
Printing 1 Label in Row and Column Other Than Row 1, Column 1
I want to print 1 label and want to print it on Avery label stock in a row and column other than row 1, column 1. I'm using Avery Labels 8163. I can select the row and column I want to print on in Word but can't figure out how to do it in *Address Book*. Anyone know how to do this?
You can't do that in Addrress Book. But you can use pearLabelizer to do that. Be sure you download and install the appropriate Label Definition file and name it as such so you can select it from the pop-up list in the program's Preferences window.
-
Select Single * and Select upto one row
Hi all,
Can anybody tell me what is difference between Select single * and select upto one row?
And which one is better?
Thanks in advance.......According to SAP Performance course the SELECT UP TO 1 ROWS is faster than SELECT SINGLE because you are not using all the primary key fields.
select single is a construct designed to read database records with primary key. In the absence of the primary key, it might end up doing a sequential search, whereas the select up to 1 rows may assume that there is no primary key supplied and will try to find most suitable index.
The best way to find out is through sql trace or runtime analysis.
Use "select up to 1 rows" only if you are sure that all the records returned will have the same value for the field(s) you are interested in. If not, you will be reading only the first record which matches the criteria, but may be the second or the third record has the value you are looking for.
The System test result showed that the variant Single * takes less time than Up to 1 rows as there is an additional level for COUNT STOP KEY for SELECT ENDSELECT UP TO 1 ROWS.
The 'SELECT SINGLE' statement selects the first row in the database that it finds that fulfils the 'WHERE' clause If this results in multiple records then only the first one will be returned and therefore may not be unique.
Mainly: to read data from
The 'SELECT .... UP TO 1 ROWS' statement is subtly different. The database selects all of the relevant records that are defined by the WHERE clause, applies any aggregate, ordering or grouping functions to them and then returns the first record of the result set.
Mainly: to check if entries exist.
Select Single is the best one compared to UPto one rows.
Select Single will get the first record from the table which satisfies the given condition.So it will interact once with the database.
UTO 1 rows will get the list of the records for the given match and iwll show the first record from the list.So it will take time to get the record.
SELECT SINGLE VBELN from VBAK
where MATNR = '1M20'.
---Thjis will get the first matched record and will display the record
SELECT VBELN from VBAK
where MATNR = '1M20' upto 1 rows.
---Thjis will get the list of matched records and will display the first record
The Major difference between Select Single and Select UPTO 1 rows is The Usage Of Buffer for each.
Select Single will search for all the satisfied data and bring all that data into Buffer and later it will give to that data to the program.
Select UPTO 1 Rows will end the search after getting the 1st satisfied record and gives that record to the program.
Thus Select Single will take much processing time when compare with Select UPTO 1 rows.
Also
check these threads..
Difference between Select Single and Selct upto 1 row
Difference between Select Single and Select upto 1 row
Difference between select single and select upto one row
Difference between 'select single *' and 'select upto 1 rows'
difference between select single and select up to 1 rows
regards,
srinivas
<b>*reward for useful answers*</b> -
Diff bw select single * and select upto one row
hai,
what is the difference between select single * and select upto one row.hi,
ex code
Report Z_Difference
Message-id 38
Line-Size 80
Line-Count 0
No Standard Page Heading.
Start-Of-Selection.
Data: w_Single type Posnr,
t_Rows type standard table of Posnr
initial size 0
with header line.
Select single Posnr
from zDifference
into w_Single.
Select Posnr
into table t_Rows
from zDifference
up to 1 rows
order by Posnr descending.
Write :/ 'Select single:', w_Single.
Skip 1.
Write :/ 'Up to 1 rows :'.
Loop at t_Rows.
Write t_Rows.
EndLoop.
According to SAP Performance course the SELECT UP TO 1 ROWS is faster than SELECT SINGLE because you are not
using all the primary key fields.
select single is a construct designed to read database records with primary key. In the absence of the primary key,
it might end up doing a sequential search, whereas the select up to 1 rows may assume that there is no primary key
supplied and will try to find most suitable index.
The best way to find out is through sql trace or runtime analysis.
Use "select up to 1 rows" only if you are sure that all the records returned will have the same value for the field(s)
you are interested in. If not, you will be reading only the first record which matches the criteria, but may be the
second or the third record has the value you are looking for.
The System test result showed that the variant Single * takes less time than Up to 1 rows as there is an additional
level for COUNT STOP KEY for SELECT ENDSELECT UP TO 1 ROWS.
The 'SELECT SINGLE' statement selects the first row in the database that it finds that fulfils the 'WHERE' clause
If this results in multiple records then only the first one will be returned and therefore may not be unique.
Mainly: to read data from
The 'SELECT .... UP TO 1 ROWS' statement is subtly different. The database selects all of the relevant records that
are defined by the WHERE clause, applies any aggregate, ordering or grouping functions to them and then returns
the first record of the result set.
Mainly: to check if entries exist.
You can refer to the below link..
http://www.sap-img.com/abap/difference-between-select-single-and-select-upto-one-rows.htm
rgds
anver
if hlped pls mark points -
How to Plot number and string in one row (data logger counter via MODBUS) ?
hi all i made data log quantity using Digital Counter via modbus (RS-485) to monitoring quantity and reject that has and Name Operator, Machine and Part Number.
i have problem about plot the number & string in one row, as shown on the picture below :
how to move that string on one row ? i attach my vi.
Thanks~
Solved!
Go to Solution.
Attachments:
MODBUS LIB Counter.vi 39 KBHi rhiesnand,
right now you add 2 new rows to your array.
The solution is to concatenate both row parts to one bigger 1D array before adding that array as new row to your 2D array!
Like this:
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome -
List view threshold and columns manage metadata problems
Hi
We have problem in our company since we have more files in library than is set in List view Threshold.
I have created index on column "year" and create view filter: Year is equal 2015.
and I get famous error: this view cannot be displayed because....
I haven`t find any limitations on column type: manage metadata?Hi,
As I understand, you encountered the issue after you created view filter.
Every column type has the default number that can be created. You should go to check the number of your column created is less than the number by default.
Per my test, I can achieve it without exceeding list view threshold.
Check things below:
1. You can increase the number of the list view threshold, and after that, you can try again to see the same situation will occur.
2. Go to create another managed metadata column “year”, and create index on column "year", and create view filter in the same list to see the issue will occur.
3. Check ULS log to see the details about the cause of the issue.
Best regards,
Sara Fan -
Dimension only query to show manager and employees in one row
Hi Gurus,
I am creating a dimension only report. This report will show managers and their direct reportees. Since one manager can have several employees working under him, I am getting one row in the report for each employee. But our end users want employees to appear as comma seperated value for the manager. Thus each manager will have one and only one record in the report
Current
======
Manager Employee
M1 E1
M1 E2
M1 E3
Expected
=======
Manager Employee
M1 E1, E2, E3
Env : OBIEE 10.1.3.4 & Oracle 10.2.0.3.0
Thanks for your help in advanceGoogle ask Tom for string aggregation - there is a listagg equivalent available there, create on your DB then follow the same principal as the listagg / evaluate example.
regards,
Robert. -
Dict View name and column names
Hi,
Oracle 11.2.0.1
Windows XP
I wish to get the output of all the dictionary views with their name and column names something like this :
VIEW NAME
Name Null? Type
VIEW NAME
Name Null? Type
...Please tell me how do I get the above output for all the dict view from dict table.
Thanks.Step 1:
set serveroutput on;
set feed off;
set head off;
set pages 200;
spool dict.sql;
declare
tn varchar2(50);
cursor c is select table_name from dict order by table_name;
begin
open c;
loop
fetch c into tn;
dbms_output.put_line('begin');
dbms_output.put_line('dbms_output.put_line(' ||chr(39) || tn ||chr(39) ||');');
dbms_output.put_line('end;');
dbms_output.put_line('/');
dbms_output.put_line('desc ' || tn || ';');
exit when c%NOTFOUND;
end loop;
close c;
end;
Step 2:
Just edit dict.sql to remove top and bottom lines.
spool dictcols.txt
@dict.sql;
spool off;
But, this is not a good way to obtain your desired output. I am sure, other members can do it very smartly and efficiently.
Regards
Girish Sharma -
Multiple rows to multiple columns on one row using SQL
Hi
I am attempting to select back multiple values for a specific key on one row. See the example below. I have been able to use the sys_connect_by_path to combine the fields into one field but I am unable to assign them to fields of their own. See the example below
TABLE DETAILS:
Policy id plan name
111 A Plan
111 B Plan
111 Z Plan
112 A Plan
112 Z Plan
My desired result is to be able to show the output as follows
Policy ID Plan_1 Plan_2 Plan_3
111 A Plan B Plan Z PLan
112 A Plan Z PLan
Can you help???Thanks for all the replies. Perhaps I could give a little more detail incldung a sample table and insert statements. The repsonses work fine but the problem I was having was that I did not want to have to hardcode in the plan_name to a decode statement. The list of plans is not exhaustive. There could be numerous different plans in the table. I have amended the details below slightly to try and give a little more information as I was probably not too clear at the start. Would you know if there is a way to do this without hardcoding the plan values in?
Thanks in advance!
CREATE TABLE TEST_SAMPLE (
POLICY_NUMBER VARCHAR2(10),
plan_name varchar2(20) );
INSERT INTO TEST_SAMPLE VALUES ('111', 'A Plan');
INSERT INTO TEST_SAMPLE VALUES ('111', 'B Plan');
INSERT INTO TEST_SAMPLE VALUES ('111', 'C Plan');
INSERT INTO TEST_SAMPLE VALUES ('112', 'J Plan');
INSERT INTO TEST_SAMPLE VALUES ('112', 'Z Plan');
My desired result is to be able to show the output as follows
Policy ID Plan_1 Plan_2 Plan_3
111 A Plan B Plan C PLan
112 J Plan Z PLan -
Remove JTable row and column in one event
Hello,
I 've using matrix table in one application.
i need to remove both column and row in single event.
For this i construct
JTable(data[][], header[]);
because dynamically increase data's and header's
What can i do for this?Create a method that does:
DefaultTableModel model = (DefaultTableModel)table.getModel();
model.removeRow(...)
model.setRowCount(...)
Read the DefaultTableModel API for more information. -
Issue with pulling down one view controller and posting another one
I have a situation where I need to post a modal view when another one is closed by the user.
Say i have a EULA a user must accept before continuing and once the EULA is accepted I want to show a Splash screen which is another View controller.
So essentially when the user accepts the EULA, the EULAViewController calls its delegate's eulaAccepted method. In this case the delegate is a view controller inherited from UIViewController object.
- (void) eulaAccepted {
// Dismiss the EULA controller first
[self dismissModalViewController animated:YES];
// Now show the splash screen to the user
SplashController *splash = [[SplashController alloc] init];
[self presentModalViewController:splash animated:YES];
[splash release];
When I do this, the code sort of goes into recursive loop with lot of the following in the stack:
UIView(Hierarchy) _makeSubtreePerformSelector:withObject:withObject:copySublayers:
If I present the splashController in another method which I invoke after a certain delay then it works fine. But the timing is again an issue since it works on some devices and not on others. So I do not like that solution.
What is the best practice to handle such situations? I was under the impression that the OS would sequence these animations and perform one after the other and I would not have to worry about them but doesn't look like it works that way.
Would greatly appreciate your inputs.
TIA,
-TRSHere is what I did. I overrode the presentModalViewController:animated: and then if a controller is already posted, I start a thread which waits for the old one to be pulled down before the new one is posted.
There could still be a problem here if postModalViewController is called before another one has been posted since then self.modalViewController will still be nil. But the UIViewController can deal with it. My current issue is posting one when another is being pulled down, not posting 2 views at the same time
This works but I still would like to know if there is a better way to handle such situations.
-TRS
// Invoke the super with animation set to YES
- (void) presentModalViewControllerWithAnimation:(UIViewController *) vc {
[super presentModalViewController:vc animated:YES];
// This method should be invoked in its own thread
// If there is a modal controller already posted then wait for it to be pulled down before posting this one
- (void) checkAndPresentModalViewControllerWithAnimation:(UIViewController *) vc {
while (self.modalViewController != nil) {
[NSThread sleepForTimeInterval:0.1];
[self performSelectorOnMainThread:@selector(presentModalViewControllerWithAnimation:) withObject:vc waitUntilDone:NO];
// Invoke the super with animation set to NO
- (void) presentModalViewController:(UIViewController *) vc {
[super presentModalViewController:vc animated:NO];
// This method should be invoked in its own thread
// If there is a modal controller already posted then wait for it to be pulled down before posting this one
- (void) checkAndPresentModalViewController:(UIViewController *) vc {
while (self.modalViewController != nil) {
[NSThread sleepForTimeInterval:0.1];
[self performSelectorOnMainThread:@selector(presentModalViewController:) withObject:vc waitUntilDone:NO];
// Override the UIViewController method
// If no modal controller is yet posted then directly invoke the super's presentModalViewController:animated:
// If one is already posted then start a worker thread to wait for it to be pulled down before posting the new one
- (void) presentModalViewController:(UIViewController *) vc animated:(BOOL)animated {
if (self.modalViewController == nil) {
[super presentModalViewController:vc animated:animated];
} else {
if (animated) {
[NSThread detachNewThreadSelector:@selector(checkAndPresentModalViewControllerWithAnimation:) toTarget:self withObject:vc];
} else {
[NSThread detachNewThreadSelector:@selector(checkAndPresentModalViewController:) toTarget:self withObject:vc]; -
Concatenate Multiple columns to one Row - Oracle 10.1
Hi Friends,
I have the item id in the item table and list of warehouses in another table.
SDM_ITEM_TABLE
ITM_ID ITM_DESC
1 Baby Oil
2 Shampoo
SDM_OUTBOUND_LOG
ITM_ID WHS_ID
1 1
1 2
1 3
1 4
2 1
2 2
SDM_OUTBOUND_DESC
WHS_ID WHS_SNAME
1 NJ
2 WN
3 CA
4 CN
Expected Result
ITM_ID WHS_SNAME
1 NJ WN CA CN
2 NJ WN
I am using the below query to join the above 3 tables , but i am unable to concatenate the warehouse short names as displayed above.
select t.itm_id,(SELECT H.WHS_SNAME FROM SDM_OUTBOUND_DESC H WHERE H.WHS_ID = t.WHS_ID) WHS_SNAME
from SDM_OUTBOUND_LOG t, SDM_ITEM_TABLE i
where t.itm_id = i.itm_id
Please let me know how to proceed further in modifying the query to concatenate the warehouse names.
ThanksCentinul gave you the links to many examples.
You should try them all and find out how they work and let us know what parts are not clear.
Not sure why you are joining all three tables here, it looks like the desired resultset can be selected using
sdm_outbound_log and sdm_outbound_desc only?
One way of concatenating column values, is to use SYS_CONNECT_BY_PATH (but there are many more).
The query below reads from 'inside-out':
SQL> create table sdm_outbound_log as
2 select 1 itm_id, 1 whs_id from dual union
3 select 1, 2 from dual union
4 select 1, 3 from dual union
5 select 1, 4 from dual union
6 select 2, 1 from dual union
7 select 2, 2 from dual;
Table created.
SQL> create table sdm_outbound_desc as
2 select 1 whs_id, 'NJ' whs_sname from dual union
3 select 2, 'WN' from dual union
4 select 3, 'CA' from dual union
5 select 4, 'CN' from dual;
Table created.
SQL> select itm_id
2 , ltrim(replace( sys_connect_by_path(whs_sname, ',')
3 , ',', chr(32)
4 )
5 ) whs_sname
6 from ( select l.itm_id
7 , d.whs_sname
8 , row_number() over (partition by l.itm_id order by l.itm_id) rn
9 from sdm_outbound_log l
10 , sdm_outbound_desc d
11 where d.whs_id = l.whs_id
12 )
13 where connect_by_isleaf=1
14 start with rn=1
15 connect by rn=prior rn+1
16 and itm_id=prior itm_id;
ITM_ID WHS_SNAME
1 NJ WN CA CN
2 NJ WN
2 rows selected.So, in the innermost query we start by using row_number() to obtain a rownumber within each occurence of itm_id,
and then we connect by that rownumber and itm_id in the outermost query.
Since it looks like you want your values delimited by a space, I added a replace and a ltrim. -
I have real complex data (i,q data) for the ISAR imaging. I don't have any knowledge of Labview programming. I bought this signal processing toolset to use only stand-alone time-frequency analyzer.
In the LabVIEW functions palette on the block diagram, if you go to Numeric>>Complex you have to VI's that splits a complex number into rectangular or polar components. Click on the help file for those VI's to see the kind of datatypes you can wire to them.
Cyril Bouton
Active LabVIEW Developper -
Merge Two Rows of a table to One row but into two columns
Hi
I Am struck in writing a query to merge two rows into two columns of one row.
Here is the Sample data i am working with,
Col 1 Col 2 Col3 Col4 Col Col6
5000 573-3000 2 0 Phone
5000 573-3036 1 0 Fax
5000 893-5703 3 0 WOrk
3000 232-5656 1 0 Phone
3000 353-5656 2 0 FAx
Here Col,Col3,Col4 form the Key.
now wht i am trying to do is to Merge these type of rows put them into Columns P,F,W,E respectively to achive a Structure as below
Col1 P F W
5000 573-3000 573-3036 893-5703
3000 232-5656 353-5656
Can you please help me how could i do this.
I am pretty ordinary at writing SQL's.
Thanks a Lot in Advance
Message was edited by:
SreebhushanSearch the forum for PIVOT and you'll find plenty of examples.
Maybe you are looking for
-
Cannot get ODBC data source to talk to Oracle 10g for Windows
Problem description I recently installed Oracle 10g on my laptop computer, which is running Windows 7. Everything went smoothly except for one crucial item: The ODBC data source I added keeps returning this error when I click the "Test Connection" bu
-
Lumia 1020 Bluetooth use requires periodic re-star...
If Bluetooth is left on, after a period of time (typically 15m to 1hr). The WiFi and Blue tooth menu pages become unresponsive. The on/off switch remains greyed out and the only way to recover is with a restart of the phone. If the phone has paired (
-
Swipe left and right with magic mouse doesn't work in safari
Hey there, I accidently deleted something in the navigation bar in safari. Now when i swipe left and right with my magic mouse, it doesn't go to the previous pages anymore. But the wierd thing is it still works with my magic trackpad. And even wierde
-
Freely programmed search help with external mapping
Hi all. I have a freely programmed search help to search for physical inventory items. I map some data from the component where i use this search help to this search help via external mapping. This works fine. But in the search help I want to be able
-
When will ESR for CE 7.1.1 be available?
This is a question for the moderator or anyone working with the SAP group responsible for the Enterprise Services Repository. When will the ESR for EHP1 of CE 7.1 be available for download? Will it be available in SDN or in the Service Marketplace? C