How to get the index of table row without selection?
Hi all,
I have an table designed in XML view.Now i have added an change method for qty cell "valqty". When user inputs the qty in the cell and press enter this method is triggered now I want to know which index of the table is currently edited.Through which i can get the value of other cell in the same row.
NOTE: The table row doesn't have selection either multiple or single
I tried the following inside the valqty method but it now working
this.getValue();
this.getBindingContext().getProperty('PRD_NUM');
<Table id="idProductsTable"
inset="false"
items="{oModel>/deliverylist}"
visibleRowCount= "7"
mode="MultiSelect"
modeAnimationOn="true">
<headerToolbar>
<Toolbar>
<Label text="Products"></Label>
</Toolbar>
</headerToolbar>
<columns>
<Column
minScreenWidth="Tablet"
demandPopin="true">
<Text text="Order" />
</Column>
<Column
minScreenWidth="Tablet"
demandPopin="true">
<Text text="Quantity" />
</Column>
</columns>
<items>
<ColumnListItem>
<cells>
<Text text="{oModel>PRD_NUM}" />
<Input value="{oModel>DEL_QUAN}" change="valqty" maxLength="13" />
</cells>
</ColumnListItem>
</items>
</Table>
Thanks
Thanks Robin,
But in my case oEvent.getSource() is returning the cell instance and
oEvent.getSource().getBindingContext() is undefined
Hence not getting the value
I also tried the following
oEvent.getSource().getParent().getParent().indexOfItem()
But index returned is -1
Similar Messages
-
How to get the index of a row in dynamically generated list
Hi,
I am displaying a list which contains 6 rows using <logic:iterator/>
If i am changing a text value which is in 3 row, I want to pass that row index to the javascript function.
I am using IndexId attribute of <logic:iterator> to get the index of a row,but
It is working fine for Hyperlink buttons, but it is no working for text boxes.
can any one plz help me..
Thanks,
madhumadhu,
Please post your code... It's a bit like asking a mechanic to fix your car blind folded. -
How to get the index of a h:column element?
Hi!
I'd like to know how to get the index of a <h:column> element.
Here is the code of what I'm trying to do:
<h:column>
<a:commandLink
value="#{familyAction.familyDocsByPrj}"
action="#{homeAction.search(ROW_INDEX)}"
reRender="rightAppPanel" />
</h:column>When clicking a row, I'd like to make a "search" depending on the selected row.
Does anybode know how to do that?
Thanks a lot :)Thanks a lot for all your answers! :)
I finally got to do something with my little knowledge =P
I created a new class containing all the data needed for the dataTable (including a "String id").
And that's what I get:
<h:column>
<a:commandLink
value="#{familyAction.familyDocsByPrj.name}"
action="#{homeAction.search(familyAction.familydocsByPrj.id)}"
reRender="rightAppPanel" />
</h:column> -
How to get the index of selected values in SelectManyChoice...
How to get the index of selected values in SelectManyChoice... the value which i get is coming when i submit the value second time
By using the given code i get the value of the selected indices, but problem here is i get the value when it get submits at the second time... First time the length of that int array is 0.
Second time it shows the value two times (i.e) First time submitted value and the second time submitted value. After that it works fine.. I have problem while clicking first time only..
The Following error also raises.. One multiselect is dependent on other multiselect.
DF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase PROCESS_VALIDATIONS 3
java.lang.ArrayIndexOutOfBoundsException: 6
at oracle.adfinternal.view.faces.model.binding.FacesCtrlListBinding.findObjectFromIndex(FacesCtrlListBinding.java:334)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlListBinding.getInputValue(FacesCtrlListBinding.java:199)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.internalGet(JUCtrlValueBinding.java:2416)
at oracle.jbo.uicli.binding.JUCtrlListBinding.internalGet(JUCtrlListBinding.java:3717)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlListBinding.internalGet(FacesCtrlListBinding.java:500)
at oracle.adf.model.binding.DCControlBinding.get(DCControlBinding.java:749)
at javax.el.MapELResolver.getValue(MapELResolver.java:164)
at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
at com.sun.el.parser.AstValue.getValue(Unknown Source)
at com.sun.el.ValueExpressionImpl.getValue(Unknown Source) -
Hi,
How to find the average of table row values it should display in next row in libwindow/CVI
Please let me know the solution.There isn't a built-in function to perform calculations on thable cells. What you can do is to retrieve thable cells values and calculate the average by yourself.
To retrieve a bunch of cells in a single instruction you can use GetTableCellRangeVals: prerequisite for this function to work correctly is that cells are all included in a Rect structure (shortly, a rectangle) and are all of the same data type. See the help for the function for some explanations and the link to an example of its usage. In Cell range parameter you can pass VAL_TABLE_ROW_RANGE (row) macro to retrieve an entire row. See here for details.
Once you have retrieved cell values in an array, you can pass it to Mean function to calculate the average.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos? -
How to get the final internal table after the ALV is modified?
Dear experts,
My WebDynpro application allows users to delete row, sort the column. After all this modification, I need to get the final internal table of ALV to generate a csv.file. Are there any methods to get the final interal table content of ALV?
Many thanks!
meerHi Friend ,
Please see this link for wiki of WDA Alv Hierarchy : [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c060fcb4-2c62-2b10-d2b2-f32407a5cc6f&overridelayout=true]
Regards, -
How to get the index of the word at current cursor position in the word?
Dear All
I am implementing a spell checker of my native language in Word. Whenever I run spell checker it start from the first word. How can I make it to start from the current cursor position? How can I get the index of the word at the current cursor position?
Thanks in advance.
Dharam Veer Sharmahi Dharam Veer Sharma,
Thanks for sharing the solultion with us.
It is helpful for others who have the same issue. And if you have any Office developing issue, please feel free to open a new thread.
Have a nice day.
Regards & Fei
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to get the index of subform in dynamic Forms??
We are creating a Dynamic Form in which there is a field "PAN number" in a block. With the Script, we are replicating the blocks. Suppose there are 10 blocks (hence 10 PAN number fields will be there) and if the user wants to enter the PAN number in any of the blocks, how can we get the index of the block on which a value has been entered?
Are you sure you are using JTree? (I couldn't find a method named getIndex at all!)
As I couldn't quite understand what you are getting at, one thing that would be helpful is if you refer to "How to use Trees" in The Java Tutorial:
http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html -
How to get the index of the minimize point
Need to get the index of the minimize point, marked as red cycle in the attached word file.
It is a collected data from different sample devices, so the curve may change a bit each time. But the overall profile is the same, just 2 main peaks.
I tried to detect the Y difference to see when the difference values change from negative to positive.
But, there are noise as tiny peak when zoom in, shown in word file. Then tried to use median filter to make it smooth. (Maybe better method should be used.)
But there are still some bigger regional peak. Any suggestion?
Is there any labview function or better algorithm can make it. Many thanks for your help.
Solved!
Go to Solution.
Attachments:
Curve shots(zoom in).doc 294 KB
Sample Data 1.vi 22 KB
Sample Data 2.vi 16 KBA trick I often use is to sample the data with a much higher speed than needed. Then I apply some simple averaging methods or and median filter. After that I downsample the signal to a adequate rate by averaging x samples. This have been a saver for me more than once. How successful it is depends of noise character type. It just a hint as it may not be applicable in your application
Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far) -
How to get the measure total at row level for another measure calculation in DAX?
Hi There,
Using DAX, I am trying to get an expression for a calculated measure as follow:
So basically, I would like to get the AMeasure total highlighted in yellow in the A2Measure calculation:
Smeasure -(Ameasure total * WMeasure) where Ameasure total is the one highlighted.
I think my question would be how to get the total of a measure in order to used in the calculation of another measure.
Thanks and best regards,
JossHi Joss83,
If you're trying to get the result for [AMeasure] at the total level (i.e. 5.09 in your example) you can do this by creating a version of this measures that is evaluated after ignoring the filters (indirectly or explicitly) placed on
the 'Customer' and 'Player' columns. You may also need to ignore the filters place on some other tables or columns that must be ignored in order for the correct total to be returned.
Without knowing much more about your data model, I can only take a vague guess as to what this calculation would look like in your scenario:
AMeasureTotal:=
CALCULATE(
[AMeasure],
ALL(Customer[Customer]),
ALL(Player[Player])
You can read more about the 'ALL' DAX function here:
http://technet.microsoft.com/en-us/library/ee634802.aspx
Hope this helps,
Michael -
How to get the list of tables?
How can I get the list of tables in database using SQL/PLSQL?
Thank you.It depends what Data Dictionary views you have access to.
SELECT table_name
FROM user_tables
will tell you all the tables in your schema.
SELECT table_name
FROM all_tables
WHERE owner = 'XXX'
will tell you all the tables that you have some kind of access to. You may be able to get similar information from
SELECT table_name
FROM dba_tables
WHERE owner = 'XXX'
Leave out the WHERE clause if you're not interested in restricting by owner
You may need to get your DBA to grant access to ALL_TABLES and DBA_TABLES.
Define these as (parameterised) Cursors if you want to do this work in PL/SQL. Return the results into a PL/SQL table (of xxx_tables.table_name%ROWTYPE) if you want return the list as a parameter. Bulk Collect the results into the PL/SQL table if you're using Oracle 8i. -
How to get the values of all rows in advanced table
HI All,
I am using an advanced table to enter the values for the service contract line (its a custom page)in that advanced table i ahave column with lov called task number for that task number once i had choosed one task number and creating one more row using add anethor row button i want to restrict the user to not to choose the task number which was entered in the previus row.
Or if this is not possible i want to restrict the user by showing an error message when click on the submit button by saying you have choosed the duplicate task number please choose a uniqu task number
please give some hints
thanks
ajayHi
your approach will have two steps
1.) use the row refernce and get the value of task number of the row which is enterd by user .
2.) use getRows in range and compare values of task number of every row with the user selected value ,if value match then throw error.
Thanks
Pratap -
How to get the list of tables having index in particular tablespace
HI
can anyone help me with this
i need to display the list of tables that are having indexes in a particular tablespace(let it be A)
and the list of tables that are not having indexes in tablespace A.
thanks in advance...user8884944 wrote:
HI
can anyone help me with this
i need to display the list of tables that are having indexes in a particular tablespace(let it be A)
and the list of tables that are not having indexes in tablespace A.
thanks in advance...Use TABLESPACE_NAME, INDEX_NAME and TABLE_NAME columns of DBA_INDEXES view
[Kamran Agayev A. |http://kamranagayev.wordpress.com] (OCP 9i/10g)
Author of the upcoming book - *"Oracle Backup & Recovery: Expert secrets for using RMAN and Data Pump"*
http://www.rampant-books.com/book_1002_rman_backup_recovery.htm -
How to get the data of table from JSP to Servlet?
Hi,
I have a dynamic editable table of 3 columns on a jsp. On click on any cell the usr can edit the data. Now on click of submit button on the jsp I need to submit or get the whole data of all the rows to a servlet which would further process it.
How do I do that?
TIA.I am not sure whether u r getting my doubt or not
properly. I am populating the table data in an
arraylist of DO. with this arraylist I am displaying
the data on the Screen.
<%
for(int i=0;i<alList.size();i++)
DO d = alList.get(i);
%>
<Table>
<tr>
<td><%=d.getfirstField()%></td>
<tr>
</Table>
<%
%>
The above code sniipet displays the data on screen.
But as table being editable i would change the data
in the cell and submit .
So how do i capture this data? I cannot name the cell
becos I am not sure how many rows would be displayed.
In servlet I would use request.getParameter(?);
TIAIf you table is editable nad has input field to edit then "malcolmmc's " answer will work perfectly.
you can also use hidden form fields to use those vaues at servlet like this
<input type="hidden" name="UniqueName' value="<%=d.getfirstField()%>'>
Here UniqueName should be the unique for each cell value so that on servlet you can fetch these values using request.getParameter("UniqueName"). -
How to get the index value from rich:dataTable in jsf2.0
hi,
I am developing web application using jsf2.0. In this case, I used rich:dataTable tag for display the values from mysql.
so this is working..
my problem is, How to select the perticular row or index from the datatable for another processing...
help me..
Thanks.Hi,
You need to get the selectedIndex attribute of the drop down element, e.g.
String ind = web
.element(
41,
"/web:window[@index='0' or @title='Our Business Web Site']/web:document[@index='4' or @name='optBody']/web:form[@name='frmOptions' or @index='0']/web:select[(@name='PathLen' or @index='2')]").getAttribute("selectedIndex");
System.out.println("Drop down index is: " + ind);
You can use the Object Browser to get the path to the element you are interested during recording.
Regards,
Jamie
Maybe you are looking for
-
FF67 - Manual Bank Statement, what is Customer matchcode (sel.)?
Hi Expert, In FF67 manual banks statement customization, we have a field called customer matchcode (sel.) (FEBMKK-KUNNR_MC) under the Define Variants for Manual Bank Statement (OT43). Questions: Could anyone highlight me what is the customer matchco
-
Was syncing using iPhoto and after sync was completed all iCal info was gone.
-
BO2069: failed to send email med.Microsoft outlook
HI ALL, We have an erro to send a document by sapb1 using Outlook integration BO2069: failed to send email med.Microsoft outlook If i open the outlook this erro occurs if i close the outllook the documents sends without problem. Is not funcional b
-
HOW DO YOU FORM TYPE TO A SHAPE?
I have a logo design that requires the type to fit is a shape of a pennant. I am trying to avoid doing the manually with each individual point. I want the base line and the Cap-height to for within the shape. Any help is appreciated.
-
I was told that ios6 contains siri. I am not sure if my 4g ipod touch with fully updated ios6 has siri. Is siri only in the newest models?