I need to manipulate only X values of Edge coordinate​s (IMAQ Find Vertical Edge VI)
In IMAQ Find Vertical Edge VI Edge Coordinates is an array of clusters, but I need to manipulate only the X values. How can I extrapolate those values to use them after?
Thanks for your answer...I have begin to do it yesterday afternoon, but I don`t finish it yet !!!Isn`t there an other way of doing ? My problem is that I don`t know the exact number of points used by the edge coordinates, and before unbundling the cluster, I have to transform my array of clusters into a cluster, so I have to give it a fixed size...it`s not a difficult work, but quite long...
Similar Messages
-
How to display only Day value instead of DATE in Bex Report
Hi Experts,
We have a Month to date Report, in this report we need to display only day value instead of DATE value,
Like
if Date is 14.05.2010 we need to show only 14
Regards,
ChandraHi ,
Thanks for Quick Response
we does have the option to create the char(calday or ...) value variable replacement with char (calday or ...) info object, we can replace with Report r variable value only not with info object.
i hope we can replace the with info object only with formula variable with replacement.
My BEx Report is Designed like
Columns
0Calday
Rows
Plant
Keyfigures
Actual
Plan
Report output Looks like month to date
0CALDAY 01.06.2010 02.06.2010 03.06.2010
P1 ACTUAL 10 8 4
P1 PLAN 15 6 2
P2 ACTUAL 5 10 7
P2 PLAN 4 8 3
Report should be
0CALDAY 1 2 3
P1 ACTUAL 10 8 4
P1 PLAN 15 6 2
P2 ACTUAL 5 10 7
P2 PLAN 4 8 3
please let me know how can i achive this
Regards
Chandra -
How to add only highest values in the column
Hello All,
We have report where I need to add only highest values in 'Price' column.
Ex:
Group Mat Price
Grp1 Mat1 50
Mat2 75
Mat3 100
Grp2 Mat1 50
Mat2 100
I need my result as 200...
Any input is appreciated!
Thanks in advance !!
Venu.Sriman/Surendra,
Unfortunately, this approach does not work because the Calculate Result As --> Maximum applies not only to the subtotals but also to the grand total. Therefore, the result in Venu's example will be:
MAX(Grp1) = 100
MAX(Grp2) = 100
MAX(All Grps) = 100
We have the same requirement as Venu, but have not found a satisfactory solution yet. The only way we have solved such problems in the past is to use VBA in workbooks, but the report we are using now is a Web report.
Hope this helps to clarify the issue...
Bob -
How to get only positive value from 0DEB_CRE_LC
Hi to all,
I am doing ageing for AR.(0FI_AR_4)
In DSO or CUBE i need to diaply only positive value for 0DEB_CRE_LC accodring to every customer customer.
only NET DEBIT VALUE should display.
example1:
0CREDIT_LC 0DEBIT_LC 0DEB_CRE_LC
CUSTOMER1 100 0.00 100 -
CUSTOMER1 0.00 200 200
CUSTOMER1 0.00 200 200
total of 0DEB_CRE_LC = 300 " only this value should be displayed at DSO or CUBE
example2:
0CREDIT_LC 0DEBIT_LC 0DEB_CRE_LC
CUSTOMER2 100 0 100-
CUSTOMER2 0 0 0
CUSTOMER2 0 0 0
total of 0DEB_CRE_LC = 100- " this value should be filter out at DSO or CUBE
example3:
0CREDIT_LC 0DEBIT_LC 0DEB_CRE_LC
CUSTOMER3 200 200-
CUSTOMER3 0 100 100
toatl 0f 0DEB_CRE_LC = 100- " this value should be filter out at DSO or CUBE level
So when i total at 0DEB_CRE_LC at DSO or CUBE level only example1 value should displayed and example2 and example3 sould be filter out at DSO or CUBE level.
please can any one tell me the logic, what should i do to achieve this result.
I shall be thankful to you for this.
Regards
Pavneet Rana
Edited by: pavneet rana on Feb 3, 2011 4:14 PM
Edited by: pavneet rana on Feb 3, 2011 4:18 PM
Edited by: pavneet rana on Feb 3, 2011 4:20 PMThanks for reply,
i have created start routine between 0fi_ar_4 to DSO.
and used your code.
but still data at DSO is coming incorrect.
CREDIT DEBIT 0DEB_CRE_LC
C1 694,724.4 0.00 694,724.46-
C1 675,000.0 0.00 675,000.00-
C1 0.00 864,333.00 864,333.00
TOTAL = 505,391.46- for 0DEB_CRE_LC
but i create end routine at DSO .
CREDIT DEBIT 0DEB_CRE_LC
C1 0 100 100
C1 0 50 50
TOTAL = 150 for 0DEB_CRE_LC
but all credit amount for all customer is 0 and not include in 0DEB_CRE_LC, so still result is incorrect.
Please give me some solution , so i can achieve result.
I think this can be done by Routine itself.
i have writen routine like that.
DATA: WA LIKE LINE OF RESULT_PACKAGE.
DATA: l_v_customer type /BI0/OICUSTOMER.
DATA: l_v_total TYPE /BI0/OIDEB_CRE_LC.
Sort RESULT_PACKAGE by CUSTOMER .
l_v_total = 0.
loop at RESULT_PACKAGE INTO WA.
if sy-tabix = 1.
l_v_customer = WA-CUSTOMER.
endif.
if l_v_customer = WA-CUSTOMER.
l_v_total = l_v_total + wa-DEB_CRE_LC.
else.
if l_v_total LT '0'.
Delete RESULT_PACKAGE where CUSTOMER = wa-CUSTOMER.
endif.
l_v_customer = wA-CUSTOMER.
l_v_total = wa-DEB_CRE_LC.
endif.
endloop.
please rectified is in correct.
I shall be thankful to you for this.
Regards
Pavneet Rana
Edited by: pavneet rana on Feb 4, 2011 10:32 AM -
Help needed urgently to get the values from the jsp page.
hi,
I am badly stuck into this problem.Please help me and find a solution.
I am using ms-access and jsp.
my database structure is as given below:
m_emp_no | from_date | to_date | approver| status |
1002 | 22/9/2008 | 23/9/2008|1003 |pending
1004 | 29/9/2008 | 30/9/2008|1003 |pending
2044 | 15/9/2008 | 16/9/2008|3076 |pending
now this is exactly a leave apply scenario where a page is displayed and the user has to fill in the details to apply leave.then the approver has to approve that leaves so even, he should get the details in his account.
for example here 1003 has to approve leaves for 1002 & 1004.i am able to fetch data from database for the particular approver here is the coding:
<html>
<body>
<h2 align="center"><u><b><span style="background-color: #FFFFFF"><font color="#C0C0C0" face="Comic Sans MS">Leave
Approval Requests</font></span></b></u></h2>
<form method="POST" name="f1" action="update.jsp">
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:employee_details");
PreparedStatement p=null;
p=con.prepareStatement("select * from emp_leave_application where approver='"+username+"'");
ResultSet r=p.executeQuery();
while(r.next())
%> <table border="1" width="100%" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
<tr>
<td width="100%" bgcolor="#999966"><b><u><%=r.getString(2)%></u></b></td>
</tr>
</table>
<table border="1" width="100%" height="171" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
<tr>
<td width="100%" height="165" valign="top">
<p align="left"><b>User ID</b> :
<input type="text" name="id" value="<%=r.getString(1)%>" size="4
<b>status</b>:<%=r.getString(5)%</p>
<p><b>Leave From</b> : <%=r.getString(2)%></p>
<p><b>Leave From</b> : <%=r.getString(3)%></p>
<p><b>Approve</b> : <select size="1" name="approved">
<option value="Approved">Approved</option>
<option value="Cancelled">Cancelled</option> </select></p>
<%
con.close();
%>
<table border="1" width="100%" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
<tr>
<td width="100%" bgcolor="#999966">
<p align="center"><input type="reset" value="Clear" name="B1">
<input type="submit" value="Submit" name="B2"></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>{code}
this will display both the rows but when i try to retrieve the values into update.jsp using the code given below it gives me only one value which is the first 1002.
{code}approved=(String)request.getParameter("approved");
id=(String)request.getParameter("id");{code}
but i need both the values to be inserted into the update.jsp only then the approver will be able to approve the leaves individually with respect to the m_emp_no.
please help me out.
thanks in advance.My comments below are all between (((((( and ))))))
<html>
<body>
<h2 align="center"><u><b><span style="background-color: #FFFFFF"><font color="#C0C0C0" face="Comic Sans MS">Leave
Approval Requests</font></span></b></u></h2>
<form method="POST" name="f1" action="update.jsp">
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:employee_details");
PreparedStatement p=null;
p=con.prepareStatement("select * from emp_leave_application where approver='"+username+"'");
ResultSet r=p.executeQuery();
while(r.next())
%> <table border="1" width="100%" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
<tr>
<td width="100%" bgcolor="#999966"><b><u><%=r.getString(2)%></u></b></td>
</tr>
</table>
<table border="1" width="100%" height="171" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
<tr>
<td width="100%" height="165" valign="top">
<p align="left"><b>User ID</b> :
<input type="text" name="id" value="<%=r.getString(1)%>" size="4
((((((( in the statement above, name="id" should be changed to something like name="id"<%=ii%>
Where ii is a counter that tells you how many times you have gone through the loop so far.
The reason for this is that each textfield you generate must have a unique name rather than all have the same name
such as 'id'. This change will give them names such as id0, id1, id2. Then when you submit the page, you can uniquely
identify each input textfield.))))))
<b>status</b>:<%=r.getString(5)%</p>
<p><b>Leave From</b> : <%=r.getString(2)%></p>
<p><b>Leave From</b> : <%=r.getString(3)%></p>
<p><b>Approve</b> : <select size="1" name="approved">
(((( the above select also has to have a unique name for each time through the loop. Change it to name="approved"<%=ii%>
<option value="Approved">Approved</option>
<option value="Cancelled">Cancelled</option> </select></p>
<%
con.close();
%>
<table border="1" width="100%" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
<tr>
<td width="100%" bgcolor="#999966">
<p align="center"><input type="reset" value="Clear" name="B1">
<input type="submit" value="Submit" name="B2"></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>
(((((((note you would be better off long term to put your business logic in a servlet and dispatch to the JSP page which will only have the responsiblity to display the data.
Also, connection pooling is better than the above. -
Request.getParameter("checkbox") Returns only one value
Hello Friends,
I have a very urgent problem on live site. I moved my project from jrun2.3.3 to Jrun 3.1 and I was using multiple select and checkboxes.
With Jrun3.1 if you select multiple select or multiple checkboxes it returns only one value instead of all the values.
Any help is hightly appreciated.If multiple checkboxes have the same name, when selected and submitted, it will pass all values. But you will need to access those using getParameterValues("checkboxname") not getParameter("checkboxname"). The same goes for select elements.
Perhaps it was a bug in JRun 2.3.3 that allowed you to reference all parameter values using just the getParameter("xxx") method. -
Can we only year value from "0FISCPER" (Fiscal Year/Period) at BEx level
Hi all,
I have two time characteristics "0FISCYEAR" (Fiscal Year) and "0FISCPER" (Fiscal Year/Period). In DSO initially "0FISCPER" was there and later request came to add "0FISCYEAR". Now data in char. "0FISCPER" is since beginning (from 2000) and for char. "0FISCYEAR" is since 2010.
User's requirement is to create a report which will display data Year wise.
My issue is if i am using "0FISCYEAR" then user is not able to see year instead it shows #. I dont want to do data reloading as this is GL data and hold huge no. of records in it.
So my concern is : Is there any way to use only year value from "0FISCPER" (Fiscal Year/Period) at BEx level? Is there any setting which I can apply and get the same value of Year as I can see from "0FISCYEAR". Please assist me on this.
Thanks,
ArvindHi Arvind,
Your requirement can be realised through virtual characteristics.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b04be008-86cc-2c10-4bad-e517ea3f4c80?QuickLink=index&…
however, I would still suggest to reload the data. you will only need to reload years before 2010 and you can do this in phases.
Hope this helps.
-Swati. -
F4 help-only posted values-Bex variable input
Hi
I have one hierarchy node variable on an infoobject.This infoobject is authorisation-relevent.The infoobjects hierarchy is activated in query designer.We have many hierarchies for this infoobject,one for every year.Recently,we chose new hierarchy for this infoobject as we moved into year 2011.
When I execute the query,in the variable input help F4 of the hierarchy node variable on this infoobject,I could see only some nodes(I couldnot see the required one).My user is unable to see anything.Please suggest how I can fix this problem.
I have two problem:
1.I want to see the present nodes it is showing together with some more nodes that came with new hierarchy
2.As of now,my business USER is unable to see anything in F4 help for this variable...I want him to see the nodes which I would like to see also.
How can I fix these problems?All suggestions are welcome.
My investigation:
I checked infoobject settings..'Query Execution Filter Val.Selectn' is set to 'Only Posted values for navigation'....Does that mean infoobject will show only those values in F4 help that the query can find data for,in infocube in current navigation state..??
And there are two other options which can be choosen at infoobject level for 'Query Execution Filter Val.Selectn':
1.'Only Values in Infoprovider'--It will show only those values in F4 help for which there are values in dimension tables of cube/ods(does it mean in other way ,that master data for which we have transaction data in cube/ods???)
2.Values in Master Data tables:all values from master data tables.
Let me know if have wrong idea.........................
Regards.Hi,
at the infoobject level always you need to select "all master data values".
please check the version of the hierarchy what ever you are using till 2010 you might be using one version in 2011.
load the info-object with the new version at the infopackage level.
hope this helps
Thanks & Regards
krishna.y -
How to populate formbean with ONLY updated values?
Is there a way to populate the formbean with ONLY updated values in Java Struts?
Ex: Out of 50 fields displayed on GUI, If lets say user modifies 20 fields, I need to capture only those 20 fields into the form bean.
The reason i am looking for such function is to avoid the overhead of updating all the 50 fields into the database everytime even if one field is modified.Normally, you update the entire record if one of the fields is changed. However, if you display more than one record, only those records have have changed should be updated. The reason you dont update all records is because if the performance hit on updating records that didn't change, among other things (see optimistic conurrency topic at http://msdn.microsoft.com/en-us/library/bb399373.aspx)
I don't think you should bother coding to only capture those fields that have changed in one record. It complicates your code and makes it difficult to read. Also, performance gain on not reading unchanged fields is offset by performance loss on the logic to manage such a task. Also, your update sql statement will be overly complicated and will have to be dynamically built rather than a single simple update sql statement that updates all fields. -
Crystal Report Formula to select Record of only MAX Value
hi Everyone,
i need a simple crystal report formula to select one department whose recived quantity Maximum.
for example:
itemcode dscription departmen op recived issue
1 a ab 2 2 2
1 a bb 0 2 2
1 a bc 4 8 2
1 a cc 2 2 2
i group by item the item show just once but i want a formula to show one department who's recived quantity is maximum.i suppress the detail section.and just show the group footer/
itemcode dscription departmen op recived issue
1 a bc 8 14 8Thanks
Re: Crystal Report Formula to select Record of only MAX Value
Abhilash Kumar -
Need to display only leaf and not the node using tree table
Hi,
Am using Jdeveloper 11.1.2.0.0 . As per requirement , am having Department - Employee View wherein Department is the parent considered as node and Employee as a child which is considered as a leaf. Having dragged and dropped the DepartmentView as a tree table -> shuttle department id and department name to be displayed -> added EmployeeView to the same and shuttled employee id along with the first and last name. so this works as it has to be in the below structure...
10 ADF
256 A
257 B
258 C
20 JAVA
259 D
260 E
Code for the same ..
<af:treeTable value="#{bindings.DepartmentsView.treeModel}" var="node"
selectionListener="#{bindings.DepartmentsView.treeModel.makeCurrent}" rowSelection="single" id="tt1">
<f:facet name="nodeStamp">
<af:column id="c1">
<af:outputText value="#{node}" id="ot1"/>
</af:column>
</f:facet>
<f:facet name="pathStamp">
<af:outputText value="#{node}" id="ot2"/>
</f:facet>
</af:treeTable>
*Here comes my requirement , need to display only the leaf nodes which has employee name [Employees] and need to hide the node [Department] in the below structure....*
256 A
257 B
258 C
259 D
260 E
Things tried to achieve the requirement....
1. Got only the EmployeeName in the nodeStamp facet as below. Hence am getting only Employee name but the issue is am getting the icon for the node [Parent - Department]. Now how do i hide the same.
<af:treeTable value="#{bindings.DepartmentsView.treeModel}" var="node"
selectionListener="#{bindings.DepartmentsView.treeModel.makeCurrent}" rowSelection="single" id="tt1">
<f:facet name="nodeStamp">
<af:column id="c1">
<af:outputText *value="#{node.FirstName}"* id="ot1"/>
</af:column>
</f:facet>
<f:facet name="pathStamp">
<af:outputText value="#{node}" id="ot2"/>
</f:facet>
</af:treeTable>
Please do suggest some solution....
Thanks and Regards,
Vinitha GHi,
Thanks for the reply. As the project has already implemented tree table they do not wanna change any logic written for the same. So they wanted to just display only the leaf node data using treetable component. Can you please suggest.
Thanks and Regards,
Vinitha G -
LOV is showing only few values?
Hi Everyone,
I have one oaf page in which one lov is there which is showing only few values not all the values.
but when i execute the same query in toad its showing 125 values.
how can i make lov to display all the 125 values?
can i do this thriugh personalization or i need to customize? plz give me the steps....
Thanks.Kumar ,
If Lov has 125 records , it will display only few records in first display set when you click on next button(link that appears right top on Lov pop up window )
it will show remaining set of records , ( 10 / 20 values in each in set ) .
If you are sure its not displaying entire set of rows , then probably their might be some restriction would have implemented in where clause to filter the records .
Copy the query associated to LOV region and run from the data base and see what's the number of rows you are getting . If there is any variation then
some ' where ' is causing the filtration , please look at the java source code of the page to track the issue .
Keerthi
Edited by: keerthioaf on Nov 15, 2012 4:39 AM -
Need to convert a binary value into decimal
Hi i need to convert a binary value which i would be getting as a string object to a decimal value......need code for the same
Check Integer.parseInt
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Integer.html#parseInt(java.lang.String,%20int) -
Urgent please- need help to retreive all values within a range
Hi,
I need to retreive all the values(ID) within a range no matter if it is available in the database or not. I just need this in a sql query not a stored proc.
for ex:
select id, name, age
from employee
where id between (1 and 10)
It returns
id name age
1 x 22
3 y 26
4 z 23
10 c 32
I need a query which should return values as follows.
id name age
1 x 22
2
3 y 26
4 z 23
5
6
7
8
9
10 c 32
quick replies will be appreciated.This is one way of doing
select decode(id,null,lev,id),name,age from employee,(select level lev from dual
connect by level < 11)
where employee.id(+)=lev
The above will display between 1 and 10. If you want to specify some other range then the below query will do,
select decode(id,null,lev,id),name,age from employee,(select level lev from dual
connect by level <=10
minus
select level lev from dual
connect by level <5)
where employee.id(+)=lev
The above query will display between 5 and 10 -
Need to get the selected values from the selectManyShuttle
Hi,
I am using ADF11g newer version.
I have a selectManyShuttle and a command button. Need to insert all the selected values on the right hand side of the selectManyShuttle into a database table.
I created the selectManyShuttle with the values. Need help in getting the values on the right hand side.
<af:selectManyShuttle value="#{bindings.UserMgmtVO1.inputValue}"
id="sms2">
<f:selectItems value="#{bindings.UserMgmtVO1.items}"
id="si6"/>
</af:selectManyShuttle>
Any sample code or link is really appreicated.
ThanksThanks for the reply.
I am using a View Object and I dropped it as SelectManyShuttle
<af:selectManyShuttle value="#{bindings.UserMgmtVO1.inputValue}"
id="sms2"
valueChangeListener="#{POBacking.getSelectedValues}"
valuePassThru="true"
autoSubmit="true">
<f:selectItems value="#{bindings.UserMgmtVO1.items}"
id="si6"/>
</af:selectManyShuttle>
public void getSelectedValues(ValueChangeEvent valueChangeEvent) {
System.out.println("Testing Shuttle");
ArrayList list = new ArrayList(Arrays.asList(valueChangeEvent.getNewValue()));
String val = "";
String sqlStmt = "";
try {
if (list != null) {
for (int i = 0; i < list.size(); i++) {
int l = list.size() - 1;
val = list.get(l).toString(); //returns , delimited string
System.out.println(" value:" + val);
if (val != null) {
val = val.replaceAll("[\\[\\]]", ""); //remove []
StringTokenizer st = new StringTokenizer(val, ",");
int nto = st.countTokens();
for (int j = 0; j < nto; j++) {
String users = st.nextToken().trim();
System.out.println("Users:" + users);
//sqlStmt = " update xxpp_project_clip set clip_status='true', clip_seq = "+j * 10+
// " where project_id = "+rHdr.getAttribute("ProjectId") +
// " and clip_name ='"+ clip_Name +"'";
//System.out.println("sqlStmt:" + sqlStmt);
//stmt.executeUpdate(sqlStmt);
//am.getDBTransaction().commit();
//if (stmt != null)
// stmt.close();
// am.getDBTransaction().commit();
} catch (Exception ex) {
ex.printStackTrace();
I don't see the values in the list.
I gets printed as
value:[Ljava.lang.Integer;@1b10691
Users:Ljava.lang.Integer;@1b10691
how to get the individual values in the list?
Thanks
Saru
Maybe you are looking for
-
How make file association with a sgd application
hi! I need to know, how i make file association from a sgd client. I need open file .doc with a sgd application just make doble click in the file .doc in the client SO: rhel5u1 i have word.desktop file [Desktop Entry] Version=1.0 Encoding=UTF-8 Name=
-
Can you uncrop a video on iphoto that was cropped and saved by accident?
Hello I just imported some photos to iphoto and accidentally cropped one of my videos and saved it. Is there any way to get the rest of the video back?
-
I using 4s and upgrade new version IOS8 but my unit is very slow why?
I using 4s and upgrade new version IOS8 but my unit is very slow why?
-
Hi All, I have maintained Rounding on my Net Amount by maitaining Company Code - Currency - Rounding Unit in T001R and also having PR00 - Req 13 - Cal Type 17 in v/08. Step10--Counter0PR00PriceFrom-To13--17 So first i have the rounded off Price then
-
Determine Order of the First-Level-Navigation
Hello, im currious, as the First-Level-Navigation is determined by the assigned roles of a user, how can you set the overall order of the menu entries, considering a user got more roles assigned? regards, Markus