How to make row as selected in table
Hi Team,
Jdev Version:- 11.1.1.6.0
I have one table on my jsff page which is made up of List of type Data structure.
In that i have two columns and i am able to display table with records on page.
I want to transfer my row selection to other row on click of button.
Could you please suggest what I need to do for this.
waiting for your reply.
Thanks,
Ramit
Hi ,
You can use the navigation controls for the button , for the first record you can use binding.First.execute and for next row binding.Next.execute operations.
Thanks ,
Raghav
Similar Messages
-
How to make row selection by checkbox in ADF table
hello,
using jdev11g TP4 , fusion web application
when i drag my view object as ADF table into jsf page,
i want to know how to make row selection by checkbox
thanks
greenApple
Edited by: greenApple on Nov 10, 2008 11:33 AMHi,
the tree component has changed compared to 10.1.3. You no longer have a tableSelectmany component that renders as checkboxes. Instead you use the ctrl key and select the table rows
Frank -
How to make a JPanel selectable
When extending a JPanel and overriding the paintComponent() method the custom JPanel can not be selected so that it gets for example KeyEvents.
But if I make the new Class extend a JButton it gets of course selected and able to receive for example KeyEvents.
My question is therefore; what does the JButton implement that a JPanel doesn’t so that a JButton gets selectable? Or in other words; how to make a JPanel selectable?
Aleksander.Try this extended code. Only the first panel added can get the Focus.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
class Test extends JFrame
public Test()
setLocation(400,300);
setDefaultCloseOperation(EXIT_ON_CLOSE);
JPanel panel1 = new JPanel(new BorderLayout());
JPanel panel2 = new JPanel(new BorderLayout());
ImagePanel imgPanel = new ImagePanel();
panel1.setFocusable(true);
panel2.setFocusable(true);
panel1.setPreferredSize(new Dimension(0, 50));
panel2.setPreferredSize(new Dimension(0, 50));
panel1.setBorder(BorderFactory.createLineBorder(Color.RED, 4));
panel2.setBorder(BorderFactory.createLineBorder(Color.CYAN, 4));
imgPanel.setBorder(BorderFactory.createLineBorder(Color.BLACK, 4));
panel1.add(new JLabel("Panel 1"), BorderLayout.CENTER);
panel2.add(new JLabel("Panel 2"), BorderLayout.CENTER);
getContentPane().add(panel1, BorderLayout.NORTH);
getContentPane().add(panel2, BorderLayout.SOUTH);
getContentPane().add(imgPanel, BorderLayout.CENTER);
pack();
panel1.addKeyListener(new KeyAdapter(){
public void keyPressed(KeyEvent ke){
System.out.println("Panel1");}});
panel2.addKeyListener(new KeyAdapter(){
public void keyPressed(KeyEvent ke){
System.out.println("Panel2");}});
public static void main(String[] args){new Test().setVisible(true);}
class ImagePanel extends JPanel
Image img;
public ImagePanel()
setFocusable(true);
setPreferredSize(new Dimension(400,300));
try{img = javax.imageio.ImageIO.read(new java.net.URL(getClass().getResource("Test.gif"), "Test.gif"));}
catch(Exception e){/*handled in paintComponent()*/}
addKeyListener(new KeyAdapter(){
public void keyPressed(KeyEvent ke){
System.out.println("ImagePanel");}});
public void paintComponent(Graphics g)
if(img != null)
g.drawImage(img, 0,0,this.getWidth(),this.getHeight(),this);
else
g.drawString("This space for rent",50,50);
} -
How to make users to select the date from calendar control only, by my making the date text field read only (don't want to let users type the date) in date time control in external list in sharepoint 2010. I am looking for a solution which can
be done through sharepoint desginer / out of the box.
thanks.Congratulate you got the solution by yourself. I am new to a
WinForms calendar component, I feel so helpless on many problems even I'd read many tutorials. This question on the
calendar date selection did me a great favor. Cheers. -
HOW TO MAKE THE CONTENT OF THE TABLE PRINT IN A TABLE CONTROL SCREEN?
Can any one tell me how to make the content of the table control print in a table control screen!!?
Please help!!
I have to make the contents of a table in the table control screen print ? any idea
Regards,
VjPlease refer to Demo Program,
DEMO_DYNPRO_TABCONT_LOOP
Its very clear.
Shreekant -
How to make Label in selection screen?
Hi friends.. can anybody explain how to make labels in selection screens and how to split the selection screen vertically? plz.. Thanks in advance
Arun kumar,
Check this program. you can put labels like this.
REPORT ZVENKAT_TEST1.
SELECTION-SCREEN BEGIN OF BLOCK block.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(15) text1.
SELECTION-SCREEN POSITION 17.
PARAMETERS :p_pernr type pa0001-pernr.
SELECTION-SCREEN POSITION 26.
SELECTION-SCREEN COMMENT 27(30) text2.
SELECTION-SCREEN end OF LINE.
SELECTION-SCREEN end OF BLOCK block .
at SELECTION-SCREEN OUTPUT.
text1 = 'Personal number'.
SELECT SINGLE ename FROM pa0001 INTO text2 WHERE pernr = p_pernr.
Regards,
Venkat.O -
Anyone know how to make vertical text in a table in keynote?
anyone know how to make vertical text in a table in keynote?
Just to add a bit more about this question. I have seen in other related questions that this feature (vertical text) is not available in (apparently) the whole iWork09. someone even said that it should be asked to the developers, so they include this feature in iWork10. I find this issue a bit sad. This feature has been present in msOffice since a while, and at least for me, this is quite important for my work. It is also apparently not possible to have different page orientation in the same document, meaning portrait and landscape, so one can have wide tables in a whole page, for example. If this is true, it is again sad, and I just cannot understand why such a basic feature is not available in an already 09 version. I am using only the trial version of iWork, but already in the first day I have discovered that I actually cannot do what I was used to. Again sadly I (and many others I guess) will have to stick to Office until the mac software is fully developed.
-
How to make Row of a table Editable.
hi Experts,
I have a table in which i am displaying data. Now in Each Row of table I have an Edit Button.
I want to make to row that editable for which Edit button is pressed.
How to proceed for that. ?
Thanx.Hi Sourav,
Please go thru the code mention below to make a row editable of a table.
For this just take a attribute of type WDY_Boolean in ur node and bind the attribute to the UI Element Enable property.
Call this logic on the Action of ur Edit Button
METHOD onactiononclick .
DATA lo_nd_node TYPE REF TO if_wd_context_node.
DATA lo_el_node TYPE REF TO if_wd_context_element.
DATA lt_node TYPE wd_this->elements_node.
DATA ls_node LIKE LINE OF lt_node.
navigate from <CONTEXT> to <NODE> via lead selection
lo_nd_node = wd_context->get_child_node( name = wd_this->wdctx_node ).
get element via lead selection
lo_el_node = lo_nd_node->get_element( ).
get all declared attributes
lo_nd_node->get_static_attributes_table(
IMPORTING
table = lt_node ).
DATA: lv_index TYPE i.
lo_el_node = wdevent->get_context_element( name = 'CONTEXT_ELEMENT' ).
lv_index = lo_el_node->get_index( ).
LOOP AT lt_node INTO ls_node.
IF sy-tabix = lv_index.
ls_node-read_only = abap_true.
ELSE.
ls_node-read_only = abap_false.
ENDIF.
MODIFY lt_node INDEX sy-tabix FROM ls_node TRANSPORTING read_only.
ENDLOOP.
CALL METHOD lo_nd_node->bind_table
EXPORTING
new_items = lt_node
set_initial_elements = abap_true.
ENDMETHOD.
Regards
Manoj Kumar
Edited by: Manoj Kumar on Feb 17, 2009 1:58 PM -
How to make a dynamic selection screen
Hi
I have been searching the SDN for long time, but couldn't find the answer, so therefor a new post.
I have an internal table with following values:
VBKD-BSARK_E
TVKO-VKORG
By these values I would like to make a new selection-screen whith following:
Parameters: FIELD1 like VBKD-BSARK_E.
Parameters: FIELD2 like TVKO-VKORG.
Next time the internal table can contain
MARA-MATNR
TVKO-VKORG
VBAK-BSTZD
And the parameters should then be:
Parameters: FIELD1 like MARA-MATNR.
Parameters: FIELD2 like TVKO-VKORG.
Parameters: FIELD3 like VBAK-BSTZD.
How do I do that -any suggestions?Hi,
This piece of code will design selection screen based on radio button selection:
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001 .
SELECT-OPTIONS : s_date FOR pnpbegps DEFAULT sy-datum .
SELECTION-SCREEN: END OF BLOCK b1.
SELECTION-SCREEN : BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETERS:rb1 RADIOBUTTON GROUP rbf DEFAULT 'X'.
PARAMETERS:rb2 RADIOBUTTON GROUP rbf .
SELECTION-SCREEN: END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003 .
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(25) text-006 FOR FIELD px_pdf.
PARAMETERS: px_pdf AS CHECKBOX USER-COMMAND xxx .
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(15) text-004 FOR FIELD rb_app.
PARAMETERS:rb_app RADIOBUTTON GROUP gbf DEFAULT 'X' USER-COMMAND uc01.
PARAMETERS: p_file(128) MODIF ID 001. " application server
SELECTION-SCREEN END OF LINE.
Thanks,
Krishna.. -
How to get row count(*) for each table that matches a pattern
I have the following query that returns all tables that match a pattern (tablename_ and then 4 digits). I also want to return the row counts for these tables.
Currently a single column is returned: tablename. I want to add the column RowCount.
DECLARE @SQLCommand nvarchar(4000)
DECLARE @TableName varchar(128)
SET @TableName = 'ods_TTstat_master' --<<<<<< change this to a table name
SET @SQLCommand = 'SELECT [name] as zhistTables FROM dbo.sysobjects WHERE name like ''%' + @TableName + '%'' and objectproperty(id,N''IsUserTable'')=1 ORDER BY name DESC'
EXEC sp_executesql @SQLCommandThe like operator requires a string operand.
http://msdn.microsoft.com/en-us/library/ms179859.aspx
Example:
DECLARE @Like varchar(50) = '%frame%';
SELECT * FROM Production.Product WHERE Name like @Like;
-- (79 row(s) affected)
For variable use, apply dynamic SQL:
http://www.sqlusa.com/bestpractices/datetimeconversion/
Rows count all tables:
http://www.sqlusa.com/bestpractices2005/alltablesrowcount/
Kalman Toth Database & OLAP Architect
SQL Server 2014 Design & Programming
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012 -
How to make screen field enable when table control gives an error
Hi,
I had a scneario like when table control data wrong then one parameter of the screen should be enabled for the input, i knew that screen-name will not work since it will have always table control fields only when table control gives an error.
How to make the other parameter enable when table control throws an error.
Regards,
JayaHi Gobi,
Thanks for your response, but issue is - how to make other screen fields enable when there was an error in the table control data.
For table control - lets say we will use the code as i mentioned above.i am sure that we cant write the code for field enable in between loop & endloop.
as you said if we right outside the loop-endloop, the module wont be triggered when table control throws an error, because that statement was not there in the loop-endloop.
please let me know if you need any more information on the issue. I hope there is alternative for this in SAP.
Thanks
Jaya -
How to delete rows in the target table using interface
hi guys,
I have an Interface with source as src and target as tgt both has company_code column.In the Interface i need like if a record with company_code already exists we need to delete it and insert the new one from the src and if it is not availble we need to insert it.
plz tell me how to achieve this?
Regards,
sai.gatha wrote:
For this do we need to apply CDC?
I am not clear on how to delete rows under target, Can you please share the steps to be followed.If you are able to track the deletes in your source data then you dont need CDC. If however you cant - then it might be an option.
I'll give you an example from what im working on currently.
We have an ODS, some 400+ tables. Some are needed 'Real-Time' so we are using CDC. Some are OK to be batch loaded overnight.
CDC captures the Deletes no problem so the standard knowledge modules with a little tweaking for performance are doing the job fine, it handles deletes.
The overnight batch process however cannot track a delete as its phyiscally gone by the time we run the scenarios, so we load all the insert/updates using a last modified date before we pull all the PK's from the source and delete them using a NOT EXISTS looking back at the collection (staging) table. We had to write our own KM for that.
All im saying to the OP is that whilst you have Insert / Update flags to set on the target datastore to influence the API code, there is nothing stopping you extending this logic with the UD flags if you wish and writing your own routines with what to do with the deletes - It all depends on how efficient you can identify rows that have been deleted. -
How to get row index of data table in the while ValueChangeListener fired?
Hi,
i have a data table in my page, which contains various components like inputText, selectOneChoice in each row.
i am invoking a method ValueChangeListener attribute of the selectOneChoice component. I have given the autoSubmit=true for this component.
<tr:selectOneChoice id="ratingModelType"
value="#{childRatio.ratingModelType}" binding="#{pageManager.form.bindRatioType}"
valueChangeListener="#{pageManager.form.onRatingModelTypeChange}" autoSubmit="true"
contentStyle="width:150px" required="#{!childRatio.disableChildRatioRatingModelType}"
requiredMessageDetail="#{appBundle['error.ratingModelTypeShouldNotBeEmpty']}">
<f:selectItems value="#{pageManager.catalog['Rating Model Type']}" />
<tr:selectOneChoice>In that method i want to fetch the map(with all updated values) relevant to the currently modified row of the table.
Since i am not using the selectionListener or any radio buttons in the page i am not able to get the row index of the table.
somebody please tell me how to get the row index of the table, while ValueChangeListener fired?
Thanks in advance.
SubbuHi niki,
Thank you so much. With your suggestion i got the result exactly what i want.
thanks again.
--subbu -
How to avoid row chaining in _LT tables
Hi,
I am seeing lot of row chaining in the LT tables. What is the best method to avoid row chaining with workspace manager tables? Also can I move the LT tables using the "alter table move" command. Will this affect versioned tables metadata information?
Thanks.Hi,
Have you been able to determine what operation is causing the rows to be chained? Typically this would be from dml inserts, but these could be due to any number of Workspace Manager operations. Regardless, there really isn't anything special that needs to be done in regards to row chaining for versioned tables. Using a higher PCTFREE on the table will frequently be beneficial. I might be able to add additional suggestions if you are able to offer some details as to when the rows are being chained, as well as details on the table itself.
We do support 'alter table move' using our DDL procedures(dbms_wm.beginDDL, dbms_wm.commitDDL). You can view our user guide for additional details about those procedures, if you do not already know how it works.
Regards,
Ben -
How to make a filter in a table while giving single character
hi,
i have doubt in filter how to make a filter while giving single character in a table during runtime.
if i give string like(A*) means then how it can retrive the data from the tablelook at:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60d5b593-ba83-2910-28a9-a7a7c7f5996f
Maybe you are looking for
-
How can I get albums back that are on my hard drive that seem to have
uninstalled from iTunes. I have some songs that are on my iPod, but no longer in iTunes....why did this happen, and can I correct it without having to do each song or album individually? Thanks!
-
Displaying "Revision Number" in a report
We use Crystal's revision number as a means to help us track a problem one of our clients may be having with a report we have provided them for use by our application. Revision number is found in the Crystal file document summary File > Summary Info
-
How to Create inner Sub-Node in Menu bar
Abap Masters, I have Created Submenu name of <b>File</b>. But i want to include 3 inner Sub-Nodes in File. Like as <b> Menu</b> <b>File </b>> <b>Recent File</b>
-
hai This is Raghu can any body send SD Flow in functional how it will works we can understood the flow of datasources.... with regards [email protected] null
-
SRM and DMS Content server Linkage
Hi Every one, have any one worked in DMS and SRM integration please provide some details how to integrate DMS Content Server and SRM, also SRM is also using a concept of C-folders and it is expected to link the documents stored in Content server to