How to query ICP result in [Elimination] value ?
Dear experts,
I want to create a form which can show an ICP transaction as below:
____________________________________SalesIC______CostIC_______PlugPL
Entity A____Partner B___<Entity Currency>__500
Entity B____Partner A___<Entity Currency>_____________600
Now, after consolidation, i want to see [Elimination] value in form. I did create a form like this in v11.1.1.3 before and it worked. However in v11.1.2.2.300, it keeps sending me invalid cell. Below is the additional information I want to see in form:
____________________________________SalesIC______CostIC_______PlugPL
Entity A____Partner B___<Entity Currency>__500
Entity B____Partner A___<Entity Currency>_____________600
Parent A___Partner A____[Elimination]______-500___________________500
Parent A___Partner B____[Elimination]_________________-600________-600
Parent A___[ICP Top]___<Entity Currency>________________________-100
When I build this form, [Elimination] row always invalid (red/orange color). I wondering how can I show the elimination process ?
I know that we can create intercompany report for summary, but still I need to show this elimination as a report formal.
Thanks for your help.
Anna
Hi,
Yes, actually in form, i create exactly as you told. It's automatically created by system when i select entity. HFM is automatically added Parent.Entity. That's in form script. But when viewing the form, the entity display only Entity, not with its parent.
Did I create something wrong with this ?
Appreciate your help. Thanks,
Anna
Similar Messages
-
How to query ICP difference?
From ICP report, I can see the difference between two entities. How to show it in data grid?
Hi,
Yes, actually in form, i create exactly as you told. It's automatically created by system when i select entity. HFM is automatically added Parent.Entity. That's in form script. But when viewing the form, the entity display only Entity, not with its parent.
Did I create something wrong with this ?
Appreciate your help. Thanks,
Anna -
How to get POF object's field value from query result
hi,all:
I want to get field value from the query result, my code is below
Set setResults = cache.entrySet(createFilter("homeAddress.state = 'MA'"));
for (Iterator iter = setResults.iterator(); iter.hasNext(); )
Contact c=(Contact)iter.next();
System.out.println ("firstame####=" + c.getFirstName());
* but I get error*
Exception in thread "main" java.lang.ClassCastException: com.tangosol.util.ConverterCollec
tions$ConverterEntrySet$ConverterEntry cannot be cast to com.oracle.handson.Contact
at com.oracle.handson.QueryExample.printResults(QueryExample.java:159)
at com.oracle.handson.QueryExample.query(QueryExample.java:86)
at com.oracle.handson.QueryExample.main(QueryExample.java:43)
who can tell me how to get POF object's field value from query resultHi,
If you look at the Java Doc for the entrySet method here http://download.oracle.com/docs/cd/E15357_01/coh.360/e15725/com/tangosol/util/QueryMap.html#entrySet_com_tangosol_util_Filter_ you will see that it returns a Set of Map.Entry instances so you need to do this...
Set setResults = cache.entrySet(createFilter("homeAddress.state = 'MA'"));
for (Iterator iter = setResults.iterator(); iter.hasNext(); )
Map.Entry entry = iter.next();
Contact c=(Contact)entry.getValue();
System.out.println ("firstame####=" + c.getFirstName());
}JK -
Result of the query is not filtered as value given in Select Option variabl
Hello ,
A Select option Variable is created on Navigational Attribute( ZINV_PROG) of 0WBS_ELEMT.
The Compound Key for object ZINV_PROG(Investment program) is APPR_YEAR( Approval Year)
This ZINV_PROG object does not bear Master data.
The values in the field get populated as you load Master data of 0WBS_ELEMT.
The values for this objects is as shown below:
APPR_YEAR ZINVPROG
2005 ESCCCAPS
2007 ESCCCAPS
2008 FIRE
2006 CAPITAL
A select option variable is craeted on this Navigational attribute.
When you execute the query , On the selection screen of the query..
If you provide i/p for Investment programm field as 2007 ESCCCAPS, the data should ideally be filtered for this values only.
But the result of the query shows data for both values 2005 ESCCCAPS and as well as for 2007ESCCCAPS.
Let me know how to sort this issue.
Points will be assigned for the correct and helpfull answere.
Thanks,Thanks Srini for your prompt explanation.
My Question is if Approval year is a compounded key of ZINV_PROG object why data would not get filter out directly.
I mean on the screen for this particualr variable i take help - F4 to see values there you are able to see all the values of Investment programm along with the apprroval year.
If i select value as 2005 ESCCCAPS from the help F4 screen then ideally data should be fileterd out for this particular value. But it is not happening so.
Is that so in Query desgining that if you creating a variable on Nav Attribute, and that particular Nav attribute has a compound key then if you want to filter out the data for this Nav attribute correctly you would also require to create a variable for Compound key also.
Please let me know
Thanks -
How to achieve the results by Query ??
Hello Guys,
I have couple tables which I need to join to get the result....This is what is in the tables...
CList Table
CID, Name
A, ABC
B,CDE
C,JFK
JList Table
JID, Name
1, Something
2, Another
3, Else
4, Should be something
JOb_2_Courses
JobID, CourseID
1,A
1,B
2,C
Employee Table
EID, Job_ID
1A, 1
2A,1
3B,1
2C,2
23D,3
CStatus Table
StatusID, Desc
1,Completed
2,Pending Approval
3,Declined
4,Scheduled
5,Register
Now user can only register the course which are related with their job....NO course else.....
When they register it is moved to temp_course_registration and then once completed to COURSE_HISTORY
For Example : So Employee : 1A will see two courses to register A and B...
Say he registers A....it makes an entry in temp_course_registration table with the course id, employeeid and date....
With further steps once that status is updated to '1'.....the course is deleted from temp_course_registration and is moved to course_history........
Now to show to the user...I need to include all my tables in the query and on the basis of status, show necessary things to the user....
Output :
Course_ID, Status.............
Say if they completed the course will come from course_history, if in the process will come from temp_course_registration.....if nothing is in the tables for the specific employee...this means status is '5' and they need to register everything...
Can someone let me know, how to achieve the results....
Thanks,
HarsimratHello
I'm off home now so I can't look at the query, but for future reference, if you want to improve your chances of getting help, you need to provide simple create table statements, and test data to go with it. I've done that with what you provided and hopefully someone else will be able to help. Also, you were asked if you could provide this in your other thread...
CREATE TABLE CList(CID varchar2(1), Name varchar2(3))
insert into clist values('A', 'ABC');
insert into clist values('B','CDE');
insert into clist values('C','JFK');
CREATE TABLE JList(JID number, Name varchar2(30))
insert into jlist values(1, 'Something');
insert into jlist values(2, 'Another');
insert into jlist values(3, 'Else');
insert into jlist values(4, 'Should be something');
CREATE TABLE JOb_2_Courses(JobID number, CourseID varchar2(1))
insert into job_2_courses VALUES(1,'A');
insert into job_2_courses VALUES(1,'B');
insert into job_2_courses VALUES(2,'C');
CREATE TABLE Employee (EID varchar2(3), Job_ID number)
INSERT INTO employee VALUES('1A', 1);
INSERT INTO employee VALUES('2A',1);
INSERT INTO employee VALUES('3B',1);
INSERT INTO employee VALUES('2C',2);
INSERT INTO employee VALUES('23D',3);
CREATE TABLE CStatus(StatusID number, Descr varchar2(30))
insert into cstatus values(1,'Completed');
insert into cstatus values(2,'Pending Approval');
insert into cstatus values(3,'Declined');
insert into cstatus values(4,'Scheduled');
insert into cstatus values(5,'Register');HTH
David -
Query Builder results seem to max out at 500 lines. How to change?
Hi all,
Some of out Application Express users are using the Query Builder tool for ad-hoc reporting. The idea is to run the SQL to extract the data, then download to MS Excel. The Query Builder results seem to max out at 500 lines. I want to increase that value. I searched all Application Express forums for 'query builder output max 500' and then 'query builder output' and did not find the answer.
How do I change the 500 line limit in Query Builder results?
Thanks!
Application Express 3.1.2.00.02
Oracle 10g
Standard PDF printing (not BI Publisher)Bryan,
Here is a link to an HTML-DB studio application, that is a QBE "replacement" for the query tool in APEX development..
http://htmldb.oracle.com/pls/otn/f?p=18326:7:1387557504245687::::P7_ID:1222
It is for an older version of APEX, but you should be able to make it work for your needs..
Thank you,
Tony Miller
Webster, TX -
How to query a table and result together with autonumber
Hi all
How to query a table and the result return autonumber for each row together with the table values.
I have tried rowid but it provide me with characters.
TjWhat is your exact requirement?
If you want the number of rows selected, you can use rownum.
select rownum, a.* from <table> a;
Cheers
Deepak -
SSRS report with cube – MDX query how to get an extra row with value '0'.
Hello everyone,
I'm unable to write the MDX query to get '0' value as first row in output. Following is my MDX query:
WITH MEMBER [Measures].[Dummy] AS '0'
SELECT NON EMPTY Union( {[Measures].[Amount] },{[Measures].[Dummy]}) ON COLUMNS,
NON EMPTY { ([Customer].[Customer Nbr].[Customer Nbr].ALLMEMBERS * [Fiscal].[Year].[Year].ALLMEMBERS ) }
having [Measures].[Amount] > 5000
ON ROWS FROM [cube]
With above query, the output returns the value '0' as a separate column.
I would like to get it in form of first row for [Measures].[Amount]. Like,
Amount
0
500
200
100
What needs to be changed to achieve the above result? I'm planning to use the above value in line chart to start the line from 0th value as described in following URL. (Note: The below URL is using SQL query and not MDX expressions.)
http://spinerain.blogspot.in/2013/09/ssrs-line-chart-create-stacked-line-and.html
Thanks, Ankit Shah
Inkey Solutions, India.
Microsoft Certified Business Management Solutions Professionals
http://www.inkeysolutions.com/MicrosoftDynamicsCRM.htmlThe round brackets in your expression are forcing an implicit crossjoin between the 3 lines. I would do the following which creates a set of the DummyYear plus the real year members and then crossjoin that with the customer set.
WITH MEMBER [Fiscal].[Year].DummyYear AS '0'
SELECT NON EMPTY {[Measures].[Amount]} ON COLUMNS,
NON EMPTY {[Fiscal].[Year].DummyYear,
[Fiscal].[Year].[Year].MEMBERS} *
[Customer].[Customer Nbr].[Customer Nbr].MEMBERS
having [Measures].[Amount] > 5000
ON ROWS FROM [cube]
http://darren.gosbell.com - please mark correct answers -
How to display the results in order by based on search value
Hi All,
how to display the results in the below order.
CREATE TABLE TEST( SONGID NUMBER, TITLE VARCHAR2(200))
INSERT INTO TEST(SONGID,TITLE) VALUES (10,'AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)');
INSERT INTO TEST(SONGID,TITLE) VALUES (11,'CICCONE, MADONNA (CA)');
INSERT INTO TEST(SONGID,TITLE) VALUES (12,'DALLIN, MADONNA LOUISE/STOCK');
INSERT INTO TEST(SONGID,TITLE) VALUES (13,'MADONNA');
INSERT INTO TEST(SONGID,TITLE) VALUES (14,'MADONNA (A)/ AHMADZAI, MIRWAIS (C)');
INSERT INTO TEST(SONGID,TITLE) VALUES (15,'MADONNA (CA)');
INSERT INTO TEST(SONGID,TITLE) VALUES (16,'MIRWAIS AHMADZAI, MADONNA');
INSERT INTO TEST(SONGID,TITLE) VALUES (17,'MIRWAIS (CA)/ MADONNA (CA),AHMADZAI');
INSERT INTO TEST(SONGID,TITLE) VALUES (18,'MADONNA (CA),CICCONE');
SELECT *FROM TEST WHERE INSTR (TITLE, 'MADONNA') > 0
output:
SONGID TITLE
10 AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)
11 CICCONE, MADONNA (CA)
12 DALLIN, MADONNA LOUISE/STOCK
13 MADONNA
14 MADONNA (A)/ AHMADZAI, MIRWAIS (C)
15 MADONNA (CA)
16 MIRWAIS AHMADZAI, MADONNA
17 MIRWAIS (CA)/ MADONNA (CA),AHMADZAI
18 MADONNA (CA),CICCONE
Expected output :
13 MADONNA
14 MADONNA (A)/ AHMADZAI, MIRWAIS (C)
15 MADONNA (CA)
18 MADONNA (CA),CICCONE
...if user searches with 'MADONNA' , I have to display the results like title starts with 'MADONNA' first then rest of the records.
Please let me know is it possible to display the results in that order.
Regards,
RajasekharThis may be a bit more accurate:
SQL> SELECT *
2 FROM TEST
3 WHERE INSTR (TITLE, 'MADONNA') > 0
4 ORDER BY INSTR (TITLE, 'MADONNA')
5 ,TITLE
6 ;
SONGID TITLE
13 MADONNA
14 MADONNA (A)/ AHMADZAI, MIRWAIS (C)
15 MADONNA (CA)
18 MADONNA (CA),CICCONE
12 DALLIN, MADONNA LOUISE/STOCK
11 CICCONE, MADONNA (CA)
17 MIRWAIS (CA)/ MADONNA (CA),AHMADZAI
16 MIRWAIS AHMADZAI, MADONNA
10 AHMADZAI, MIRWAIS (CA)/ MADONNA (CA) -
How to Query remote PC's registry by OU for 2 values and export to CSV file.
I'm new to scripting and to Powershell but this is what I have managed to put together so far. Of course it fails. We have two custom entries in the registry that I want to query remote workstations for these values, Monitor 1 and Monitor 2. Output to a
CSV along with the workstations name. Because of our AD structure I figured its just easier to input the OU individually as seen in the script. That portion of the script seems to work. I get the following error in bold when I run the script: I've Google'd
and tinkered with this for a week now with no resolution and seem to be going in circles. And yes, I had help to get this far.
Exception calling "OpenRemoteBaseKey" with "2" argument(s): "The network path was not found.
At C:\utils\RegMonitor2.ps1:33 char:5
+ $regKey = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey($Hive,$result.pro ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : IOException
Exception calling "OpenRemoteBaseKey" with "2" argument(s): "The network path was not found.
At C:\utils\RegMonitor2.ps1:33 char:5
+ $regKey = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey($Hive,$result.pro ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : IOException
# 1) Searches Active Directory for all Computers under said OU
# 2) Searches remote registry of those machines for the mentioned Monitor and Monitor2 subkeys.
# 3) Exports CSV (Can be opened and saved as excel format later) with ordered columns Computername, Monitor1 value, monitor2 value.
# ================================================================
$SearchPath = "OU=XXX,OU=XXX,OU=XXX,DC=XXX,DC=XXX,DC=XXX"
$objSearcher = New-Object System.DirectoryServices.DirectorySearcher
$objSearcher.SearchRoot = New-Object System.DirectoryServices.DirectoryEntry("LDAP://$SearchPATH")
$objSearcher.PageSize = 1000
$objSearcher.Filter = "(objectClass=computer)"
$objSearcher.SearchScope = "Subtree"
$colProplist = "name"
$colResults = $objSearcher.FindAll()
$Store = @()
$Hive = [Microsoft.Win32.RegistryHive]"LocalMachine";
foreach ($result in $colResults)
# Use $result.properties.name to retreive ComputerName
$obj = New-Object PsObject
$obj | Add-member -type noteproperty -name "Computername" -Value $result.properties.name
$regKey = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey($Hive,$result.properties.name);
$ref = $regKey.OpenSubKey("SYSTEM\CurrentcontrolSet\control\Session Manager\Environment");
$obj | Add-member -type Noteproperty -name "Monitor1" -value $ref.OpenSubKey("Monitor")
$obj | Add-member -type Noteproperty -name "Monitor2" -value $ref.OpenSubKey("Monitor2")
$store += $obj
$store | Select-Object Computername,Monitor1,Monitor2 | Export-CSV -noTypeInformation -Path "Pathtosave.csv"
People are always promising the apocalypse. They never deliver.
Ok, I have modified the end of the script a bit, and no more error: Instead I get an unexpected output.
foreach ($result in $colResults)
# Use $result.properties.name to retreive ComputerName
$obj = New-Object PsObject
$obj | Add-member -type noteproperty -name "Computername" -Value $result.properties.name
$regKey = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey($Hive,$result.properties.name);
$ref = $regKey.OpenSubKey("SYSTEM\CurrentcontrolSet\control\Session Manager\Environment");
$obj | Add-member -type Noteproperty -name "Monitor1" -value $ref.OpenSubKey("Monitor")
$obj | Add-member -type Noteproperty -name "Monitor2" -value $ref.OpenSubKey("Monitor2")
$store += $obj
$store | Select-Object Computername,Monitor1,Monitor2 | Export-CSV -noTypeInformation -Path "C:\Utils\Data.csv"
Unexpected output:
"Computername","Monitor1","Monitor2"
"System.DirectoryServices.ResultPropertyValueCollection",,
"System.DirectoryServices.ResultPropertyValueCollection",,
"System.DirectoryServices.ResultPropertyValueCollection",,Hi,
What do your registry values look like in the Monitor and Monitor2 subkeys?
EDIT: This might help:
# Retrieve list of computers using Get-ADComputer and process each
Get-ADComputer -Filter * -SearchBase 'OU=Test PCs,DC=domain,DC=com' | ForEach {
# Verify PC is alive
If (Test-Connection $_.Name -Quiet -Count 1) {
# Connect to registry
$remoteHive = [Microsoft.Win32.RegistryHive]“LocalMachine”;
$regKey = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey($remoteHive,$($_.Name))
# Open the Environment key
$ref = $regKey.OpenSubKey('SYSTEM\CurrentcontrolSet\control\Session Manager\Environment')
# Create an ordered hashtable with the data from string values named 'String Value One/Two' in Monitor and Monitor2 subkeys
# You'll need to adjust these values based on your actual data
# If you are running v2, remove [ordered] below (so the line reads $props = @{)
$props = [ordered]@{
Computer=$_.Name
Monitor =$ref.OpenSubKey('Monitor').GetValue('String Value One')
Monitor2=$ref.OpenSubKey('Monitor2').GetValue('String Value Two')
# Create a custom object based on the hashtable above
New-Object PsObject -Property $props
} | Sort-Object Computer | Export-Csv .\MonitorRegistryCheck.csv -NoTypeInformation
# The line above sorts the output object by the computer name and then exports the object to a CSV file
Don't retire TechNet! -
(Don't give up yet - 12,575+ strong and growing) -
How to handle large result set of a SQL query
Hi,
I have a question about how to handle large result set of a SQL query.
My query returns more than a million records. However, the Query Template has a "row count" parameter. If I don't specify it, it by default returns only 100 lines of records in the query result. If I specify it, then it's limited to a specific number.
Is there any way to get around of this row count issue? I don't want any restriction on the number of records returned by a query.
Thanks a lot!No human can manage that much data...in a grid, a chart, or a direct-connected link to the brain.
What you want to implement (much like other customers with similar requirements) is a drill-in and filtering model that helps the user identify and zoom in on data of relevance, not forcing them to scroll through thousands or millions of records.
You can also use a time-based paging model so that you only deal with a time "slice" at one request (e.g. an hour, day, etc...) and provide a scrolling window. This is commonly how large datasets are also dealt with in applications.
I would suggest describing your application in more detail, and we can offer design recommendations and ideas.
- Rick -
How to make af: query (ResultComponentId) has two target values?
hello all :D
i'm newbie in jdev, i have little problem with af:query.
how to make af: query (ResultComponentId) has two target values?
thx
agungdmt :DI think you can simply set the second target control's partialTrigger to the af:query.
and access to the same binding attribute as your first target. (e.g.: if you have 2 target tables, set the value to #{bindings.XxxxxVO1.collectionModel})
Samson Fu -
How can i have Query trace results in a table format?
How can i have Query trace results in a table format?
Are you referring to reading the trace files generated under udump folder?
Well, you can make use of external tables, but you really need to be a master in understanding that cryptic data.
Check out following link for an alternative.
http://www.oracle.com/technology/pub/articles/gallagher_tfm.html -
Af:query - How to get the result rowsets
Hi,
I have a requirement where i need to search the db rows on and append the results the adf rich table on each search.
For this i am using af:query component. And trying to get the result rows for the named criteria.
String mexpr = "#{bindings.DestinDescVOCriteriaQuery.processQuery}";
processMethodExpression(mexpr, queryEvent, QueryEvent.class);
ViewCriteriaManager vcm = getDestinDescViewObj().getViewCriteriaManager();
ViewCriteria vc = vcm.getViewCriteria("DestinDescVOCriteria");
getDestinDescViewObj().applyViewCriteria(vc);
AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
adfFacesContext.addPartialTarget(tblDestinDesc);
However on each click of search the rows searched in the previous attempt are not retained.
Can anyone let me know how to get the result from named criteria and append it the table?
Thanks
AjayCan anyone help?
-
how can i do with labview program,when i have 20 different values,and 1 want to add it with constant value.and how to get the results?
Why do the 20 values have to be different? The same code should work even if some are equal.
What do you mean by "get the result"? The result is available at the output terminal and all you need is a wire to get it where you need it. That could be an indicator, another operation, or even a hardware device.
What is the data type of the 20 values? An array? A cluster? A bunch of scalars? A waveform? Dynamic data?
LabVIEW Champion . Do more with less code and in less time .
Maybe you are looking for
-
Hi exports iam using software 3.1 Iam facing below issue ,while converting deski to webi reports Note : All my servers are up .. Is i need to enable any options in servers Thanks, Raghunath
-
How do i enable third party cookies on my macbook pro?
how do i enable third party cookies on my macbook pro?
-
Connecting to HP Photosmart A617
I suddenly realized I was running back and forth to a printer in another room and that it was bluetooth capable, so I attempted to connect it (HP Photosmart A617) to my new Macbook Pro....... but even with the it in visible mode, my mac isn't seeing
-
Instructed to clo se Firefox when trying to open...with nothing open.
I have a MAC PRO tower running the 10.5.8 Leopard OS. About 2 weeks after an automatic Firefox update, when trying to open Firefox, a message "Only one copy of Firefox can be running at one time. Turn Firefox off". No other Firefox is on and I'm not
-
Forms won't calculate in Safari 5
The calculation field no longer works now that we have upgraded to Safari 5. It worked just fine on Mac OS 10.5.8 with Adobe Reader 9.3.2. The user migrated all data to a new iMac computer with Mac OS 10.6 and Adobe Reader 9.3.2 and now the pdf for