ALV - how to make selectable only some rows on an ALV?
Hi my problem is:
I have an ALV GRID as output of a report.
I have to make selectable only few rows based on the contents of a field (showed in a column in the ALV).
Is it possible?
Best Regards, Vincenzo
I did understand, but as i told you there is nothing like that, neither an option nor an event to capture.
Here is the documentation: http://help.sap.com/saphelp_erp2005vp/helpdata/EN/bf/3bd1369f2d280ee10000009b38f889/frameset.htm
Read it and choose what you need and what is in existance.
Similar Messages
-
Hi all,
I've a query with more than 500 rows as result. I'm only interested to show the first 50 rows. Did you know any way to prepare the select sentence to do it? I prefer avoid use cursors to do that.
Regards,
dbajugHitesh Nirkhey wrote:
hi
use ROWNUM keyword for fetching first 50 rows
simplest example
select * from emp
where rownum < 5 ;
regards
HiteshROWNUM applies to the rows after they are collected into a result set. Thus, it may, or may not, fulfill the OP's requirements. He still needs to define what he means by "first 5 rows".
http://psoug.org/reference/pseudocols.html
Also see description of ROWNUM in the fine SQL Reference manual -
Selecting only one row at a time
Hi experts,
i have following doubt regarding selecting rows from a db:
Is there any way of selecting only one row AT A TIME from a dabase just to collect the data in rows instead of in a unique document containing all the rows?
I would like you to ellaborate on this as i need to send only one row to the IE, and then other row, and so on... without throwing any error!
I have seen that there are SELECT SINGLE and SELECT UP TO 1 ROW, but these two methods are only useful when retrieving only one row, and that does not match my requirements. I need to process all the rows but one by one..
I know that we can use the receiver jdbc adapter as if it was a sender by means of its specific datatype, but how to do it row by row??
Hope i had explained well..
Thanks in advance and best regards,
DavidHi kiran,
Yes, my table has 5 not null fields but i am selecting and updating fixes values so i think that I will definetely go for the next solution:
SELECT * FROM t1 WHERE status='0' and ROWNUM<2;
UPDATE t1 SET status='1' WHERE status='0' and ROWNUM<2;
My only concern is if the update will take the same row that the select.... BTW, I think it will
..What do you guys think?
I ve been trying to operate with your proposed queries but i received some errors. Your queries are very interesting but i think that with the above ones i meet my requirements as the status field will be 0 for not processed rows and 1 for precessed ones (and the update will look for the row that meets the same 'where' clause than the select, and then, and only then, it will set status='1').
The only thing i have to care about is what i questioned before.
Thanks a lot and best regards,
David -
Q: I have hundreds of IAPs in the device management page of Aruba Central. How do I select only a few of the them to assign license?
A: Especially, when there is huge list of IAPs showing up in the device management page of Aruba Central, it becomes difficult and time consuming for an administrator to assign license for each IAP and then move on to the other.
This problem was sensed by the Aruba Central development team before hand and put up a solution in place that would help a user to select multiple IAPs from the list and assign licenses to them at once.
Lets understand on how to do the same:
1. Once you login to Aruba Central, click on "All Groups" and move on to 'Device Management" under Maintenance.
2. In the right-pane, you would be presented with the list of IAPs.
3. Now , click on the "Search tool" and it pulls down the fields to enter the search text.
(NOTE: Make sure you have selected ALL in the above drop down. This helps central to search among all IAPs irrespective of group and license assignment.)
4. Enter the Serial Number or MAC address of the IAP or Switch and hit "Search"
5. Here is where the intelligence of Aruba Central comes to play.
From the search result select the IAPs and Central would remember your selected IAPs, even if you change the search string and initiate an other search.
6. Once you finish searching all IAPs that you want to, you can click "Assign License" button in the lower left-corner and move on assigning the licenses to the selected IAPsThis was a life saver! I even started to manually tick the box as well!
-
I have many songs and playlists in my iTunes account. I do not want all of them synced to my iPhone 5S, but that has happened via iCloud, and it has caused a storage problem on my phone. How do I select only certain playlists to be synced to my iPhone?
You need to start over with Music. On the iPhone Music screen uncheck sync music. Also, on the Summary screen uncheck "Manually manage music and videos", then sync and it should clear off your phone.
Next, choose the music you want to sync. If you want to fit more on check "Convert higher bit rate songs to 128 kbps AAC". This will reduce quality slightly, but it won't be noticable unless you are using $300 headphones. -
I saw this question on another forum and realized that I have no idea how to print 'selection only'. The only options in the file>print menu are for the pages desired. I see no way to print only the selected portion of a page. There must be a way, but I do not seem to be able to find the answer.
Thanks, FranI tried it with 'Grab' but the printout was too large. I then discovered that if you use 'Snag It' you can accomplish the same thing. Press Shift-command-3 for the whole screen or Shift-command-4 for a part of the screen. this creates a PNG image which when opened in 'Preview' can be printed. Rather complicated, but it does work. Thanks for steering me in the right direction.
Fran -
How can I select only the music I want on my iPhone without putting all of it on?
How can I select only the music I want on my iPhone without putting alll of it on my phone?
http://support.apple.com/kb/PH12313
-
How to make read only field in Task list?
Hi All,
How to make read only field in Task list?This can be done one of two ways:
1. Customize the form in Infopath, right click your field and disable the control.
2. Use JavaScript/jQuery on the page to disable the element.
Andy Wessendorf SharePoint Developer II | Rackspace [email protected] -
How to edit only some rows in ALV
Hi Experts,
I have editable ALV. I need to allow edit only for some rows, not generaly all of them.
Do you have any idea how to do it?
I use ALV through FM module REUSE_ALV_GRID_DISPLAY.
Thenks®ards,
JirkaHi,
You need to use events. Sample code from sdn.
TYPE-POOLS:SLIS.
DATA: X_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
DATA: IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
DATA:IT_EVENTS TYPE SLIS_T_EVENT.
data: begin of it_chg occurs 0,
index type sy-tabix,
end of it_chg.
DATA: X_EVENTS TYPE SLIS_ALV_EVENT.
DATA: BEGIN OF ITAB OCCURS 0,
NAME(10) TYPE C,
ZTERM TYPE C,
END OF ITAB.
PERFORM FILL_TABLE.
loop at itab where zterm = 'A'.
it_chg-index = sy-tabix + 3.
" addition 3 IS FOR FIELD LABELS
append it_chg.
clear it_chg.
endloop.
DATA:L_POS TYPE I VALUE 1.
CLEAR: L_POS.
L_POS = L_POS + 1.
**fieldcatalog
X_FIELDCAT-FIELDNAME = 'NAME'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS = L_POS.
X_FIELDCAT-OUTPUTLEN = '10'.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
L_POS = L_POS + 1.
X_FIELDCAT-FIELDNAME = 'ZTERM'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS = L_POS.
X_FIELDCAT-OUTPUTLEN = '10'.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
**events
REFRESH:IT_EVENTS.
CLEAR:X_EVENTS,IT_EVENTS.
X_EVENTS-NAME = SLIS_EV_END_OF_LIST.
X_EVENTS-FORM = 'MODIFY_LIST'.
APPEND X_EVENTS TO IT_EVENTS.
CLEAR X_EVENTS.
END-OF-SELECTION.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
IT_FIELDCAT = IT_FIELDCAT
IT_EVENTS = IT_EVENTS
TABLES
T_OUTTAB = ITAB
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*& Form FILL_TABLE
text
FORM FILL_TABLE.
ITAB-NAME = 'vijay'.
ITAB-ZTERM = 'A'.
APPEND ITAB.
clear itab.
ITAB-NAME = 'ABC'.
ITAB-ZTERM = 'B'.
APPEND ITAB.
clear itab.
ITAB-NAME = 'TEST'.
ITAB-ZTERM = 'C'.
APPEND ITAB.
clear itab.
ITAB-NAME = 'DILIP'.
ITAB-ZTERM = 'D'.
APPEND ITAB.
clear itab.
ITAB-NAME = '123'.
ITAB-ZTERM = 'E'.
APPEND ITAB.
clear itab.
ITAB-NAME = 'GEN'.
ITAB-ZTERM = 'A'.
APPEND ITAB.
clear itab.
ITAB-NAME = 'ALV'.
ITAB-ZTERM = 'F'.
APPEND ITAB.
clear itab.
ITAB-NAME = 'ALVTEST'.
ITAB-ZTERM = 'A'.
APPEND ITAB.
clear itab.
ENDFORM. "FILL_TABLE
*& Form MODIFY_LIST
text
FORM MODIFY_LIST.
data: l_lines type i.
describe table itab lines l_lines.
L_LINES = L_LINES + 3.
"because we have 3 lines extra occupied by lables.
"if we have header,i mean top of page add the no.of lines
"how many ever top of page have + 3 for labels.
DO L_LINES TIMES.
read table it_chg with key INDEX = sy-index.
if sy-subrc = 0.
**This code is for reading the out put line
**and modify accordinlg to our requiremnet.
**don't chnage this.
READ LINE SY-INDEX INDEX SY-LSIND.
IF SY-SUBRC = 0.
MODIFY LINE SY-INDEX INDEX SY-LSIND
FIELD FORMAT ITAB-NAME INPUT.
ENDIF.
ENDIF.
ENDDO.
ENDFORM. "MODIFY_LIST -
How to make select list as read only
Hi All.
when i m loading a page ...how to make value of select list as read only ..
i tried doing this ....
i added readonly attribute to the select list's element attibute ...it is showing as read only field by darkening the select list field but ... the select list is editable even now... its allowing to choose from drag and drop ...
Thanks & Regard ,
NandiniI have the same requirment..
I have a select list on a editable form and i want to make that one read only.
When I use read only property it doent do anything. (But this is working for text items well).
When I use "disabled' option it works fine. But then that value does not post when use POST the form. So making select list disabled is not a solution.
Any Idea..
Thanks
mc -
How to make a Jtable's row selected thru program
Hi , in my application few of the rows (not continous)
need to get selected automatically when the jTable is intially shown.
I did this using table.setRowSelectionInterval(0,2)
This method works fine selecting all the rows from 0 th to 2 th row,
but if i want only 0 th and 2 th ( excluding the 1 st row ) to be selected , i dont know how to do that???
i tried the following also
//indeces of rows to be selected in the table are stored
//in array
int[] array = new int [2];
parray [0]= 0;
parray [1]= 2;
table.setRowSelectionInterval(parray[0], parray[0] );
table.setRowSelectionInterval(parray[2], parray[2] );
//for each iteration a single row will be selected
//coz the starting and ending indeces are same ie
(parray[0],parray[0])
but when this code is run only the 2 nd row gets selected , what abt the 0'th row???
please help.
Thanx.sorry
there is a small correction in the above code
//indeces of rows to be selected in the table are stored
//in parray
int[] parray = new int [2];
parray [0]= 0;
parray [1]= 2;
table.setRowSelectionInterval(parray[0], parray[0] );
table.setRowSelectionInterval(parray[1], parray[1] );
//for each iteration a single row will be selected
//coz the starting and ending indeces are same ie
(parray[0],parray[0]) -
Hi,
I wonder if anybody could help me in my problem?
I made a table and would like only some of the rows to be selectable. Is this possible?
The best solution would be to hide those squares on the left of the rows.
Thanks in advance for your help.
Piotrek
Edited by: Piotr Kondratowicz on Feb 10, 2009 4:29 PMHi Piotr,
Create a value attribute of type boolean(Ex: ed) and assign it to all editable fields of the table.
Based on a condition enable(ed=true)/disable(ed=false) the row fields as read only.Which will fulfill your requirement.
Thanks & Regards,
Jhansi Miryala -
How to make selected and active a child row of a treeTable?
Hello,
I am inserting a new child row into a af:treeTable, disclosing it, but I can't figure out how to make it selected and active so the focus of the user to go on it.
Jdeveloper version 11.1.2.3.0
This is how I am inserting the child node:
public void createLocation(RowIterator ri, Key selectedNodeKey) {
final String locationCategoryViewDef = "model.views.LocationCategoryView";
if (ri != null && selectedNodeKey != null) {
Row[] found = ri.findByKey(selectedNodeKey, 1);
if (found != null && found.length == 1) {
Row foundRow = found[0];
String nodeDefname = foundRow.getStructureDef().getDefFullName();
RowSet parents = (RowSet)foundRow.getAttribute("LocationView");
Row childrow = parents.createRow();
//hardcoded locationId
childrow.setAttribute("LocationId", 434558);
parents.insertRow(childrow);
} And this is the treeTable:
<af:treeTable value="#{bindings.LocationCategoryView2.treeModel}" var="node" varStatus="vaarr"
partialTriggers="gaga gag4a ga4a"
selectionListener="#{bindings.LocationCategoryView2.treeModel.makeCurrent}"
displayRow="selected" rowSelection="single" id="tt1" editingMode="clickToEdit"
horizontalGridVisible="true" binding="#{pageFlowScope.treeTableBean.sampleTreeTable}">
<f:facet name="nodeStamp">
<af:column id="c5" width="15">
<af:outputText value="#{node}" inlineStyle="display:none" id="ot1"/>
</af:column>
</f:facet>
<f:facet name="pathStamp">
<af:inputText value="#{node}" id="ot2"/>
</f:facet>
<af:column id="c2" headerText="Location CategoryName">
<af:inputText value="#{node.LocationCategoryName}" inlineStyle="font-weight:900" id="ot45"/>
</af:column>
<af:column id="c6" headerText="Location CATID">
<af:inputText value="#{node.LocationCategoryId}" inlineStyle="font-weight:900" id="ot6"/>
</af:column>
<af:column id="cgg2" headerText="Var INDEx">
<af:outputText value="#{vaarr.index}"/>
</af:column>
<af:column id="c1" headerText="Location Name">
<af:inputText value="#{node.LocationName}" id="ot3"/>
</af:column>
<af:column>
<af:panelGroupLayout layout="vertical">
<af:commandLink id="gaga" text="addLocation" inlineStyle="color:red"
action="#{pageFlowScope.treeTableBean.createChildren}"
rendered="#{node.LocationId == null}" partialSubmit="true"/>
<af:commandLink id="gag4a" text="delete category" inlineStyle="color:blue"
partialSubmit="true" rendered="#{node.LocationId == null}"
action="#{pageFlowScope.treeTableBean.deleteChildRow}"/>
<af:commandLink id="ga4a" text="delete location" inlineStyle="color:green"
partialSubmit="true" rendered="#{node.LocationId != null}"
action="#{pageFlowScope.treeTableBean.deleteChildRow}"/>
</af:panelGroupLayout>
</af:column>
</af:treeTable>Yes I did now but nothing changes. The current, selected and active row is still the parent node...
Even I am adding AdfFacesContext.getCurrentInstance().addPartialTarget(this.sampleTreeTable); for just in case.. -
hello,
i've got a select query which returns a couple of rows.
now i would like for the query to return only one row (the first match it can find).
how do i do that?
thank you!
my sample of my data as below , the first and seconde record is equal and i want to display all the colomn for the first row and ignore the second row .
84A8E46E8C97 9410 20110812
84A8E46E8C97 9420 20110813
84A8E46E8C6E 9410 20110816
84A8E46E8AFA 9400 20110819876602 wrote:
my sample of my data as below , the first and seconde record is equal and i want to display all the colomn for the first row and ignore the second rowThere is no row order in relational database tables. Same query canreturn rows in different order next time you run it unless you specify ORDER BY. Only ORDER BY guarantees order, so when you say first row/second row you must provide ordering criteria.
SY. -
How to make a whole table row be read at once?
Hi,
I want to make a whole table row be read at once by screenreaders if the table is not editable?
I tried to use "getAccessibleSelection" and return a own implementation which returns the number of columns at "getAccessibleSelectionCount".
But if "getAccessibleSelectionCount" return anything else than 1, the method "getAccessibleSelection" is never called.
Does anybody have a idea or a suggestion to solve this problem?
Thanks in advanceHi AJL,
If you mean a table of data values in the Data Portal, i.e. a list of channels, then yes you can do it. In that case you should just register load the channels you want to be read-only. You can do this interactively by right-clicking on the data file in question and select "Register data". You can also double-click on the file to select individual channels to load or register. Programmatically, this looks like
Call DataFileLoad(DataFilename, DataPluginName, ImportAction)
Setting ImportAction = "Register" will register load the channels. If dragging and dropping the data file loads it correctly, then you can set DataPluginName = "". Otherwise, you can specify there which DataPlugin to use for the import process.
You can also programmatically selectively load some of the channels from the data source:
Call DataFileLoadSel(DataFilename, FileImportFilter, ImportSelection, ImportAction)
The "ImportSelection" parameter works just like the CNo() function in DIAdem:
"GroupName/ChannelName"
"GroupName/[ChannelIndex]"
"[GroupIndex]/ChannelName"
"[GroupIndex]/[ChannelIndex]"
If, on the other hand, you mean a read-only table in the REPORT panel, your options are limited, though you can do that with a SUDialog.
Regards,
Brad Turpin
DIAdem Product Support Engineer
National Instruments
Maybe you are looking for
-
I don't want to use a Hotmail account to do this. Is it possible? The licence is for 5 PC's but seems to have no sync ability.
-
I had to reset my PayPal account with iTunes and now I'm getting a apple I'd has been disabled on both my iPad and iPhone. I've already done all the steps on my computer. Now what?
-
Trying to understand threads; interesting synchronize question
Ladies and Gentlemen, what would happen if: class c { public synchronized void a() { //do some stuff b(); public synchronized void b() { // do some stuff this should cause a deadlock situation, should it not? The compiler doesnt complain when I try t
-
Repeating Frames running over more than one page
Hi I have developed an Oracle Report. It is a nomination form having 7 to 8 pages. FYI..Input is a Pin Number. So, the customer can either enter one pin or can select many pins from the browser and depending on the selection he needs to either print
-
In-App purchase multiple devices...is there a limit?
I'm looking to purchase in-app purchases, and I know that Non-replenishable apps can be transferred to multiple devices authorised with the same iTunes Store account. I was just wondering if there is a limit to how many devices these can be transfere