ROI based on two original ROI
Hello
folks, does anyone know how to form an ROI based on two original ROI.
I intend as a
function of the location of two ROI's created a new ROI covering the
region between them.
Thank you very
much.
You can use IMAQ Group ROIs and then extract the Global Rectangle from the resulting ROI. Use this data to feed into the IMAQ Convert Rectangle to ROI to generate a new ROI rectangle the should encompass the two original ROIs regardless of their shape.
Message Edited by rpursley8 on 06-02-2010 01:06 PM
Randall Pursley
Attachments:
Combine ROIs.png 21 KB
Similar Messages
-
Question - View with a join based on two unequal strings.
Hello -
First my apologies for the likely novice question.
I'm creating a view based on two tables as such:
SELECT *
FROM table1 LEFT OUTER JOIN table2 ON table1.string = table2.string AND table1.number = table2.number
Problem: table1.string looks like "A00A01%%%" and table2.string looks like "A1" (which would correspond to "A00A01%%%".
Question: Can I create the join based on the 4th and 6th character of the string = the other string, or should I create a view with a formula creating a new field and then create a second view? (Note: creating or changing the field in the original table is not an option).
Thank you.Hi,
Yes, you can do that. Join conditions don't have to be as simple as "ON a.col1 = b.col2"; they can involve functions, like CONCAT and SUBSTR.
For example:
FROM table1
LEFT OUTER JOIN table2
ON SUBSTR (table1.string, 4, 1)
||
SUBSTR (table1.string, 6, 1) = table2.string
...The query might be faster if you create a function-based index on the join condition from table1. This does not require changing table1 itself. (For a LEFT OUTER JOIN, like this, it probably won't matter.) -
Can we create a hierarchy based on two logical table in 10g RPD
Hi,
I have a question, please give me some clarity, about creating hierarchy,
I know we can create a hierarchy based on one logical table which is form by two physical table...
Can we create a hierarchy based on two logical table? If yes, and how?
Thanks in advance!
anneUse preffered drill paths...
-suman -
Select One Choice attribute' LoV based on two bind variables, best practice
Hello there,
I am in the process of learning the ADF 11g, I have following requirement,
A page must contain a list of school names which is needed to be fetched based on two parameters, the parameters are student information been inserted in the previous page.
I have defined a read only view "SchoolNamesViewRO", it's query depends on two bind variables :stdDegree and stdCateg.
added that RO View as a view accessor to the entity to which the name attribute belongs, and then add LoV for the name attribute using the ReadOnly view,
added the name attribute as Select One Choice to page2,
and now I need to pass the values of the bind variables of the ReadOnly view,
the information needed to be passed as the bind variables is inserted in the previous page, I could have the data as bindings attribute values in the page2 definition
I have implemented the next two appraoches but both resulted in an empty list :
* added ExecuteWithParams Action to the bindings of the page and then defined an Invoke Action (set refresh condition) in the executable s, set the default values of the parameters to be the attributes values' input value,
in the trace I code see that the binding fetches correct values as supposed , but the select list appears empty, does the this execution for the query considered to be connected to the list ?
* added a method to the ReadOnly view Imp java class to set the bind variables, then I define it as a MethodAction in the bindings , and then create an Invoke action for it , also the select is empty,
if the query been executed with the passed variables, then why the list is empty? is it reading data from another place than the page!
and what is the best practice to implement that requirement?
would the solution be : by setting the default value of the bind variables to be some kind of Expression!
please notice that query execution had the bound variables ( I see in the trace) are set to the correct values.
would you give some hints or redirect me to a useful link,
Thanks in advance
Regards,please give me any example using backing bean .for example
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1">
<af:form id="f1">
<af:selectOneChoice label="Label 1" id="soc1" binding="#{Af.l1}"
autoSubmit="true">
<af:selectItem label="A" value="1" id="si1"/>
<af:selectItem label="B" value="2" id="si2"/>
</af:selectOneChoice>
<af:selectOneChoice label="Label 2" id="soc2" disabled="#{Af.l1=='2'}"
partialTriggers="soc1">
<af:selectItem label="C" value="3" id="si3"/>
<af:selectItem label="D" value="4" id="si4"/>
</af:selectOneChoice>
</af:form>
</af:document>
</f:view>
</jsp:root>
package a;
import oracle.adf.view.rich.component.rich.input.RichSelectOneChoice;
public class A {
private RichSelectOneChoice l1;
public A() {
public void setL1(RichSelectOneChoice l1) {
this.l1 = l1;
public RichSelectOneChoice getL1() {
return l1;
is there any mistake -
Hello ppl, I need your help.
I got this query which is based on two views.
View_1: x1, x2, x3, x4, day, xy
View_2: y1, y2, y3, y4, day, xy
By running a SELECT query on each view takes approx 2 minutes, yes there are lots of records.
When I combine the query most of the time it times out. I think there is something wrong with my query.
View_1 = View_2 on col xy and day, however I have to get the records from View_2 for the following day, i.e if day = 3 from View_1 and the record from View_2 should be coming from view_2
at present my query is like this
SELECT a.x1, a.x2, a.x3, a.x4, a.day, a.xy, b.y1, b.y2
FROM view_1 a, view_2 b
WHERE b.y2= 100
AND a.xy = b.xy
AND b.y1 = ( SELECT b.y1
FROM view_1 a, view_2 b
WHERE b.day = a.day + 1)
ORDER BY a.x1
This query gets called in a coldfusion page.
P.S I can also ask the DBA to make me a new view based on the same columns as the query. Would that help with speed?I don't see any reason why my query shouldn't give
you what you desire.
View_1
x1 x2 x3 x4 Day XY
2 3 23 32 3 2132
3 3 2 3 4 2132
4 3 43 32 5 2132
View_2
y1 y2 y3 y4 Day XY
4 100 13 32 3 2132
5 100 4 3 4 2132
7 100 43 32 5 2132
5 100 23 12 6 2132
Is it a coincidence that XY has the same value in your sample? Could it be different
and at the same time participate in the desired result?
SELECT a.x1, a.x2, a.x3, a.x4, a.day, a.xy, b.y1, b.y2
FROM view_1 a
, view_2 b
WHERE b.y2 = 100
AND a.xy = b.xy
AND b.day = a.day + 1
ORDER BY a.x1
>
X1 X2 X3 X4 Day XY y1 y2
2 3 23 32 3 2132 5 100
3 3 2 3 4 2132 7 100
4 3 43 32 5 2132 5 100
According to the reply to my question above, it can be ok or not.
That is why I proposd this (in case the reply were yes):
SELECT a.x1, a.x2, a.x3, a.x4, a.day, a.xy, b.y1, b.y2
FROM view_1 a, view_2 b, vew_1 c
WHERE b.y2= 100
AND a.xy = b.xy
AND b.day = c.day + 1
ORDER BY a.x1 -
Calculate difference in value based on two date parameters
Hi All,
I have a table and need to calculate the difference in rent amount for a property based on two date parameters.
I have uploaded sample data here:
https://app.box.com/s/pu8oa4f3jhrhm0ylshdz2fuo7541vn4z
Thanks
JagHi jaggy99,
Do you have the knowledge of
Excel Add-In? If you don't have knowledge of C#/VB.NET language and Visual Studio, I don't think Excel Add-In is what you want. As I said previously, your problem is totally about the business logic, we don't provide solution for a complete requirement.
Based on your sample data, I think VBA code is suitable.
If you're not familiar with VBA, please take a look at the MSDN documents for scratch:
Getting Started with VBA in Excel 2010
The steps should be like this:
1. Sort all the records by [Rent Change Date] field
2. Loop throuth the records and find the FromDate and ToDate as well as the corresponding [Rent Charged] field
3. Calculate the difference and save the data into a new range
It's not so hard, please have a try, if you encounter any development problems, you can post in this forum.
Thanks.
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. -
Calculation based on two result columns in combined report
Hi all - I have a combined analysis and I need to add a result column based on two of my result columns. The calculation involves one column from my first report and one column from my second report.
The first report has # of opportunities and my second report has a number of booked opportunities. I have to have two separate reports because these two columns need to be filtered on different dates. In my result column, I want to add a column that gives me close % which is # of booked opps/# of opps. I am using the SAW references but it is not working right. I have tried the following calculations:
(SUM(SAW_9 BY SAW_1) / SUM(SAW_7 BY SAW_1))*100 This gives me 100% in any row that is 1 opp to 1 booked opp. But gives me 0 in all the other fields even if it is 2 opps to 1 booked opp.
(MAX(SAW_9 BY SAW_1) / MAX(SAW_7 BY SAW_1))*100 This shows 100% for every row that has a number in the opp and booked opp columns. Even shows 100% if it is 2 opps to 1 booked opp which should be 50%.
Any ideas on what formula I need to use to get the right calculation?
Thanks!
LaceyLacey,
(SUM(SAW_9 BY SAW_1) / SUM(SAW_7 BY SAW_1))*100 is the correct formula so the only thing I can think of is do you have the correct columns selected?
SAW_9 is column 10 and SAW_1 is column 2?
and I think the aggregation rule needs to be sum as well.
Good Luck
Alex
PS thanks to Mike Lairson for putting this solution in his book as it got me working. -
Drill down in report based on two queries
Hi,
I have a problem with drilling down in report which is based on two queries.
Queries are based on different universes.
Both queries contains almost the same dimensions but different measures.
In my report is a calculated measure based on measures from both queries.
In both universes are the same hierachies.
When I drill down in report for the first time I have to chose hierarchy but then data are filtered to the choosen value only from one query , data from second query are not filtered and the values of calculated measure are incorrect
How can I solve this issue without adding dimensions belonging to the hierarchies to queries.
Please help.
Regards.
MGHi MG,
First of all, what do you mean by "Both queries contains almost the same dimensions but different measures"
"Almost" is not a good word in the IT world, especially when trying to merge/join tables. You need to be exact.
That sounds like a possible reason for the problem.
I am also not sure about your question:
"How can I solve this issue without adding dimensions belonging to the hierarchies to queries."
You may have to add those dimensions to the queries. Why would you not want to?
Thanks -
Update column based on two columns
Hi,
MinValue MaxValue Desc
-1 -1
-1 1
-1 2
0 0
0 1
0 2
The above is my table which is having three columns MinValue, MaxValue, Desc. First two columns have data and I need to update the 3rd column 'Desc' based on two columns data.
I need to update like,
when MinValue=-1 and MaxValue=-1 then 'NotSpecified'
when MinValue=-1 and MaxValue=1 then 'Up to 1'
when MinValue=-1 and MaxValue=2 then 'Upto 2'
when MinValue=0 and MaxValue=1 then 'At lest 1'
when MinValue=0 and MaxValue=2 then 'At least 2'
when MinValue=0 and MaxValue=3 then 'At least 3'
The data in 'MaxValue' is like 1,2,3,4,5...50. So for each description it should append this value as mentioned above(till 'Up to 50', 'At least 50'). How can I do this with case statement?
Thanks,
Gangadhardeclare @T table ( MinValue int,MaxValue int, [Desc] nvarchar(100) );
insert @T ( MinValue, MaxValue )
values ( -1, 1 ) , ( -1, 1 ) , ( -1, 2), ( 0, 0), ( 0, 1), ( 0, 2)
select *
from @T
update @T
set [Desc] = case
when MinValue=-1 and MaxValue=-1 then 'NotSpecified'
when MinValue=-1 and MaxValue=1 then 'Up to 1'
when MinValue=-1 and MaxValue=2 then 'Upto 2'
when MinValue=0 and MaxValue=1 then 'At lest 1'
when MinValue=0 and MaxValue=2 then 'At least 2'
when MinValue=0 and MaxValue=3 then 'At least 3'
end
select *
from @T
T-SQL Articles
T-SQL e-book by TechNet Wiki Community
T-SQL blog -
Sorting based on two columns in report
Hi,
we have one issue on sorting based on two columns in report.
In the report we are doing sorting on two columns(week_id and stage_name). I have attached the screen shot for the same. The sorting is first done on the week_id and then on the stage_name. The issue comes when we have no data for the stage 1 - Prospect in W1. The stage goes to the second position.
Please suggest if there is any work around to show the 1 - Prospect stage in W1.
Regards,
Ambika Nanda.what is w1? where is screenshot? and is stage seoncd sort? if so what is the issue?
-
I've created a block based on two tables.
Querying records works fine.
However, when I try to amend a column in the master table I get an error message 'Record has already been updated by another user.'
I have set the dml target property to to the master table and set the primary key on the correct columns.
What else could there be??!!Block1 will be----- enter_query Sku :123 then from dropdown select Level 1 which will show data like this
in two different rows.
Sku : 123 Price : $100 Qty : 10 (Primary)
Sub Sku : 345 Price : $110 Qty : 8 (Level 1)then from dropdown selected Level 2 which will show data like this in two different rows.
Sku : 123 Price : $100 Qty : 10 (Primary)
Sub Sku : 456 Price : $90 Qty : 12 (Level 2)There are two more blocks which will display more information based on either Level 1 is selected or Level2 selected.
Regards
Sandy -
Suppressing a section based on two conditions
Hello
currently, I am trying to suppress a section of group based on two conditions:
- The first condition is to suppress the section always if the user is not at DrillDownGroupLevel 1.
- The second condition is to supress the section if the GroupName ({Customer.TerritoryID}) is not UK or US.
I went to the section expert and entered this code in the "Suppress (No drill-down)" x-2 formula field:
DrillDownGroupLevel <> 1 AND
GroupName ({Customer.TerritoryID}) <> "US" OR
GroupName ({Customer.TerritoryID}) <> "UK"
Unfortunately, it does not work. Any ideas are very welcome!!
I am using Crystal Reports XI
Thanks in advance!!Which "section of a group" are you trying to conditionally suppress? (group header, group footer or details within a particular group......or all of them?)
AND you stated,
"currently, I am trying to suppress a section of group based on two conditions:
The first condition is to suppress the section always if the user is not at DrillDownGroupLevel 1.
The second condition is to supress the section if the GroupName ({Customer.TerritoryID}) is not UK or US.
Try this formula for the conditional suppression:
(DrillDownGroupLevel <> 1) AND
(GroupName ({Customer.TerritoryID}) "US") OR
(GroupName ({Customer.TerritoryID}) "UK")
If that does not work you may want to check and make sure your values are upper case in the TerritoryID.
In addition, a GOOD way to test conditional suppression formulas is to put them into a conditional highlighting color for the section so you can still see the values and the highlighting lets you know if it's working. For example:
IF
(DrillDownGroupLevel <> 1) AND
(GroupName ({Customer.TerritoryID}) "US") OR
(GroupName ({Customer.TerritoryID}) "UK")
then YELLOW else WHITE -
Top n filter in universe based on two measures(MDX expression)
Hi,
I have to do filter at universe level based on two measures. for example, i have
BusAr year value
ddddfd 1997 435433.
I can able to do filter using mdx expression for busniess area wise top 10 values in universe. using the following syntax
<FILTER EXPRESSION="Rank([0BUS_AREA].CurrentMember, Order([0BUS_AREA].CurrentMember.Level.Members, [Measures].[D7G51I90GYJ8POGFSYVFPX24F], BDESC))">
now i want to filter using year wise and business area wise top 10 filter in universe. where to add the second member yearwise in Rank () function.
how to achieve this.
Regards,
Shanthakumar.Hi,
I am not sure you want to make a Top n filter on 2 different measures.
But if you want to make a Top n filter on 2 ore more different dimensions, here is the code.
IIf(IsEmpty([Measures].[Sales Amount]),null,
Rank( StrToTuple( "(" + Generate(Head(Axis(1),Axis(1).Item(0).Count) AS RN,
"Axis(1).Item(0).Item(" +
CStr(RN.CurrentOrdinal - 1) +
").Hierarchy.CurrentMember",
",") + ")" ),
Axis(1), [Measures].[Sales Amount] ) )
Please note that the code is taking into account all dimensions involved in the rows axis, so the more dimensions yu add in the query the top n will increase the number of values.
I have successfully tested it on MSAS but it seems that on SAP the "+" character is not allowed...
Maybe there are some SAP notes to add.
Didier -
Detail tabular form based on two tables
db11gxe , apex 4.0 , firefox 24 ,
hi all ,
i have a master detail form based on two tables , the detail form ofcourse based on one table , the problem is i want to include a column of another
table into the tabular form , so i have changed the query of the tabular form and included the column in it correctly ,
but the problem is about saving data , i can not save the data , i think
because the "mru" process is based on one table , that is because i face an error talking about "mru" process when i try to save the data ,
Error in mru internal routine: ORA-20001: no data found in tabular form Unable to process update.
so
what should i do to save the data ? should i create another "mru" process based on the other table or what ?
thanksAnything beyond "simple" requires that you do it yourself. I believe that what you want is "beyond simple"
As far as I know, you can only use the 'mru' on one table.
(I could be wrong)
If the conditions are right, you might be able to simplify things such that you can use the 'mru'.
ie CREATE VIEW on the two tables.
However, you need to understand how Oracle treats DML operations on views, what type of views can be updated, etc., etc.
If just creating the view doesn't work, creating an INSTEAD OF trigger on the view come to mind...
(lol) - at that point, you have already started down the 'dark path' of creating your own 'MRU'
personal note: triggers have a really baaaddd habit of hiding code from other developers. you are better off, in the long run, creating your own 'mru'..
ie a package with procedures to handle INSERT, UPDATE, and DELETES
MK -
DBPolling based on two conditions
Hi All,
We have a requirement in our bpel to process to poll the DB based on two conditions as we know how to poll on DB for one conditions.
Any help is highly appreciated.
Thanks and Regards,
Nagaraju .DSorry it is late here, I was thinking of selecting data, forget what I have said.
Polling condition needs to be a sequence so there is no possibility of missing rows. Things like date, id etc
If you need to use multiple conditions you need to concatinate the fields as part of the select statement. You may need to create a view for this.
Obviously if you are doing a physical delete, or a logical delete there is no such issue as BPEL will read every row that is in the table, or where the flag is set to not processed.
Hopefully this helps, sorry for mucking you around
cheers
James
Maybe you are looking for
-
Split Valuation- Net Price Problem in Po
Dear All, The Split Valuation confiigured for Material as Val Type(A)- Ex Procurement Val Type(B)- Internal House Production. assigned Valuation Category(C) with A & B and with Plant. In Material Master Accounting view enter all
-
True colors are not showing on some photos.
True colors are not showing on some photos. Today a black sweatshirt displayed as blue. Is there an adjustment?
-
I need help with thumbnail icons. I want to take those generic thumbnail icons that you get when you grab a .jpg or .gif image from a web page and turn it into a thumbnail icon of the actual image. Does anyone know of an application that can do this
-
Known Preference conflicts?
Are there any known preference conflicts for CS3? Everything crashes on my Admin account, but works fine on my other user account. Tech Support told me to just use it on my User account, which isn't acceptable. Preferential Treatment turned up nothin
-
what things can be upgraded in HP ENVY 6-1002tx Notebook PC ...RAM,hard disk.....