How do I pull a line from a listbox to a string indicator?
I simply want to, during runtime, take a highlighted entry from a listbox and make that entry show up in a string control. This sounds like an easy problem but I just cant figure out how to do it. Any help is appreciated.
Thanks
You need to index out the ItemNames property:
Message Edited by smercurio_fc on 06-24-2008 03:27 PM
Attachments:
Example_VI_BD6.png 2 KB
Similar Messages
-
How to execute unix command line from cocoa?
how to execute unix command line from cocoa?
for example, if I want to call "ping" from cocoa, how should I do it? and how can I obtain the return value?
thank you.
Power G5 Quad Mac OS X (10.4.3)The following article may also help:
http://cocoadevcentral.com/articles/000025.php
Mihalis.
Dual G5 @ 2GHz Mac OS X (10.4.6) -
How do i read complete line from a text file in j2me?????
how do i read complete line from a text file in j2me????? I wanna read file line by line not char by char..Even i tried with readUTF of datainputstream to read word by word but i got UTFDataFormatException.. Please solve my problem.. Thanks in advance..
That is not my problem . i already read it char by char.. i am getting complete line..But this process is taking to much time..So thats why i directly wanna read complete line or word to save time..
-
How we will pull the data from Sap-Bi to sap-Bpc
Dear Experts,
Thanks for watching this thread.The whole data is available in SAP-BI.
My system environment is SAP-BPC MS7.5.
Now i want to load the data from Sap-Bi to Sap-Bpc ms.For that we need any Interfaces.
How we will pull the data from SAP-BI to BPC-MS for Master data and Transaction Data.
could you please provide me step by step guide.
Please guide me what should i do.
Regards,
Srinivasan.
Edited by: srinivasan.singari on Jul 22, 2011 8:20 AMTough Ask..
Because i have done dashboarding thru scritping (Dyanamic fashion tough) ..It is very good ..But when, coming to the one you asked i have the idea how it works but cannot really tell you wich would be better.
Each Route has its own limitations.That really depends on what exaclty your client is looking after..
So if you new to xcelsius and eager to learn ..I suggest you to give a go at all those..May be you can let me know wich is the best one..
1. QAWS,
2. Bex Query --> Crystal Reports --> Live office --> DashBoard.
3. Bex Query --> WebI --> Live Office --> Dashboard..
4. Webservices consuming BI Query,
5. Xcelsius SAP Netwever Connector.
But i suggest as of now use Xcelsius SAP netweaver Connnection... -
How do i pull a print from an ipod ideas sketch?
how do i pull a print of an ipod ideas sketch? I can't find a print button nowhere!
Okay, I found that, however it only prints on about a quarter of the 8.5x11 sheet. How do get it to print the sketches to fill a whole sheet, or at least get to print as big as the iPad screen itself?
Kim McCaw Ortiz <[email protected]> wrote:
Kim McCaw Ortiz http://forums.adobe.com/people/Kim+McCaw+Ortiz created the discussion
"Re: how do i pull a print from an ipod ideas sketch?"
To view the discussion, visit: http://forums.adobe.com/message/5615296#5615296 -
How can we delete a line from the table control .
hi all
how can we delete a line from the table control .
situation is.
created table control in se51 which will display the data of a table.
how could i select a line from the table control ?
how could i delete the selected lines form the table.
thanks in advanceChange the Table Control attributes such that user can only select a single record(row).
<u>Tip to delete a selected record</u>
1) write a module 'Mark' in the PAI as below
PROCESS AFTER INPUT.
MODULE cancel AT EXIT-COMMAND.
LOOP WITH CONTROL table_view.
MODULE read_table_control.
FIELD flag MODULE mark ON INPUT.
ENDLOOP.
MODULE user_command_0100.
2) Module Mark is below.
MODULE mark INPUT.
CHECK flag = 'X'.
x = table_view-top_line + sy-stepl - 1.
Delete itab INDEX x.
ENDMODULE. " mark INPUT
Table_view is the TableControl Name.
'flag' is of type char(1) available in the Internal table which was assigned to the select option in the table control.
<u>award if uesful</u>
Regards,
Sudheer -
How do i pull the battery from an iphone 5s
How do i pull the battery from an iphone 5s
If you open the phone, you will not get any support from Apple or the users at this site. You will not be able to get the phone serviced or replaced.
A google search will get you the answer you need.
~Lyssa -
How to skip first 5 lines from a txt file when using sql*loader
Hi,
I have a txt file that contains header info tat i dont need. how can i skip those line when importing the file to my database?
CheersDanny Fasen wrote:
I think most of us would process this report using pl/sql:
- read the file until you've read the column headers
- read the account info and insert the data in the table until you have read the last account info line
- read the file until you've read a new set of column headers (page 2)
- read the account info and insert the data in the table until you have read the last account info line (page 2)
- etc. until you reach the total block idenfitied by Count On-line ...
- read the totals and compare them with the data inserted in the tableOr maybe like this...
First create an external table to read the report as whole lines...
SQL> ed
Wrote file afiedt.buf
1 CREATE TABLE ext_report (
2 line VARCHAR2(200)
3 )
4 ORGANIZATION EXTERNAL (
5 TYPE oracle_loader
6 DEFAULT DIRECTORY TEST_DIR
7 ACCESS PARAMETERS (
8 RECORDS DELIMITED BY NEWLINE
9 BADFILE 'bad_report.bad'
10 DISCARDFILE 'dis_report.dis'
11 LOGFILE 'log_report.log'
12 FIELDS TERMINATED BY X'0D' RTRIM
13 MISSING FIELD VALUES ARE NULL
14 REJECT ROWS WITH ALL NULL FIELDS
15 (
16 line
17 )
18 )
19 LOCATION ('report.txt')
20 )
21 PARALLEL
22* REJECT LIMIT UNLIMITED
SQL> /
Table created.
SQL> select * from ext_report;
LINE
x report page1
CDC:00220 / Sat Aug-08-2009 xxxxp for 02/08/09 - 08/08/09 Effective Date 11/08/09 Wed Sep-30-2009 08:25:43
Bill to
Retailer Retailer Name Name on Bank Account Bank ABA Bank Acct On-line Amount Instant Amount Total Amount
======== ============================== ============================== ========== ==================== =============== =============== ===============
0100103 BANK Terminal raji 123456789 123456789 -29,999.98 9 0.00 99 -29,999.98
0100105 Independent 1 Savings 123456789 100000002 -1,905.00 9 0.00 99 -1,905.00
0100106 Independent 2 system 123456789 100000003 -800.00 9 -15.00 99 -815.00
LARGE SPACE
weekly_eft_repo 1.0 Page: 2
CDC:00220 / Sat Aug-08-2009 Weekly EFT Sweep for 02/08/09 - 08/08/09 Effective Date 11/08/09 Wed Sep-30-2009 08:25:43
Bill to
Retailer Retailer Name Name on Bank Account Bank ABA Bank Acct On-line Amount Instant Amount Total Amount
======== ============================== ============================== ========== ==================== =============== =============== ===============
Count On-line Amount Instant Amount Total Amount
============== ====================== ====================== ======================
Debits 0 0.00 0.00 0.00
Credits 3 -32,704.98 -15.00 -32,719.98
Totals 3 -32,704.98 -15.00 -32,719.98
Total Tape Records / Blocks / Hash : 3 1 37037034
End of Report
23 rows selected.Then we can check we can just pull out the lines of data we're interested in from that...
SQL> ed
Wrote file afiedt.buf
1 create view vw_report as
2* select line from ext_report where regexp_like(line, '^[0-9]')
SQL> /
View created.
SQL> select * from vw_report;
LINE
0100103 BANK Terminal raji 123456789 123456789 -29,999.98 9 0.00 99 -29,999.98
0100105 Independent 1 Savings 123456789 100000002 -1,905.00 9 0.00 99 -1,905.00
0100106 Independent 2 system 123456789 100000003 -800.00 9 -15.00 99 -815.00And then we adapt that view to extract the data from those lines as actual columns...
SQL> col retailer format a10
SQL> col retailer_name format a20
SQL> col name_on_bank_account format a20
SQL> col online_amount format 999,990.00
SQL> col instant_amount format 999,990.00
SQL> col total_amount format 999,990.00
SQL> ed
Wrote file afiedt.buf
1 create or replace view vw_report as
2 select regexp_substr(line, '[^ ]+', 1, 1) as retailer
3 ,trim(regexp_replace(regexp_substr(line, '[[:alpha:]][[:alnum:] ]*[[:alpha:]]', 1, 1), '(.*) +[^ ]+$', '\1')) as retailer_name
4 ,trim(regexp_replace(regexp_substr(line, '[[:alpha:]][[:alnum:] ]*[[:alpha:]]', 1, 1), '.* ([^ ]+)$', '\1')) as name_on_bank_account
5 ,to_number(regexp_substr(regexp_replace(line,'.*[[:alpha:]]([^[:alpha:]]+)','\1'), '[^ ]+', 1, 1)) as bank_aba
6 ,to_number(regexp_substr(regexp_replace(line,'.*[[:alpha:]]([^[:alpha:]]+)','\1'), '[^ ]+', 1, 2)) as bank_account
7 ,to_number(regexp_substr(regexp_replace(line,'.*[[:alpha:]]([^[:alpha:]]+)','\1'), '[^ ]+', 1, 3),'999,999.00') as online_amount
8 ,to_number(regexp_substr(regexp_replace(line,'.*[[:alpha:]]([^[:alpha:]]+)','\1'), '[^ ]+', 1, 5),'999,999.00') as instant_amount
9 ,to_number(regexp_substr(regexp_replace(line,'.*[[:alpha:]]([^[:alpha:]]+)','\1'), '[^ ]+', 1, 7),'999,999.00') as total_amount
10* from (select line from ext_report where regexp_like(line, '^[0-9]'))
SQL> /
View created.
SQL> select * from vw_report;
RETAILER RETAILER_NAME NAME_ON_BANK_ACCOUNT BANK_ABA BANK_ACCOUNT ONLINE_AMOUNT INSTANT_AMOUNT TOTAL_AMOUNT
0100103 BANK Terminal raji 123456789 123456789 -29,999.98 0.00 -29,999.98
0100105 Independent 1 Savings 123456789 100000002 -1,905.00 0.00 -1,905.00
0100106 Independent 2 system 123456789 100000003 -800.00 -15.00 -815.00
SQL>I couldn't quite figure out the "9" and the "99" data that was on those lines so I assume it should just be ignored. I also formatted the report data to fixed columns width in my external text file as I'd assume that's how the data would be generated, not that that would make much difference when extracting the values with regular expressions as I've done.
So... something like that anyway. ;) -
How can i remove a line from an ordinary text file?
It is easy to remove a line from a file by rewriting the file. how can i remove a line without rewriting ? Also, do not use whitespaces to overwrite the line. I expect a perfect line deletion code .....
gimbal2 wrote:
hsc71 wrote:
It's the way you communicate. Try to be carefull with the words you use in your post. It's easy to insult people just by choosing the wrong words. Bold text and capitals is equal to shouting.
shock. You said "wrong words". I am seriously offended by that!
Seriously, would you care that I am offended? I really hope not... Say what you want, people will find reasons to take offense one way or the other.Hehe, maybe you're right, but the OP still has no answer.............and in the end that's what he/she is looking for. -
How can I remove a line from a file?
how ca i remove one or more than one line from a text file?
Open the file for input.
Open another file for output.
Read each input line.
If you want to delete it, go get the next line
Otherwise, write the line to output, and go get the
next line.
Close both files. -
How do i remove a line from my family plan?
I need to remove a line from my family plan, how do i do it on the computer?
You can't cancel service on-line; you'll need to either call Customer Service or visit your local Corporate Verizon store.
-
How do I pull backup info from my itune account
How do I pull my back up photos from Itunes
You restore your iphone from your backup.
The backup is not for use of viewing on the computer. It is for restoring settings to your iphone.
Did you fail to import your photos to your computer? -
How To delete the Chosen line from the Table Control
Hi Friends,
i am new to Module Pool Programming , i developed a Table Control in input mode and i am getting data also into that table control. my requirement is that i want to delete the current chosen line from that table control. please help me out.HI
GOOD
GO THROUGH THIS REPORT
REPORT demo_dynpro_tabcont_loop_at.
CONTROLS flights TYPE TABLEVIEW USING SCREEN 100.
DATA: cols LIKE LINE OF flights-cols,
lines TYPE i.
DATA: ok_code TYPE sy-ucomm,
save_ok TYPE sy-ucomm.
DATA: itab TYPE TABLE OF demo_conn.
TABLES demo_conn.
SELECT * FROM spfli INTO CORRESPONDING FIELDS OF TABLE itab.
LOOP AT flights-cols INTO cols WHERE index GT 2.
cols-screen-input = '0'.
MODIFY flights-cols FROM cols INDEX sy-tabix.
ENDLOOP.
CALL SCREEN 100.
MODULE status_0100 OUTPUT.
SET PF-STATUS 'SCREEN_100'.
DESCRIBE TABLE itab LINES lines.
flights-lines = lines.
ENDMODULE.
MODULE cancel INPUT.
LEAVE PROGRAM.
ENDMODULE.
MODULE read_table_control INPUT.
MODIFY itab FROM demo_conn INDEX flights-current_line.
ENDMODULE.
MODULE user_command_0100 INPUT.
save_ok = ok_code.
CLEAR ok_code.
CASE save_ok.
WHEN 'TOGGLE'.
LOOP AT flights-cols INTO cols WHERE index GT 2.
IF cols-screen-input = '0'.
cols-screen-input = '1'.
ELSEIF cols-screen-input = '1'.
cols-screen-input = '0'.
ENDIF.
MODIFY flights-cols FROM cols INDEX sy-tabix.
ENDLOOP.
WHEN 'SORT_UP'.
READ TABLE flights-cols INTO cols WITH KEY selected = 'X'.
IF sy-subrc = 0.
SORT itab STABLE BY (cols-screen-name+10) ASCENDING.
cols-selected = ' '.
MODIFY flights-cols FROM cols INDEX sy-tabix.
ENDIF.
WHEN 'SORT_DOWN'.
READ TABLE flights-cols INTO cols WITH KEY selected = 'X'.
IF sy-subrc = 0.
SORT itab STABLE BY (cols-screen-name+10) DESCENDING.
cols-selected = ' '.
MODIFY flights-cols FROM cols INDEX sy-tabix.
ENDIF.
WHEN 'DELETE'.
READ TABLE flights-cols INTO cols
WITH KEY screen-input = '1'.
IF sy-subrc = 0.
LOOP AT itab INTO demo_conn WHERE mark = 'X'.
DELETE itab.
ENDLOOP.
ENDIF.
ENDCASE.
ENDMODULE.
CHANGE THE CODE AS PER THIS LIGIC.
THANKS
MRUTYUN -
How can i pull out data from a spreadsheet only from the current month?
Data is constantly being fed into a spreadsheet using a VI, this data comprises of such things as month, year, weights, std dev, etc. I want to do some data manipulation on the current months data while the VI is running, how can I pull out only the data relating to the current month? Each input into the spreadsheet stores the values for that run on one row, and there are perhaps 150 runs each month
Any thoughts are greatefully received
Thanks
Ross
Attachments:
Results.xls 1 KBHi Ross,
I thought I would go away and make you an example VI for the results xls that you have sent me.
Here it is: I have added a few comments here and there but if you need more info please don't hessitate to post back on the forum
Hope if helps
AdamB
National Instruments
Applications Engineering Team Leader | National Instruments | UK & Ireland
Attachments:
MonthExtract.vi 43 KB -
How to remove end of line from string?
Hello,
I'd like to remove ends of line from the string. I've tried:
static final Pattern END_LINE_PATTERN = Pattern.compile("$+");
strBuf.append(input);
Matcher m = END_LINE_PATTERN.matcher(input);
int startIndex = -1;
int endIndex;
while (m.find()) {
startIndex = m.start();
endIndex = m.end();
if (endIndex == strBuf.length() - 1) break;
if (startIndex > -1) {
strBuf.setLength(startIndex);
}For strings "hello\n" and "hello\r" it works properly, but for string "hello\n\n" I get first occurrence at index 6 (at second \n), so as the result I get "hello\n". For the string "hello\r\n" I get first occurrence at index 5 (it's OK), but the end index is 5 as well, and the next occurrence I get at index 7, which doesn't give me any sense.
Hope somebody can help me.
AgataWhat you're trying to do is remove one or more line separators from the end of a string ("\n", "\r", and "\r\n" each count as one line separator, but "\n\n" is two line separators). This is all you need to do: str = str.replaceAll("[\r\n]+$", ""); "$" doesn't match any characters, line separators or otherwise; it matches the position at the end of the string. In MULTILINE mode, it also matches the position before a line separator, but it still doesn't match the separator itself.
Maybe you are looking for
-
TS3274 My iPad won't charge. Tried more than one charger.
My IPad won't charge. I tried more then more charger...help. Plus the sound is missing for general purposes...lock sound, etc. already tried to turn on an off.
-
Setup VPN on Mac Mini Server running OSX through a BT Hub Router
Hello everyone, I know this question has been posted several times and I have looked at the suggested solutions, trying each of them. I think this is really down to my lack of knowledge hence hoping someone out there could point me to the right direc
-
CIN- Balance in transaction Currency
Hi I have created Sales Order - Delivery - PGI - Billing (accounting document generated) & when creating the excise Invoice & when chosing the Utilization (Local) & saving it, the system is throwing an error "Balance in Transaction currency". A bala
-
Cost of poor Quality - Sales Return
Dear All, My client wants the cost of customer return should be booked as Cost of Poor Quality. as after analysing the returned goods, the defective parts will be scrapped with reference to cost center this cost will be booked as cost of poor quality
-
InDesign CS4 keeps crashing at startup "Starting up Service Registry"
I just downloaded and istalled InDesign CS4 trial and it keeps crashing when ever I try to launch the program. I also installed the update. I'm running Windows 7 Ultimate. Any ideas of how to fix the problem? Thanks a lot.