Why is the Rows Fixed in a Table in Smartforms?
Hi,
I am new to smartforms. This one particular Smartform has a Table defined in the Main Window. In the Data Tab of the Table under the Loop heading an internal table is used to pass information to the Table. There is no Loop defined. Only the Table is defined in the Main Window. The funny part is when the SamrtForm is run 15 rows get displayed. The program that populates the SmartForm always sends 15 rows to the SmartForm. I tried to send the actual number of rows, then nothing gets displayed in the SmartForm. It seems that some where in the SmartForm the 15 rows is doing some spooky things. How to solve this?
Thanks,
Kishan
Kishan,
The TABLE node in SmartForms automatically loops through the table specified inthe "Data" tab. The data passed through the TABLES paramater are defined with reference to Table Types. They have no header line. So in the "Data" tab, you must also define a work area for the TABLE node to loop into.
That is why in the "Data" tab, you see in the Loop section, a INTO (or ASSIGNING) operand. You need to pass the record into a work area. When you are displaying the data, just like in a normal ABAP program, you use the work area.
Not sure what you mean by "I tried to send the actual number of rows, then nothing gets displayed in the SmartForm".
Hope this helps.
Cheers,
Pat.
Similar Messages
-
Create an internal table with the rows of another internal table.
Hi I want to know if posible to create an internal table structure with the rows of another internal table?
ex.
If in i_tab column A has this values: row 1 = first, row 2 = second, row 3 = third.
Now I want that the structure of my internal table be: first, second, thirdHi,
If you do this way then what will be the difference between the two table anyway?? First internal table has the same structure irrespective of which row you select. and you are going to store the data from each row to the rows of the second internal table. In that case, the structure of the internal table is the same as first table. and it would have same rows.
Am I missing something here? or you want to declare the internal table with each field being the structure of the first table? In this case you'd have to do a dynamic declaration of data as the first table can have any no of rows then the second table would have any no of fields in the structure.
Now if you know that your first internal table is going to have a fixed no of rows eg 3 rows then it becomes simple. Do the following then
Data: begin of second_table occurs 0,
first type <first_table type>,
second type <first_table type>,
third type <first_table type>,
end of second_table.
Regards
Prasenjit -
How to computer the row size of a table
Hi
How can i compute the row size of a table. My general Idea is
create table emp(
empno number(4),
ename varchar2(10),
hire_date date,
update_yn timestamp);
the character set is UFT8
how can i compute the size of this table
thanksHi,
for Avg. row length see this
SQL> desc dba_tables
Name Null? Type
OWNER NOT NULL VARCHAR2(30)
TABLE_NAME NOT NULL VARCHAR2(30)
TABLESPACE_NAME VARCHAR2(30)
CLUSTER_NAME VARCHAR2(30)
IOT_NAME VARCHAR2(30)
PCT_FREE NUMBER
PCT_USED NUMBER
INI_TRANS NUMBER
MAX_TRANS NUMBER
INITIAL_EXTENT NUMBER
NEXT_EXTENT NUMBER
MIN_EXTENTS NUMBER
MAX_EXTENTS NUMBER
PCT_INCREASE NUMBER
FREELISTS NUMBER
FREELIST_GROUPS NUMBER
LOGGING VARCHAR2(3)
BACKED_UP VARCHAR2(1)
NUM_ROWS NUMBER
BLOCKS NUMBER
EMPTY_BLOCKS NUMBER
AVG_SPACE NUMBER
CHAIN_CNT NUMBER
AVG_ROW_LEN NUMBER
AVG_SPACE_FREELIST_BLOCKS NUMBER
NUM_FREELIST_BLOCKS NUMBER
DEGREE VARCHAR2(10)
INSTANCES VARCHAR2(10)
CACHE VARCHAR2(5)
TABLE_LOCK VARCHAR2(8)
SAMPLE_SIZE NUMBER
LAST_ANALYZED DATE
PARTITIONED VARCHAR2(3)
IOT_TYPE VARCHAR2(12)
TEMPORARY VARCHAR2(1)
SECONDARY VARCHAR2(1)
NESTED VARCHAR2(3)
BUFFER_POOL VARCHAR2(7)
ROW_MOVEMENT VARCHAR2(8)
GLOBAL_STATS VARCHAR2(3)
USER_STATS VARCHAR2(3)
DURATION VARCHAR2(15)
SKIP_CORRUPT VARCHAR2(8)
MONITORING VARCHAR2(3)
CLUSTER_OWNER VARCHAR2(30)
DEPENDENCIES VARCHAR2(8)
SQL> Regards! -
How to decrease the width of the border line of a table in smartform in 4.7
hi all,
i want to decrease the width of the border line of a table in smartform in 4.7 version. how can i do it? plz reply.Hi,
When u r going to create a table in forms it will show the all details regarding the tables
like -> color
-> width etc...
From there u can do that .
u can also select the table format as all ready defined formats i.e available in he same screen. -
How to get the row count of a Table DATA?
Hi,
In my Adobe form layout, I have a Table node which is bound to an internal table. Now at runtime, I want to determine the number of rows that the internal table has, i.e the row count of the DATA node of the Table. How will I be able to determine the no. of rows of the internal table at runtime using Javascript? I am not being able to find any suitable answer in this forum. Please suggest. Thanks in advance.Hi,
If you bind the interactive form table to the internal table and specify some properties, the table will vary its row size according to the number of data available in the internal table.
You have to wrap the table in a sub form, check 'allow page break with contents' and property 'flowed'.
the table will automatically increase its row size...
Is this the reason for which you wanted for the row count..?
If so, this will help you..
Regards.
Surya -
To convert the row of an internal table into columns
Hi ,
I want to use the rows of a single column internal table itab1
to form another internal table itab2 with column names same as the rows of itab1 .
How is this possible?
Regards,
Harshit RungtaHi,
Check the link..[Convert Rows of internal table to Columns|http://docs.google.com/Doc?id=dfv2hmgs_5d6bcxqgp&hl=en] -
Another user has changed the row with primary key -Table changed externally
Hello,
I am facing the error: "Another user has changed the row with primary key oracle.jbo.Key[94 ]." during the delete operation.
User case scenario:
1. Added new row in the table.
2. Once new row is added to the the table, another application will update few columns in the newly added row based on some logic.
3. On the same session I am trying to delete the newly added row and getting above mentioned error.
I have added a "Button" in the table to partialRefresh the table to check the new values of the changed columns.
I have checked the forum and found many similar errors and tried the following but nothing helped.
1. By setting "Auto Refresh = True" for the view object.
Issue faced-> It worked fine but after few add and remove my db is getting to inconsistent state after which, I am not able to do any add/delete from my page.
Error: "Too many objects match the primary key oracle.jbo.Key". I have checked this and I am not getting this error when "Auto Refresh = False" even after multiple add and remove actions.
2. By Setting "Auto Refresh" the iterator associated with the page.
Issue -> Did not work at all.
Looking forward inputs from gurus.
Thanks
AbhijeetFinally I found one solution to this problem at: [ http://www.avromroyfaderman.com/2008/05/bring-back-the-hobgoblin-dealing-with-rowinconsistentexception/|http://www.avromroyfaderman.com/2008/05/bring-back-the-hobgoblin-dealing-with-rowinconsistentexception/]
Simply overriding the lock() method in the entity object resolved issue. Kudos to the author.
Code:
public void lock() {
try {
super.lock();
} catch (RowInconsistentException e) {
refresh(REFRESH_WITH_DB_ONLY_IF_UNCHANGED | REFRESH_CONTAINEES);
super.lock();
But, Now my refresh button is not working as depend on the "Auto Refresh = True" to update the table.
Can anyone tell me how can I refresh the VO of my table from the button.
Thanks
Abhijeet.
P.S: I have already added the partial trigger but it is work not working as the data is cached in the VO. Removing the Cached property for the VO is creating other problems. -
Procudure to count all the rows in a all tables in the schema
When I run the following store procedure to count all the rows in all the tables I crash my sql Plus editor:
CREATE OR REPLACE PROCEDURE TC_TABLEROWCOUNT(OWNER IN varchar2)
IS
row_count number;
cursor get_tab is
select table_name, num_rows
from all_tables
where owner='MAXDEV';
begin
dbms_output.put_line('Checking Record Counts for schema maxdev ');
FOR get_tab_rec IN get_tab LOOP
BEGIN
EXECUTE IMMEDIATE 'select count(*) from '||get_tab_rec.table_name
INTO row_count;
EXCEPTION WHEN OTHERS THEN
dbms_output.put_line('Error counting rows for table '
||get_tab_rec.table_name);
END;
END LOOP;
END;
What am I doing wrong.
Thanks for any help TonyThe boss gave me 5 pages of tables and wants to know how many row there are in each table. There is a problem of one DB being out of sync with another.
But I have managed to work the problem though.
here is the working code:
CREATE OR REPLACE PROCEDURE TC_TABLEROWCOUNT (
TableOwner IN varchar2)
IS
row_count number;
vTable varchar2(30);
v_sqlstmt varchar2(100);
cursor get_tab is
select table_name, num_rows
from all_tables
where owner = TableOwner;
begin
dbms_output.put_line('Checking Record Counts for schema maxdev ');
FOR get_tab_rec IN get_tab LOOP
vTable := get_tab_rec.table_name;
v_sqlstmt := 'SELECT count(*) from '||vTable;
EXECUTE IMMEDIATE v_sqlstmt into row_count;
dbms_output.put_line('Table '|| get_tab_rec.table_name || ' Row ' || row_count);
END LOOP;
END; -
What happens when the row selection of a table is set as 'none'?
I have a page, with a Search box, Departments and Employees tables. The user will enter a departmentId and click on Search button. Departments will be displayed. The departmentId column in Departments table is surrounded with a link. So when the user will click on the link, the desired employees will be displayed in the Employees table, if there is a view link between the VOs.
Now suppose I have removed the view link. And the row selection of the Departments table is set as 'none'. So is it possible to get the desired employees of the chosen departmentId in this scenario, as because row selection has been disabled in the Departments table?
I also dont want to use the Set Property Listener in this use case.Hi,
If you have disabled rowselection and also are not implementing the selection listener? How will you find which row did the user select?
Ramandeep -
Unselect all the rows when display my table the first time
Hi all,
When I execute my webdynpro the first time my table is displayed with the first row selected, but this is false, this line is not selected.
If i execute the method get_selected_elements don't return anything in the table, but if i do a Click in this row then works fine.
I tried to unselect all the rows when i display the table the first time in the method WDDOINIT doing the following;
DATA lo_nd_my_table TYPE REF TO if_wd_context_node.
DATA: lt_elements TYPE wdr_context_element_set,
lo_element TYPE REF TO if_wd_context_element,
lo_node TYPE REF TO if_wd_context_node.
lo_nd_my_table = wd_context->get_child_node( name = wd_this->wdctx_my_table ).
lt_elements = lo_nd_my_table->get_elements( ).
LOOP AT lt_elements INTO lo_element.
lo_element->set_selected( SPACE ).
ENDLOOP.
But, doesn't work...
How can i do it?
Thanks in advance.hi,Husalban RM .
You don't need to DE-SELECT each element of the context node.
You can try the following:
lo_node->set_lead_selection_index( -1 ).
"lo_node is the context node which is bound to your table.
Hope it can help you a little.
Best wishes. -
Getting the row id from a table
Hi
I have a dynamic table that sets a uniquie id number to each.
<TR id="1"> </TR>
<TR id="2"> </TR>
etc...
I want to be able to click on a row and detect what this id is in JSP.
Can this be done?? If so how?
Thanks in advanceI suppose the ID is dynamically create too.
If you need the row's clicked ID in the same page you can do like follow.
If you must send the selected ID to JSP, Servlet, EJB... you can create an hidden field and set its value with this ID... then post it to server..
I would make in this way...
<html>
<head>
<script language="Javascript">
function showID(whatID){
alert(whatID);
//You can also set the value of an hidden field
</script>
</head>
<body>
<table>
<tr id="1" onclick="javascript:showID('1')">...</tr>
<tr id="2" onclick="javascript:showID('2')">...</tr>
<tr id="n" onclick="javascript:showID('n')">...</tr>
</table>
</body>
</html>
I hope be useful. -
How can i know the row number of my table is being modified?
HI all,
I have a table in my web dynpro and several columns as checkbox... I put an event OnToggle in these columns.
Do you know any way to get the row or the row number?
If i use the method get_static_attributes return to me the selected row not the modified.
Thanks in advance !EDIT: thanks ! is solved, i need to pass CONTEXT_ELEMENT' in the <ELEMNT_NAME>
This is my code:
DATA table_element TYPE REF TO if_wd_context_element.
DATA row_index TYPE i.
table_element = wdevent->get_context_element('CONTEXT_ELEMENT').
IF NOT table_element IS INITIAL.
row_index = table_element->get_index( ).
ENDIF.
Edited by: Husalban RM on Sep 15, 2010 4:53 PM -
How to get the rows in a multiselect table automatically checked?
Hi,
I have retrieved all the rows whose job status is 'Manager'. Now i need these rows to be automatically checked when a button is clicked.
how do i do this?
Please reply as soon as possible.Hi,
is this a new thread or is it a duplicate of http://forums.oracle.com/forums/thread.jspa?messageID=2339633
Frank -
How to get the row difference from two tables
I am not good at SQL. Here is a problem I am having
I have two tables say Employee_Master and Employee_Today. Employee_Today table is basically a subset of Empolyee_Master. At a given time, I want to query the database and and get all the employee names from Employee_Master table that are NOT in the Employees_Today table. How would I write that?
Select a.name from Employee_Master a, Employee_Today b where ..........?
Thanks for suggstionsif i understand your requirement correctly try this:
Select a.name from Employee_Master a
Where Not Exists
(Select 'x' From Employee_Today b
Where b.name = a.name) ;hope this helps -
Can you set fields as requied at the row level in a table?
I have a table that is used to add data (rows). Can certain fields be set to required base on other values in that row?
It is not clear from the developers guide exactly how to accomplish this. When I follow the example given all rows are still impacted by a change. This is probably because the PVO has only one record in it and not a record for each row. Is that correct?
Maybe you are looking for
-
Inline Error Message in a table cell
There is a requirement where in an error message is to be thrown in a table cell. (For eg, when the filed value is getting populated from a VO.Considering the scenario where the value is null for some reasons.)Can anyone suggest to implement the same
-
ERROR ORA-30200 IN RUNNING CREATION FILE - Forms [32 Bit]
Running a process of Forms [32 Bit] Version 6.0.5.35.3 get the error ORA-30200 while running the same process from a different computer file creation occurs in a correct way (This is a client-server) The form uses the TEXT_IO and specifically the fol
-
Scrollbar not working in a JScrollPane
In the JDialog there is a JScrollPane. JTextPane is in a the scroll pane. For some reason the scrollbars are not working. Any suggestions on this why the scrollbars not working? Thanks.
-
I want a list of recent itunes purchases
I would like to have a list of recent itunes purchases
-
Greater than 255 characters not allowed - CSV attachment
While sending the data as a CSV attachemnent, its not allowing more than 255 characters per line. I want to send more than 255 characters in a line (in the CSV attacment. how to do this ? The function module which i used is SO_new_document_att_send_