Reading the Data from dynamically added rows of a table...
Hi,
I am using adobe interactive form (WD ABAP) in which i am adding the table rows dynamically (using Jscript code). I have to fech these data into an internal table. But I can read only the first row data..
Also While adding rows dynamically the same data is repeating for the consecutive rows..
I have found many similar posts in sdn, but i cannot get the solution. They have mentioned about adding in WDDOINIT method. Can anyone explain me what should be done,..?
1) How to solve repeatative data while adding rows..?
2) How to read dynamically added row data during runtime into internal table..?
Thanks,
Surya.
Discussed @ SDN lot of time before. Have a look at any of below threads:-
Dynamic table in interactive form...
Make dynamic tables in Adobe Interactive forms
Adding Rows dynamically upon clicking the button
How to get values to WebDynpro ABAP from dynamic table?
Chintan
Similar Messages
-
Add null rows in WDDOINIT for fetching data from dynamically added rows..
Hi,,
I have to fetch data from a dynamically added rows of a table.
I have followed / gone through many forums but they ddnot mention how to add null rows in the initialization method..
I am using WD Abap..
Can anyone help how to bind null rows in WDDOINIT method..?
Thanks,
SuryaDiscussed @ SDN lot of time before. Have a look at any of below threads:-
Dynamic table in interactive form...
Make dynamic tables in Adobe Interactive forms
Adding Rows dynamically upon clicking the button
How to get values to WebDynpro ABAP from dynamic table?
Chintan -
Reading the data from BLOB column
HI,
I have a table with following structure
Test_Mail(Attachment BLOB,Attachmentname varchar2(255),FileSize number)
The data in the table is like
Attachment|Attachmentname|FileSize
BLOB|test.txt|1236
I wants to read the data from the BLOB attachment in to new file.
can any one help me in doing this with plsql??
Thanks in advance,
Balaji tk.
Edited by: Balaji.tk on Jan 9, 2011 9:28 PMMay be something like this ?
DECLARE
l_file UTL_FILE.FILE_TYPE;
l_buffer RAW (32767);
l_amount BINARY_INTEGER := 32767;
l_pos INTEGER := 1;
l_blob BLOB;
l_blob_len INTEGER;
BEGIN
-- Open the destination file.
l_file := UTL_FILE.FOPEN ('TEST_DIR', v_attachment_name, 'wb');
--This v_attachment_name can be selected from your table.
-- Get LOB locator
FOR rec IN (
SELECT attachment l_blob
FROM test_mail
--Your where condition to find the row.
--AND ROWNUM =1
LOOP
l_blob_len := DBMS_LOB.getlength (rec.l_blob);
-- Read chunks of the BLOB and write them to the file
-- until complete.
WHILE l_pos < l_blob_len
LOOP
DBMS_LOB.READ (rec.l_blob, l_amount, l_pos, l_buffer);
UTL_FILE.put_raw (l_file, l_buffer, FALSE);
l_pos := l_pos + l_amount;
END LOOP;
commit;
END LOOP;
-- Close the file.
UTL_FILE.FCLOSE (l_file);
EXCEPTION
WHEN OTHERS
THEN
-- Close the file if something goes wrong.
IF UTL_FILE.IS_OPEN (l_file)
THEN
UTL_FILE.FCLOSE (l_file);
END IF;
RAISE;
END; -
I have a VI and an attched .txt data file. Now I want to read the data from the .txt file and display it as an array in the front panel. But the result is not right. Any help?
Attachments:
try2.txt 2 KB
read_array.vi 21 KBThe problem is in the delimiters in your text file. By default, Read From Spreadsheet File.vi expects a tab delimited file. You can specify a delimiter (like a space), but Read From Spreadsheet File.vi has a problem with repeated delimiters: if you specify a single space as a delimiter and Read From Spreadsheet File.vi finds two spaces back-to-back, it stops reading that line. Your file (as I got it from your earlier post) is delimited by 4 spaces.
Here are some of your choices to fix your problem.
1. Change the source file to a tab delimited file. Your VI will then run as is.
2. Change the source file to be delimited by a single space (rather than 4), then wire a string constant containing one space to the delimiter input of Read From Spreadsheet File.vi.
3. Wire a string constant containing 4 spaces to the delimiter input of Read From Spreadsheet File.vi. Then your text file will run as is.
Depending on where your text file comes from (see more comments below), I'd vote for choice 1: a tab delimited text file. It's the most common text output of spreadsheet programs.
Comments for choices 1 and 2: Where does the text file come from? Is it automatically generated or manually generated? Will it be generated multiple times or just once? If it's manually generated or generated just once, you can use any text editor to change 4 spaces to a tab or to a single space. Note: if you want to change it to a tab delimited file, you can't enter a tab directly into a box in the search & replace dialog of many programs like notepad, but you can do a cut and paste. Before you start your search and replace (just in the text window of the editor), press tab. A tab character will be entered. Press Shift-LeftArrow (not Backspace) to highlight the tab character. Press Ctrl-X to cut the tab character. Start your search and replace (Ctrl-H in notepad in Windows 2000). Click into the Find What box. Enter four spaces. Click into the Replace With box. Press Ctrl-V to paste the tab character. And another thing: older versions of notepad don't have search and replace. Use any editor or word processor that does. -
How to read the data from Excel file and Store in XML file using java
Hi All,
I got a problem with Excel file.
My problem is how to read the data from Excel file and Store in XML file using java excel api.
For getting the data from Excel file what are all the steps i need to follow to get the correct result.
Any body can send me the code (with java code ,Excel sheet) to this mail id : [email protected]
Thanks & Regards,
Sreenu,
[email protected],
india,If you want someone to do your work, please have the courtesy to provide payment.
http://www.rentacoder.com -
How to read the data from excel file and store into the table?
Hi All,
I have table with BLOB datatype contains a excel file. I have to read that data from excel and store into one table with all the fields in excel.
All the excel fields and my table columns are same.
Can you share with me how can acheive this using LOB's?
ThanksHi OraSuirya,
you can try with external tables .
syntax as follows
create table ext_table_csv (
i Number,
n Varchar2(20),
m Varchar2(20)
organization external (
type oracle_loader
default directory ext_dir
access parameters (
records delimited by newline
fields terminated by ','
missing field values are null
location ('file.csv')
reject limit unlimited;
For this you need to create directory
Directory Creation syntax:
create or replace directory ext_dir as 'D:\oracle\user_dir\ext_dir';
grant read, write on directory ext_dir to <User>;
please paste the excel file in the particular directory .
I hope this will help you.
Please correct me if I am wrong anywhere .
Thanks,
Tippu. -
Regarding reading the data from spool
Hi Experts,
How can i read the data from spool?
I need to read the data from the spool and should display on the screen?
Is there any FM to read the data from spool?
Sruthi.hi please use this..
CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB'
EXPORTING
rqident = v_spool
TABLES
buffer = it_spool
EXCEPTIONS
no_such_job = 1
not_abap_list = 2
job_contains_no_data = 3
selection_empty = 4
no_permission = 5
can_not_access = 6
read_error = 7 -
Regarding reading the data from the files without using Stremas
hai to all of u...
here i have a problem where i have to read the data from the files without using any streams.
please guide me how to do this one,if possible by giving with an example
Thanks & Regard
M.RamakrishnaSimply put, you can't.
By why do you need to? -
Reading the data from one component view into another component view
Hi All,
I have requirement to read the data from one component into another component while creating the service order. Here are the details.
Main View for Service order: BT116H_SRVO in that we have two assignment blocks like Organizational data(BTORGSET) and amount allocation(BTAMNTALL).This two blocks are two different component which are associated with main component(BT116H_SRVO).
I need to read the sales org data from component/View(BTORGSET/Orgsetdata) into Component/View(BTAMNTALL(HdrBillPlanDet) method DO_VALIDATE_INPUT.
I searched in SDN but all the posts are related to the data exchange between two views in same component. But My scenario is different as explained above.
Refer the attachments for the component link..
Please let me know how we can achieve this one..
Thanks,
Sapsar.Finally I was able to fix my code...My Mistakes were need to read the parent node above three levels and need to use the relation entity name while reading the data..
Below is the correction code
IF iv_index IS NOT INITIAL.
lr_iterator ?= collection_wrapper->get_iterator( ).
lr_current ?= lr_iterator->get_by_index( iv_index ).
lr_entity ?= lr_iterator->get_by_index( iv_index ).
ELSE.
lr_current = collection_wrapper->get_current( ).
ENDIF.
*loop back to root entity
WHILE lr_entity->get_name( ) NE 'BTAdminH'.
lr_entity = lr_entity->get_parent( ).
ENDWHILE.
*Get the related entity
IF lr_entity IS BOUND.
lr_collection ?= lr_entity->get_related_entities( iv_relation_name = 'BTHeaderOrgmanSet' ) .
IF lr_collection IS BOUND.
lr_orgset_m = lr_collection->get_current( ).
* lr_orgset = lr_orgset_m->get_related_entity( iv_relation_name = 'BTOrgSet' ).
lr_orgset = lr_orgset_m->get_property_as_string( 'SALES_ORG' ).
ENDIF.
ENDIF.
Thanks,
Sapsar. -
Reading the data from XML Source
Hi
i want to read the data from XML source file, and update the transaction information to another XML file. how we can do this in ADF, please help
Thanks
nidhiyou may use normal Java API to do that
http://www.javablogging.com/read-and-write-xml/ -
Reading the data from excel file which is in application server.
Hi,
Iam trying to read the data from excel file which is in application server.
I tried using the function module ALSM_EXCEL_TO_INTERNAL_TABLE. But it didn't work.
I tried just reading using open data set and read data set it is giving junk characters.
Please suggest me if you have any solution.
Best Regards,
Brahma ReddyHi Narendra,
Please see the below code I have written
OPEN DATASET pa_sfile for INPUT in text mode ENCODING DEFAULT MESSAGE wf_mess.
CHECK sy-subrc = 0.
DO.
READ DATASET pa_sfile INTO wf_string.
IF sy-subrc <> 0.
EXIT.
else.
split wf_string at wl_# into wf_field1 wf_field2 wa_upload-field3
wa_upload-field4 wa_upload-field5 wa_upload-field6 wa_upload-field7 wa_upload-field8
wa_upload-field9 wa_upload-field10 wa_upload-field11 wa_upload-field12 wa_upload-field13
wa_upload-field14 wa_upload-field15 wa_upload-field16 wa_upload-field17 wa_upload-field18
wa_upload-field19 wa_upload-field20 wa_upload-field21 wa_upload-field22 wa_upload-field23
wa_upload-field24 wa_upload-field25 wa_upload-field26 wa_upload-field27 wa_upload-field28
wa_upload-field29 wa_upload-field30 wa_upload-field31 wa_upload-field32 wa_upload-field33
wa_upload-field34 wa_upload-field35 wa_upload-field36 .
wa_upload-field1 = wf_field1.
wa_upload-field2 = wf_field2.
append wa_upload to int_upload.
clear wa_upload.
ENDIF.
ENDDO.
CLOSE DATASET pa_sfile.
Please note Iam using ECC5.0 and it is not allowing me to declare wl_# as x as in your code.
Also if Iam using text mode I should use extension encoding etc.( Where as not in your case).
Please suggest me any other way.
Thanks for your help,
Brahma Reddy -
Hi all,
Can i read the Data from more than one Dataset at a time ?
If yes.. How ? If not...Why ?
Thanks in Advance
Krish...You can open up to 100 datasets at the same time for every internal session.
For stability, put a TRY...CATCH...ENDTRY on these exceptions:
CX_SY_FILE_OPEN
CX_SY_TOO_MANY_FILES
...like this:
TRY.
OPEN DATASET sapfile FOR INPUT IN TEXT MODE ENCODING DEFAULT.
[your code]
CATCH: cx_sy_file_open,
cx_sy_too_many_files.
ENDCATCH.
CLOSE DATASET sapfile.
Hope this helps. -
Hi guys ,
I am new to j2me ,i am going to start a project named onlineNews
for this project i need to read the data from web.can anyone help me with a sample code for reading a data from web
thank u for spending your precious timethat depends on the used technology on top of the web. I believe with J2ME you have access to the URLConnection class, so you can send HTTP requests manually. Otherwise you will need to use low level sockets, or use webservices such as SOAP or XML-RPC.
There is a lightweight XML-RPC client available for J2ME. It is no longer in development, but that doesn't mean that it doesn't work.
http://kxmlrpc.objectweb.org/ -
Reading the data from the BufferReader????
Hi,
When i read the data from the BufferReader Like:-
// Reading the data
sbAppendBuf.append("<!--"+openingTag+"\r\n");
BufferedReader readercopyRightInput= new BufferedReader(new FileReader(copyRightFile));
while ((filecopyRightData=readercopyRightInput.readLine()) != null) {
sbAppendBuf.append(filecopyRightData+"\r\n");
sbAppendBuf.append(closingTag+"-->"+"\r\n");
I am getting an extra new line character before the Closing Tag. Where the output is like:-
<!--<opentag>
<<contents>>
// Extra space before the closeTag
</closetag> -->
How the extra space is coming i am not so sure where "\r" is needed for the proper alignment.So it is needed.
Please do provide a solution for this..
Thanks,
JavaLoverHere the snippet of my code:-
sbAppendBuf.append("<!--"+openingTag);
BufferedReader readercopyRightInput= new BufferedReader(new FileReader(copyRightFile));
while ((filecopyRightData=readercopyRightInput.readLine()) != null) {
sbAppendBuf.append(filecopyRightData+"\r\n");
sbAppendBuf.append(closingTag+"-->"+"\r\n");
Thanks,
Java Lover -
Reading the data from network card
Hi,
java.net defines the class NetworkInterface. Currently there are two network cards, one is wireless and another is for LAN.I am able to retrive their names and IP addresses using NetworkInterface methods.How to read the data from a specifc network card? Can we read all TCP packets which are passed through network card?
using socket?
Regards
prasannapdiwadkar wrote:
Hi,
java.net defines the class NetworkInterface. Currently there are two network cards, one is wireless and another is for LAN.I am able to retrive their names and IP addresses using NetworkInterface methods.How to read the data from a specifc network card? Can we read all TCP packets which are passed through network card?
using socket?
Regards
prasannaYou may already know that Java is not good at doing some 'low level stuff'.
You cannot use (pure) Java to access the raw network data.
Maybe you are looking for
-
No Windows Live Messenger on N78
Why I don't have WL Messenger on Nokia N78? N78 OWNER
-
Hi, Here are some scenarios i am facing and wondering if somebody knows the FM for the same. 1. For an employee know the core and functional competency. 2. Relationship of proficiency to qualification to employee. thanks amit
-
Is there any way that I can use a simple search function on my website? I just want it to search from a certain collection of pages that I have on my website, and just those pages. I also would love it if there was a way to do this that clean and goo
-
why is Sleeping Screen not supported in nokia 500 belle? I downloaded on my 500, but not running properly. display is only shown for a second while unlocking. is it due to hardware restriction?
-
Can something be done about this?
This message seems to be genuine but it is unlikely to get any response because of the language: <http://forums.adobe.com/message/4599626#4599626> Perhaps move to the Japanese forums if any?