Access current node in XPathFunction implementation
Hello,
When implementing an XPathFunction, is there a way to access current node?
For example,
"//*[local-name()='test123']"
in the above example, the built-in function, local-name, take current node as its argument.
However, from the API of XPathFunction:
public Object evaluate(List args) throws XPathFunctionException
It is not apparent how to access the current node.
I've tried:
"//*[myFunction()=1]"
the input arg length is zero.
Looking forward to any suggestions!
Thanks!
Thanks for the reply.
Allow me to further clarify my problem with the following example:
//*[local-name()='foo']/*[local-name()='bar']As shown in the above example, in the second call to the "local-name" function, the implementation
of the function should unavoidably require the reference of currently navigated xml node (a "foo" node in
the above example).
However, it does not seem obvious how to achieve the same functionality with XPathFunction interface.
So, what is the proper strategy if we want to implement our customized local-name-like functions?
Thanks!
Looking forward to suggestions.
Similar Messages
-
How to get current node element for recursive node.
Hello Xperts,
I have a requirement where I need to find the current node element of the recursive node.
I was trying following code for the same
Data:
selected_elem type ref to if_wd_context_element.
selected_elem = WDEVENT->GET_CONTEXT_ELEMENT( NAME = 'CONTEXT_ELEMENT' ).
selected_elem ->get_static_attributes(
IMPORTING
static_attributes = sel_attri ).
But it does not work for me and I always get 1st node value.
Please help me in this issue.
-AshutoshHello ,
If you implementing a simple tree ( not table tree ) and you want the selected element for
OnLoadChildren event .
Then create an importing parameter CONTEXT_ELEMENT of type IF_WD_CONTEXT_ELEMENT
in the event handler of onLoadChildren .
Webdynpro framework automatically filled up the context element with the current node in the tree .
I tried it , It really worked for me .
If you have a table tree then you need to create an importing parameter PATH of type String in tha event handler .
Webdynpro frame automatically fills the PATH .
the use can use the following method to get the element from the PATH .
wd_context->path_get_element( path ).
I tried it , It also worked for me .
Regards
Vivek
PS : please provide the points if answer is helpful . -
Access the nodes data in a table view (generated by aet).
Hi all ,
I have created a table view in bp overview page.
so it has created new component /ztable/zbol entity .
Now how can i access the nodes of BP page..in the new component created?.thanks vishal ,
but as per the thread,when we create table view using aet ,
Table view in EHP1 CRM 7.0
You dont need to worry about the component usage nor you need to create or handle anything like that for AET compoent for table extension. SAP has a special way to handle it in WD_USAGE_INITIALIZE of component controller for AET extension generated component so its nothing for us to do about it. Thanks to SAP
so still i need to redefine..or can directly access the nodes in do_prepare_output.? -
Error while accessing Heirarchy node in report
Hi Experts,
I am getting an error message while accessing a node in hierarchy while using variables for reports. I used Tcode RSZV but its throwing error that it doesnot exist in BW 3.x and it is embedded in Bex. Can any one guide me for any other options available to get the same functionality in Bex?
Thanks ,
Pilli.Hi Pilligay,
First check the version you are using.
T code RSZV is used in the earlier version of 3.0B only.
From 3.0B onwards it is possible in the query designer (BEx) itself. You need to right click on the info object for which you want to use as a variable and proceed further in selecting variable type and processing type.
Cheers,
Tanish -
How to get the current node element by its value?
e.g,:
wdContext.current<b>Deal</b>Element().setAttributeValue("<i>deal_id</i>","<i>aaaaaaa</i>");
above code can get the result i wanna.
but now i wanna in terms of its node'name to set attribute vaue of itself. in other words,i have no idea about how to get the current node element by its name"<b>Deal</b>".Hi Wing,
The answer is there in your question itself.
wdContext.currentDealElement()
will give you the current node element by its name"Deal" or you could use
wdContext.nodeDeal().getCurrentElement()
or you could use
wdContext.nodeDeal().getElementAt(wdContext.nodeDeal().getLeadSelection())
Regards,
Sudeep -
How do I calculate/retrieve the depth of a current node in XSLT?
I mean the number of parent nodes a particular node has, hard coded something like:
<root>
<child depth="1">
<another_child depth="2">
I do not want to hard code these levels, so i am searching for a way to do it in XSLT. I could not find a function/element for this purpose.
Who knows the solution????
tnxYou count the nodes in the ancestor axis: something like count(ancestor:*). Adjust by +/-1 if you need to include/exclude the root or the current node.
-
How to get the parent node of the current node?
Hi all,
i want to get the parent node of the current node and the not the parent of the parent node.
thank you very muchHi,
the parent node of <subnode1-2>29.99</subnode1-2> is (node1), how can do to get <node1> throw <subnode1-2>29.99</subnode1-2> the sub node of <node1>.
As per my understanding the parent node of <subnode1-2>29.99</subnode1-2> is book not the node1.
If you want node 1 as a parent of subnode1-2 than your xml will look like this.
<?xml version="1.0" encoding="ISO-8859-1"?>
<bookstore>
<book>
<fathernode>Harry Potter</fathernode>
<node1>
<subnode1>29.99</subnode1>
<subnode2>29.99</subnode2>
</node1>
<node2>
<subnode1>19.99</subnode1>
<subnode2>19.99</subnode2>
</node2>
</book>
</bookstore>
and also if you want tom retrive float data than refer following XPATH.
"//book[[price='1000']]/price/text()"
Regards,
Manoj Bilthare -
Search with "Current Node + All Subfolders" not functioning correctly
Hi,
We are having an issue with the search function of SCCM 2012 Admin Console. We have built multi-level folder structure to SCCM which matches our organizational unit structure in AD.
The issue occurs when trying to search with "Current Node + All Subfolders" option in a folder to get listing of all collections nested in the structure. As a result we get incomplete list of collections and majority of them are not showing
up. Sometimes the console even crashes when trying to do this kind of search. Note that this behaviour only occurs when searching inside a folder, not in the device collections root node.
We managed to trace the SQL query in the above situation from SMSProv.log, and it is as follows:
select all SMS_Collection.SiteID,SMS_Collection.CollectionType,SMS_Collection.CollectionVariablesCount,SMS_Collection.CollectionComment,SMS_Collection.CurrentStatus,SMS_Collection.HasProvisionedMember,SMS_Collection.IncludeExcludeCollectionsCount,SMS_Collection.IsBuiltIn,SMS_Collection.IsReferenceCollection,SMS_Collection.LastChangeTime,SMS_Collection.LastMemberChangeTime,SMS_Collection.LastRefreshTime,SMS_Collection.LimitToCollectionID,SMS_Collection.LimitToCollectionName,SMS_Collection.LocalMemberCount,SMS_Collection.ResultClassName,SMS_Collection.MemberCount,SMS_Collection.MonitoringFlags,SMS_Collection.CollectionName,SMS_Collection.PowerConfigsCount,SMS_Collection.RefreshType,SMS_Collection.ServiceWindowsCount from vCollections AS SMS_Collection where (SMS_Collection.SiteID
in (select all Folder##Alias##810314.InstanceKey from vFolderMembers AS Folder##Alias##810314
where (Folder##Alias##810314.ObjectTypeName = N'SMS_Collection_Device'
AND Folder##Alias##810314.ContainerNodeID in
(16777237,16777374,16777384,16777385,16777375,16777376,16777377,16777378)))
AND SMS_Collection.CollectionType = 2) order by SMS_Collection.CollectionName
From this we noticed that not all ContainerNodeIDs are searched, but a list of only 8 ContainerNodeIDs. These ContainerNodeIDs remain the same if the search is done again in the same folder. The same behaviour repeats also in other folders with a different
list of ContainerNodeIDs.
For clarification I'll attach a picture which shows our folder structure with ContainerNodeIDs and ParentContainerIDs. We have also marked the containers which were present in SQL statement. From this you can clearly see there should have been far more ContainerNodeIDs
than listed in the SQL query. Is this a bug in the admin console or could this be a problem with our site database? Is anyone else experiencing similar issues? We have written a custom
powershell script that reads containers from SMS_ObjectContainerNode WMI-class recursively and is able to return complete list of folders and their subfolders, so we assume that our site database and WMI on site server is functioning correctly.
We noticed this on CU2 (could have been present also earlier) and updating to CU3 did not fix the problem. Currently we are running SCCM 2012 SP1 CU3 with one primary site. All components besides distribution point is running on the site server. Distrubution
point is running on a separate server. Our SQL server is running on the site server.
Best Regards,
Juha-MattiSorry for the very long delay. I created the ticket in the autumn of last year and just received the final verdict to this issue.
Microsoft support said they were able to reproduce the problem and that they contacted the product group about this issue. It turns out that this behaviour is by design (wait, what?) and since it is by design there is nothing they
can/will do about it.
So the only choice is to request a tailored customization for SCCM2012, which probably in this case (as it is by design) would cost.
I feel a bit puzzled: how can it be by design if it clearly does not work? -
Current node tree with tooltip_text
Hello,
How can i display a tooltip_text for the current node from a tree ?
I tried with
:Ctrl.Node_Selected := Ftree.Get_Tree_Node_Property('BL_TREE.MENU',
:SYSTEM.TRIGGER_NODE,
Ftree.NODE_VALUE);
set_item_property('BL_TREE.MENU',
tooltip_text,
:Ctrl.Node_Selected);
I didn't find something with the build_in set_Tree_Node_Property
There is a possibility to display an icon for each node ? I build the tree with a record group. How can I do it ?
Thanks
Byehi,
you can set the tooltip-text of the whole treebean according to the currently selected "active" node.
Try to use the code you already used in a WHEN-TREE-NODE-SELECTED-Trigger.
It's not possible to have a tooltip-text for each node separately.
Yes, you can assign an icon to each node. Whn you use a recordgroup to fill the tree, one of the columns of the recordgroup has to be the name of the icon
If i remember correctly the columns are
NODE_STATE
NODE_DEPTH
NODE_LABEL
NODE_ICON
NODE_VALUE -
About error ORA-01208: data file is an old version - not accessing current
Hi friends,
After getting an error ,what i have stated below, my database instance was crashed everytime. I have seen alert.log file nothing is there and this error never come in pattern maner it will come anytime during week.
I have check with my application client they were doing nothing during this time even they have sent me their log i found no writing process was running and no jobs were running during this time.
My oracle version is 10.2.0.3 and os version is W2k.
Thanks in advance.
PM
Thu Oct 04 21:45:37 2007
Errors in file d:\oracle\admin\prd347\bdump\prd347_ckpt_1296.trc:
ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
ORA-01122: database file 7 failed verification check
ORA-01110: data file 7: 'E:\ORADATA\PRD347\CCDM_DATA_SMALL_T01_01.DBF'
ORA-01208: data file is an old version - not accessing current version
Thu Oct 04 21:45:37 2007
Errors in file d:\oracle\admin\prd347\bdump\prd347_ckpt_1296.trc:
ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
ORA-01122: database file 7 failed verification check
ORA-01110: data file 7: 'E:\ORADATA\PRD347\CCDM_DATA_SMALL_T01_01.DBF'
ORA-01208: data file is an old version - not accessing current version
_________________________________________________________________Hi,
I am attaching this CKPT Trace file which might helpful to you all.
V10 STYLE FILE HEADER:
Compatibility Vsn = 169869312=0xa200000
Db ID=2446524247=0x91d2ff57, Db Name='PRD347'
Activation ID=0=0x0
Control Seq=654516=0x9fcb4, File size=491520=0x78000
File Number=7, Blksiz=16384, File Type=3 DATA
Tablespace #7 - CCDM_DATA_SMALL_T01 rel_fn:7
Creation at scn: 0x0781.e33c8c09 12/13/2004 15:16:45
Backup taken at scn: 0x0000.00000000 01/01/1988 00:00:00 thread:0
reset logs count:0x201c7917 scn: 0x0000.00000001 reset logs terminal rcv data:0x0 scn: 0x0000.00000000
prev reset logs count:0x0 scn: 0x0000.00000000 prev reset logs terminal rcv data:0x0 scn: 0x0000.00000000
recovered at 09/25/2007 12:17:31
status:0x4 root dba:0x00000000 chkpt cnt: 211627 ctl cnt:211626
begin-hot-backup file size: 0
Checkpointed at scn: 0x079b.81db9e4f 10/04/2007 21:45:15
thread:1 rba:(0x33cee.2.10)
enabled threads: 01000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000
Backup Checkpointed at scn: 0x0000.00000000
thread:0 rba:(0x0.0.0)
enabled threads: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000
External cache id: 0x0 0x0 0x0 0x0
Absolute fuzzy scn: 0x0000.00000000
Recovery fuzzy scn: 0x0000.00000000 01/01/1988 00:00:00
Terminal Recovery Stamp 01/01/1988 00:00:00
Platform Information: Creation Platform ID: 7
Current Platform ID: 7 Last Platform ID: 7
DATA FILE #7:
(name #18) E:\ORADATA\PRD347\CCDM_DATA_SMALL_T01_01.DBF
creation size=0 block size=16384 status=0xe head=18 tail=18 dup=1
tablespace 7, index=7 krfil=7 prev_file=0
unrecoverable scn: 0x0000.00000000 01/01/1988 00:00:00
Checkpoint cnt:211628 scn: 0x079b.81dba014 10/04/2007 21:45:20
Stop scn: 0xffff.ffffffff 10/03/2007 02:00:10
Creation Checkpointed at scn: 0x0781.e33c8c09 12/13/2004 15:16:45
thread:0 rba:(0x0.0.0)
enabled threads: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000
Offline scn: 0x0000.00000000 prev_range: 0
Online Checkpointed at scn: 0x0000.00000000
thread:0 rba:(0x0.0.0)
enabled threads: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000
Hot Backup end marker scn: 0x0000.00000000
aux_file is NOT DEFINED
ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
ORA-01122: database file 7 failed verification check
ORA-01110: data file 7: 'E:\ORADATA\PRD347\CCDM_DATA_SMALL_T01_01.DBF'
ORA-01208: data file is an old version - not accessing current version
error 1242 detected in background process
ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
ORA-01122: database file 7 failed verification check
ORA-01110: data file 7: 'E:\ORADATA\PRD347\CCDM_DATA_SMALL_T01_01.DBF'
ORA-01208: data file is an old versio n - not accessing current version
------------------------------------------------------------------------------------------------ -
Display the icon when current node selected in af:tree
Hi !! Gud Mrg !!
I am using jdeveloper 11.1.1.5
I had created an af:tree., I need to display the icon when my user clicks the current node!!
Could any one pls provide me solution to fix this !!Sorry jhon and Frank !!
I will explain what i had did and my scenario!!
What i had did
I had dragged and dropped my ApplBusFun as a af:tree
Such that it doesnot have parent and child My tree would look like this
Request for quotation
Supplier Documents
Suppliers
Purcahse Order
My Scenario
My scenario is when my user clicks the current row ., Consider if my user clicks Request for quotaiton an arrow symbol must be appeared before Request for Quotation such that my output must looks like this
==>Request for quotation
Supplier Documents
Suppliers
Purcahse Order==> This is the icon which appeared before Request For Quotation and this icon must appear whenever user clicks any node Suppose if my user going to click Supplier Document means
My output must look like this
Request for quotation
==>Supplier Documents
Suppliers
Purcahse OrderHope i had explained my scenario clearly!! Appologise if i didnt explained properly!! -
How to access a node using ID?
Hi All,
I have defined specific id for each node object. How can i access one particular node using the id?
Can any one help me on this?
Thanks,
Thamizharasu SHello!
I just started to create my first javafx apps and stumbled upon the same problem. How can I access a Node which is identfied by the ID attribute?
Text {
id:"txt_greeting"
content: "Click me to greet!"
onMouseClicked: function( e:MouseEvent ):Void {
//Access myselft to change the content attribute
...Any ideas?
Thanks in advance. -
hi all,
I have some problem with train component.
lets say there are three node with train component.
assume that current node is third node then click on first.
on that point of action, how do i know user click on first one?
With Regards,
Wai PhyoHi ,
thanks for ur reply. it is really helpful.
but in my case, it is not just next/previous. it jumps back.
actually i have actionlistener in my commandNavigationItem which need to find out which train stage user click.
i try all of these , none of them reply what i want.
TaskFlowTrainStopModel currentStop = taskFlowTrainModel.getCurrentStop();
TaskFlowTrainStopModel prevStop = taskFlowTrainModel.getPreviousStop(currentStop);
TaskFlowTrainStopModel nextStop = taskFlowTrainModel.getNextStop(currentStop);
With Regards,
Wai Phyo -
The xquery cannot have an unbound current node
Hi,
am getting this error
•[RouteNode1, Routing Table action] XQuery expression validation failed: The xquery cannot have an unbound current node.unbound current node error comes when you use a variable in xquery expression without the $ symbol. Check for the symbol in various variables in xquery expression.
Cheers,
Durga -
Has anyone noticed, when setting the current node in a list view to nil
the blue highlight is replaced by a gray highlight? The only way I have
found to completely deselect an item in the list is to repopulate, has
anyone found another way?
Brian Milinazzo
Consultant
MSF&W Information Systems Consulting
3445 Liberty Drive
Springfield, IL 62704-6521
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>This is a known bug in Forte and is reported as being fixed in Version
J.
I do not know any other way to remove the highlight bar in previous
versions of Forte.
Ja.
-----Original Message-----
From: Brian Milinazzo [SMTP:[email protected]]
Sent: Wednesday, 6 January 1999 17:49
To: [email protected]
Subject: setting current node to nil
Has anyone noticed, when setting the current node in a list view to
nil
the blue highlight is replaced by a gray highlight? The only way I
have
found to completely deselect an item in the list is to repopulate, has
anyone found another way?
Brian Milinazzo
Consultant
MSF&W Information Systems Consulting
3445 Liberty Drive
Springfield, IL 62704-6521
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:http://pinehurst.sageit.com/listarchive/>-
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
Maybe you are looking for
-
My ipod classic 160 6th gen. was recently stolen. It had 3000 tunes on it and it synced perfectly with Itunes 9 on my Imac G5 non intel OS 10.4.11. So I recently bought same model and guess what, it doesn't sync at all. Now message says it only works
-
Performance for Custom folder in Discoverer
Hi there, thanks for all your helping questions and sharing your thoughts. I got issue from user regarding Custom folder in Discvoerer while they try to run report, becoz there are item classes i created and its taking so long time to fetch LOVs. Bel
-
Hi All, I am trying to write a program which accepts a parameter and validate that parameter in my PL/SQL block. If the parameter is NOT VALID, print a message and then prompt for the parameter again. If the parameter is VALID then perform a update o
-
I have divorced and we collected music together. now i can not get access to all the library. How do i get authority to all the library? And how do i produce a list of all songs that I do not have access to ?
-
Problems installing Mac OS X 10.5.7
I know next to nothing about Mac's so any help would be much appreciated. I recently purchased a copy of SIMS 3. Initially, It wouldn't let me install the game unless I upgraded to Mac OS X 10.5.3 I downloaded this and installed in without any proble