ADFTable Child count zero
Hi,
I have af:table(CoreTable) in my jspx and it has about 10 columns. I bound the table to the backing bean. In the table's setter method (setTable) I tired to print the child count using table.getChildCount() method and it returns 0.
In the CoreTable documentation, it is said that the columns are the immediate children of the af:table, then how come it is returning 0.
Can anyone explain?
Thanks
Ok, My table is a result set on a search form with search criteria and search button at the top of the screen. It is the typical search form as is in the SRDemo. By default it brings all records for the first time when one goes to the page.
Similar Messages
-
Problem in Getting Child Count And Child Reference of a Group [CS3/WIN]
Hi All,<br /><br />I have Created a group For Some pageItems using kGroupCmdBoss<br /><br />InterfacePtr<ICommand>groupItemsCmd(CmdUtils::CreateCommand(kGroupCmdBoss));<br />InterfacePtr<IGroupCmdData> groupCmdData ( groupItemsCmd, UseDefaultIID());<br />UIDList*list=new UIDList(grpList);//grplist contains UID of all items to be grouped<br />groupCmdData->Set(list);<br />ErrorCode status = CmdUtils::ProcessCommand(groupItemsCmd);<br /><br />Till here every thing is working fine.<br />But when i want to traverse through all group item using IHierarchy every time its giving child count as one.<br /><br />InterfacePtr<IHierarchy> child( groupRef, UseDefaultIID() ); <br /><br />int32 grpchildCount = child->GetChildCount(); //always 1<br /><br />I am not getting why its always return child count as 1. But the same code is working fine when i am creating group using click on Group In UI. <br /><br />Can any one tell me How Top Iterate through group in above case.???<br /><br />I think when i am executing Group command some document hierarchy is changing becoz of that i am getting issue??<br />any idea??
Hi Dirk,<br />Thanks For your Reply.<br /><br />ya you are correct I'd call that variable groupHier rather than "child".<br /><br /> ---You've omitted the interesting part, how and when you obtain that <br />groupRef.<br /><br />When i am creating group as mentioned above after executing group command i am using.<br />ErrorCode status = CmdUtils::ProcessCommand(groupItemsCmd); <br /><br />b UIDRef grpRef((groupItemsCmd->GetItemList())->GetRef(0));<br /><br />I am using this reference to set script label("Group") for that group.till here its working fine group is created and script label is set.<br /><br />Then i am iterating through all page items using UIDList itemsOnPage(database);<br />const bool16 bIncludePage = kFalse;<br />const bool16 bIncludePasteboard = kFalse;<br /> spread->GetItemsOnPage(pageIndex, &itemsOnPage, bIncludePage,<br /> bIncludePasteboard);<br />int noOfItems=itemsOnPage.Length();<br /><br />for(int32 pageItemIndex=0;pageItemIndex<noOfItems;pageItemIndex++)<br />{<br /><br />UIDRef pageItemRef=itemsOnPage.GetRef(pageItemIndex);<br /><br />//here i am reading script label <br /><br />if (Utils<IPageItemTypeUtils>()->IsGroup(pageItemRef) == kTrue) <br />{<br />InterfacePtr<IScript>script(pageItemRef, UseDefaultIID());<br />PMString grpScriptLabel=script->GetTag();<br /><br />if((grpScriptLabel.Compare(kFalse,"Group"))==0) //comparing with group label to check that this is group<br />{<br />// so it is group <br />InterfacePtr<IHierarchy> grpHier( pageItemRef, UseDefaultIID() );<br /><br />b ASSERT(::GetClass(grpHier)==kGroupItemBoss); //No Asserts here<br /><br />int32 grpchildCount = grpHier->GetChildCount(); // here i am getting always one<br />}<br />}<br /><br />}<br /><br />I check for Ur suggested Assert But i am not getting any assert.<br /><br />And One more interesting thing i found that the group i have created programatically is behaving fine as group in Indesign UI.But when I want To Ungroup In UI by right on Group item And Click UNGRoup option in menu nothing seems to happen.<br /> <br />I am really puzzled.
-
Panel Grid+Child count should be a multiple of the columns attribute.+Urgen
WARN [HtmlGridRendererBase] PanelGrid RegForm:j_id_jsp_1952996824_0 has not enough children. Child count should be a multiple of the columns attribute.
It stops my funstionalities working . I am using Myfaces jsf .Edward_Kimber wrote:
It stops my funstionalities workingHave you seen a doctor about that?That might well be related to the insufficiency of children. -
Newly created view has child count as 0
Hi,
I created a new view as follows. It is a proper JSF jspx page. But when I query for the child count, it is 0. The getChildren() method returns a list of nothing.
String viewID = "/myPage.jspx";
ViewHandler viewHandler = FacesContext.getCurrentInstance().getApplication().getViewHandler();
UIViewRoot newRoot = viewHandler.createView(FacesContext.getCurrentInstance(), viewID);
int childCount = newRoot.getChildCount(); //this is 0However, when I set this new view root in the FacesContext replacing the old one, the new page is rendered properly. I just have a simple text in it.
FacesContext.getCurrentInstance().setViewRoot(newRoot);Then why is the child count returned as 0. Is it a bug? or Am I missing something. Basically, I want to modify the newly created view. That is the reason I am trying to get its children. Any comments please.
ThankscreateView() only creates the UIViewRoot and doesn't consult the jsp file.
renderView() invokes ExternalContext.dispatch() and then the jsp file is
consulted and the component tree is created. -
Item Child Count ..how does it work in SharePoint 2013
Hi,
I have A folder inside document library and there are no documents inside the folder. However, the Item child count is showing as 19. Why is this happening? I am a site collection admin. It should not be the permissions issue.
Please help.
techieHi,
Please use the below Code to get the Item Count inside the document library folder
using (SPSite site = new SPSite("Site URl"))
using (SPWeb web = site.OpenWeb())
string url = web.ServerRelativeUrl + "/shared documents/Folder";
SPFolder folder = web.GetFolder(url);
Console.WriteLine(folder.ItemCount);
Don't forget to mark it as an Answer if it resolves your issue and Vote Me as helpful if it useful.
Mahesh -
Hi,
My requirement is--- to not display the clients which have Zero in all status which are Pending,Exp,Backorder,
Error.Please help me to fix it as it takes 9 mins to run which is just acceptable but it should not take more than that.
Here is the query.
SELECT /*+ USE_HASH(o,stm) */
NVL(SUM(CASE o.status WHEN 'P' THEN 1 ELSE 0 END),0),
NVL(SUM(CASE o.status WHEN 'E' THEN 1 ELSE 0 END),0),
NVL(SUM(CASE o.status WHEN 'B' THEN 1 ELSE 0 END),0),
NVL(SUM(CASE WHEN o.status IN ('A','U') AND (NVL(o.priority,'1') = '2' OR stm.surcharge_amount != 0) THEN 1 ELSE 0 END),0),
NVL(SUM(CASE WHEN o.status IN ('A','U') AND (NVL(o.priority,'1') != '2' OR stm.surcharge_amount = 0) THEN 1 ELSE 0 END),0)
INTO :ORDER_STATUS.PENDING,
:ORDER_STATUS.ERROR,
:ORDER_STATUS.BACK_ORDER,
:ORDER_STATUS.EXPEDITE,
:ORDER_STATUS.STD_SHIP
FROM orders o,client c,shipment_type_methods stm
WHERE o.status IN ('B', 'E', 'P', 'A', 'U')
AND o.abbreviation = 'INACT'
AND o.client = c.client
AND c.abbreviation = 'INACT'
AND o.client = stm.client(+)
AND o.shipment_class_code = stm.shipment_class_code(+)
AND (parent_order_id is null
OR (order_type='G'
AND parent_order_id=original_order_number))
AND o.client = :ORDER_STATUS.CLIENT_NUMBER;Thanks
SandyActually I got the query which is selecting-- only Active clients and dont select client if All order counts are ZERO.
My next question is my form displays all the clients and displays client which doesnot meet above critetion as
blank (which make sense as per query). I want to display only clients who meets the critetion NOT all clinets.
I have created manual datablock which has columns like Client number(DB col), client name (DB col),
Pending,Error,Std Ship,Exp,Error.
Please tell me where should I change settings to get what I want..
here is my modified code.
SELECT /*+ USE_HASH(o,stm) */
NVL(SUM(CASE o.status WHEN 'P' THEN 1 ELSE 0 END),0),
NVL(SUM(CASE o.status WHEN 'E' THEN 1 ELSE 0 END),0),
NVL(SUM(CASE o.status WHEN 'B' THEN 1 ELSE 0 END),0),
NVL(SUM(CASE WHEN o.status IN ('A','U') AND (NVL(o.priority,'1') = '2' OR stm.surcharge_amount != 0) THEN 1 ELSE 0 END),0),
NVL(SUM(CASE WHEN o.status IN ('A','U') AND (NVL(o.priority,'1') != '2' OR stm.surcharge_amount = 0) THEN 1 ELSE 0 END),0)
INTO :ORDER_STATUS.PENDING,
:ORDER_STATUS.ERROR,
:ORDER_STATUS.BACK_ORDER,
:ORDER_STATUS.EXPEDITE,
:ORDER_STATUS.STD_SHIP
FROM orders o,client c,shipment_type_methods stm
WHERE o.status IN ('B', 'E', 'P', 'A', 'U')
AND o.client = c.client
AND c.abbreviation != 'INACT'
AND o.client = stm.client(+)
AND o.shipment_class_code = stm.shipment_class_code(+)
AND (o.parent_order_id is null
OR (o.order_type='G'
AND o.parent_order_id=o.original_order_number))
AND o.client = :ORDER_STATUS.CLIENT_NUMBER
GROUP BY o.client HAVING (SUM(CASE o.status WHEN 'P' THEN 1 ELSE 0 END) > 0
OR SUM(CASE o.status WHEN 'E' THEN 1 ELSE 0 END) > 0
OR SUM(CASE o.status WHEN 'B' THEN 1 ELSE 0 END) > 0
OR SUM(CASE WHEN o.status IN ('A','U') AND (NVL(o.priority,'1') = '2' OR stm.surcharge_amount != 0) THEN 1 ELSE 0 END) > 0
OR SUM(CASE WHEN o.status IN ('A','U') AND (NVL(o.priority,'1') != '2' OR stm.surcharge_amount = 0) THEN 1 ELSE 0 END) > 0);Thanks
Sandy -
Hi Friends..
Please help me to fix this issue..
Query requirement is to find out the number of lines where the time effort is zero.
Row Column1 Column2
Group Time effort Count = 0
If a create a formula with DELTA(time effort) then only when I drill down the subgroup the query is able to count 0. But my requirement is to show only the Group and also count the number of zero at the subgroup level.
Is this possible ? If so, please explain.
Thanks & Regards,
SurjitHi there,
You can use this:
[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/7e58e690-0201-0010-fd85-a2f29a41c7af]
The only difference when implementing this, you can the characteristic you insert in the cube equal to 1 in particular situations, in your case when time effort equal to zero.
This will count all of those occurences and display the result in the query independent of the drill down.
Diogo. -
Message Retry Count Zero error
Hi,
I am sending a Message from one Trading partner to another over ebMS protocol .
The trading partners are using Weblogic JMS queues as the internal delivery channels.
when one trading partner is sending message to another, the mesage comes to the receving trading partner with error as "Max retry count for Message is zero".
I have reffered to one of the thread (Re: FTP retry issue) which says "Can you please update the Retry count and time to acknowledge in the<br />Delivery channel page and update the polling interval in the transport<br />server page as empty? I think the Polling interval value overrides the<br />retry count."
I have followed this and I am getting a Transport Error.
Please Help!
With Thanks & Regards,
Suhas.Hi,
This is the idc log:
2008.11.04 at 10:14:52:614: B2BStarter thread: (DEBUG) TransportProperties.TransportProperties():transport_callout_waittime=30;http.receiver.registry_port=5110;port=60700;smtp.receiver.protocol=imap;PROTOCOL_ENDPOINT=null;http.receiver.instance_name=IP;
2008.11.04 at 10:14:52:615: B2BStarter thread: (DEBUG) initialize TransportReceiver: [BTGS_ebMS_Transport_Server < http > < BTGS >]
2008.11.04 at 10:14:52:617: B2BStarter thread: (STATUS) [IPT_HttpRecRegisterBegin] HTTPReceiver.init(): Registering HTTP Receiver ...
2008.11.04 at 10:14:52:618: B2BStarter thread: (STATUS) RMIResponsePort = null
2008.11.04 at 10:14:53:020: B2BStarter thread: (STATUS) low port = 5110
2008.11.04 at 10:14:53:022: B2BStarter thread: (STATUS) high port = 5110
2008.11.04 at 10:14:53:023: B2BStarter thread: (STATUS) [IPT_HttpRecRegisterCompleted] HTTPReceiver.init(): Completed registering HTTP Receiver.
2008.11.04 at 10:14:55:987: RMI TCP Connection(13)-147.149.200.108: (STATUS) [IPT_HttpRecSendMessageViaCallback] A request is routed by HTTP Receiver to registered listener.
2008.11.04 at 10:14:58:018: Thread-14: (DEBUG) TransportProperties.TransportProperties():ACTION_NAME=ACTION:rqRequestTroubleReportAmendment;FROMROLE:Consumer;TOROLE:Provider;SERVICE:bcRequestTroubleReportConsumerAmendment_BT_V1;SERVICETYPE:string;;jms.sender.jndi_destination_provider_properties=java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory;java.naming.provider.url=t3://147.149.200.111:53482,147.149.200.111:53484;MSG_TYPE=1;MSG_ID=9395C86B11D66FF77B500000E555D000-1;TO_PARTY_IDENTIFIER=urn:oasis:names:tc:ebXML-cppa:partyid-type:duns#123456789;FROM_PARTY_IDENTIFIER=urn:oasis:names:tc:ebXML-cppa:partyid-type:duns#987654321;jms.sender.jndi_connection_factory_location=weblogic.jws.jms.QueueConnectionFactory;jms.sender.destination_password=******;jms.sender.factory_provider_properties=java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory;java.naming.provider.url=t3://147.149.200.111:53482,147.149.200.111:53484;jms.sender.jndi_destination_location=btgsb2b.distjms.WLI_to_CI_BPS_Cluster_1;jms.sender.is_topic=false;jms.sender.type=bytes;DOCTYPE_NAME=rqRequestTroubleReportAmendment_DocType;FROM_PARTY=BTW;DOCTYPE_REVISION=1.0;TO_PARTY=BTGS;jms.sender.destination_username=weblogic;
2008.11.04 at 10:14:58:020: Thread-14: (DEBUG) Establishing JMS Connection.
2008.11.04 at 10:14:58:431: Thread-14: (DEBUG) TransportProperties.TransportProperties():
2008.11.04 at 10:14:58:433: Thread-14: (DEBUG) TransportProperties.TransportProperties():http.sender.port=80;http.sender.proto=http;http.sender.host=punin1879164268.sid.bt.com;http.sender.path=/b2b/transportServlet;
2008.11.04 at 10:14:58:434: Thread-14: (DEBUG) Discard Existing Cookies for CurrentThreadContext = Thread[Thread-14,5,main]
2008.11.04 at 10:14:58:435: Thread-14: (DEBUG) Timeout = 60000
2008.11.04 at 10:14:58:436: Thread-14: (DEBUG) Basic authentication is not used due to one of security parameters not set. Make sure username, password, and realm are set in delivery channel.
2008.11.04 at 10:14:58:437: Thread-14: (DEBUG) http.sync = null
2008.11.04 at 10:14:58:438: Thread-14: (DEBUG) Number of headers to be added is 7
2008.11.04 at 10:14:58:932: Thread-14: (DEBUG) [IPT_HttpSendResponseStatusCode] HTTP Response status code: 204
2008.11.04 at 10:14:58:934: Thread-14: (DEBUG) [IPT_HttpSendResponseMessage] HTTP Response message: .
Regards,
Suhas. -
ViewObject getting as row count zero ( JDeveloper 10.1.3)
Hi All,
In my code when i tried to get the viewobject rows, which had a viewlink created inside the code using the createLink() method, the viewobject is coming as with zero row count.
I tried , vo.setRangeSize(-1) , vo.executeQuery() as well but still its not updated.
But the same code is working in 9.0.4 not in 10.1.3Hi Frank,
I am not sure whether its an upgrade bug or not...., is there any way to trace the this?. -
Play Count Zero for Songs Previously Played
Does Play Count reset to zero if a song is not played after a certain amount of time? I have Play Count = 0 for songs that I know I have played.
I am looking for ideas for why I have zero play count for songs that I have played.That's the answer then. Syncing is a "procedure" which, among other things, does all the work for you of finding out how many times each song has been played on the iPod and transferring that information back to iTunes. When you Manual Manage, all you are doing is manually dragging songs on and off, nothing else.
Phil -
Why use exchange ews api "GetRoomLists" result count zero
In this feature . i must get the room list.
I have two questions:
first one :
this is my c# code.
static ExchangeService service = Service.ConnectToService(UserDataFromConsole.GetUserData(), new TraceListener());
var zz = service.GetRoomLists();
validation code use microsoft's example <Exchange 2013 101 Code Samples>
But the zz item count is zero..
I'm sure that my office 365 have three rooms and the outlook client can use those room item to create the meeting..
second :
i want get some room's meeting .
who to do that?
Ths....The AddressList's you see in the GAL in Outlook or OWA aren't the same thing as RoomList's these need to be created as there are none by default. To create a roomlist you need to use the Exchange Management Shell New-DistributionList cmdlet and the -RoomList
switch eg
http://blogs.technet.com/b/educloud/archive/2011/11/07/get-a-room-enable-room-finder-with-room-list-distribution-groups.aspx
Cheers
Glen -
Parent Child count- so complicated!
Hi Guys
I have a dataset where there are parent and child products.
Each parent has got a unique code(P1,p2 etc) and a link code (L1) on their account
and each child of the parent has got a seperate code (C12) but they share the same account no.
I want to count the parent and children
Here is the ddl with the desired output.
Pls help!!
create table #Something
Line_no int,
code varchar(5),
AccountNo char(5)
insert #Something
select 12311, 'P1c', 'Ac115' union all
select 12311, 'L1', 'Ac115' union all
select 123, 'C1', 'Ac115' union all
select 1222, 'C1', 'Ac115' union all
select 1243, 'C1', 'Ac115' union all
select 433, 'P1a', 'Ac111' union all
select 433, 'L1', 'Ac111' union all
select 4331, 'C1', 'Ac111' union all
select 543, 'C1', 'Ac222' union all
select 544, 'C1', 'Ac222' union all
select 4322, 'P1b', 'Ac222' union all
select 4322, 'L1', 'Ac222' union all
select 8766 'P1d' , 'Ab111' union all
select 8766 'L1' , 'Ab111' union all
select 8767 'C1', 'Ab111' union all
select 8789 'P1d', 'Ab119' union all
select 8766 'L1', 'Ab119' union all
select 876654 'C1', 'Ab119' union all
select 876655 'C1', 'Ab119' union all
select 876698 'P1a', 'Ab117' union all
select 876698 'L1', 'Ab117' union all
select 987 'C1', 'Ab117' union all
select 555444 'P1d' 'Xcv' union all
select 555444 'L1' 'Xcv' union all
select 6754 'C1' 'Xcv' union all
select * from #Something
drop table #Something
Desired output is:
[Parent code] [Parent line Count] [Child line Count]
P1c 1 3
P1a 2 2
P1b 1 2
P1d 3 4
ThanksHi Guys
just following on to my above question, there is a new challenge now.
Along with counting the lines, I need to count the total plan changes as well within a month as any parent or child plan can change their plans within a month.
in my current schema, there is a base table which is maintained at a daily level which shows all the active parent and child lines .
In my migration table, it shows whether a parent or child has got any plan changes or not.
Here is the ddl for Base table
create table #base
date datetime,
Line_no int,
code varchar(5),
AccountNo char(5),
select
12311,
'P1c',
'Ac115'
union
all
select 12311, 'L1', 'Ac115' union all
select 123, 'C1', 'Ac115' union all
select 1222, 'C1', 'Ac115' union all
select 1243, 'C1', 'Ac115' union all
select 433, 'P1a', 'Ac111' union all
select 433, 'L1', 'Ac111' union all
select 4331, 'C1', 'Ac111' union all
select 543, 'C1', 'Ac222' union all
select 544, 'C1', 'Ac222' union all
select 4322, 'P1b', 'Ac222' union all
select 4322, 'L1', 'Ac222'
select * from #base
drop table #base
here is the new ddl for migration
create table #Something
date datetime,
Line_no int,
code varchar(5),
AccountNo char(5),
Plan_change int
insert #Something
select 01/02/2013 123, 'C1', 'Ac115' 1 union all
select 02/02/2013 1222, 'C1', 'Ac115' 1 union all
select 02/02/2013 1243, 'C1', 'Ac115' 1 union all
select 03/03/2013 4331, 'C1', 'Ac111' 1 union all
select 03/03/2013 543, 'C1', 'Ac222' 1 union all
select * from #Something
drop table #Something
Desired output is:
[Parent code] [Parent line Count] [Child line Count] [Child Line Migrations]
P1c 1 3 3
P1a 2 2 1
P1b 1 2 1
P1d 3 4 0
The tricky part is in the migration table , if the parent line has got no migration, it will not appear in that table.
Pls help guys
thanks -
Profile count zero for custom table related attributes
Hi,
We added a custom table as an assignment block in the business partner and we are using this in segmentation.
If I connect with the standard marketing authorisation role, when I create a profile using attributes of this table it returns a count of 0.
If I connect using my user with (sap_all) I have no problem with the count.
Do I need to add a specific authorisation object for the custom table or should this be handled automatrically in EEWB?
In the authorisation trace I cannot find anything significant to help.
regards
TimIndeed, an authorisation issue, object S_TABU_DIS required.
-
Hi ,
I have requirement to display reprort based on number of Child records. Suppose I have 2 child record need to display reprot two times including header information in a report.
XML structure as below :
<ServiceAgreement>header
<AccountAddressId>1-H5-47</AccountAddressId>
<AccountId>1-GK-40</AccountId>
<Active>Y</Active>
<AgreementId>1-TUMH</AgreementId>
<BillToAddressId>1-H5-47</BillToAddressId>
<CreatedByName>501172873</CreatedByName>
<CreatedByUser>501172873</CreatedByUser>
<CreatedDate>03/16/2011 21:02:40</CreatedDate>
<BEHCAccountCity>HAY RIVER</BEHCAccountCity>
<BEHCAccountName>HAY RIVER HEALTH & SOCIAL SERVICES AUTHORITY</BEHCAccountName>
<BEHCAccountState>CN</BEHCAccountState>
<BEHCAccountStreetAddress>3 GAETZ DR</BEHCAccountStreetAddress>
<BEHCBillToStreetAddress>3 GAETZ DR</BEHCBillToStreetAddress>
<BEHCPOPreference>N</BEHCPOPreference>
<BEHCPORequired />
<ListOfbehcPurchaseOrder2>
Child1
<behcPurchaseOrder2>
<AgreementId>1-TUMH</AgreementId>
<Name2>1-132I10</Name2>
<POAmount>345</POAmount>
<POExpirationDate>11/17/2011</POExpirationDate>
<PONumber2>12345</PONumber2>
<Type>Purchase Order</Type>
</behcPurchaseOrder2>
Child2
<behcPurchaseOrder2>
<AgreementId>1-TUMH</AgreementId>
<Name2>1-132TGJ</Name2>
<POAmount>500</POAmount>
<POExpirationDate>10/20/2011</POExpirationDate>
<PONumber2>45678</PONumber2>
<Type>Purchase Order</Type>
</behcPurchaseOrder2>
</ListOfbehcPurchaseOrder2>
</ServiceAgreement>
In above xml have two child node are there and expecting below format report
Report Page1
Header information
BEHCAccountName
BEHCAccountState
first Child node information
PONumber2
POExpirationDate
for second report page2
Header information
BEHCAccountName
BEHCAccountState
second Child node information
PONumber2
POExpirationDate
To repeat header information how can i get number of childs and to repeat header for each child information.
Edited by: user9530489 on Sep 14, 2011 1:12 PM
Edited by: user9530489 on Sep 14, 2011 1:40 PMronisto wrote:
1e Even the modify XML file look like what u see below, still give me 5 for the lengh.There is still whitespace text between the elements.
If you don't want to see the Text elements, you should use the following:
<aaron2 lettres="DEORSU"><solution>
<mot3 mot="DOX"/>
<mot4 mot="DUVF"/>
</solution><dictionnaire>
<mot3 mot="DES"/>
<mot4 mot="DESF"/>
</dictionnaire></aaron2>
2e It return length = 0 for line u see below
NodeList children = aronDoc.getDocumentElement().getElementsByTagName(aronDoc.getDocumentElement().getNodeName());
That is because you are asking for the elements from the document-element which have the same name as the document element.
Your code is equivalent to:
NodeList children = aronDoc.getDocumentElement().getElementsByTagName("aaron2");Instead you probably want the following:
NodeList children = aronDoc.getDocumentElement().getElementsByTagName("solution"); -
Issue in counting open invoices
Hi All,
I am facing an issue which could be common but i am getting the correct count for open invoices.
We have following scenario :
Assume, we are loading an invoice(INV1) which was open(determined by item status = O) yesterday and loaded the same into ODS and to the cube yesterday itself.
As we want to see the invoices which are open as of that particulat day.
we have a CKF defined with value = 1 and aggregation : counter of all values, reference characteristic : 0REFERENCE.
I run the report and I see open invoices = 1, which is correct.
Now,the invoice which was open yesterday was cleared and paid today.
Now , I loaded the data to ODS and then to the cube.
In the cube, I have three entries like
Invoice Item Status Amount
INV1 O(Open) 100
INV1 O(Open) -100
INV1 C(Cleared) 100
Since, this invoice is cleared today, when i run the report , i should get invoice count "Zero" but I am getting the count as "1" and the amount "0".
The CKF which was created is getting the count as "1" even though it is cleared.If the invoice is cleared, it should not be counted.
Anyone has any suggestions ?
Regards,
Jeevanokay - a number of issues here
The two item statuses of O will cancel each other out and be deleted if you have zero elemination on the cube and run the next compression
The negative zero was generated by the change log of the ODS when the item status = C cleared document came in
You always run the open items as at a point in time using two RKFs added together in one CKF
RKF1 is item status = O AND posting date <= key date of query
RKF2 is cleared date > key date of query AND posting date <= key date of query
Thus you can always restate the open items which have been subsequently cleared back to a point in time (ie historical aged debt reports etc..)
You must not just use item status = O
Now how to do the counts..
I normally put a counter onto the cube and negate the counter when the changelog negative O record (so the two Os cancel each other out) and then just add up the values of the counter as per the RKFs above
However there is another option but it still involves a change to the data model
The counts are based on the uniqueness of a document number
The full key of a uniqieness of an AR or AP document number in SAP is...
Company Code, Fiscal Year, Document Number, line item
(the line item is due to one AP document being split across many lines due to installment plans with different net due dates or partially allocated cash across many outstanding line items)
The other items have to be considered in uniqueness because SAP allows you to configure number ranges per company code wither with internal or external numbering and these ranges can be year specific - hence the full key is required
You cannot just count document number as this will give a false result as the same document numebr can be used in multiple years within the same company code AND across company codes as well (so group reporting of outstanding counts will be affected as well)
So you have to create a new infoobject that is called "Document Full Key" - that concatenates Company Code, Fiscal Year, Document Number, line item into one object string
You then put that in yoru cube and update it via the transformation rules
Then you can create the RKFs above and do a count all values based on the characteristic "Document Full Key" - then create a few more RKFs to do the splits of net due date and the offsets required for -30 -60 etc as per normal
Sorry for the bad news - but if you want to do it properly - I don;t think you have another other choice but the two options above..
But then what do I know!
Maybe you are looking for
-
Audigy 2 on Neo2 Platinum causes LOCK UPs/BSODs!!! Help!
I have a videocard with a HUGE, I mean HUGE custom CPU heatsink attached to it. This leaves me only ONE slot available for my Audigy 2. And that slot is the last slot 5, orange color. Its the ONLY ONE AVAILABLE. I read on these forums about some
-
Create Service Agreement - In Status field, "Release" is not appearing.
Hi folks, I am creating a simple Service Agreement in CRM Web UI. Entered all data required like Customer, product, org details, price discount etc.. and tried to "release" before saving. In the Status field "Release" option is not there to select. I
-
Sales Bom explode for ATP subitem
Hi, We have a senario that customer orders parent item, so we input parent item. In sales order, this parent item will go to APO for ATP check. then APT will force to create new subitem in the sales order after ATP check. After new item created, I wa
-
Hello.. I have one problem. I used automator to automaticly sync my photos to iphoto. Now I don't want it any more. How can I disable it?
-
Granting Privileges on Functions
Hi, I have created two functions and am using them in a SQL statement. I would like to run the statement in apps mode, however the functions have been created under another account. I get this error message when running the statement in apps mode: OR