Additional Results Custom Step using Variables in Name and Value to Log expressions?
I am trying to create a Custom Step Type for logging additional results - requiring a single Name and Value data pair included in the step.
I want to pass the name and value data in using two specific variables.
This functionality can of course be explicitly coded on a test step without problem, but I can't find a way to create a custom test step which inserts such a step i.e. automatically inserting the correct variable names into Name and Value to Log fields.
Any ideas how to accomplish this? I don't want the custom step users to have to type in the variable names every time they use it.
I am using TestStand 4.1.1
Message Edited by CIM1 on 04-20-2009 07:26 AM
Hi CIM1,
There are a few ways of doing this.
The simplest one would be to configure the expression in the Pre-Expression or Post-Expression (depending on whether you would like the Step Type to use the value in the variables or write the value to the variables) and then from here you can lock away the expressions from being edited. The caveat with this method is that you are obviously restricing the Pre/Post-Expressions for the step type.
Another Method would be to code some code modules to Write to/Read from the Variables and then calling these in the Steps Pre-Step SubStep or Post-Step Substep. The advantages of this method would be that you can search for the Variable, and if the variable is not present, you could create it before writing to it.
Hope this Helps.
Best Regards,
Steve H
Similar Messages
-
Custom page : displaying attribute display name and values
Hi !!
I'm developping a specific screen. I have a zone where I want to display a list of fields with a label containing the display name of an attribute and with a textbox containg the value of the attribute.
For now, I'm doing that like this :
- In a region, for each attribute I create a MessageTextInput with these properties :
View Instance : the view that gets the attributes values
View Attribute : the attribute I want to display in this field
Prompt : a hard coded label that corresponds to the attribute.
I know this isn't the right approach and I'm looking for a better way to do that as there is some bad sides :
- my view object gets all the attributes of an attribute group. If I add an attribute to the attribute group, it will not be displayed in my page. I'll have to add it manually and reimport the xml.
- if I change the display name, I will also have to manually edit the xml file and reimport it
- I want a multi-language screen : if I'm connected in english I want my screen to display the attribute's english display name, and if I'm connected in french I want my screen to display the attribute's french display name.
So how can I do it ?
Is there an region or item which has a "View Instance" property and that is able to display items depending on the view fields ?
Will I have to manually write a controller that builds this page dynamically ?
Thanks a lotYou have to use personalization and add a messageTextInput and set the prompt, viewInstance and viewAttribute properties. You can get your prompt translated using the translate options in Manage Levels page in personalization tool or use XLIFFExtractor and XLIFFImporter to manually do translations.
Read OA Personalization guide for details. -
I wrote an install program (.exe) that is downloaded from a website. When run, it 1) leads a customer to browse to a directory, and 2) copies files (.exe, .dll, etc.) from a website to that directory. When I run, the installed program works.
What are the steps to make it seamless for a customer to use the install program and then use the installed program?
bhs67This site https://msdn.microsoft.com/en-us/library/vstudio/2kt85ked%28v=vs.110%29.aspx provides a basic description of the Visual Studio Windows Installer.
Near the bottom of the page is "You can unlock all the features of InstallShield by paying to upgrade to the full version of InstallShield." Where do I find info that describes the differences between the "free" and the "full"
versions?
bhs67
Hello,
The default feature does support the task for your requirement, so there is no need to pay for the other features unless you want to use some feature which is not free.
In addition, as this thread
InstallShield LE not available with VS 2012 RTM? shared, even through there is a link to InstallShield LE in the New Project dialog under Deployment solutions, but it belongs to third-party that I would recommend you consider posting this issue
at the following forum to get supports about InstallShield.
http://community.flexerasoftware.com/forumdisplay.php?133-InstallShield
Regards.
Carl
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. -
Using variable coulmn name in sql function
Hi there,
I am not an expert with PL/SQL and I can not figure out how to use variable column names in my function.
My function is:
CREATE OR REPLACE FUNCTION RESET_TRIGGERS(aTrigger VARCHAR2) RETURN NUMBER IS
TEMP_ID NUMBER;
TEMP_USER_ID NUMBER;
BEGIN
SELECT 'LIMS.'||'$aTrigger'||'.NEXTVAL' INTO TEMP_ID FROM DUAL;
SELECT 'LIMS.'||'$aTrigger'||'_USER.NEXTVAL' INTO TEMP_USER_ID FROM DUAL;
IF TEMP_ID > TEMP_USER_ID THEN
LOOP
SELECT LIMS.SQ_U_FINALRESULT_USER.NEXTVAL INTO TEMP_USER_ID FROM DUAL;
EXIT WHEN TEMP_USER_ID = TEMP_ID;
END LOOP;
ELSE
WHILE TEMP_ID < TEMP_USER_ID LOOP
SELECT LIMS.SQ_U_FINALRESULT.NEXTVAL INTO TEMP_ID FROM DUAL;
END LOOP;
END IF;
COMMIT;
RETURN (TEMP_ID);
END;
What I want is that I pass a seqencename with aTrigger and that two triggers will be equal if not.
eg ifaTrigger = 'SQ_U_FINALRESULT'
than I want the triggers LIMS.SQ_U_FINALRESULT and LIMS.SQ_U_FINALRESULT_USER to be set equal.
The above function will not work, but what will?????
I hope you can help me out!
CheersA very strange function indeed.
But here is what I think he meant to do:
SQL> create procedure reset_sequences
2 ( p_sequence_name in varchar2
3 , p_nextval out number
4 )
5 is
6 l_nextval1 number;
7 l_nextval2 number
8 ;
9 procedure reset_sequence_value
10 ( p_sequence_name in varchar2
11 , p_current_value in number
12 , p_new_value in number
13 )
14 is
15 l_dummy number;
16 begin
17 execute immediate 'alter sequence ' || p_sequence_name || ' increment by ' || to_char(p_new_value-p_current_value);
18 execute immediate 'select ' || p_sequence_name || '.nextval from dual' into l_dummy;
19 execute immediate 'alter sequence ' || p_sequence_name || ' increment by 1';
20 end reset_sequence_value
21 ;
22 begin
23 execute immediate
24 'select ' || p_sequence_name || '.nextval,' || p_sequence_name || '_user.nextval from dual'
25 into l_nextval1, l_nextval2
26 ;
27 if l_nextval1 < l_nextval2
28 then
29 reset_sequence_value(p_sequence_name,l_nextval1,l_nextval2);
30 end if
31 ;
32 if l_nextval1 > l_nextval2
33 then
34 reset_sequence_value(p_sequence_name || '_user',l_nextval2,l_nextval1);
35 end if
36 ;
37 p_nextval := greatest(l_nextval1,l_nextval2)
38 ;
39 end reset_sequences;
40 /
Procedure is aangemaakt.
SQL> show err
Er zijn geen fouten.
SQL> create sequence testseq start with 5 increment by 1
2 /
Reeks is aangemaakt.
SQL> create sequence testseq_user start with 2 increment by 1
2 /
Reeks is aangemaakt.
SQL> declare
2 l_new_value number;
3 begin
4 reset_sequences('testseq',l_new_value);
5 dbms_output.put_line(l_new_value);
6 end;
7 /
5
PL/SQL-procedure is geslaagd.
SQL> select testseq.currval from dual
2 /
CURRVAL
5
1 rij is geselecteerd.
SQL> select testseq_user.currval from dual
2 /
CURRVAL
5
1 rij is geselecteerd.Regards,
Rob. -
SPSiteDataQuery - filter by file Title - Can I use variable for the filter value?
I use SPsiteDataQuery to search across multiple lists and filter by file title. I have the file title information in a variable.
Can I use variable in the filter value?
string fileName = "Policies.doc"
SPSiteDataQuery spQry = new SPSiteDataQuery();
spQry.ViewFields = "<FieldRef Name='Title'/><Value Type='Text'>fileName</Value>"If I have understood correctly, you want to search based upon a File title in all the sites. You can include a query to filename in the spQry
spQry.Query = "<Where>" +
"<Eq>" +
"<FieldRef Name=\"FileLeafRef\"/>" +
"<Value Type=\"Text\">" + fileName + "</Value>" +
"</Eq>" +
"</Where>";
get2pallav
Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you. -
How to get Cookie Name and Value Using HttpGetterCallback - CE 7.3
Hi All,
We are migrating from Netweaver 7.0 to 7.3. We are facing a issue when migrating the custom login module from 7.0 to 7.3.
Since WebCallback is deprecated and not to be used in Netweaver 7.3, we are finding difficulties in getting the cookie name and value. Please find below our coding for getting the cookie value using HttpGetterCallback. We are not getting the cookie name and value, Kindly let us know if we are implementing the HttpGetterCallback correctly.
HttpGetterCallback httpGetCookieCallback = new HttpGetterCallback();
httpGetCookieCallback.setType(HttpCallback.COOKIE);
Callback] callbks = new Callback[ { httpGetUrlCallback, httpGetCookieCallback };
callbackHandler.handle(callbks);
requestUrl = (String) httpGetUrlCallback.getValue();
Cookie] cookies = (Cookie [) httpGetCookieCallback.getValue();
if (cookies != null) {
for (int i = 0; i < cookies.length; i++) {
location.debugT("Cookies name " + cookies.getName()
+ " - value "
+ cookies.getValue());
Thanks and Regards,
SaravananTry This-
Cookie cookiesArray[] = request.getCookies();
Cookie currentCookie = null;
String currentCookieName = "";
String cookieValue = "dummycookie";
int cookieArrayLength = cookiesArray.length;
for (int i = 0; i < cookieArrayLength; i++) {
currentCookie = cookiesArray<i>;
currentCookieName = currentCookie.getName();
cookieValue = currentCookie.getValue();
Regards,
Atul -
Hey guys i was wondering if i could downgrade my iphone 5 from ios 7.1.1 to 7.0.6 or .0.4 i have 7.0.6 and .0.4 shsh blobs but when i try to build a custom ipsw using ifaith it loads and never stop loading is there any way to downgrade to older ios 7 ?
No, you cannot downgrade your iOS device. That's not supported by Apple.
-
Why can't I set up an apple ID alternate email using my first name and last name?
I am trying to set up an alternate address to my appleID using my first name and last name. It keeps saying it is "rejected" but it gives me no reason. I thought maybe someone was squatting on it, but when I try to send a note to it, it says that it isn't a valid address. Does Apple prevent you from using an iCloud device with your name? Seems odd since it allows other combinations of my name.
Hello amg1957,
Thanks for using Apple Support Communities.
If you're trying to add an alternate email address to your Apple ID account, the email needs to be an existing valid email address. To configure an alternate email address with a valid existing email, please follow the directions below.
Alternate email address
You can add one or more alternate email addresses for use with Apple services such as Game Center, FaceTime, Find My Friends, iMessage, and OS X notifications.
Go to My Apple ID (appleid.apple.com).
Select “Manage your Apple ID” and sign in.
Add an alternate address:
Select Add Email Address, then enter your alternate address. Apple will send a verification email to that address. Didn't receive the email?
Follow the instructions in the email to verify the address.
Edit an alternate address:
Select Edit next to the address, then enter the new address. Apple will send a verification email to that address. Didn't receive the email?
Follow the instructions in the email to verify the address.
Delete an alternate address: Select Delete next to the address.
Manage your Apple ID primary, rescue, alternate, and notification email addresses - Apple Support
Take care,
Alex H. -
I am using the user name and password given to me by
I am using the user name and password given to me by Virgin on the email 'other' , after the initial page it comes up with IMAP settings which I don't have so I click on the POP page and give all the settings listed by Virgin on ints website (using ntlworld and not virgin as instructed) but it still comes up with 'Unable to Verify' So something is sticking somehwere but I don't know where!
Thanks very grateful for assistanceTry going into Settings > Mail, Contacts, Calendars and select that email account and try re-typing in the account's username and password
-
Local name and value to test report?
Hello!
I have a local variable in MainSequence which name and value I want to include to test report. How can this be done?
BR,
Jick
Solved!
Go to Solution.You could also use the Additional Results step or Additional Results for any step.
See Attachment
Regards,
jigg
CTA, CLA
teststandhelp.com
~Will work for kudos and/or BBQ~
Attachments:
AdditionalResult.png 12 KB -
How to specify pairs of variabel names and values in OdiInvoke
Hi,
If you start the scenario from a web service, you are invoking the service OdiInvoke. When you look at the WSDL for this Web Service, you will notice that beyond the scenario name, version and the execution context, you can specify pairs of variable names and values. The WSDL for the web service as following:
<xsd:complexType name="SessionRequestType">
<xsd:sequence>
<xsd:element minOccurs="0" default="true" type="xsd:boolean" name="Synchronous"/>
<xsd:element minOccurs="1" type="xsd:long" name="SessionId"/>
<xsd:element minOccurs="0" default="true" type="xsd:boolean" name="KeepVariables"/>
<xsd:element minOccurs="0" type="VariableType" name="Variables" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="VariableType">
<xsd:all>
<xsd:element type="xsd:string" name="Name"/>
<xsd:element type="xsd:string" name="Value"/>
</xsd:all>
</xsd:complexType>..........
If i call this OdiInvoke web service from BPEL, From BPEL assign activity, how can i specify pairs of variable names and values? Example: i have variable 1 and value1, variable 2 and value2, how to assign them to pairs if variable names and values. so that after the assignment, the payload for assign activity in BPEL can be become as following:
<Variables>
<Name>variable1</Name>
<Value>value1</Value>
<Name>variable2</Name>
<Value>value2</Value>
</Variables>
Thanks!
SusanTry this way,
In the expression builder copy the xml fragment to the target node. This will result in the below assign action in the bpel code
<assign name="Assign1">
<copy>
<from expression="<Variables><Name>variable1</Name><Value>value1</Value><Name>variable2</Name><Value>value2</Value></Variables>"/>
<to variable="outputVaribable"/>
</copy>
</assign> -
What is the key column name and value column name in JDBC Adapter parameter
Hi
Can any one please tell me what is the Key Column Name and Key Column Value in JDBC adatper parameters. If i dont mention those parameters i am getting the following error
<b> Value missing for mandatory configuration attribute tableEOColumnNameId</b>
Please help me
Best Regards
Ravi Shankar BHi
I am doing DataBase Lookup in XI
First i have created a Table in Database( CheckUser) which has two fields UserName and PhoneNumber and then i have created
I have created one Communication Channel For Reciever Adapter .
I have given the parameters like this
JDBC Driver : com.microsoft.jdbc.sqlserver.SQLServerDriver
Connection : jdbc:microsoft:sqlserver://10.7.1.43:1433;DatabaseName=Ravi;
UserName.... sa
password.... sa
persistence : Database
Database Table Name : CheckUser
Key column name and Value column name i left blank and activated
and then
I have created
Data Types : Source ...... UserName
Destination.... PhoneNumber
Message Types
Message Interfaces
In Message Mapping
I have created one User Defined function DBProcessing_SpecialAPI().This method will get the data from the database....
In this function i have written the following code
//write your code here
String query = " ";
Channel channel = null;
DataBaseAccessor accessor = null;
DataBaseResult resultSet = null;
query = "select Password from CheckUser where UserName = ' " +UserName[0]+ " ' ";
try {
channel = LookupService.getChannel("Ravi","CC_JDBC");
accessor = LookupService.getDataBaseAccessor(channel);
resultSet = accessor.execute(query);
for(Iterator rows = resultSet.getRows();rows.hasNext();){
Map rowMap = (Map)rows.next();
result.addValue((String)rowMap.get("Password"));
catch(Exception e){
result.addValue(e.getMessage());
finally{
try{
if(accessor != null)
accessor.close();
}catch(Exception e){
result.addValue(e.getMessage());
And the i have mapped like this
UserName -
> DBProcessing_SpecialAPI----
>PhoneNumber
when i am testing this mapping i am getting the following error
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Dest_JDBC_MT xmlns:ns0="http://filetofilescenario.com/ilg"><phoneNumber>Plain exception:Problem when calling an adapter by using communication channel CC_JDBC (Party: , Service: Ravi, Object ID: c360bc139a403293afbc49d5c46e4478) Check whether the communication channel exists in the Integration Directory; also check the cache notifications for the instance Integration Server (central Adapter-Engine) Channel object with Id Channel:c360bc139a403293afbc49d5c46e4478 not available in CPA Cache.
com.sap.aii.mapping.lookup.LookupException: Problem when calling an adapter by using communication channel CC_JDBC (Party: , Service: Ravi, Object ID: c360bc139a403293afbc49d5c46e4478) Check whether the communication channel exists in the Integration Directory; also check the cache notifications for the instance Integration Server (central Adapter-Engine) Channel object with Id Channel:c360bc139a403293afbc49d5c46e4478 not available in CPA Cache.
at com.sap.aii.ibrun.server.lookup.AdapterProxyLocal.<init>(AdapterProxyLocal.java:61)
at com.sap.aii.ibrun.server.lookup.SystemAccessorInternal.getProxy(SystemAccessorInternal.java:98)
at com.sap.aii.ibrun.server.lookup.SystemAccessorInternal.<init>(SystemAccessorInternal.java:38)
at com.sap.aii.ibrun.server.lookup.SystemAccessorHmiServer.getConnection(SystemAccessorHmiServer.java:270)
at com.sap.aii.ibrun.server.lookup.SystemAccessorHmiServer.process(SystemAccessorHmiServer.java:70)
at com.sap.aii.utilxi.hmis.server.HmisServiceImpl.invokeMethod(HmisServiceImpl.java:169)
at com.sap.aii.utilxi.hmis.server.HmisServer.process(HmisServer.java:178)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.processRequestByHmiServer(HmisServletImpl.java:296)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.processRequestByHmiServer(HmisServletImpl.java:211)
at com.sap.aii.utilxi.hmis.web.workers.HmisInternalClient.doWork(HmisInternalClient.java:70)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doWork(HmisServletImpl.java:496)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doPost(HmisServletImpl.java:634)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
</phoneNumber></ns0:Dest_JDBC_MT>
In RWB i have checked the status of JDBC driver its showing the following error
<b>Value missing for mandatory configuration attribute tableEOColumnNameId</b>
Best Regards
Ravi Shankar B
Message was edited by:
RaviShankar B -
Invalid User Name and Password when logging onto BPM Workspace (v9.3.1)
I have installed Hyperion Planning and the related/required products. When I attemp to log on to Workspace, I get the following message;
'You must supply a valid User Name and Password to log onto the system."
I have tried using the native 'admin' account, and an NTLM account that I have setup. Both of these accounts work for logging onto the the User Management Console and to the Essbase Administration Console, and I have provisioned both of them with full admin privileges.
Has anyone encountered this issue?
Thanks,
-KThank you all for the responses so far.
On the first response, I had already provisioned an NTLM user that is a member of the local Administrators group with all administrative roles, and also refreshed security in EAS prior to submitting this inquiry, so that did not solve the problem.
On the second, I cannot navigate to ../workspace/browse/configinfo without logging in so I am unable to review this information.
On the third response, where do you provision the user to BI+? If I open the User Management Console, there are four root roles each with a tree underneath: APS 9.3.1 Server, Analytic Servers, Business Rules, and Hyperion Shared Services. Under each tree, I have provisioned the 'admin' user and the NTLM user for all roles, including Administrator, Dimension Editor and Application Creator under Hyperion Shared Services -> Global Roles. Should there be a BI+ tree? If so, it is not appearing on the list.
Thanks for any additional info anyone can provide.
-Ken -
How to get the name and value of an attribute on a node/element that is not a child
Hello,
Can someone shed some wisdom on how I can compare 2 xml nodes for differences.
My main challenge is I need to use the attributes/values of 'ProductDescription' and 'Features' as 'key' to identify the same node in
another doc with the same layout, but different content.
I am having trouble getting the name of the attribute on the node, 'ProductDescription' and 'Features'. I can only seem to get the node names, but not the attributes on the node. I need the name, because it can be different from doc to doc, so
I can't hardcode this.
Can someone please help with how to retrieve an attribute name/value on a node that is not a child. Here's an example of what
my xml looks like:
DECLARE
@myDoc1 xml
,@mydoc2 xml
DECLARE
@ProdID int
SET @myDoc1 ='<ProductDescription ProductID="1" ProductName="Road Bike">
<Features featureID = "1" featureName = "body">
<Warranty>1 year parts and labor</Warranty>
<Maintenance>3 year parts and labor extended maintenance is available</Maintenance>
</Features>
<features featureID = "2" featureName = "seat">
<Warranty>1 year parts and labor</Warranty>
<Maintenance>2 year parts and labor extended maintenance is available</Maintenance>
</Features>
</ProductDescription>
SET @myDoc2 ='<ProductDescription ProductID="1" ProductName="Road Bike">
<Features featureID = "1" featureName = "body">
<Warranty>2 year parts and labor</Warranty>
<Maintenance>3 year parts and labor extended maintenance is available</Maintenance>
</Features>
<features featureID = "2" featureName = "wheel">
<Warranty>1 year parts and labor</Warranty>
<Maintenance>2 year parts and labor extended maintenance is available</Maintenance>
</Features>
</ProductDescription>
I need to compare the attributes of 'ProductDescription' and 'Features' from @mydoc1 against @mydoc2 to see if they are the same based on those 2 nodes first. If they are, then i want to show the difference in the child elements.
This will eventually be an outer join to give me the differences betw the 2 docs based on those key values (node attributes).
I used node('//*') for the path, and value('local-name(../.)', 'varchar(50)') as element
,value('.[not(@xsi:nil = "true")]','VARCHAR(255)') AS new_value
...etc...
but that only gives me the node names, and the child elements. It does not give me back the attribute names and values from the node itself.
Thanks in advance for your help.
ceeAre you looking for something like this:
DECLARE @myDoc1 xml
SET @myDoc1 ='<ProductDescription ProductID="1" ProductName="Road Bike">
<Features featureID = "1" featureName = "body">
<Warranty>1 year parts and labor</Warranty>
<Maintenance>3 year parts and labor extended maintenance is available</Maintenance>
</Features>
<Features featureID = "2" featureName = "seat">
<Warranty>1 year parts and labor</Warranty>
<Maintenance>2 year parts and labor extended maintenance is available</Maintenance>
</Features>
</ProductDescription>'
SELECT T.c.value('local-name(.)', 'nvarchar(50)') AS name,
T.c.value('.', 'nvarchar(50)') AS value
FROM @myDoc1.nodes('ProductDescription/@*') AS T(c)
Erland Sommarskog, SQL Server MVP, [email protected] -
Get the attributes NAME and VALUE from an XML
I really love this forum :)
I load an XML an populate a Tree, from which I start to drag
items.
the xml looks like this:
<myTag attrName="attrValue"
otherAttrName="otherAttrValue"/>
var ds:DragSource = event.dragSource;
var var1:String =(event.dragInitiator as
Tree).value.@attrName;
-> the var1 variable has now: "attrValue"
my question is.. how can I get all the attributes' names? in
this example: attrName and otherAttrName (suppose I don't know the
structure of that xml node)
what about attributes values?
thank you!The snippet below takes an xml node(nodeCur), loops over the
attributes list and builds an array that contains the attribute
name and value for each attribute. It comes from a sample app that
allows you to edit an xml file.
Sorry that the forum will remove the formatting
var aDPAttributes:Array = new Array();
var xlAttributes:XMLList = nodeCur.@*;
var attribute:Attribute;
for ( var i:int = 0; i < xlAttributes.length(); i++) {
aDPAttributes.push({name:xlAttributes [ i ]
.name(),value:xlAttributes [ i ] });
dgAttributes.dataProvider = aDPAttributes; //set the property
sheet dataProvider
Tracy
Maybe you are looking for
-
Office Web Apps Server 2013 - Word Web App - Problem with Tab space
Hello We have Office Web Apps Server 2013 running with SharePoint 2013. Users Editing a Word document with Office Web Apps, can't use "Tabs", any Word document with Tabs; the tabs are replaced with a single space. Has anyone noticed this? Is this a
-
Exchange User IP - Get Object Returns Body of E-Mail As HTML
All, Using Orchestrator to monitor a mailbox and create System Center Service Manager incident from it. I am utilizing the Activity Directory User IP to monitor to the mailbox, pull the subject/body/send from the e-mail, and create an incident. Every
-
Why does email hypertext in PDF open web browser window in addition to email client?
Using FrameMaker 10, I created the following hypertext: message URL mailto:[email protected] I then printed to PDF. When I click the link in the PDF it opens an email client message window (what I want) but also opens a web browser window with mailto
-
How to tell weblogic server which configuration I want to use
Hi Everyone, I write the logmodule class, configuration class, Action class, client class and my policy file my.policy. I add the VM parameter when I start weblogic server "-Djava.security.auth.policy=D:\bea\wlserver6.1/lib/my.policy" But I don't kno
-
MacBook Pro graphics problem on boot
Yesterday my MBP ran out of battery while I was sleeping, so I guess it shut down, or hybernated (whatever). This morning it wouldn't "wake up", so I force shut it down - hold the TURN ON button. However, when I tried to start it again, it never work