Accessing attribute nodes in SubVi's?
Hi,
Is there any way that I can access/set the attributes on my controls
and indicators from a SubVi? I know I can access/set the value with the
VI Reference tools.
In my application I would like to change the colour of an object when
the user clicks on it, but I need to do this from a subVi running in
parallell.
/Nimrod
Sent via Deja.com http://www.deja.com/
Before you buy.
Harry wrote:
I have a default value in one of the transient attribute for my Entity, now that attribute in viewObject has an LOV, now when I run the App Module Tester, I can see the default value , but it does not change upon selecting a new value from an LOVThis is working in 11.1.1.2.0. Make sure that the transient attribute is Updatable Always.
Similar Messages
-
Problem in accessing attribute of a context node
Hi All,
I have a context node called REFE and an attribute named REF to the node REFE. I am trying to get access to the attribute REF, so that i can dynamically set properties. But i am getting NULL Object error. I am successfully getting access to node REFE.
Here is the code.
lo_nd_refe = wd_context->get_child_node( name = wd_this->wdctx_refe ).
lo_el_refe = lo_nd_refe->get_element( ).
lo_el_refe->set_attribute(
EXPORTING
name = `REF`
value = 'http://sapsndbp.sbic.co.za:8011/sap/bc/webdynpro/sap/zzdm_audit_report' ).
Regards,
RAviHi,
What is the cardinality of the node.
If it is 1:1 then you can get teh reference of the context element directly.
If it 0:N or 1:N then you need to pass the index of the context element you are trying to get.
Use the method get_element of the context node and pass the index value.
Always check the element is initial or not before you process further for better coding.
Regards,
Lekha. -
Hi all,
I am new to webdynpro for ABAP. How to access the attribute which is directly under the root context.
ex.
Root Context
|
Name ---> attribute.
Regards,
Gnid.Hi Gopi,
Accessing a context element or a context attribute requires to first have a reference to the related context node. The context root node can be accessed by the standard attribute WD_CONTEXT.
To Access a Node Element: After having accessed a context node, the reference to the element at lead selection of this node can be obtained by calling the method get_element( ). Thismethod returns a reference to the element instance of type IF_WD_CONTEXT_ELEMENT. Accessing the Node Element at Lead Selection The element with index n can be accessed using the method get_element( index = n ) .
Once we access the element we can access the attribute by GET_ATTRIBUTE().
Child nodes of the context root node can be identified using the get_child_node( ) method. This method returns a reference to the node instance of type IF_WD_CONTEXT_NODE. The get_child_node( ) method requires the name of the node and, optionally, the index of the element in the parent node to which the desired node instance belongs. In this case, the parent node is the context root, which only ever has one element; therefore, the index parameter is 1 (default = lead selection of parent element).
Best regards,
Suresh
Message was edited by:
Suresh Honnappanavar -
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. -
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 -
The Date Accessed attribute is resetting to all the files in a folder
Hi all,
I have an issue that the "Date Accessed" attribute is often resetting to all the files in a folder if i open single file as this folder is from File server mapped as Drive to me. This is happening to all the users whoever connect to that fileserver
and i see same issue from RDP as well. is there any option to check which is resetting the "Date Accessed" attribute to all the files. The Date Access attribute is simillar to Date accessed and Date modified. We need to fix this issue as it is related
to security concern for us. The file server is windows 2008 R2 and the client machines are windows 7.
Side note: I can see that there is no software, antivirus, offline sycn is causing this issue.
Thank you,
Sampath
P.SampathHi,
It seems that some specific process accessed the files and updated the attribute. You could configure auditing on the shared folder. Then you can go through the auditing log to check which process is doing the read operation on all these files.
Configuring Audit Policies
http://technet.microsoft.com/en-us/library/dd277403.aspx
Best Regards,
Mandy
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. -
In XSLT, make XPath expression to retrieve attribute nodes
I have a problem fetching attribute nodes in an Xpath expression.
SOAP Request:
<Create ID=5/>
<Name>Per</Name>
I want to fetch the value of ID and put it into another variable with an XPath expression in a XSLT transformation.
If you look at http://www.w3schools.com/xpath/xpath_syntax.asp
You should be able to do this with "//Create[@ID]" according to the examples, but this is not working at all in JDev.
Any thoughts?
/PerThanks, that worked!
Just thought about it. How do you do the other way around.
<Create>
<ID>7</ID>
to
<Create ID=7>
. -
Function of attribute node "palette type - grayscale"
Hello,
i wanted to ask you, what the function of this attribute node "palette type" (grayscale) is?
It is included in (almost) every VI, created in Vision Assistant.Please crop your embedded image next time. There is no need to include 1M white pixels!
How old is your LabVIEW version? I think it was in the last century when property nodes were still called attribute nodes.
What happens if you right-click the node and select "help for palette type" or similar?
LabVIEW Champion . Do more with less code and in less time . -
Can anyone please tell me how the attribute node in LABVIEW ( ver 5) in builtin INSTRUMENT I/O exampe file works and how it is being made.............
Samura,
After running LabVIEW 5.1 I found in the Search Examples help file a link titled Instrument I/O. Under there I see several examples, one of which contains many attribute nodes. It is difficult for me to tell you pecifically what the purpose of each and every attribute node in this forum.
Generally, attribute nodes in LabVIEW 5.1 are used to set the properties of the front panel controls and indicators. The properties available in an attribute node are very similar to the properties made available by right clicking on a particular front panel control or indicator.
If you have a question about a specific attribute node, I would like to ask you to post in a new thread with a detailed description of the attribute node.
Thank you, and have a great day
Scott
Applications Engineer
National Instruments -
Hello
I am having problems with the programmatical adjustment of a numerical input. I am using attribute nodes to set the precision and data range, but it has no effect on the input element. I recently updated from 6.0 to 7.1 and never had that problems under 6.0.
What is wrong here?
I appanded the VI I am working on. Th enumeric Inputs next to the buttons have to adjust to the chosen data range.
Best Regards Dermot
Attachments:
RezeptAddTR4.vi 234 KBI submitted an issue report against the LV Help for this. If you encounter other situations where NI documents are missing information or have unclear or incorrect information, please submit that feedback so we can look into it.
Thanks!
Kelly Holmes
LV Documentation
Kelly H
LabVIEW Documentation
National Instruments -
Labview 6.i front panel with a chart, multiple plots, several transducers, thermocouples, Vdc, power monitors.
I need a dual "Y" scale for a new application. I had no problem making the duplicate scale and designation which plot goes to what scale, however, when zooming in on a section of the plot and then resetting the chart with the minimum and maximum scaling attributes, it only resets the "0" scale ( -30 to 500) not the "psig" scale (-300 to 5000). How do I designate which (Min Max)attribute node goes to which "Y" scale?
I will be upgrading to 7.1.1 this week, is a new tool available to do this? ThanksHi
Download example about scales.
:ni example
See attached doc. Once you select an y active scale, all Y scale modifications affect that scale.
It works like select active cursor.
Cheers
Alipio
"Qod natura non dat, Salmantica non praestat" -
How to access attribute name (xml) in Servlet ?
Hi All,
Anybody please tell me how to access attribute name in servlet ?
ThanksParser.java
public class Parser
public static String getAtt()
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setNamespaceAware(true);
DocumentBuilder parser = factory.newDocumentBuilder();
Document doc = parser.parse("customer.xml");
Element root = doc.getDocumentElement();
return root.getAttribute("name");
public static void main(String [] argc)
Parser p = new Parser();
p.getAtt();
Servlet.java
Parser p1 = new Parser();
String att1 = p1.getAtt();
Hope this will help u.
....yogesh -
How to preserve encoded characters at text and attributes node?
<greeting>hello, <World> </greeting>
When I run a SAX parser, it automatically decodes the characters
and make the document ill-formed after the round trip.
<greeting>hello, <world> </greeting> --- ERROR
Q: How do I preserve those special characters at text node and attribute nodes?
ThanksThanks for you guys' help.
It's great to get a real-time help from this online community.
Yue,
What I attempted to do was
0. I have 6G <database> document having 1.4 M <entry>s.
1. Read one <entry> at a time using SAX
2. Save each <entry> to a buffer
3. Pass the buffer to a Unmarshaller ( JAXB ) and create a JavaObject
Repeat above moving to next <entry> until reaches to the end.
At step 1, unescape happens
becomes >< becomes <
and & &
making my doc malformed (which is legal) :(
At step 2, I did the following to perserve <, >, and &
str = str.replaceAll( ">", ">");
str = str.replaceAll( "<", "<");
str = str.replaceAll( "&", "&");At step 3, JAXB is now happy to get a healthy XML input
<greeting>hello, <World></greeting>
It turned out to be nobody's fault but myself.
It was a good lesson, though.
Thanks, buddies -
My Waveform Graph is not a standard WG because it does have the Attribute
Node History. Therefore, I can't set the Attribute Node History to nothing
to delete a plot.
Is there another way to delete plots instead of using the Attribute Node
History?
Thanks!
StefanoSteve Drake wrote in message
[email protected]..
> On Fri, 24 Mar 2000 15:31:26 +0100, "Carmafresh"
> wrote:
>
> >My Waveform Graph is not a standard WG because it does have the Attribute
> >Node History. Therefore, I can't set the Attribute Node History to
nothing
> >to delete a plot.
> >Is there another way to delete plots instead of using the Attribute Node
> >History?
> >Thanks!
> >Stefano
> >
>
> Hi, just so you know what I do.
>
> I just looked and the XY Graph does not have a history attribute so
> what about writing out an array like [0,0] to clear the graph image?
>
> Exactly which graph are you using?
> My graph
> Regards,
>
> Steve Drake
Hi, Steve.
Yes, I use
this method to clear the graph image but: why the attribute Node
History isn't?
See the attachment: my graph!
Help me please!
Regards,
Stefano
[Attachment mygraph.vi, see below]
Attachments:
mygraph.vi 23 KB
Maybe you are looking for
-
How can I login to Airport Express Router not using an iPhone?
I need to change other settings in this router, such as: bandwith.
-
Dear Experts, is there any specific customisation required for cash discount granted and allowed in tax jurisdication procedure for USA and Canada? can any on help on this? Regards babu..
-
I need to bring an AIR-for-iOS app that I've developed to Android. I know that there are some older tutorials floating around the web on setting up Flash (and FlashDevelop) for Android development but can anyone tell me about any recent ones? I beli
-
I get run time error in step Set Report in reportgen_xml sequence
I get run time error in step "Set Report" in reportgen_xml.seq. The error code is "Out of memory". I don't know what to do. I use BatchModel, I have 6 batch loops. The problem appears on the 3d loop. I have NI 3.5. Help me!!!!!! I send attachment (sc
-
Cannot read iWeb menubar in Safari
I made a website and I published it. However in Safari the character in the menu bar on the top of the page are very small. So you can't read it. Is it possible to change the size of the characters in the top of the page?