Change custom step labels programatically

I want to change the step label progrmatically  based on the string variable in the step specified.
Ex: If a step contains a variable "Local.name",(names: TOM, MAT).  When ever we change the name from 'tom' to 'mat' the corresponding name should be displayed in the label in the result.

Hi,
Actually I have just remembered. You can not change the Step Name (Label) in the Step and have it affect the result if only called once. You have to change the value before you call the Step in question. So if you had an expression in the previous step such as NextStep.Name = "Test 1" this would change Action to Test 1 and therefore this would get recorded in the report.
Using an expression in the Action step such as Step.Name = "Test 1" would not change the Label but if it is in a loop you would notice that the next iteration of the step would change the Label.
Regards
Ray Farmer
Regards
Ray Farmer

Similar Messages

  • Change custom step icon

    I want to change the icon for loaded custom steps in a sequence. I've created the icon and put it in the icons folder with the rest. I opened the custom step properties and selected the new icon and all newly added steps of this type now use the new icon. But..... The previously loaded steps in my sequence still use the old icon. I thought that I used to do this without a problem am I missing something? TS3.5 and LV8.0 on an XP machine.
    kph

    Kph,
    You must select "Apply Changes in this Dialog to all Loaded Steps of this Type".  This is true of any property that is changed in a step type.  When a step is created of a certain step type it will copy the default data from the step type.  By default, changes to the step type will not affect any steps of that type.  This allows you to modify steps of a certain type but not have the modifications change other steps of the same type.  Selecting to Apply Changes however will effect currently loaded steps of that type.  Note also that the steps must be loaded for the changes to take effect.
    Regards,
    Tyler Tigue
    Applications Engineer
    National Instruments

  • How to change recon.account directly in Table with out changing customizing

    Hi Gurus,
    I want to change Customer reconciliation account but this is not possible any more due to display option for reconciliation account in customizing.
    I know I can change customizing and then change the reconciliation account, but there is a better way doing this.
    We can change this directly in the table without changing customizing, but I don't know how to do this. Does any one know how to change directly in the table?
    Many thanks in advance

    Hi there,
    The steps that you should take include:
    1. go to SE16
    2. put knb1
    3. on the field selection input the customer you want to edit
    4. Execute
    5. type to the transaction field /h and press Enter
    6. double click to the customer line item you want to change the recon
    7. this will navigate you to the debug environment
    8. on the debug environment press find/search button -or- CTRL+F to find a keyword code
    9. you should see  if code = 'SHOW'.
    10. now please double click on the word "code" to set the Breakpoint
    11. Press F7
    12. you will see the program routine will stop at if code = 'SHOW'.
    13. Double click on the word 'code'
    14. 'code' will appear on the righ hand side with value = 'SHOW'
    15. change the value of 'SHOW' to 'EDIT' by double clicking the Edit icon (pencil) and replacing the value of SHOW to EDIT
    16. press Enter
    17. press F8
    18. you can now change the recon field
    19. Press SAVE button
    20. Double click 2x (or more) on the STOP sign, until your breakpoint is gone
    21. press F8 and you should see the message of "Database Record successfully created"
    Good luck!
    Regards,
    Fausto
    Edited by: Fausto Jahja on Jul 21, 2009 5:26 PM
    Edited by: Fausto Jahja on Jul 21, 2009 5:50 PM

  • Creating a step type "launcher" that would insert the appropriate built-in or custom step type at edit time

    Hi everybody,
    I'm looking for tips, pointers,directions... to be able to perform this operation in TS 4.0 sequence Editor, if it's even possible...
    I'm managing a test system with a "home-made" virtual instruments abstraction Layer complementary to IVI classes for instruments which do not have classes defined, customizing the sequence editor accordingly for developpers of my department.
    So basically when the instrument is IVI, the developper uses the built-in IVI step-type type and when it is not, he uses the the custom step types that I developped for this particular class of instruments.  
    However there are classes where I do have both IVI and specific drivers available and I do need to use both in the test sequence.
    For example let's say there are two sources of DC power available in the testbench, one being a programmable IVI compliant DC power supply, and the other one composed of fixed "blocks" of DC power supply managed by externals relays and you need to use them both in the test sequence.
    What I would like to be able to do in the sequence editor is inserting the appropriate step type at edit time just by selecting the source of power supply (by a ring or enum for eg), and if the first ressource is selected, it inserts IVI step type, and if the second ressource is chosen, it inserts the appropriate custom step type.
    Any Ideas on how to accomplish this ?
    Regards,
    Cyril
    Cyril Bouton
    Active LabVIEW Developper
    Solved!
    Go to Solution.

    Hello Cyril,
    Here is an idea that could be done:
    You could create a dynamic step by having a step that holds all the properties for both configurations (the superset of the necessary variables) and an extra one that indicates which 'mode' the step is in.  Then you create the main Edit substep in whichever language you desire.  That substep window will then have a box/dropdown/etc. at the top you can use to choose between modes A & B.  When the user changes the value, you would dynamically change the rest of the window to contain the appropriate properties for mode A or B.  You then copy the property values in that window to the Step properties, and copy the mode to your variable and you can run the step in that mode.  When the step then runs, it checks the mode variable, and depending on its value, it will run the step in mode A or B.
    Now we could add a dialog that allows us to choose when we put a step down but we should still allow the user to change later via the Edit substep we create.
    I don't think we can create something that inserts a completely different step, but we can have one step that has the ability to do both and we can pick which one we execute.  Also note we still don't have the ability to edit the Panels for a step, so we have to use a new window that we call from our Edit substep to complete the step.
    Hope this helps.
    Regards,
    Olivier L. | Certified LabVIEW Developer

  • How can I include multiple limits in the sequence file documentat​ion for custom step type?

    Hi,
    I have a custom Step Type that contains Measurements property under Results. Its type is Array of NI_LimitMeasurement.
    I would like to see the values in the sequence file documentation like NI_MultipleNumericLimitTest type.
    Is there any trick to do that?
    Thanks,
    Andras

    Hi Andras,
    I have made  a slight change to the sequencefile 'docgen_txt.seq'.
    In the Sequence 'Step Doc' is a section which handles MultipleNumericLimit step type. There is a precondition check on the step 'Add Multiple Numeric Limits' if the step is of type 'NI_MultipleNumericLimit'. As your step type is based on the MultipleNumeric Limit type, I have just removed this precondition and just relied on the existence of Parameters.Step.Result.Measurement. Equally you could add a new section in this sequence to handle your Custom Step Type which is only called when the precodition match your type name.
    Now when you run the DocGen tool it handles your custom step type.
    Find attached my modified sequencefile 'docgen_txt.seq'.
    Just copy the contents of '..\National Instruments\TestStand 3.5\Components\NI\Tools\DocGen' to the User folder. Then place the attached file in the User\Tools\DocGen overwritting the version that is in that folder.
    Then launch TestStand and try it out on your sequence file.
    If you are using the html version, then you will have to make the same change into Step Doc sequence of the docgen_html sequence file.
    Hope this helps
    Regards
    Ray Farmer
    Message Edited by Ray Farmer on 05-19-2007 05:28 PM
    Regards
    Ray Farmer
    Attachments:
    docgen_txt.seq ‏184 KB

  • Can we add custom steps by default in startup,main and cleanup sequence

    I have made some of the custom steps which i want by default to be included in start up,main and clean up sequence when ever i press for a new sequence. I am using teststand4.0.Cna any help mein this regard.

    Hello kpraveen,
    Ray is correct in that you would need to create a Sequence File that loads a new sequence file into memory, then adds the specified step to the setup, main, and cleanup step groups of the new sequence files main sequence, and finally loads the new sequence file into the Sequence Editor. I've gone ahead and put together an example sequence that implements
    this. This example sequence places a Message Popup step in the setup,
    main, and cleanup step groups of a new sequence file (name will be
    "<no path>") loaded into the Sequence Editor. Once you've modified this sequence to load your custom steps, it is up to you where you place it for use in the toolbar. 
    As Ray suggested, I believe the Tools Menu would be the best place to have this feature since the Tools menu is not process model dependent. To add this option to the Tools Menu:
    1. Go to Tools»Customize.
    2. In the Items Text field select where you want to place this option in the Tools Menu list and click Add.
    3. In the Add Tools Menu Item window, select Sequence as the Item Type from the drop down menu.
    4. Browse to New Custom Sequence File.seq in the Sequence File field then select Main Sequence in the Sequence field.
    5. Click OK to exit the Add Tools Menu Item window.
    6. In the Customize Tools Menu window, change the name of your Tools option in the Item Text Expression field. For example I changed the Item Text Expression field to "New Custom Sequence File". 
    6. Click OK to exit the Customize Tools Menu window.
    7. Now if you go to Tools, you should see the New Custom Sequence File option and once clicked, it should load a new sequence file with your specified steps in the Setup, Main, and Cleanup step groups.
    This should get you on your way kpraveen. Good luck! 
    Manooch H.
    National Instruments
    Attachments:
    New Custom Sequence File_40.seq ‏5 KB

  • Stationglobals in a Labview custom step type inside a new thread do not get updated

    Hi,
    I have a Custom Step type which I use to pass parameters to TestStand from a VI and vice-versa through some step fields. I run the VI inside a sequence in a new thread and expect the VI to update the parameters when I change them through the TestStand StationGlobals.
    For example, I have a waveform injection custom step. I want to continuously inject a signal while I do some measurements on it. So, I put this step type in a sequence and ran it in a new thread. 
    I pass the VI parameter 'Stop_Injection' through a step field as shown in image 1. And I expect the step field to get updated when the new thread is run continuously by passing the corresponding stationglobal in the Pre-expression of the custom step (image 2). But this fails to happen. The VI does not get updated.
    On the other hand, if I do not bother with the step field and directly pass the stationglobal (figure 3), it works perfectly. 
    Any idea why this is happening?
    I hope I was clear in my question.
    LabVIEW 8.6.1
    TestStand 4.1.1
    Message Edited by Changi on 08-06-2009 12:50 AM
    Attachments:
    1.JPG ‏92 KB
    2.JPG ‏42 KB
    3.JPG ‏91 KB

    Hi,
    In image 3 you are linked directly to the StationGlobal of which you are continually updating therefore seeing the changes.
    In the other you are only linked to the Step.Stop_Injection and are only updating this valve from the stationglobals once in the pre-expression. You are not changing the reference.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Remove custom attribute labels

    Hi.
    Does anybody know how remove the custom attribute labels on a page.
    Thanks
    Portal version 9.0.2.6.18 and 9.0.4.0 (10g)

    Try below:
    http://www.harbar.net/archive/2012/07/23/sp13adi.aspx
    http://social.technet.microsoft.com/Forums/office/en-US/d183d133-7fdd-4053-a2ef-dd09b892bf33/error-when-i-get-the-custom-property-an-administrator-must-create-this-property-in-the-profile?forum=sharepointdevelopmentprevious
     This error indicated that the property is not exist in the UserProfile properties. I think you need first to check out the "ZipCode" has been created in your default user profile.
    Create custom profile property:
    http://technet.microsoft.com/en-us/library/cc262327.aspx#create
    In code, it is a good practice to make sure the specific property whether it exists or not.
    SPSite site = new SPSite(SPApplicationRootUrl);
    SPServiceContext serviceContext = SPServiceContext.GetContext(site);
    UserProfileConfigManager profileConfigManager = new UserProfileConfigManager(serviceContext);
    ProfilePropertyManager profilePropertyManager = profileConfigManager.ProfilePropertyManager;
    CorePropertyManager corePropertyManager = profilePropertyManager.GetCoreProperties();
    CoreProperty coreProperty = corePropertyManager.GetPropertyByName("ZipCode");
    if (coreProperty != null)
    Also you can try to create your custom property in code behind:
    http://www.sharemuch.com/2010/03/30/how-to-create-custom-sharepoint-2010-user-profile-properties-programatically/
    Hope this can help. 
    If this helped you resolve your issue, please mark it Answered

  • Database, custom step types, ann XML report issues...All in one

    TS3.0
    Have a number of issues to do the above. I'll try and explain them in order. I'm sure there all linked, but can't figure out how...
    The "Custom" Steps.....They are copies of the NI Numeric/Multiple Numeric tests, with a added post step to translate the error code into something meaningful.... No big deal.
    XML Issue
    When the report is generated the the Multiple numeric saves fine(See Multiple.txt, the step is of numeric type, all is well). However strange things happen in the Numeric test. see "Simple.txt" for a snipit of the result file. As you can see the "error code" contains the measurement. Why....?
    Also in the XML the result seems to be reported as a normal step(like an action) and not a numeric test....
    DATABASE Issues
    Now when loggin to the standard DB that ships with TS, with the 1 change to the tables, to record our custom types in the DB. Everything works fine and is recorded untill the 1st instance of a skipped "Custom_MultipleNumericLimit Test" , at which point the DB (Microsoft Access) throws a wobbly(error message) and states that "No such col exsists". When the DB is looked at everything is recorded upto the point where a skipped Custom Step happend(and the error message). When the custom type is run normally(ie not skipped), the resutls are recorded fine, no problems.
    Can't get my head around whats going on. I've check the property flags, and as far as I can tell every thing is in order for these custom steps(ie they look the same as the TestStand steps they are based on). It records fine in the XML.
    Attachments:
    Zip file with XML snipits.zip ‏1 KB

    Can you be more specific details about your database problem, specifically:
    1) the changes that you made to the default schema
    2) the changes that you made to the database tables
    3) the entire error message text for the logging error
    Scott Richardson
    National Instruments

  • How to changes  standard sap label description

    Hi !
    I heard that there is a way ton change standard sap label description. 
    Please tell me how to do this ?
    Thanks
    moshe

    Hi Solman
       You can do that using the method i have mentioned in
    my earlier post to change the descrptions. Mostly these
    will be used for Product Attributes in Material Master
    to give meaningful names as per our business. You can
    find the same if you go through the documentation
    following the below path
    IMG -> Sales & Distribution -> System Modifications ->
       Create New Fields( without Condition Technique).
    Here check the documentation of "Reserve Fields in the
    Customer Master Record"
      Hope that can help you understand better.
    Kind Regards
    Eswar

  • Put the report into shape for custom step type

    Hi All,
    I created a custom step type and also managed to get the results logged into the report file.
    In the report file(See ‘[15 33 14][22 10 2007].xml.vi’ please remove the 'vi' extension) the 'StepResult' (created by my custom step type) appears just below the status. Is it possible to get it displayed somehow the cell(measurement column) next to it, like in a Numeric Limit Step? I’m using the ‘horizontal.xsl’ stylesheet and Teststand 3.5.
    Furthermore, is it possible to change the name of the column headers? Or the structure of the header?
    Cheers
    Attila
    Attachments:
    [15 33 14][22 10 2007].xml.vi ‏17 KB

    Hi again Attila,
    Further to my above post, I've collaborated with colleagues here and have been able to modify the horizontal.xls stylesheet such that it is suitable for what you require. This modification will ensure that all properties named StepResult will be displayed as you described, in line in the table.
    To ensure compatibility with your results in TestStand, a small modification to your sequence file is required. In your sequence file, right click the value for your custom step, go to Advanced > Edit Flags and uncheck all boxes. The text in the bottom of the window should now read "0x0". This should mean that your data is displayed correctly.
    I am attaching the modified horizontal.xls for you to use [remove the .vi extension]; please make sure a backup is created before you replace it. The file should be placed in your TestStand directory under Components\NI\Models\TestStandModels\StyleSheets. Modifications to column headers as described in the above post can be made to this file.
    I hope this soultion is satisfactory and that you are able to implement it. If you have any further questions please don't hesitate to reply.
    Regards,
    Tom
    Applications Engineering, NI UK
    Attachments:
    horizontal.xsl.vi ‏84 KB

  • Customized steps in ChaRM workflow

    Hello SolMan Gurus,
    I am in a project implementing Change Request Management in Solution Manager. Now my client wants to add an additional customized step in the standard process flow. Let me explain in detail. When a change request has been created, before it reaches the approver my client wants to add an intermediate role who can either confirm or disapprove. Only if the intermediate person approves, should the change request go to the approver.
    Could you please help me with this scenario on how to do customization when it comes to add new roles in the ChaRM.
    Thanks.
    Regards,
    Pan

    Hi Pan,
    1. you need two custom statuses (ie. "Confrmed by Special Group" and "Disapproved by Special Group")
    2. you need two action to set the above statuses
    3. you need to set the conditions of the actions so that the only show up when the status is "New" in the actions toolbox
    4. you need to modify the Change Managers approval action conditions so they show up when the status is "Confirmed by Special Group" instead of "New'
    regards,
    Jason

  • Custom step type

    Hi,
    I am using TS4.0.1. and LV 7.1.
    I tried to create a custom step type (MultipleNumericTest_VBATPXI), which similiar to NI_MultipleNumeriLimitTest.  The difference is, I have two additional measured data. (I don't want to check those against Limit, but want to log to the database. )
    So I created the custome Datatype (Limit_test_VBATPXI) similar to "NI_LimitMeasurement" and add required two fields.  This datatype is passed to the "MultipleNumericTest_VBATPXI" steptype for Result.Measurement  type.
    In property browser it shows Results.Measurement as Limit_test_VBATPXI type. But when I add one value in Limit window, Result.Measurements.Measurement[0] becomes type of NI_LimitMeasurement !
    How to solve this?
    br,
    Vishal
    Attachments:
    Test_Type1.seq ‏30 KB
    test38.vi ‏13 KB

    Hello Vishal,
    When you click the "Add Measurement" button on the Limits tab of this step, it is actually calling the EditSubstep of the NI Multiple Numeric Limit Step type.  This Edit substep function, EditMultiNumericMeasurementStepUsingExpr(), is located in the  "<TestStand>\Components\NI\StepTypes\CommonSubsteps\CommonSubsteps.dll" file.  If you wanted to change the behavior of your custom step type, you would need to make your own dll (all of the source code for the CommonSubsteps.dll is provided) that would add your custom type instead of the NI_LimitMeasurement type.  I hope this helps alleviate any confusion.
    Best Regards,
    Software Engineer
    Jett R

  • Unsuccessful to change the properties label

    Hi expert,
    i am doing to change the properties label. i used existing project that i download from sap note 817876. below is my steps:
    1. i create my bundle file (fgckbLabel.properties)
    2. in bundle file, i defined my properties as
              HRProgram=Program
              HRDate=Date
    3. i change KEY in IRFServiceWrapper.java
        it become com.fgckbLabel.km.resource.bundle
    4. i deploy to portal
    5. i restart servlet engine
    6. i create metadata extension in system administration > system configuration > knowledge management > content management > global services > metadata extension.
      name : fgckbLabel_metadata_extension
      bundle file : com.fgckbLabel.km.resource.bundle.fgckbLabel
    7. i assign the metadata extension to all properties that need to change the label.
    i do the above  steps in many times but i cant see any changes on my properties. it's still display the property ID. did i missing some step?
    please help me..
    Thank in advance,
    Faeza

    Hi Faeza,
    The steps you have followed seems to be correct. This issue used to happen in our environment also, but second j2ee restarts used to fix the issue.
    Few cross checks which you can perform
    Please download the par file from the server and check whether the changes are present in the par file.
    make sure that you have keyed in the right bundle file name.
    Help link,am sure you would have seen this.
    http://help.sap.com/saphelp_nw04/helpdata/en/65/6fc63ed4027f6be10000000a114084/frameset.htm
    Regards,
    Vinod

  • OWSM Custom Step to modify SOAPBody

    We're trying to write a custom step that takes a username out of a WS-SECURITY header and forces it into an element in our SOAPBody.
    My code to pull the name from the header works fine, so does my code to iterate through the body to find the element I want to modify. But then what? setObjectValue doesn't seem to work. I also know that I've got to use setDirty, but when I run it on my soapbodyelement then most of the body disappears from the soap message.
    try {
    org.apache.axis.message.SOAPEnvelope env = soapMessage.getAxisMessage().getSOAPEnvelope();
    env.setDirty(true);
    SOAPBody soapBody = (SOAPBody)env.getBody();
    soapBody.setDirty(true);
    java.util.Iterator iterator = soapBody.getChildElements();
    while (iterator.hasNext()) {
    SOAPBodyElement bodyElement = (SOAPBodyElement)iterator.next();
    java.util.Iterator childIterator = bodyElement.getChildElements();
    while (childIterator != null && childIterator.hasNext()) {
    MessageElement childElement = (MessageElement)childIterator.next();
    if (childElement.getName() == "usernamein1") {
    log("Hey, I found the username 1 paramenter");
    log("old child element value" + childElement.getValue());
    childElement.setObjectValue("eureeka");
    ((org.apache.axis.message.MessageElement)childElement).setDirty(true);
    logSOAPMessage(soapMessage);
    I've seen the thread and blog post about adding a new header and I've done that. But I can't seem to affect the body, except to destroy it.
    So again, my goal is to take a WS-SECURITY username and force it in to a particular body element so that my web service (which is a pl/sql stored procedure) can know who it is talking to for auditing purposes. Help!

    I was never able to find out exactly why the problem occurs with setDirty(true) on an existing SOAPBodyElement in the message, but I did find a way to circumvent the problem.
    Basically what I did was to create a new SOAPBodyElement with the same Name, add that as a child to the SOAPBody, add the children of the old SOAPBodyElement to the new one, and detach the old SOAPBodyElement. Using setDirty(true) on the new element did not drop the content.
    SOAPEnvelope senv = msg.getAxisMessage().getSOAPEnvelope();
    SOAPBody sBody = (SOAPBody) senv.getBody();
    SOAPBodyElement serviceRequestOld = senv.getFirstBody();
    SOAPBodyElement serviceRequest = (SOAPBodyElement) sBody.addBodyElement(serviceRequestOld.getElementName());
    ArrayList<MessageElement> serviceRequestChildrenOld = serviceRequestOld.getChildren();
    for (MessageElement oldMessageElement : serviceRequestChildrenOld) {
    serviceRequest.addChild(oldMessageElement);
    serviceRequestOld.detachNode();
    // modify children as needed
    // setDirty(true) on changed elements and all the way up the hierarchy
    serviceRequest.setDirty(true);
    sBody.setDirty(true);
    senv.setDirty(true);
    This was helpful:
    http://www.oracle.com/technetwork/articles/jones-owsm-101767.html

Maybe you are looking for